diff --git a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.BackfillContactAnalysisData.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.BackfillContactAnalysisData.g.cs new file mode 100644 index 00000000..8789c96e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.BackfillContactAnalysisData.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// Trigger a backfill job that re-applies analysis data mappings to contacts using historical call data. Only one backfill job can run per organization at a time. + /// + /// + /// 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 BackfillContactAnalysisDataAsync( + + global::RetellAI.BackfillContactAnalysisDataRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Trigger a backfill job that re-applies analysis data mappings to contacts using historical call data. Only one backfill job can run per organization at a time. + /// + /// + /// 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> BackfillContactAnalysisDataAsResponseAsync( + + global::RetellAI.BackfillContactAnalysisDataRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Trigger a backfill job that re-applies analysis data mappings to contacts using historical call data. Only one backfill job can run per organization at a time. + /// + /// + /// Optional call filter to scope which calls are processed. Supports agent and start_timestamp from the standard call filter. + /// + /// + /// Contact fields to recompute. Each one must still exist as a contact field and have an analysis data mapping configured, otherwise the request is rejected rather than running a job that writes nothing. + /// + /// 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 BackfillContactAnalysisDataAsync( + global::System.Collections.Generic.IList backfillAttributes, + global::RetellAI.BackfillContactAnalysisDataRequestBackfillCallFilter? backfillCallFilter = 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.CreateApp.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.CreateApp.g.cs new file mode 100644 index 00000000..65daa0f4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.CreateApp.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// Create an App: the connection to one external system (a CRM, calendar, support desk, and so on), holding its credentials and settings. Providers that authenticate with a key, token, or refresh token can be connected in this one call by passing auth_config; the credential is stored encrypted and never returned. Up to 20 apps per provider. + /// + /// + /// 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 CreateAppAsync( + + global::RetellAI.CreateAppRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create an App: the connection to one external system (a CRM, calendar, support desk, and so on), holding its credentials and settings. Providers that authenticate with a key, token, or refresh token can be connected in this one call by passing auth_config; the credential is stored encrypted and never returned. Up to 20 apps per provider. + /// + /// + /// 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> CreateAppAsResponseAsync( + + global::RetellAI.CreateAppRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create an App: the connection to one external system (a CRM, calendar, support desk, and so on), holding its credentials and settings. Providers that authenticate with a key, token, or refresh token can be connected in this one call by passing auth_config; the credential is stored encrypted and never returned. Up to 20 apps per provider. + /// + /// + /// App integration category. + /// + /// + /// Provider name. Must be valid for the App's type; the supported providers per type are listed by list-app-templates. + /// + /// + /// Display name. + /// + /// + /// Per-tenant API base URL. + /// + /// + /// Sub-account id, for providers that scope requests by a sub-account id on a shared host. + /// + /// + /// + /// 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 CreateAppAsync( + global::RetellAI.AppType type, + string provider, + string? name = default, + string? tenantUrl = default, + string? tenantId = default, + global::RetellAI.AuthConfigRequest? authConfig = default, + global::RetellAI.AppCRMConfig? crmConfig = 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.CreateContact.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.CreateContact.g.cs new file mode 100644 index 00000000..cf03d273 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.CreateContact.g.cs @@ -0,0 +1,59 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// Create a new contact. + /// + /// + /// 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 CreateContactAsync( + + global::RetellAI.CreateContactRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create a new contact. + /// + /// + /// 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> CreateContactAsResponseAsync( + + global::RetellAI.CreateContactRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create a new contact. + /// + /// + /// Phone number of the contact. + /// + /// + /// First name of the contact. + /// + /// + /// Last name of the contact. + /// + /// + /// + /// Values must match the types defined in CRM config custom fields. Set a value to null to clear it. + /// + /// 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 CreateContactAsync( + string phoneNumber, + string? firstName = default, + string? lastName = default, + bool? doNotCall = default, + object? customFields = 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.DeleteApp.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.DeleteApp.g.cs new file mode 100644 index 00000000..22060ce4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.DeleteApp.g.cs @@ -0,0 +1,34 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// Delete an App. Fails when agents or knowledge bases still reference it, unless force_delete is set. If a CRM config is linked to this App, the link is cleared. + /// + /// + /// + /// 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 DeleteAppAsync( + string appId, + bool? forceDelete = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Delete an App. Fails when agents or knowledge bases still reference it, unless force_delete is set. If a CRM config is linked to this App, the link is cleared. + /// + /// + /// + /// 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 DeleteAppAsResponseAsync( + string appId, + bool? forceDelete = 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.DeleteContact.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.DeleteContact.g.cs new file mode 100644 index 00000000..89800a68 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.DeleteContact.g.cs @@ -0,0 +1,30 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// Delete a contact. A contact linked to a record in a connected CRM cannot be deleted while two-way sync is active — unlink the CRM app first, otherwise the next sync would recreate it. + /// + /// + /// 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 DeleteContactAsync( + string contactId, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Delete a contact. A contact linked to a record in a connected CRM cannot be deleted while two-way sync is active — unlink the CRM app first, otherwise the next sync would recreate it. + /// + /// + /// 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 DeleteContactAsResponseAsync( + string contactId, + 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.DeleteConversationFlow.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.DeleteConversationFlow.g.cs index 14e27544..b5bb1088 100644 --- a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.DeleteConversationFlow.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.DeleteConversationFlow.g.cs @@ -8,22 +8,26 @@ public partial interface IRetellAiClient /// Delete a conversation flow and all its versions /// /// + /// /// 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 DeleteConversationFlowAsync( string conversationFlowId, + bool? forceDelete = default, global::RetellAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// /// Delete a conversation flow and all its versions /// /// + /// /// 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 DeleteConversationFlowAsResponseAsync( string conversationFlowId, + bool? forceDelete = default, global::RetellAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.DeleteRetellLLM.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.DeleteRetellLLM.g.cs index 47e07b2b..3cbf4cf6 100644 --- a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.DeleteRetellLLM.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.DeleteRetellLLM.g.cs @@ -10,11 +10,13 @@ public partial interface IRetellAiClient /// /// Example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD /// + /// /// 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 DeleteRetellLLMAsync( string llmId, + bool? forceDelete = default, global::RetellAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -23,11 +25,13 @@ public partial interface IRetellAiClient /// /// Example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD /// + /// /// 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 DeleteRetellLLMAsResponseAsync( string llmId, + bool? forceDelete = default, global::RetellAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetAgentVersions.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetApp.g.cs similarity index 65% rename from src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetAgentVersions.g.cs rename to src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetApp.g.cs index 9de968c7..487b368b 100644 --- a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetAgentVersions.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetApp.g.cs @@ -5,29 +5,25 @@ namespace RetellAI public partial interface IRetellAiClient { /// - /// Get all versions of an agent + /// Get an App by id. /// - /// - /// Example: 16b980523634a6dc504898cda492e939 - /// + /// /// 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> GetAgentVersionsAsync( - string agentId, + global::System.Threading.Tasks.Task GetAppAsync( + string appId, global::RetellAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Get all versions of an agent + /// Get an App by id. /// - /// - /// Example: 16b980523634a6dc504898cda492e939 - /// + /// /// 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>> GetAgentVersionsAsResponseAsync( - string agentId, + global::System.Threading.Tasks.Task> GetAppAsResponseAsync( + string appId, global::RetellAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetChatAgentVersions.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetBackfillContactJobStatus.g.cs similarity index 64% rename from src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetChatAgentVersions.g.cs rename to src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetBackfillContactJobStatus.g.cs index 5780347a..497d2505 100644 --- a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetChatAgentVersions.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetBackfillContactJobStatus.g.cs @@ -5,29 +5,21 @@ namespace RetellAI public partial interface IRetellAiClient { /// - /// Get all versions of a chat agent + /// Get the status of the contact analysis data backfill job. /// - /// - /// Example: 16b980523634a6dc504898cda492e939 - /// /// 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> GetChatAgentVersionsAsync( - string agentId, + global::System.Threading.Tasks.Task GetBackfillContactJobStatusAsync( global::RetellAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Get all versions of a chat agent + /// Get the status of the contact analysis data backfill job. /// - /// - /// Example: 16b980523634a6dc504898cda492e939 - /// /// 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>> GetChatAgentVersionsAsResponseAsync( - string agentId, + global::System.Threading.Tasks.Task> GetBackfillContactJobStatusAsResponseAsync( global::RetellAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetContact.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetContact.g.cs new file mode 100644 index 00000000..13a52b14 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetContact.g.cs @@ -0,0 +1,30 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// Retrieve a contact by ID. + /// + /// + /// 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 GetContactAsync( + string contactId, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Retrieve a contact by ID. + /// + /// + /// 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> GetContactAsResponseAsync( + string contactId, + 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.GetContactByPhone.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetContactByPhone.g.cs new file mode 100644 index 00000000..763ddc23 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetContactByPhone.g.cs @@ -0,0 +1,30 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// Retrieve a contact by phone number. At most one contact exists per phone number in an organization. + /// + /// + /// 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 GetContactByPhoneAsync( + string phoneNumber, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Retrieve a contact by phone number. At most one contact exists per phone number in an organization. + /// + /// + /// 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> GetContactByPhoneAsResponseAsync( + string phoneNumber, + 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.GetCrmConfig.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetCrmConfig.g.cs new file mode 100644 index 00000000..622a40c1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetCrmConfig.g.cs @@ -0,0 +1,26 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// Get the organization's CRM configuration: which CRM app is linked, the custom contact fields defined for it, and how post-call analysis data is written back to contacts. Returns an empty configuration when nothing has been set up yet. + /// + /// 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 GetCrmConfigAsync( + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get the organization's CRM configuration: which CRM app is linked, the custom contact fields defined for it, and how post-call analysis data is written back to contacts. Returns an empty configuration when nothing has been set up yet. + /// + /// 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> GetCrmConfigAsResponseAsync( + 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.GetCrmSchema.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetCrmSchema.g.cs new file mode 100644 index 00000000..73feb89f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetCrmSchema.g.cs @@ -0,0 +1,30 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// Get the contact schema of the connected CRM: the fields available on its contact object, which are the values that sync mappings can reference. + /// + /// + /// 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 GetCrmSchemaAsync( + string? appId = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get the contact schema of the connected CRM: the fields available on its contact object, which are the values that sync mappings can reference. + /// + /// + /// 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> GetCrmSchemaAsResponseAsync( + string? appId = 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.GetSyncJobStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetSyncJobStatus.g.cs new file mode 100644 index 00000000..a9831695 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.GetSyncJobStatus.g.cs @@ -0,0 +1,26 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// Get the status of the organization's contact sync, whether it was started manually or by the schedule. Returns status `idle` when no sync is running. + /// + /// 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 GetSyncJobStatusAsync( + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get the status of the organization's contact sync, whether it was started manually or by the schedule. Returns status `idle` when no sync is running. + /// + /// 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> GetSyncJobStatusAsResponseAsync( + 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.ListAgentVersions.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListAgentVersions.g.cs new file mode 100644 index 00000000..a97a01f8 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListAgentVersions.g.cs @@ -0,0 +1,54 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// List stored versions of a voice or chat agent with pagination. Root-level data such as assigned tags is not included. + /// + /// + /// Example: 16b980523634a6dc504898cda492e939 + /// + /// + /// Default Value: 50 + /// + /// + /// Default Value: descending + /// + /// + /// 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> ListAgentVersionsAsync( + string agentId, + int? limit = default, + global::RetellAI.ListAgentVersionsSortOrder? sortOrder = default, + string? paginationKey = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List stored versions of a voice or chat agent with pagination. Root-level data such as assigned tags is not included. + /// + /// + /// Example: 16b980523634a6dc504898cda492e939 + /// + /// + /// Default Value: 50 + /// + /// + /// Default Value: descending + /// + /// + /// 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>> ListAgentVersionsAsResponseAsync( + string agentId, + int? limit = default, + global::RetellAI.ListAgentVersionsSortOrder? sortOrder = 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.ListAppUsages.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListAppUsages.g.cs new file mode 100644 index 00000000..b2da9401 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListAppUsages.g.cs @@ -0,0 +1,50 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// List the agents and knowledge bases referencing an App, most recently configured first by default. + /// + /// + /// + /// Default Value: 50 + /// + /// + /// Default Value: descending + /// + /// + /// 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> ListAppUsagesAsync( + string appId, + int? limit = default, + global::RetellAI.ListAppUsagesSortOrder? sortOrder = default, + string? paginationKey = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List the agents and knowledge bases referencing an App, most recently configured first by default. + /// + /// + /// + /// Default Value: 50 + /// + /// + /// Default Value: descending + /// + /// + /// 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>> ListAppUsagesAsResponseAsync( + string appId, + int? limit = default, + global::RetellAI.ListAppUsagesSortOrder? sortOrder = 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.ListApps.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListApps.g.cs new file mode 100644 index 00000000..84d79fc2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListApps.g.cs @@ -0,0 +1,46 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// List Apps in the organization (paginated). + /// + /// + /// Default Value: 50 + /// + /// + /// Default Value: descending + /// + /// + /// 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> ListAppsAsync( + int? limit = default, + global::RetellAI.ListAppsSortOrder? sortOrder = default, + string? paginationKey = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List Apps in the organization (paginated). + /// + /// + /// Default Value: 50 + /// + /// + /// Default Value: descending + /// + /// + /// 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>> ListAppsAsResponseAsync( + int? limit = default, + global::RetellAI.ListAppsSortOrder? sortOrder = 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.ListContactConversations.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListContactConversations.g.cs new file mode 100644 index 00000000..955532c0 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListContactConversations.g.cs @@ -0,0 +1,42 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// List a contact's conversations (inbound calls, outbound calls, and chats) merged into a single timeline, most recent first. Results are matched by the contact's phone number. Use the returned `pagination_key` to fetch the next page. + /// + /// + /// + /// Default Value: 50 + /// + /// + /// 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 ListContactConversationsAsync( + string contactId, + int? limit = default, + string? paginationKey = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List a contact's conversations (inbound calls, outbound calls, and chats) merged into a single timeline, most recent first. Results are matched by the contact's phone number. Use the returned `pagination_key` to fetch the next page. + /// + /// + /// + /// Default Value: 50 + /// + /// + /// 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> ListContactConversationsAsResponseAsync( + string contactId, + int? limit = 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.ListContacts.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListContacts.g.cs new file mode 100644 index 00000000..093a6c71 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.ListContacts.g.cs @@ -0,0 +1,68 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// List contacts, newest conversation first by default, with the total count of matches alongside the page. Page through results with `pagination_key`; `skip` is available for offset-style paging but is slower on large contact sets and can repeat or miss rows as contacts are updated. + /// + /// + /// 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 ListContactsAsync( + + global::RetellAI.ListContactsRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List contacts, newest conversation first by default, with the total count of matches alongside the page. Page through results with `pagination_key`; `skip` is available for offset-style paging but is slower on large contact sets and can repeat or miss rows as contacts are updated. + /// + /// + /// 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> ListContactsAsResponseAsync( + + global::RetellAI.ListContactsRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List contacts, newest conversation first by default, with the total count of matches alongside the page. Page through results with `pagination_key`; `skip` is available for offset-style paging but is slower on large contact sets and can repeat or miss rows as contacts are updated. + /// + /// + /// Maximum number of contacts to return.
+ /// Default Value: 50 + /// + /// + /// Number of records to skip for offset-based pagination.
+ /// Default Value: 0 + /// + /// + /// Sort contacts by `last_conversation_timestamp` in ascending or descending order. Contacts that have never been contacted sort as if their timestamp were 0.
+ /// Default Value: desc + /// + /// + /// Base64url-encoded pagination key from a previous response. + /// + /// + /// Filter criteria for contacts. All conditions are implicitly connected with AND. first_name and last_name are not filterable here; use search_query to match on those. + /// + /// + /// Case-insensitive substring match against phone number, first name, last name, external ID, and custom field values. This is the only way to match on a contact's name. + /// + /// 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 ListContactsAsync( + double? limit = default, + double? skip = default, + global::RetellAI.ListContactsRequestSortOrder? sortOrder = default, + string? paginationKey = default, + global::RetellAI.ContactFilter? filterCriteria = default, + string? searchQuery = 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.RunSyncJob.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.RunSyncJob.g.cs new file mode 100644 index 00000000..c2e516a8 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.RunSyncJob.g.cs @@ -0,0 +1,26 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// Start a contact sync with the linked CRM app immediately, instead of waiting for the scheduled sync. One sync runs per organization at a time: starting another while one is in flight is rejected. Poll get-sync-job-status for progress. + /// + /// 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 RunSyncJobAsync( + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Start a contact sync with the linked CRM app immediately, instead of waiting for the scheduled sync. One sync runs per organization at a time: starting another while one is in flight is rejected. Poll get-sync-job-status for progress. + /// + /// 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> RunSyncJobAsResponseAsync( + 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.TestAppAuth.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.TestAppAuth.g.cs new file mode 100644 index 00000000..e0892d9e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.TestAppAuth.g.cs @@ -0,0 +1,30 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// Probe the App's stored credentials by making a minimal authenticated call to the provider. Returns success=true on a successful round-trip, and records the outcome on the App's connection_status either way. + /// + /// + /// 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 TestAppAuthAsync( + string appId, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Probe the App's stored credentials by making a minimal authenticated call to the provider. Returns success=true on a successful round-trip, and records the outcome on the App's connection_status either way. + /// + /// + /// 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> TestAppAuthAsResponseAsync( + string appId, + 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.UpdateApp.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.UpdateApp.g.cs new file mode 100644 index 00000000..7751afbd --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.UpdateApp.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// Partially update an App. Omitted fields remain unchanged. Updating auth_config invalidates the cached provider token immediately. + /// + /// + /// + /// 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 UpdateAppAsync( + string appId, + + global::RetellAI.UpdateAppRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Partially update an App. Omitted fields remain unchanged. Updating auth_config invalidates the cached provider token immediately. + /// + /// + /// + /// 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> UpdateAppAsResponseAsync( + string appId, + + global::RetellAI.UpdateAppRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Partially update an App. Omitted fields remain unchanged. Updating auth_config invalidates the cached provider token immediately. + /// + /// + /// + /// + /// Per-tenant API base URL. + /// + /// + /// Sub-account id, for providers that scope requests by a sub-account id on a shared host. + /// + /// + /// + /// 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 UpdateAppAsync( + string appId, + string? name = default, + string? tenantUrl = default, + string? tenantId = default, + global::RetellAI.AuthConfigRequest? authConfig = default, + global::RetellAI.AppCRMConfig? crmConfig = 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.UpdateContact.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.UpdateContact.g.cs new file mode 100644 index 00000000..db289493 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.UpdateContact.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// Update an existing contact. + /// + /// + /// + /// 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 UpdateContactAsync( + string contactId, + + global::RetellAI.UpdateContactRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update an existing contact. + /// + /// + /// + /// 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> UpdateContactAsResponseAsync( + string contactId, + + global::RetellAI.UpdateContactRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update an existing contact. + /// + /// + /// + /// First name of the contact. + /// + /// + /// Last name of the contact. + /// + /// + /// + /// Values must match the types defined in CRM config custom fields. Set a value to null to clear it. + /// + /// 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 UpdateContactAsync( + string contactId, + string? firstName = default, + string? lastName = default, + bool? doNotCall = default, + object? customFields = 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.UpdateCrmConfig.g.cs b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.UpdateCrmConfig.g.cs new file mode 100644 index 00000000..c5687a5f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.UpdateCrmConfig.g.cs @@ -0,0 +1,57 @@ +#nullable enable + +namespace RetellAI +{ + public partial interface IRetellAiClient + { + /// + /// Update the organization's CRM configuration. Omitted fields stay as they are; a field that is sent replaces its stored value in full. + /// + /// + /// 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 UpdateCrmConfigAsync( + + global::RetellAI.UpdateCrmConfigRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update the organization's CRM configuration. Omitted fields stay as they are; a field that is sent replaces its stored value in full. + /// + /// + /// 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> UpdateCrmConfigAsResponseAsync( + + global::RetellAI.UpdateCrmConfigRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update the organization's CRM configuration. Omitted fields stay as they are; a field that is sent replaces its stored value in full. + /// + /// + /// ID of the CRM app to link. Pass null to unlink, which stops syncing. Changing it resets the sync cursor, so the next sync re-reads every contact from the new CRM. + /// + /// + /// Replaces the stored list. Names must be snake_case and cannot collide with a built-in contact field or start with `contact`/`external`. Removing a field that an analysis data mapping still targets is rejected — send crm_analysis_data_mappings in the same request to retarget or drop those mappings. + /// + /// + /// Replaces the stored list. + /// + /// + /// Preferred display order of contact fields, for clients that render contacts as a table. Not used by the API itself. + /// + /// 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 UpdateCrmConfigAsync( + string? appId = default, + global::System.Collections.Generic.IList? customFields = default, + global::System.Collections.Generic.IList? crmAnalysisDataMappings = default, + global::System.Collections.Generic.IList? contactColumnsOrder = 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.JsonConverters.AccessTokenAuthConfigRequestType.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AccessTokenAuthConfigRequestType.g.cs new file mode 100644 index 00000000..3940cbf0 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AccessTokenAuthConfigRequestType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class AccessTokenAuthConfigRequestTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.AccessTokenAuthConfigRequestType 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.AccessTokenAuthConfigRequestTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.AccessTokenAuthConfigRequestType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.AccessTokenAuthConfigRequestType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.AccessTokenAuthConfigRequestType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.AccessTokenAuthConfigRequestTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AccessTokenAuthConfigRequestTypeNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AccessTokenAuthConfigRequestTypeNullable.g.cs new file mode 100644 index 00000000..ada08c88 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AccessTokenAuthConfigRequestTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class AccessTokenAuthConfigRequestTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.AccessTokenAuthConfigRequestType? 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.AccessTokenAuthConfigRequestTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.AccessTokenAuthConfigRequestType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.AccessTokenAuthConfigRequestType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.AccessTokenAuthConfigRequestType? 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.AccessTokenAuthConfigRequestTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AccessTokenAuthConfigResponseType.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AccessTokenAuthConfigResponseType.g.cs new file mode 100644 index 00000000..df133432 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AccessTokenAuthConfigResponseType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class AccessTokenAuthConfigResponseTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.AccessTokenAuthConfigResponseType 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.AccessTokenAuthConfigResponseTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.AccessTokenAuthConfigResponseType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.AccessTokenAuthConfigResponseType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.AccessTokenAuthConfigResponseType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.AccessTokenAuthConfigResponseTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AccessTokenAuthConfigResponseTypeNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AccessTokenAuthConfigResponseTypeNullable.g.cs new file mode 100644 index 00000000..ed416b1a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AccessTokenAuthConfigResponseTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class AccessTokenAuthConfigResponseTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.AccessTokenAuthConfigResponseType? 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.AccessTokenAuthConfigResponseTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.AccessTokenAuthConfigResponseType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.AccessTokenAuthConfigResponseType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.AccessTokenAuthConfigResponseType? 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.AccessTokenAuthConfigResponseTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AgentAppUsageType.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AgentAppUsageType.g.cs new file mode 100644 index 00000000..4cc2411c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AgentAppUsageType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class AgentAppUsageTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.AgentAppUsageType 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.AgentAppUsageTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.AgentAppUsageType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.AgentAppUsageType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.AgentAppUsageType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.AgentAppUsageTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AgentAppUsageTypeNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AgentAppUsageTypeNullable.g.cs new file mode 100644 index 00000000..f8c7000c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AgentAppUsageTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class AgentAppUsageTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.AgentAppUsageType? 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.AgentAppUsageTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.AgentAppUsageType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.AgentAppUsageType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.AgentAppUsageType? 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.AgentAppUsageTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ApiKeyAuthConfigRequestType.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ApiKeyAuthConfigRequestType.g.cs new file mode 100644 index 00000000..180cd52c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ApiKeyAuthConfigRequestType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ApiKeyAuthConfigRequestTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ApiKeyAuthConfigRequestType 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.ApiKeyAuthConfigRequestTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ApiKeyAuthConfigRequestType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ApiKeyAuthConfigRequestType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ApiKeyAuthConfigRequestType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ApiKeyAuthConfigRequestTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ApiKeyAuthConfigRequestTypeNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ApiKeyAuthConfigRequestTypeNullable.g.cs new file mode 100644 index 00000000..6d00f4a1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ApiKeyAuthConfigRequestTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ApiKeyAuthConfigRequestTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ApiKeyAuthConfigRequestType? 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.ApiKeyAuthConfigRequestTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ApiKeyAuthConfigRequestType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ApiKeyAuthConfigRequestType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ApiKeyAuthConfigRequestType? 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.ApiKeyAuthConfigRequestTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ApiKeyAuthConfigResponseType.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ApiKeyAuthConfigResponseType.g.cs new file mode 100644 index 00000000..4fd1b5cf --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ApiKeyAuthConfigResponseType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ApiKeyAuthConfigResponseTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ApiKeyAuthConfigResponseType 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.ApiKeyAuthConfigResponseTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ApiKeyAuthConfigResponseType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ApiKeyAuthConfigResponseType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ApiKeyAuthConfigResponseType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ApiKeyAuthConfigResponseTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ApiKeyAuthConfigResponseTypeNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ApiKeyAuthConfigResponseTypeNullable.g.cs new file mode 100644 index 00000000..106248b3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ApiKeyAuthConfigResponseTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ApiKeyAuthConfigResponseTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ApiKeyAuthConfigResponseType? 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.ApiKeyAuthConfigResponseTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ApiKeyAuthConfigResponseType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ApiKeyAuthConfigResponseType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ApiKeyAuthConfigResponseType? 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.ApiKeyAuthConfigResponseTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AppAuthConfigResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AppAuthConfigResponse.g.cs new file mode 100644 index 00000000..f996f2c9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AppAuthConfigResponse.g.cs @@ -0,0 +1,275 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace RetellAI.JsonConverters +{ + /// + public class AppAuthConfigResponseJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.AppAuthConfigResponse 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("client_id")) __score0++; + if (__jsonProps.Contains("type")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("type")) __score1++; + var __score2 = 0; + if (__jsonProps.Contains("type")) __score2++; + var __score3 = 0; + if (__jsonProps.Contains("type")) __score3++; + if (__jsonProps.Contains("username")) __score3++; + var __score4 = 0; + if (__jsonProps.Contains("type")) __score4++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } + if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } + + global::RetellAI.OAuthConfigResponse? o = default; + global::RetellAI.ApiKeyAuthConfigResponse? apiKey = default; + global::RetellAI.AccessTokenAuthConfigResponse? accessToken = default; + global::RetellAI.BasicAuthConfigResponse? basic = default; + global::RetellAI.RefreshTokenAuthConfigResponse? refreshToken = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.OAuthConfigResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.OAuthConfigResponse).Name}"); + o = 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.ApiKeyAuthConfigResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ApiKeyAuthConfigResponse).Name}"); + apiKey = 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.AccessTokenAuthConfigResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AccessTokenAuthConfigResponse).Name}"); + accessToken = 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.BasicAuthConfigResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.BasicAuthConfigResponse).Name}"); + basic = 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.RefreshTokenAuthConfigResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RefreshTokenAuthConfigResponse).Name}"); + refreshToken = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (o == null && apiKey == null && accessToken == null && basic == null && refreshToken == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.OAuthConfigResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.OAuthConfigResponse).Name}"); + o = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (o == null && apiKey == null && accessToken == null && basic == null && refreshToken == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ApiKeyAuthConfigResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ApiKeyAuthConfigResponse).Name}"); + apiKey = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (o == null && apiKey == null && accessToken == null && basic == null && refreshToken == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AccessTokenAuthConfigResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AccessTokenAuthConfigResponse).Name}"); + accessToken = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (o == null && apiKey == null && accessToken == null && basic == null && refreshToken == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.BasicAuthConfigResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.BasicAuthConfigResponse).Name}"); + basic = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (o == null && apiKey == null && accessToken == null && basic == null && refreshToken == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.RefreshTokenAuthConfigResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RefreshTokenAuthConfigResponse).Name}"); + refreshToken = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::RetellAI.AppAuthConfigResponse( + o, + + apiKey, + + accessToken, + + basic, + + refreshToken + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.AppAuthConfigResponse 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.IsO) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.OAuthConfigResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.OAuthConfigResponse).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.O!, typeInfo); + } + else if (value.IsApiKey) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ApiKeyAuthConfigResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ApiKeyAuthConfigResponse).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApiKey!, typeInfo); + } + else if (value.IsAccessToken) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AccessTokenAuthConfigResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AccessTokenAuthConfigResponse).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AccessToken!, typeInfo); + } + else if (value.IsBasic) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.BasicAuthConfigResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.BasicAuthConfigResponse).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Basic!, typeInfo); + } + else if (value.IsRefreshToken) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.RefreshTokenAuthConfigResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RefreshTokenAuthConfigResponse).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RefreshToken!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AppConnectionStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AppConnectionStatus.g.cs new file mode 100644 index 00000000..1871fe12 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AppConnectionStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class AppConnectionStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.AppConnectionStatus 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.AppConnectionStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.AppConnectionStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.AppConnectionStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.AppConnectionStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.AppConnectionStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AppConnectionStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AppConnectionStatusNullable.g.cs new file mode 100644 index 00000000..e216f1b9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AppConnectionStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class AppConnectionStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.AppConnectionStatus? 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.AppConnectionStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.AppConnectionStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.AppConnectionStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.AppConnectionStatus? 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.AppConnectionStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AppType.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AppType.g.cs new file mode 100644 index 00000000..90dfb576 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AppType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class AppTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.AppType 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.AppTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.AppType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.AppType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.AppType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.AppTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AppTypeNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AppTypeNullable.g.cs new file mode 100644 index 00000000..24cbb726 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AppTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class AppTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.AppType? 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.AppTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.AppType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.AppType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.AppType? 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.AppTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AppUsageResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AppUsageResponse.g.cs new file mode 100644 index 00000000..ebe79ae4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AppUsageResponse.g.cs @@ -0,0 +1,148 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace RetellAI.JsonConverters +{ + /// + public class AppUsageResponseJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.AppUsageResponse 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("agent_id")) __score0++; + if (__jsonProps.Contains("agent_name")) __score0++; + if (__jsonProps.Contains("agent_versions")) __score0++; + if (__jsonProps.Contains("configured_timestamp")) __score0++; + if (__jsonProps.Contains("type")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("configured_timestamp")) __score1++; + if (__jsonProps.Contains("knowledge_base_id")) __score1++; + if (__jsonProps.Contains("knowledge_base_name")) __score1++; + if (__jsonProps.Contains("type")) __score1++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::RetellAI.AgentAppUsage? agent = default; + global::RetellAI.KnowledgeBaseAppUsage? knowledgeBase = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentAppUsage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentAppUsage).Name}"); + agent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 1) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.KnowledgeBaseAppUsage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.KnowledgeBaseAppUsage).Name}"); + knowledgeBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (agent == null && knowledgeBase == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentAppUsage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentAppUsage).Name}"); + agent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (agent == null && knowledgeBase == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.KnowledgeBaseAppUsage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.KnowledgeBaseAppUsage).Name}"); + knowledgeBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::RetellAI.AppUsageResponse( + agent, + + knowledgeBase + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.AppUsageResponse 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.IsAgent) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentAppUsage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentAppUsage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Agent!, typeInfo); + } + else if (value.IsKnowledgeBase) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.KnowledgeBaseAppUsage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.KnowledgeBaseAppUsage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.KnowledgeBase!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AuthConfigRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AuthConfigRequest.g.cs new file mode 100644 index 00000000..a1c9707d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AuthConfigRequest.g.cs @@ -0,0 +1,280 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace RetellAI.JsonConverters +{ + /// + public class AuthConfigRequestJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.AuthConfigRequest 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("client_id")) __score0++; + if (__jsonProps.Contains("client_secret")) __score0++; + if (__jsonProps.Contains("type")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("api_key")) __score1++; + if (__jsonProps.Contains("type")) __score1++; + var __score2 = 0; + if (__jsonProps.Contains("access_token")) __score2++; + if (__jsonProps.Contains("type")) __score2++; + var __score3 = 0; + if (__jsonProps.Contains("password")) __score3++; + if (__jsonProps.Contains("type")) __score3++; + if (__jsonProps.Contains("username")) __score3++; + var __score4 = 0; + if (__jsonProps.Contains("refresh_token")) __score4++; + if (__jsonProps.Contains("type")) __score4++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } + if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } + + global::RetellAI.OAuthConfigRequest? o = default; + global::RetellAI.ApiKeyAuthConfigRequest? apiKey = default; + global::RetellAI.AccessTokenAuthConfigRequest? accessToken = default; + global::RetellAI.BasicAuthConfigRequest? basic = default; + global::RetellAI.RefreshTokenAuthConfigRequest? refreshToken = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.OAuthConfigRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.OAuthConfigRequest).Name}"); + o = 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.ApiKeyAuthConfigRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ApiKeyAuthConfigRequest).Name}"); + apiKey = 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.AccessTokenAuthConfigRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AccessTokenAuthConfigRequest).Name}"); + accessToken = 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.BasicAuthConfigRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.BasicAuthConfigRequest).Name}"); + basic = 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.RefreshTokenAuthConfigRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RefreshTokenAuthConfigRequest).Name}"); + refreshToken = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (o == null && apiKey == null && accessToken == null && basic == null && refreshToken == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.OAuthConfigRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.OAuthConfigRequest).Name}"); + o = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (o == null && apiKey == null && accessToken == null && basic == null && refreshToken == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ApiKeyAuthConfigRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ApiKeyAuthConfigRequest).Name}"); + apiKey = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (o == null && apiKey == null && accessToken == null && basic == null && refreshToken == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AccessTokenAuthConfigRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AccessTokenAuthConfigRequest).Name}"); + accessToken = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (o == null && apiKey == null && accessToken == null && basic == null && refreshToken == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.BasicAuthConfigRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.BasicAuthConfigRequest).Name}"); + basic = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (o == null && apiKey == null && accessToken == null && basic == null && refreshToken == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.RefreshTokenAuthConfigRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RefreshTokenAuthConfigRequest).Name}"); + refreshToken = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::RetellAI.AuthConfigRequest( + o, + + apiKey, + + accessToken, + + basic, + + refreshToken + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.AuthConfigRequest 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.IsO) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.OAuthConfigRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.OAuthConfigRequest).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.O!, typeInfo); + } + else if (value.IsApiKey) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ApiKeyAuthConfigRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ApiKeyAuthConfigRequest).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApiKey!, typeInfo); + } + else if (value.IsAccessToken) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AccessTokenAuthConfigRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AccessTokenAuthConfigRequest).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AccessToken!, typeInfo); + } + else if (value.IsBasic) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.BasicAuthConfigRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.BasicAuthConfigRequest).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Basic!, typeInfo); + } + else if (value.IsRefreshToken) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.RefreshTokenAuthConfigRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RefreshTokenAuthConfigRequest).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RefreshToken!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus.g.cs new file mode 100644 index 00000000..c8b2bf4c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class BackfillContactAnalysisDataResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.BackfillContactAnalysisDataResponseStatus 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.BackfillContactAnalysisDataResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.BackfillContactAnalysisDataResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.BackfillContactAnalysisDataResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.BackfillContactAnalysisDataResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.BackfillContactAnalysisDataResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus2.g.cs new file mode 100644 index 00000000..14a41377 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class BackfillContactAnalysisDataResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.BackfillContactAnalysisDataResponseStatus2 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.BackfillContactAnalysisDataResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.BackfillContactAnalysisDataResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.BackfillContactAnalysisDataResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.BackfillContactAnalysisDataResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.BackfillContactAnalysisDataResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..2d4604dd --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class BackfillContactAnalysisDataResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.BackfillContactAnalysisDataResponseStatus2? 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.BackfillContactAnalysisDataResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.BackfillContactAnalysisDataResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.BackfillContactAnalysisDataResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.BackfillContactAnalysisDataResponseStatus2? 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.BackfillContactAnalysisDataResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus3.g.cs new file mode 100644 index 00000000..731c73eb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class BackfillContactAnalysisDataResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.BackfillContactAnalysisDataResponseStatus3 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.BackfillContactAnalysisDataResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.BackfillContactAnalysisDataResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.BackfillContactAnalysisDataResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.BackfillContactAnalysisDataResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.BackfillContactAnalysisDataResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..09b704a1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class BackfillContactAnalysisDataResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.BackfillContactAnalysisDataResponseStatus3? 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.BackfillContactAnalysisDataResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.BackfillContactAnalysisDataResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.BackfillContactAnalysisDataResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.BackfillContactAnalysisDataResponseStatus3? 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.BackfillContactAnalysisDataResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus4.g.cs new file mode 100644 index 00000000..843bbac1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus4.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class BackfillContactAnalysisDataResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.BackfillContactAnalysisDataResponseStatus4 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.BackfillContactAnalysisDataResponseStatus4Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.BackfillContactAnalysisDataResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.BackfillContactAnalysisDataResponseStatus4); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.BackfillContactAnalysisDataResponseStatus4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.BackfillContactAnalysisDataResponseStatus4Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus4Nullable.g.cs new file mode 100644 index 00000000..53a631f2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus4Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class BackfillContactAnalysisDataResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.BackfillContactAnalysisDataResponseStatus4? 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.BackfillContactAnalysisDataResponseStatus4Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.BackfillContactAnalysisDataResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.BackfillContactAnalysisDataResponseStatus4?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.BackfillContactAnalysisDataResponseStatus4? 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.BackfillContactAnalysisDataResponseStatus4Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatusNullable.g.cs new file mode 100644 index 00000000..f0ef3b18 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class BackfillContactAnalysisDataResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.BackfillContactAnalysisDataResponseStatus? 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.BackfillContactAnalysisDataResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.BackfillContactAnalysisDataResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.BackfillContactAnalysisDataResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.BackfillContactAnalysisDataResponseStatus? 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.BackfillContactAnalysisDataResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BasicAuthConfigRequestType.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BasicAuthConfigRequestType.g.cs new file mode 100644 index 00000000..a5b1ee67 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BasicAuthConfigRequestType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class BasicAuthConfigRequestTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.BasicAuthConfigRequestType 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.BasicAuthConfigRequestTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.BasicAuthConfigRequestType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.BasicAuthConfigRequestType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.BasicAuthConfigRequestType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.BasicAuthConfigRequestTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BasicAuthConfigRequestTypeNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BasicAuthConfigRequestTypeNullable.g.cs new file mode 100644 index 00000000..480e7b3e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BasicAuthConfigRequestTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class BasicAuthConfigRequestTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.BasicAuthConfigRequestType? 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.BasicAuthConfigRequestTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.BasicAuthConfigRequestType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.BasicAuthConfigRequestType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.BasicAuthConfigRequestType? 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.BasicAuthConfigRequestTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BasicAuthConfigResponseType.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BasicAuthConfigResponseType.g.cs new file mode 100644 index 00000000..3fd37f45 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BasicAuthConfigResponseType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class BasicAuthConfigResponseTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.BasicAuthConfigResponseType 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.BasicAuthConfigResponseTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.BasicAuthConfigResponseType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.BasicAuthConfigResponseType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.BasicAuthConfigResponseType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.BasicAuthConfigResponseTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BasicAuthConfigResponseTypeNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BasicAuthConfigResponseTypeNullable.g.cs new file mode 100644 index 00000000..ca9c7a71 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BasicAuthConfigResponseTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class BasicAuthConfigResponseTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.BasicAuthConfigResponseType? 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.BasicAuthConfigResponseTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.BasicAuthConfigResponseType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.BasicAuthConfigResponseType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.BasicAuthConfigResponseType? 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.BasicAuthConfigResponseTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CRMAnalysisDataMappingUpdateMode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CRMAnalysisDataMappingUpdateMode.g.cs new file mode 100644 index 00000000..833bdbc3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CRMAnalysisDataMappingUpdateMode.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CRMAnalysisDataMappingUpdateModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CRMAnalysisDataMappingUpdateMode 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.CRMAnalysisDataMappingUpdateModeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CRMAnalysisDataMappingUpdateMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CRMAnalysisDataMappingUpdateMode); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CRMAnalysisDataMappingUpdateMode value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.CRMAnalysisDataMappingUpdateModeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CRMAnalysisDataMappingUpdateModeNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CRMAnalysisDataMappingUpdateModeNullable.g.cs new file mode 100644 index 00000000..0e853976 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CRMAnalysisDataMappingUpdateModeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CRMAnalysisDataMappingUpdateModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CRMAnalysisDataMappingUpdateMode? 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.CRMAnalysisDataMappingUpdateModeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CRMAnalysisDataMappingUpdateMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CRMAnalysisDataMappingUpdateMode?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CRMAnalysisDataMappingUpdateMode? 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.CRMAnalysisDataMappingUpdateModeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CRMCustomFieldSchemaType.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CRMCustomFieldSchemaType.g.cs new file mode 100644 index 00000000..afe2abcc --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CRMCustomFieldSchemaType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CRMCustomFieldSchemaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CRMCustomFieldSchemaType 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.CRMCustomFieldSchemaTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CRMCustomFieldSchemaType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CRMCustomFieldSchemaType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CRMCustomFieldSchemaType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.CRMCustomFieldSchemaTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CRMCustomFieldSchemaTypeNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CRMCustomFieldSchemaTypeNullable.g.cs new file mode 100644 index 00000000..ea2a5cba --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CRMCustomFieldSchemaTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CRMCustomFieldSchemaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CRMCustomFieldSchemaType? 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.CRMCustomFieldSchemaTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CRMCustomFieldSchemaType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CRMCustomFieldSchemaType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CRMCustomFieldSchemaType? 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.CRMCustomFieldSchemaTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus.g.cs new file mode 100644 index 00000000..699d55e3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CreateAppResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CreateAppResponseStatus 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.CreateAppResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CreateAppResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CreateAppResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CreateAppResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.CreateAppResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus2.g.cs new file mode 100644 index 00000000..134567f1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CreateAppResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CreateAppResponseStatus2 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.CreateAppResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CreateAppResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CreateAppResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CreateAppResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.CreateAppResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..fda21cd9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CreateAppResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CreateAppResponseStatus2? 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.CreateAppResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CreateAppResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CreateAppResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CreateAppResponseStatus2? 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.CreateAppResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus3.g.cs new file mode 100644 index 00000000..8cf4bca3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CreateAppResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CreateAppResponseStatus3 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.CreateAppResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CreateAppResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CreateAppResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CreateAppResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.CreateAppResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..ab92e2ef --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CreateAppResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CreateAppResponseStatus3? 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.CreateAppResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CreateAppResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CreateAppResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CreateAppResponseStatus3? 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.CreateAppResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus4.g.cs new file mode 100644 index 00000000..f54c70e8 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus4.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CreateAppResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CreateAppResponseStatus4 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.CreateAppResponseStatus4Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CreateAppResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CreateAppResponseStatus4); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CreateAppResponseStatus4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.CreateAppResponseStatus4Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus4Nullable.g.cs new file mode 100644 index 00000000..5a7ae457 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatus4Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CreateAppResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CreateAppResponseStatus4? 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.CreateAppResponseStatus4Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CreateAppResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CreateAppResponseStatus4?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CreateAppResponseStatus4? 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.CreateAppResponseStatus4Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatusNullable.g.cs new file mode 100644 index 00000000..f72965c2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateAppResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CreateAppResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CreateAppResponseStatus? 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.CreateAppResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CreateAppResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CreateAppResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CreateAppResponseStatus? 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.CreateAppResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus.g.cs new file mode 100644 index 00000000..c6771c65 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CreateContactResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CreateContactResponseStatus 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.CreateContactResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CreateContactResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CreateContactResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CreateContactResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.CreateContactResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus2.g.cs new file mode 100644 index 00000000..32acf024 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CreateContactResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CreateContactResponseStatus2 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.CreateContactResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CreateContactResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CreateContactResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CreateContactResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.CreateContactResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..040437ef --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CreateContactResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CreateContactResponseStatus2? 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.CreateContactResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CreateContactResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CreateContactResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CreateContactResponseStatus2? 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.CreateContactResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus3.g.cs new file mode 100644 index 00000000..2da416f9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CreateContactResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CreateContactResponseStatus3 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.CreateContactResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CreateContactResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CreateContactResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CreateContactResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.CreateContactResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..c40c24fa --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CreateContactResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CreateContactResponseStatus3? 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.CreateContactResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CreateContactResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CreateContactResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CreateContactResponseStatus3? 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.CreateContactResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus4.g.cs new file mode 100644 index 00000000..ccd3078c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus4.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CreateContactResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CreateContactResponseStatus4 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.CreateContactResponseStatus4Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CreateContactResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CreateContactResponseStatus4); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CreateContactResponseStatus4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.CreateContactResponseStatus4Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus4Nullable.g.cs new file mode 100644 index 00000000..bacf33f0 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatus4Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CreateContactResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CreateContactResponseStatus4? 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.CreateContactResponseStatus4Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CreateContactResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CreateContactResponseStatus4?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CreateContactResponseStatus4? 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.CreateContactResponseStatus4Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatusNullable.g.cs new file mode 100644 index 00000000..10d62222 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateContactResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class CreateContactResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.CreateContactResponseStatus? 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.CreateContactResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.CreateContactResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.CreateContactResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.CreateContactResponseStatus? 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.CreateContactResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus.g.cs new file mode 100644 index 00000000..adbe825f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteAppResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteAppResponseStatus 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.DeleteAppResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteAppResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteAppResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteAppResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.DeleteAppResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus2.g.cs new file mode 100644 index 00000000..4139d306 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteAppResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteAppResponseStatus2 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.DeleteAppResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteAppResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteAppResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteAppResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.DeleteAppResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..86fc2c5b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteAppResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteAppResponseStatus2? 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.DeleteAppResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteAppResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteAppResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteAppResponseStatus2? 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.DeleteAppResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus3.g.cs new file mode 100644 index 00000000..e518a45a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteAppResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteAppResponseStatus3 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.DeleteAppResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteAppResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteAppResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteAppResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.DeleteAppResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..74fe9680 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteAppResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteAppResponseStatus3? 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.DeleteAppResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteAppResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteAppResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteAppResponseStatus3? 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.DeleteAppResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus4.g.cs new file mode 100644 index 00000000..a50168a0 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus4.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteAppResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteAppResponseStatus4 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.DeleteAppResponseStatus4Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteAppResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteAppResponseStatus4); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteAppResponseStatus4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.DeleteAppResponseStatus4Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus4Nullable.g.cs new file mode 100644 index 00000000..1925e40b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus4Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteAppResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteAppResponseStatus4? 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.DeleteAppResponseStatus4Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteAppResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteAppResponseStatus4?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteAppResponseStatus4? 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.DeleteAppResponseStatus4Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus5.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus5.g.cs new file mode 100644 index 00000000..2e089321 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus5.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteAppResponseStatus5JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteAppResponseStatus5 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.DeleteAppResponseStatus5Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteAppResponseStatus5)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteAppResponseStatus5); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteAppResponseStatus5 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.DeleteAppResponseStatus5Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus5Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus5Nullable.g.cs new file mode 100644 index 00000000..68c307d1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatus5Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteAppResponseStatus5NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteAppResponseStatus5? 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.DeleteAppResponseStatus5Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteAppResponseStatus5)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteAppResponseStatus5?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteAppResponseStatus5? 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.DeleteAppResponseStatus5Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatusNullable.g.cs new file mode 100644 index 00000000..a819ed46 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteAppResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteAppResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteAppResponseStatus? 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.DeleteAppResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteAppResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteAppResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteAppResponseStatus? 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.DeleteAppResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus.g.cs new file mode 100644 index 00000000..1eb4727a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteContactResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteContactResponseStatus 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.DeleteContactResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteContactResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteContactResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteContactResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.DeleteContactResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus2.g.cs new file mode 100644 index 00000000..25ac9719 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteContactResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteContactResponseStatus2 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.DeleteContactResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteContactResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteContactResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteContactResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.DeleteContactResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..013f2625 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteContactResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteContactResponseStatus2? 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.DeleteContactResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteContactResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteContactResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteContactResponseStatus2? 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.DeleteContactResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus3.g.cs new file mode 100644 index 00000000..494b9259 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteContactResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteContactResponseStatus3 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.DeleteContactResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteContactResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteContactResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteContactResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.DeleteContactResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..77d2194a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteContactResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteContactResponseStatus3? 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.DeleteContactResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteContactResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteContactResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteContactResponseStatus3? 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.DeleteContactResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus4.g.cs new file mode 100644 index 00000000..01fa9b8c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus4.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteContactResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteContactResponseStatus4 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.DeleteContactResponseStatus4Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteContactResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteContactResponseStatus4); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteContactResponseStatus4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.DeleteContactResponseStatus4Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus4Nullable.g.cs new file mode 100644 index 00000000..72a7ca34 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus4Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteContactResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteContactResponseStatus4? 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.DeleteContactResponseStatus4Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteContactResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteContactResponseStatus4?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteContactResponseStatus4? 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.DeleteContactResponseStatus4Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus5.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus5.g.cs new file mode 100644 index 00000000..f0130740 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus5.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteContactResponseStatus5JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteContactResponseStatus5 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.DeleteContactResponseStatus5Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteContactResponseStatus5)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteContactResponseStatus5); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteContactResponseStatus5 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.DeleteContactResponseStatus5Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus5Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus5Nullable.g.cs new file mode 100644 index 00000000..65d62182 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatus5Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteContactResponseStatus5NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteContactResponseStatus5? 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.DeleteContactResponseStatus5Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteContactResponseStatus5)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteContactResponseStatus5?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteContactResponseStatus5? 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.DeleteContactResponseStatus5Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatusNullable.g.cs new file mode 100644 index 00000000..8ade0242 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.DeleteContactResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class DeleteContactResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.DeleteContactResponseStatus? 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.DeleteContactResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.DeleteContactResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.DeleteContactResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.DeleteContactResponseStatus? 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.DeleteContactResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus.g.cs new file mode 100644 index 00000000..f154fa2e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetAppResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetAppResponseStatus 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.GetAppResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetAppResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetAppResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetAppResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetAppResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus2.g.cs new file mode 100644 index 00000000..25607843 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetAppResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetAppResponseStatus2 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.GetAppResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetAppResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetAppResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetAppResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetAppResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..2ed31f01 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetAppResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetAppResponseStatus2? 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.GetAppResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetAppResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetAppResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetAppResponseStatus2? 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.GetAppResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus3.g.cs new file mode 100644 index 00000000..01ddc212 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetAppResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetAppResponseStatus3 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.GetAppResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetAppResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetAppResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetAppResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetAppResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..8d4b38f5 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetAppResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetAppResponseStatus3? 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.GetAppResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetAppResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetAppResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetAppResponseStatus3? 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.GetAppResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus4.g.cs new file mode 100644 index 00000000..5bef4b66 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus4.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetAppResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetAppResponseStatus4 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.GetAppResponseStatus4Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetAppResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetAppResponseStatus4); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetAppResponseStatus4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetAppResponseStatus4Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus4Nullable.g.cs new file mode 100644 index 00000000..7b48f32e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatus4Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetAppResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetAppResponseStatus4? 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.GetAppResponseStatus4Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetAppResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetAppResponseStatus4?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetAppResponseStatus4? 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.GetAppResponseStatus4Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatusNullable.g.cs new file mode 100644 index 00000000..fcbd2d2c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetAppResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetAppResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetAppResponseStatus? 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.GetAppResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetAppResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetAppResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetAppResponseStatus? 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.GetAppResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus.g.cs new file mode 100644 index 00000000..f1832ea3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetBackfillContactJobStatusResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetBackfillContactJobStatusResponseStatus 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.GetBackfillContactJobStatusResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetBackfillContactJobStatusResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetBackfillContactJobStatusResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetBackfillContactJobStatusResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetBackfillContactJobStatusResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus2.g.cs new file mode 100644 index 00000000..b6f7691a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetBackfillContactJobStatusResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetBackfillContactJobStatusResponseStatus2 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.GetBackfillContactJobStatusResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetBackfillContactJobStatusResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetBackfillContactJobStatusResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetBackfillContactJobStatusResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetBackfillContactJobStatusResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..7c1fa08c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetBackfillContactJobStatusResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetBackfillContactJobStatusResponseStatus2? 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.GetBackfillContactJobStatusResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetBackfillContactJobStatusResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetBackfillContactJobStatusResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetBackfillContactJobStatusResponseStatus2? 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.GetBackfillContactJobStatusResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus3.g.cs new file mode 100644 index 00000000..a4a75cfc --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetBackfillContactJobStatusResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetBackfillContactJobStatusResponseStatus3 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.GetBackfillContactJobStatusResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetBackfillContactJobStatusResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetBackfillContactJobStatusResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetBackfillContactJobStatusResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetBackfillContactJobStatusResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..29ed8cfd --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetBackfillContactJobStatusResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetBackfillContactJobStatusResponseStatus3? 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.GetBackfillContactJobStatusResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetBackfillContactJobStatusResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetBackfillContactJobStatusResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetBackfillContactJobStatusResponseStatus3? 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.GetBackfillContactJobStatusResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatusNullable.g.cs new file mode 100644 index 00000000..486f301d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetBackfillContactJobStatusResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetBackfillContactJobStatusResponseStatus? 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.GetBackfillContactJobStatusResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetBackfillContactJobStatusResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetBackfillContactJobStatusResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetBackfillContactJobStatusResponseStatus? 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.GetBackfillContactJobStatusResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus.g.cs new file mode 100644 index 00000000..2215e768 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetContactByPhoneResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetContactByPhoneResponseStatus 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.GetContactByPhoneResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetContactByPhoneResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetContactByPhoneResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetContactByPhoneResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetContactByPhoneResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus2.g.cs new file mode 100644 index 00000000..a5f972c1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetContactByPhoneResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetContactByPhoneResponseStatus2 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.GetContactByPhoneResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetContactByPhoneResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetContactByPhoneResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetContactByPhoneResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetContactByPhoneResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..3d227ec4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetContactByPhoneResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetContactByPhoneResponseStatus2? 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.GetContactByPhoneResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetContactByPhoneResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetContactByPhoneResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetContactByPhoneResponseStatus2? 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.GetContactByPhoneResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus3.g.cs new file mode 100644 index 00000000..79bedf33 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetContactByPhoneResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetContactByPhoneResponseStatus3 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.GetContactByPhoneResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetContactByPhoneResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetContactByPhoneResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetContactByPhoneResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetContactByPhoneResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..64d1d714 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetContactByPhoneResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetContactByPhoneResponseStatus3? 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.GetContactByPhoneResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetContactByPhoneResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetContactByPhoneResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetContactByPhoneResponseStatus3? 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.GetContactByPhoneResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus4.g.cs new file mode 100644 index 00000000..485e58fa --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus4.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetContactByPhoneResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetContactByPhoneResponseStatus4 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.GetContactByPhoneResponseStatus4Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetContactByPhoneResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetContactByPhoneResponseStatus4); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetContactByPhoneResponseStatus4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetContactByPhoneResponseStatus4Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus4Nullable.g.cs new file mode 100644 index 00000000..b91a313e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus4Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetContactByPhoneResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetContactByPhoneResponseStatus4? 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.GetContactByPhoneResponseStatus4Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetContactByPhoneResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetContactByPhoneResponseStatus4?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetContactByPhoneResponseStatus4? 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.GetContactByPhoneResponseStatus4Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus5.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus5.g.cs new file mode 100644 index 00000000..e3177a19 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus5.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetContactByPhoneResponseStatus5JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetContactByPhoneResponseStatus5 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.GetContactByPhoneResponseStatus5Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetContactByPhoneResponseStatus5)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetContactByPhoneResponseStatus5); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetContactByPhoneResponseStatus5 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetContactByPhoneResponseStatus5Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus5Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus5Nullable.g.cs new file mode 100644 index 00000000..21b52dd4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatus5Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetContactByPhoneResponseStatus5NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetContactByPhoneResponseStatus5? 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.GetContactByPhoneResponseStatus5Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetContactByPhoneResponseStatus5)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetContactByPhoneResponseStatus5?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetContactByPhoneResponseStatus5? 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.GetContactByPhoneResponseStatus5Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatusNullable.g.cs new file mode 100644 index 00000000..479ba79f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactByPhoneResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetContactByPhoneResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetContactByPhoneResponseStatus? 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.GetContactByPhoneResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetContactByPhoneResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetContactByPhoneResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetContactByPhoneResponseStatus? 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.GetContactByPhoneResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus.g.cs new file mode 100644 index 00000000..bf0d3cf6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetContactResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetContactResponseStatus 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.GetContactResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetContactResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetContactResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetContactResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetContactResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus2.g.cs new file mode 100644 index 00000000..0eab9a23 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetContactResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetContactResponseStatus2 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.GetContactResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetContactResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetContactResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetContactResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetContactResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..ff8aac47 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetContactResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetContactResponseStatus2? 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.GetContactResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetContactResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetContactResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetContactResponseStatus2? 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.GetContactResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus3.g.cs new file mode 100644 index 00000000..d75a3bdf --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetContactResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetContactResponseStatus3 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.GetContactResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetContactResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetContactResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetContactResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetContactResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..ca207895 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetContactResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetContactResponseStatus3? 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.GetContactResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetContactResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetContactResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetContactResponseStatus3? 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.GetContactResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus4.g.cs new file mode 100644 index 00000000..c728a35e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus4.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetContactResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetContactResponseStatus4 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.GetContactResponseStatus4Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetContactResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetContactResponseStatus4); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetContactResponseStatus4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetContactResponseStatus4Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus4Nullable.g.cs new file mode 100644 index 00000000..5d4b09cf --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatus4Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetContactResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetContactResponseStatus4? 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.GetContactResponseStatus4Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetContactResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetContactResponseStatus4?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetContactResponseStatus4? 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.GetContactResponseStatus4Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatusNullable.g.cs new file mode 100644 index 00000000..4a00da4e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetContactResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetContactResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetContactResponseStatus? 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.GetContactResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetContactResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetContactResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetContactResponseStatus? 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.GetContactResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmConfigResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmConfigResponseStatus.g.cs new file mode 100644 index 00000000..edcdc9d1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmConfigResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetCrmConfigResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetCrmConfigResponseStatus 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.GetCrmConfigResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetCrmConfigResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetCrmConfigResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetCrmConfigResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetCrmConfigResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmConfigResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmConfigResponseStatus2.g.cs new file mode 100644 index 00000000..07f58e3d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmConfigResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetCrmConfigResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetCrmConfigResponseStatus2 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.GetCrmConfigResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetCrmConfigResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetCrmConfigResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetCrmConfigResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetCrmConfigResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmConfigResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmConfigResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..43c49789 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmConfigResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetCrmConfigResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetCrmConfigResponseStatus2? 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.GetCrmConfigResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetCrmConfigResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetCrmConfigResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetCrmConfigResponseStatus2? 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.GetCrmConfigResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmConfigResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmConfigResponseStatus3.g.cs new file mode 100644 index 00000000..a4de5cb5 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmConfigResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetCrmConfigResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetCrmConfigResponseStatus3 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.GetCrmConfigResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetCrmConfigResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetCrmConfigResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetCrmConfigResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetCrmConfigResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmConfigResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmConfigResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..4e575986 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmConfigResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetCrmConfigResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetCrmConfigResponseStatus3? 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.GetCrmConfigResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetCrmConfigResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetCrmConfigResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetCrmConfigResponseStatus3? 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.GetCrmConfigResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmConfigResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmConfigResponseStatusNullable.g.cs new file mode 100644 index 00000000..fc3966b3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmConfigResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetCrmConfigResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetCrmConfigResponseStatus? 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.GetCrmConfigResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetCrmConfigResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetCrmConfigResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetCrmConfigResponseStatus? 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.GetCrmConfigResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus.g.cs new file mode 100644 index 00000000..891c657e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetCrmSchemaResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetCrmSchemaResponseStatus 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.GetCrmSchemaResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetCrmSchemaResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetCrmSchemaResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetCrmSchemaResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetCrmSchemaResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus2.g.cs new file mode 100644 index 00000000..07fffee6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetCrmSchemaResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetCrmSchemaResponseStatus2 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.GetCrmSchemaResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetCrmSchemaResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetCrmSchemaResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetCrmSchemaResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetCrmSchemaResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..80bd2ef7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetCrmSchemaResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetCrmSchemaResponseStatus2? 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.GetCrmSchemaResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetCrmSchemaResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetCrmSchemaResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetCrmSchemaResponseStatus2? 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.GetCrmSchemaResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus3.g.cs new file mode 100644 index 00000000..2d5a851e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetCrmSchemaResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetCrmSchemaResponseStatus3 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.GetCrmSchemaResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetCrmSchemaResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetCrmSchemaResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetCrmSchemaResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetCrmSchemaResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..552c911b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetCrmSchemaResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetCrmSchemaResponseStatus3? 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.GetCrmSchemaResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetCrmSchemaResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetCrmSchemaResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetCrmSchemaResponseStatus3? 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.GetCrmSchemaResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus4.g.cs new file mode 100644 index 00000000..b3a1f26c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus4.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetCrmSchemaResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetCrmSchemaResponseStatus4 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.GetCrmSchemaResponseStatus4Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetCrmSchemaResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetCrmSchemaResponseStatus4); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetCrmSchemaResponseStatus4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetCrmSchemaResponseStatus4Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus4Nullable.g.cs new file mode 100644 index 00000000..d9826340 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus4Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetCrmSchemaResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetCrmSchemaResponseStatus4? 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.GetCrmSchemaResponseStatus4Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetCrmSchemaResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetCrmSchemaResponseStatus4?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetCrmSchemaResponseStatus4? 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.GetCrmSchemaResponseStatus4Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus5.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus5.g.cs new file mode 100644 index 00000000..d0b6786f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus5.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetCrmSchemaResponseStatus5JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetCrmSchemaResponseStatus5 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.GetCrmSchemaResponseStatus5Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetCrmSchemaResponseStatus5)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetCrmSchemaResponseStatus5); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetCrmSchemaResponseStatus5 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetCrmSchemaResponseStatus5Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus5Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus5Nullable.g.cs new file mode 100644 index 00000000..f2afb7c7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus5Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetCrmSchemaResponseStatus5NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetCrmSchemaResponseStatus5? 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.GetCrmSchemaResponseStatus5Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetCrmSchemaResponseStatus5)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetCrmSchemaResponseStatus5?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetCrmSchemaResponseStatus5? 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.GetCrmSchemaResponseStatus5Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus6.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus6.g.cs new file mode 100644 index 00000000..f1c970dd --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus6.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetCrmSchemaResponseStatus6JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetCrmSchemaResponseStatus6 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.GetCrmSchemaResponseStatus6Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetCrmSchemaResponseStatus6)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetCrmSchemaResponseStatus6); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetCrmSchemaResponseStatus6 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetCrmSchemaResponseStatus6Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus6Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus6Nullable.g.cs new file mode 100644 index 00000000..23010cfe --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatus6Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetCrmSchemaResponseStatus6NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetCrmSchemaResponseStatus6? 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.GetCrmSchemaResponseStatus6Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetCrmSchemaResponseStatus6)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetCrmSchemaResponseStatus6?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetCrmSchemaResponseStatus6? 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.GetCrmSchemaResponseStatus6Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatusNullable.g.cs new file mode 100644 index 00000000..3c85ce8d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetCrmSchemaResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetCrmSchemaResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetCrmSchemaResponseStatus? 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.GetCrmSchemaResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetCrmSchemaResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetCrmSchemaResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetCrmSchemaResponseStatus? 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.GetCrmSchemaResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetSyncJobStatusResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetSyncJobStatusResponseStatus.g.cs new file mode 100644 index 00000000..f9aad4bb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetSyncJobStatusResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetSyncJobStatusResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetSyncJobStatusResponseStatus 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.GetSyncJobStatusResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetSyncJobStatusResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetSyncJobStatusResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetSyncJobStatusResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetSyncJobStatusResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetSyncJobStatusResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetSyncJobStatusResponseStatus2.g.cs new file mode 100644 index 00000000..ba9dacac --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetSyncJobStatusResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetSyncJobStatusResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetSyncJobStatusResponseStatus2 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.GetSyncJobStatusResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetSyncJobStatusResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetSyncJobStatusResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetSyncJobStatusResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetSyncJobStatusResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetSyncJobStatusResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetSyncJobStatusResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..e495c7a4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetSyncJobStatusResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetSyncJobStatusResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetSyncJobStatusResponseStatus2? 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.GetSyncJobStatusResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetSyncJobStatusResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetSyncJobStatusResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetSyncJobStatusResponseStatus2? 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.GetSyncJobStatusResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetSyncJobStatusResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetSyncJobStatusResponseStatus3.g.cs new file mode 100644 index 00000000..c3e1a2c3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetSyncJobStatusResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetSyncJobStatusResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetSyncJobStatusResponseStatus3 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.GetSyncJobStatusResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetSyncJobStatusResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetSyncJobStatusResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetSyncJobStatusResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.GetSyncJobStatusResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetSyncJobStatusResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetSyncJobStatusResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..d6c6a9d6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetSyncJobStatusResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetSyncJobStatusResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetSyncJobStatusResponseStatus3? 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.GetSyncJobStatusResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetSyncJobStatusResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetSyncJobStatusResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetSyncJobStatusResponseStatus3? 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.GetSyncJobStatusResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetSyncJobStatusResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetSyncJobStatusResponseStatusNullable.g.cs new file mode 100644 index 00000000..1e4d8737 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.GetSyncJobStatusResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class GetSyncJobStatusResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.GetSyncJobStatusResponseStatus? 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.GetSyncJobStatusResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.GetSyncJobStatusResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.GetSyncJobStatusResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.GetSyncJobStatusResponseStatus? 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.GetSyncJobStatusResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.JobStatusStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.JobStatusStatus.g.cs new file mode 100644 index 00000000..a65345e5 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.JobStatusStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class JobStatusStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.JobStatusStatus 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.JobStatusStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.JobStatusStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.JobStatusStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.JobStatusStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.JobStatusStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.JobStatusStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.JobStatusStatusNullable.g.cs new file mode 100644 index 00000000..fc5a7083 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.JobStatusStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class JobStatusStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.JobStatusStatus? 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.JobStatusStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.JobStatusStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.JobStatusStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.JobStatusStatus? 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.JobStatusStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.JobStatusTriggeredBy.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.JobStatusTriggeredBy.g.cs new file mode 100644 index 00000000..20e989db --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.JobStatusTriggeredBy.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class JobStatusTriggeredByJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.JobStatusTriggeredBy 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.JobStatusTriggeredByExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.JobStatusTriggeredBy)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.JobStatusTriggeredBy); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.JobStatusTriggeredBy value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.JobStatusTriggeredByExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.JobStatusTriggeredByNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.JobStatusTriggeredByNullable.g.cs new file mode 100644 index 00000000..803084a2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.JobStatusTriggeredByNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class JobStatusTriggeredByNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.JobStatusTriggeredBy? 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.JobStatusTriggeredByExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.JobStatusTriggeredBy)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.JobStatusTriggeredBy?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.JobStatusTriggeredBy? 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.JobStatusTriggeredByExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.KnowledgeBaseAppUsageType.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.KnowledgeBaseAppUsageType.g.cs new file mode 100644 index 00000000..6e21225d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.KnowledgeBaseAppUsageType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class KnowledgeBaseAppUsageTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.KnowledgeBaseAppUsageType 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.KnowledgeBaseAppUsageTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.KnowledgeBaseAppUsageType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.KnowledgeBaseAppUsageType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.KnowledgeBaseAppUsageType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.KnowledgeBaseAppUsageTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.KnowledgeBaseAppUsageTypeNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.KnowledgeBaseAppUsageTypeNullable.g.cs new file mode 100644 index 00000000..d43fbfbb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.KnowledgeBaseAppUsageTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class KnowledgeBaseAppUsageTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.KnowledgeBaseAppUsageType? 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.KnowledgeBaseAppUsageTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.KnowledgeBaseAppUsageType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.KnowledgeBaseAppUsageType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.KnowledgeBaseAppUsageType? 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.KnowledgeBaseAppUsageTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus.g.cs new file mode 100644 index 00000000..36bfc986 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAgentVersionsResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAgentVersionsResponseStatus 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.ListAgentVersionsResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAgentVersionsResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAgentVersionsResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAgentVersionsResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListAgentVersionsResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus2.g.cs new file mode 100644 index 00000000..1f200425 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAgentVersionsResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAgentVersionsResponseStatus2 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.ListAgentVersionsResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAgentVersionsResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAgentVersionsResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAgentVersionsResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListAgentVersionsResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..c887194a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAgentVersionsResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAgentVersionsResponseStatus2? 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.ListAgentVersionsResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAgentVersionsResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAgentVersionsResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAgentVersionsResponseStatus2? 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.ListAgentVersionsResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus3.g.cs new file mode 100644 index 00000000..b6fbc26a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAgentVersionsResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAgentVersionsResponseStatus3 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.ListAgentVersionsResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAgentVersionsResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAgentVersionsResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAgentVersionsResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListAgentVersionsResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..7363c987 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAgentVersionsResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAgentVersionsResponseStatus3? 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.ListAgentVersionsResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAgentVersionsResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAgentVersionsResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAgentVersionsResponseStatus3? 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.ListAgentVersionsResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus4.g.cs new file mode 100644 index 00000000..e776bbb6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus4.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAgentVersionsResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAgentVersionsResponseStatus4 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.ListAgentVersionsResponseStatus4Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAgentVersionsResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAgentVersionsResponseStatus4); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAgentVersionsResponseStatus4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListAgentVersionsResponseStatus4Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus4Nullable.g.cs new file mode 100644 index 00000000..1778f3d7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus4Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAgentVersionsResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAgentVersionsResponseStatus4? 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.ListAgentVersionsResponseStatus4Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAgentVersionsResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAgentVersionsResponseStatus4?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAgentVersionsResponseStatus4? 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.ListAgentVersionsResponseStatus4Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus5.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus5.g.cs new file mode 100644 index 00000000..87284d24 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus5.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAgentVersionsResponseStatus5JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAgentVersionsResponseStatus5 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.ListAgentVersionsResponseStatus5Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAgentVersionsResponseStatus5)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAgentVersionsResponseStatus5); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAgentVersionsResponseStatus5 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListAgentVersionsResponseStatus5Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus5Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus5Nullable.g.cs new file mode 100644 index 00000000..22ea2a4b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus5Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAgentVersionsResponseStatus5NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAgentVersionsResponseStatus5? 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.ListAgentVersionsResponseStatus5Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAgentVersionsResponseStatus5)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAgentVersionsResponseStatus5?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAgentVersionsResponseStatus5? 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.ListAgentVersionsResponseStatus5Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus6.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus6.g.cs new file mode 100644 index 00000000..37451fcf --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus6.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAgentVersionsResponseStatus6JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAgentVersionsResponseStatus6 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.ListAgentVersionsResponseStatus6Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAgentVersionsResponseStatus6)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAgentVersionsResponseStatus6); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAgentVersionsResponseStatus6 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListAgentVersionsResponseStatus6Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus6Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus6Nullable.g.cs new file mode 100644 index 00000000..9fbc863f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatus6Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAgentVersionsResponseStatus6NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAgentVersionsResponseStatus6? 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.ListAgentVersionsResponseStatus6Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAgentVersionsResponseStatus6)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAgentVersionsResponseStatus6?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAgentVersionsResponseStatus6? 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.ListAgentVersionsResponseStatus6Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatusNullable.g.cs new file mode 100644 index 00000000..1ce68b85 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAgentVersionsResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAgentVersionsResponseStatus? 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.ListAgentVersionsResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAgentVersionsResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAgentVersionsResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAgentVersionsResponseStatus? 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.ListAgentVersionsResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsSortOrder.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsSortOrder.g.cs new file mode 100644 index 00000000..b477e248 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsSortOrder.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAgentVersionsSortOrderJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAgentVersionsSortOrder 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.ListAgentVersionsSortOrderExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAgentVersionsSortOrder)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAgentVersionsSortOrder); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAgentVersionsSortOrder value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListAgentVersionsSortOrderExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsSortOrderNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsSortOrderNullable.g.cs new file mode 100644 index 00000000..da2b7699 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAgentVersionsSortOrderNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAgentVersionsSortOrderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAgentVersionsSortOrder? 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.ListAgentVersionsSortOrderExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAgentVersionsSortOrder)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAgentVersionsSortOrder?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAgentVersionsSortOrder? 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.ListAgentVersionsSortOrderExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus.g.cs new file mode 100644 index 00000000..6ed3ed83 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAppUsagesResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAppUsagesResponseStatus 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.ListAppUsagesResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAppUsagesResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAppUsagesResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAppUsagesResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListAppUsagesResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus2.g.cs new file mode 100644 index 00000000..5f7cd9c6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAppUsagesResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAppUsagesResponseStatus2 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.ListAppUsagesResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAppUsagesResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAppUsagesResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAppUsagesResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListAppUsagesResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..8df69c0b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAppUsagesResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAppUsagesResponseStatus2? 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.ListAppUsagesResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAppUsagesResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAppUsagesResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAppUsagesResponseStatus2? 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.ListAppUsagesResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus3.g.cs new file mode 100644 index 00000000..9953ea18 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAppUsagesResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAppUsagesResponseStatus3 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.ListAppUsagesResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAppUsagesResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAppUsagesResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAppUsagesResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListAppUsagesResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..6c49a8c2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAppUsagesResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAppUsagesResponseStatus3? 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.ListAppUsagesResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAppUsagesResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAppUsagesResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAppUsagesResponseStatus3? 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.ListAppUsagesResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus4.g.cs new file mode 100644 index 00000000..9b0e5247 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus4.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAppUsagesResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAppUsagesResponseStatus4 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.ListAppUsagesResponseStatus4Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAppUsagesResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAppUsagesResponseStatus4); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAppUsagesResponseStatus4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListAppUsagesResponseStatus4Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus4Nullable.g.cs new file mode 100644 index 00000000..1f15b323 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatus4Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAppUsagesResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAppUsagesResponseStatus4? 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.ListAppUsagesResponseStatus4Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAppUsagesResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAppUsagesResponseStatus4?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAppUsagesResponseStatus4? 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.ListAppUsagesResponseStatus4Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatusNullable.g.cs new file mode 100644 index 00000000..9982193e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAppUsagesResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAppUsagesResponseStatus? 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.ListAppUsagesResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAppUsagesResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAppUsagesResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAppUsagesResponseStatus? 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.ListAppUsagesResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesSortOrder.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesSortOrder.g.cs new file mode 100644 index 00000000..c74a266f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesSortOrder.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAppUsagesSortOrderJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAppUsagesSortOrder 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.ListAppUsagesSortOrderExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAppUsagesSortOrder)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAppUsagesSortOrder); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAppUsagesSortOrder value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListAppUsagesSortOrderExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesSortOrderNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesSortOrderNullable.g.cs new file mode 100644 index 00000000..629e4256 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppUsagesSortOrderNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAppUsagesSortOrderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAppUsagesSortOrder? 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.ListAppUsagesSortOrderExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAppUsagesSortOrder)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAppUsagesSortOrder?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAppUsagesSortOrder? 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.ListAppUsagesSortOrderExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsResponseStatus.g.cs new file mode 100644 index 00000000..5181c290 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAppsResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAppsResponseStatus 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.ListAppsResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAppsResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAppsResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAppsResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListAppsResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsResponseStatus2.g.cs new file mode 100644 index 00000000..00114533 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAppsResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAppsResponseStatus2 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.ListAppsResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAppsResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAppsResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAppsResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListAppsResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..dad9d90f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAppsResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAppsResponseStatus2? 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.ListAppsResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAppsResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAppsResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAppsResponseStatus2? 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.ListAppsResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsResponseStatus3.g.cs new file mode 100644 index 00000000..3827f967 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAppsResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAppsResponseStatus3 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.ListAppsResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAppsResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAppsResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAppsResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListAppsResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..a17f7518 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAppsResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAppsResponseStatus3? 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.ListAppsResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAppsResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAppsResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAppsResponseStatus3? 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.ListAppsResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsResponseStatusNullable.g.cs new file mode 100644 index 00000000..d8f93826 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAppsResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAppsResponseStatus? 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.ListAppsResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAppsResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAppsResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAppsResponseStatus? 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.ListAppsResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsSortOrder.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsSortOrder.g.cs new file mode 100644 index 00000000..50025f42 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsSortOrder.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAppsSortOrderJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAppsSortOrder 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.ListAppsSortOrderExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAppsSortOrder)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAppsSortOrder); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAppsSortOrder value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListAppsSortOrderExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsSortOrderNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsSortOrderNullable.g.cs new file mode 100644 index 00000000..04f066d2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListAppsSortOrderNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListAppsSortOrderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListAppsSortOrder? 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.ListAppsSortOrderExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListAppsSortOrder)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListAppsSortOrder?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListAppsSortOrder? 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.ListAppsSortOrderExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus.g.cs new file mode 100644 index 00000000..868e6ddc --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListContactConversationsResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListContactConversationsResponseStatus 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.ListContactConversationsResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListContactConversationsResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListContactConversationsResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListContactConversationsResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListContactConversationsResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus2.g.cs new file mode 100644 index 00000000..ce38d03b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListContactConversationsResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListContactConversationsResponseStatus2 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.ListContactConversationsResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListContactConversationsResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListContactConversationsResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListContactConversationsResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListContactConversationsResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..9fa15a0b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListContactConversationsResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListContactConversationsResponseStatus2? 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.ListContactConversationsResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListContactConversationsResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListContactConversationsResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListContactConversationsResponseStatus2? 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.ListContactConversationsResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus3.g.cs new file mode 100644 index 00000000..98364607 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListContactConversationsResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListContactConversationsResponseStatus3 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.ListContactConversationsResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListContactConversationsResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListContactConversationsResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListContactConversationsResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListContactConversationsResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..0e117ccb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListContactConversationsResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListContactConversationsResponseStatus3? 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.ListContactConversationsResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListContactConversationsResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListContactConversationsResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListContactConversationsResponseStatus3? 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.ListContactConversationsResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus4.g.cs new file mode 100644 index 00000000..50e887e7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus4.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListContactConversationsResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListContactConversationsResponseStatus4 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.ListContactConversationsResponseStatus4Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListContactConversationsResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListContactConversationsResponseStatus4); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListContactConversationsResponseStatus4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListContactConversationsResponseStatus4Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus4Nullable.g.cs new file mode 100644 index 00000000..102a7ec5 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatus4Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListContactConversationsResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListContactConversationsResponseStatus4? 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.ListContactConversationsResponseStatus4Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListContactConversationsResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListContactConversationsResponseStatus4?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListContactConversationsResponseStatus4? 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.ListContactConversationsResponseStatus4Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatusNullable.g.cs new file mode 100644 index 00000000..f94da144 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactConversationsResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListContactConversationsResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListContactConversationsResponseStatus? 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.ListContactConversationsResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListContactConversationsResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListContactConversationsResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListContactConversationsResponseStatus? 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.ListContactConversationsResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus.g.cs new file mode 100644 index 00000000..c626c2d6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListContactsResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListContactsResponseStatus 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.ListContactsResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListContactsResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListContactsResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListContactsResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListContactsResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus2.g.cs new file mode 100644 index 00000000..76b81e96 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListContactsResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListContactsResponseStatus2 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.ListContactsResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListContactsResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListContactsResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListContactsResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListContactsResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..b6df2447 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListContactsResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListContactsResponseStatus2? 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.ListContactsResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListContactsResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListContactsResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListContactsResponseStatus2? 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.ListContactsResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus3.g.cs new file mode 100644 index 00000000..634ae088 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListContactsResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListContactsResponseStatus3 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.ListContactsResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListContactsResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListContactsResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListContactsResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListContactsResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..9b9853c9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListContactsResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListContactsResponseStatus3? 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.ListContactsResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListContactsResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListContactsResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListContactsResponseStatus3? 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.ListContactsResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus4.g.cs new file mode 100644 index 00000000..2f939187 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus4.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListContactsResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListContactsResponseStatus4 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.ListContactsResponseStatus4Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListContactsResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListContactsResponseStatus4); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListContactsResponseStatus4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.ListContactsResponseStatus4Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus4Nullable.g.cs new file mode 100644 index 00000000..55147a68 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatus4Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListContactsResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListContactsResponseStatus4? 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.ListContactsResponseStatus4Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListContactsResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListContactsResponseStatus4?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListContactsResponseStatus4? 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.ListContactsResponseStatus4Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatusNullable.g.cs new file mode 100644 index 00000000..0542c438 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ListContactsResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class ListContactsResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.ListContactsResponseStatus? 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.ListContactsResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.ListContactsResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.ListContactsResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.ListContactsResponseStatus? 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.ListContactsResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeBase.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeBase.g.cs index 94e3d8ea..10311476 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeBase.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeBase.g.cs @@ -48,6 +48,9 @@ public class NodeBaseJsonConverter : global::System.Text.Json.Serialization.Json if (__jsonProps.Contains("name")) __score0++; var __score1 = 0; if (__jsonProps.Contains("model_choice")) __score1++; + if (__jsonProps.Contains("model_choice.high_priority")) __score1++; + if (__jsonProps.Contains("model_choice.model")) __score1++; + if (__jsonProps.Contains("model_choice.type")) __score1++; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.OAuthConfigRequestType.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.OAuthConfigRequestType.g.cs new file mode 100644 index 00000000..90474c35 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.OAuthConfigRequestType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class OAuthConfigRequestTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.OAuthConfigRequestType 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.OAuthConfigRequestTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.OAuthConfigRequestType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.OAuthConfigRequestType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.OAuthConfigRequestType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.OAuthConfigRequestTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.OAuthConfigRequestTypeNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.OAuthConfigRequestTypeNullable.g.cs new file mode 100644 index 00000000..45b67340 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.OAuthConfigRequestTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class OAuthConfigRequestTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.OAuthConfigRequestType? 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.OAuthConfigRequestTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.OAuthConfigRequestType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.OAuthConfigRequestType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.OAuthConfigRequestType? 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.OAuthConfigRequestTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.OAuthConfigResponseType.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.OAuthConfigResponseType.g.cs new file mode 100644 index 00000000..30f4c892 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.OAuthConfigResponseType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class OAuthConfigResponseTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.OAuthConfigResponseType 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.OAuthConfigResponseTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.OAuthConfigResponseType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.OAuthConfigResponseType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.OAuthConfigResponseType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.OAuthConfigResponseTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.OAuthConfigResponseTypeNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.OAuthConfigResponseTypeNullable.g.cs new file mode 100644 index 00000000..5a6612e5 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.OAuthConfigResponseTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class OAuthConfigResponseTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.OAuthConfigResponseType? 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.OAuthConfigResponseTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.OAuthConfigResponseType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.OAuthConfigResponseType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.OAuthConfigResponseType? 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.OAuthConfigResponseTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RefreshTokenAuthConfigRequestType.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RefreshTokenAuthConfigRequestType.g.cs new file mode 100644 index 00000000..b87bb5a7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RefreshTokenAuthConfigRequestType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class RefreshTokenAuthConfigRequestTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.RefreshTokenAuthConfigRequestType 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.RefreshTokenAuthConfigRequestTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.RefreshTokenAuthConfigRequestType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.RefreshTokenAuthConfigRequestType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.RefreshTokenAuthConfigRequestType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.RefreshTokenAuthConfigRequestTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RefreshTokenAuthConfigRequestTypeNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RefreshTokenAuthConfigRequestTypeNullable.g.cs new file mode 100644 index 00000000..257e4dd0 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RefreshTokenAuthConfigRequestTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class RefreshTokenAuthConfigRequestTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.RefreshTokenAuthConfigRequestType? 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.RefreshTokenAuthConfigRequestTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.RefreshTokenAuthConfigRequestType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.RefreshTokenAuthConfigRequestType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.RefreshTokenAuthConfigRequestType? 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.RefreshTokenAuthConfigRequestTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RefreshTokenAuthConfigResponseType.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RefreshTokenAuthConfigResponseType.g.cs new file mode 100644 index 00000000..6bf8d297 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RefreshTokenAuthConfigResponseType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class RefreshTokenAuthConfigResponseTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.RefreshTokenAuthConfigResponseType 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.RefreshTokenAuthConfigResponseTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.RefreshTokenAuthConfigResponseType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.RefreshTokenAuthConfigResponseType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.RefreshTokenAuthConfigResponseType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.RefreshTokenAuthConfigResponseTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RefreshTokenAuthConfigResponseTypeNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RefreshTokenAuthConfigResponseTypeNullable.g.cs new file mode 100644 index 00000000..af960337 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RefreshTokenAuthConfigResponseTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class RefreshTokenAuthConfigResponseTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.RefreshTokenAuthConfigResponseType? 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.RefreshTokenAuthConfigResponseTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.RefreshTokenAuthConfigResponseType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.RefreshTokenAuthConfigResponseType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.RefreshTokenAuthConfigResponseType? 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.RefreshTokenAuthConfigResponseTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus.g.cs new file mode 100644 index 00000000..682961e0 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class RunSyncJobResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.RunSyncJobResponseStatus 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.RunSyncJobResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.RunSyncJobResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.RunSyncJobResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.RunSyncJobResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.RunSyncJobResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus2.g.cs new file mode 100644 index 00000000..c4e0d0d9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class RunSyncJobResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.RunSyncJobResponseStatus2 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.RunSyncJobResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.RunSyncJobResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.RunSyncJobResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.RunSyncJobResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.RunSyncJobResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..c901a78b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class RunSyncJobResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.RunSyncJobResponseStatus2? 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.RunSyncJobResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.RunSyncJobResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.RunSyncJobResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.RunSyncJobResponseStatus2? 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.RunSyncJobResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus3.g.cs new file mode 100644 index 00000000..8e5c1e6a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class RunSyncJobResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.RunSyncJobResponseStatus3 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.RunSyncJobResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.RunSyncJobResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.RunSyncJobResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.RunSyncJobResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.RunSyncJobResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..3a7583eb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class RunSyncJobResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.RunSyncJobResponseStatus3? 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.RunSyncJobResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.RunSyncJobResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.RunSyncJobResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.RunSyncJobResponseStatus3? 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.RunSyncJobResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus4.g.cs new file mode 100644 index 00000000..b99649b8 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus4.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class RunSyncJobResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.RunSyncJobResponseStatus4 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.RunSyncJobResponseStatus4Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.RunSyncJobResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.RunSyncJobResponseStatus4); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.RunSyncJobResponseStatus4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.RunSyncJobResponseStatus4Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus4Nullable.g.cs new file mode 100644 index 00000000..2a5b844b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatus4Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class RunSyncJobResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.RunSyncJobResponseStatus4? 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.RunSyncJobResponseStatus4Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.RunSyncJobResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.RunSyncJobResponseStatus4?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.RunSyncJobResponseStatus4? 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.RunSyncJobResponseStatus4Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatusNullable.g.cs new file mode 100644 index 00000000..43942a21 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RunSyncJobResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class RunSyncJobResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.RunSyncJobResponseStatus? 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.RunSyncJobResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.RunSyncJobResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.RunSyncJobResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.RunSyncJobResponseStatus? 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.RunSyncJobResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.StoredCallFilter.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.StoredCallFilter.g.cs new file mode 100644 index 00000000..fd345fe6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.StoredCallFilter.g.cs @@ -0,0 +1,186 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace RetellAI.JsonConverters +{ + /// + public class StoredCallFilterJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.StoredCallFilter 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")) __score0++; + if (__jsonProps.Contains("agent_tag")) __score0++; + if (__jsonProps.Contains("batch_call_id")) __score0++; + if (__jsonProps.Contains("batch_call_id.op")) __score0++; + if (__jsonProps.Contains("batch_call_id.type")) __score0++; + if (__jsonProps.Contains("batch_call_id.value")) __score0++; + if (__jsonProps.Contains("call_id")) __score0++; + if (__jsonProps.Contains("call_status")) __score0++; + if (__jsonProps.Contains("call_successful")) __score0++; + if (__jsonProps.Contains("call_successful.op")) __score0++; + if (__jsonProps.Contains("call_successful.type")) __score0++; + if (__jsonProps.Contains("call_successful.value")) __score0++; + if (__jsonProps.Contains("call_type")) __score0++; + if (__jsonProps.Contains("combined_cost")) __score0++; + if (__jsonProps.Contains("custom_analysis_data")) __score0++; + if (__jsonProps.Contains("custom_attributes")) __score0++; + if (__jsonProps.Contains("data_storage_setting")) __score0++; + if (__jsonProps.Contains("direction")) __score0++; + if (__jsonProps.Contains("disconnection_reason")) __score0++; + if (__jsonProps.Contains("duration_ms")) __score0++; + if (__jsonProps.Contains("dynamic_variables")) __score0++; + if (__jsonProps.Contains("e2e_latency_p50")) __score0++; + if (__jsonProps.Contains("end_timestamp")) __score0++; + if (__jsonProps.Contains("from_number")) __score0++; + if (__jsonProps.Contains("from_number.op")) __score0++; + if (__jsonProps.Contains("from_number.type")) __score0++; + if (__jsonProps.Contains("from_number.value")) __score0++; + if (__jsonProps.Contains("in_voicemail")) __score0++; + if (__jsonProps.Contains("in_voicemail.op")) __score0++; + if (__jsonProps.Contains("in_voicemail.type")) __score0++; + if (__jsonProps.Contains("in_voicemail.value")) __score0++; + if (__jsonProps.Contains("metadata")) __score0++; + if (__jsonProps.Contains("start_timestamp")) __score0++; + if (__jsonProps.Contains("to_number")) __score0++; + if (__jsonProps.Contains("to_number.op")) __score0++; + if (__jsonProps.Contains("to_number.type")) __score0++; + if (__jsonProps.Contains("to_number.value")) __score0++; + if (__jsonProps.Contains("tool_calls")) __score0++; + if (__jsonProps.Contains("user_sentiment")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("transfer_agent")) __score1++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::RetellAI.CallFilter? callFilter = default; + global::RetellAI.StoredCallFilterVariant2? storedCallFilterVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CallFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CallFilter).Name}"); + callFilter = 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.StoredCallFilterVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.StoredCallFilterVariant2).Name}"); + storedCallFilterVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (callFilter == null && storedCallFilterVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CallFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CallFilter).Name}"); + callFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (callFilter == null && storedCallFilterVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.StoredCallFilterVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.StoredCallFilterVariant2).Name}"); + storedCallFilterVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::RetellAI.StoredCallFilter( + callFilter, + + storedCallFilterVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.StoredCallFilter 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.IsCallFilter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CallFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CallFilter).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CallFilter!, typeInfo); + } + else if (value.IsStoredCallFilterVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.StoredCallFilterVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.StoredCallFilterVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.StoredCallFilterVariant2!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus.g.cs new file mode 100644 index 00000000..8514ef59 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class TestAppAuthResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.TestAppAuthResponseStatus 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.TestAppAuthResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.TestAppAuthResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.TestAppAuthResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.TestAppAuthResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.TestAppAuthResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus2.g.cs new file mode 100644 index 00000000..d8c974c9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class TestAppAuthResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.TestAppAuthResponseStatus2 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.TestAppAuthResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.TestAppAuthResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.TestAppAuthResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.TestAppAuthResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.TestAppAuthResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..c629c9de --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class TestAppAuthResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.TestAppAuthResponseStatus2? 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.TestAppAuthResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.TestAppAuthResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.TestAppAuthResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.TestAppAuthResponseStatus2? 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.TestAppAuthResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus3.g.cs new file mode 100644 index 00000000..9ae73513 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class TestAppAuthResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.TestAppAuthResponseStatus3 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.TestAppAuthResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.TestAppAuthResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.TestAppAuthResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.TestAppAuthResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.TestAppAuthResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..95073f7f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class TestAppAuthResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.TestAppAuthResponseStatus3? 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.TestAppAuthResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.TestAppAuthResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.TestAppAuthResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.TestAppAuthResponseStatus3? 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.TestAppAuthResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus4.g.cs new file mode 100644 index 00000000..cd74afc2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus4.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class TestAppAuthResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.TestAppAuthResponseStatus4 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.TestAppAuthResponseStatus4Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.TestAppAuthResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.TestAppAuthResponseStatus4); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.TestAppAuthResponseStatus4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.TestAppAuthResponseStatus4Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus4Nullable.g.cs new file mode 100644 index 00000000..f1e7d542 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatus4Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class TestAppAuthResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.TestAppAuthResponseStatus4? 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.TestAppAuthResponseStatus4Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.TestAppAuthResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.TestAppAuthResponseStatus4?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.TestAppAuthResponseStatus4? 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.TestAppAuthResponseStatus4Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatusNullable.g.cs new file mode 100644 index 00000000..bb9c06d2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestAppAuthResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class TestAppAuthResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.TestAppAuthResponseStatus? 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.TestAppAuthResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.TestAppAuthResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.TestAppAuthResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.TestAppAuthResponseStatus? 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.TestAppAuthResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus.g.cs new file mode 100644 index 00000000..1bffa97d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateAppResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateAppResponseStatus 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.UpdateAppResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateAppResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateAppResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateAppResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.UpdateAppResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus2.g.cs new file mode 100644 index 00000000..ee7280b3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateAppResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateAppResponseStatus2 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.UpdateAppResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateAppResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateAppResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateAppResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.UpdateAppResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..70d479f8 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateAppResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateAppResponseStatus2? 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.UpdateAppResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateAppResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateAppResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateAppResponseStatus2? 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.UpdateAppResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus3.g.cs new file mode 100644 index 00000000..b8d2dfd7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateAppResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateAppResponseStatus3 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.UpdateAppResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateAppResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateAppResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateAppResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.UpdateAppResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..e66da684 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateAppResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateAppResponseStatus3? 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.UpdateAppResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateAppResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateAppResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateAppResponseStatus3? 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.UpdateAppResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus4.g.cs new file mode 100644 index 00000000..ee50572c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus4.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateAppResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateAppResponseStatus4 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.UpdateAppResponseStatus4Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateAppResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateAppResponseStatus4); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateAppResponseStatus4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.UpdateAppResponseStatus4Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus4Nullable.g.cs new file mode 100644 index 00000000..c1360e60 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus4Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateAppResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateAppResponseStatus4? 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.UpdateAppResponseStatus4Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateAppResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateAppResponseStatus4?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateAppResponseStatus4? 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.UpdateAppResponseStatus4Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus5.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus5.g.cs new file mode 100644 index 00000000..fb226ee6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus5.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateAppResponseStatus5JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateAppResponseStatus5 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.UpdateAppResponseStatus5Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateAppResponseStatus5)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateAppResponseStatus5); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateAppResponseStatus5 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.UpdateAppResponseStatus5Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus5Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus5Nullable.g.cs new file mode 100644 index 00000000..6cc3288a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatus5Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateAppResponseStatus5NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateAppResponseStatus5? 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.UpdateAppResponseStatus5Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateAppResponseStatus5)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateAppResponseStatus5?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateAppResponseStatus5? 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.UpdateAppResponseStatus5Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatusNullable.g.cs new file mode 100644 index 00000000..fb581e0d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateAppResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateAppResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateAppResponseStatus? 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.UpdateAppResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateAppResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateAppResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateAppResponseStatus? 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.UpdateAppResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus.g.cs new file mode 100644 index 00000000..83dd35c9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateContactResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateContactResponseStatus 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.UpdateContactResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateContactResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateContactResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateContactResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.UpdateContactResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus2.g.cs new file mode 100644 index 00000000..5a1fac8b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateContactResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateContactResponseStatus2 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.UpdateContactResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateContactResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateContactResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateContactResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.UpdateContactResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..2ac3cf23 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateContactResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateContactResponseStatus2? 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.UpdateContactResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateContactResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateContactResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateContactResponseStatus2? 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.UpdateContactResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus3.g.cs new file mode 100644 index 00000000..72e7e521 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateContactResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateContactResponseStatus3 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.UpdateContactResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateContactResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateContactResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateContactResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.UpdateContactResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..d9a719c3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateContactResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateContactResponseStatus3? 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.UpdateContactResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateContactResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateContactResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateContactResponseStatus3? 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.UpdateContactResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus4.g.cs new file mode 100644 index 00000000..a016a4a1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus4.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateContactResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateContactResponseStatus4 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.UpdateContactResponseStatus4Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateContactResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateContactResponseStatus4); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateContactResponseStatus4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.UpdateContactResponseStatus4Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus4Nullable.g.cs new file mode 100644 index 00000000..ca219b15 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus4Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateContactResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateContactResponseStatus4? 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.UpdateContactResponseStatus4Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateContactResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateContactResponseStatus4?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateContactResponseStatus4? 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.UpdateContactResponseStatus4Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus5.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus5.g.cs new file mode 100644 index 00000000..305ad5f4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus5.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateContactResponseStatus5JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateContactResponseStatus5 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.UpdateContactResponseStatus5Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateContactResponseStatus5)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateContactResponseStatus5); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateContactResponseStatus5 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.UpdateContactResponseStatus5Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus5Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus5Nullable.g.cs new file mode 100644 index 00000000..6674e422 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatus5Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateContactResponseStatus5NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateContactResponseStatus5? 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.UpdateContactResponseStatus5Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateContactResponseStatus5)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateContactResponseStatus5?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateContactResponseStatus5? 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.UpdateContactResponseStatus5Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatusNullable.g.cs new file mode 100644 index 00000000..77ae6b4b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateContactResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateContactResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateContactResponseStatus? 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.UpdateContactResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateContactResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateContactResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateContactResponseStatus? 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.UpdateContactResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus.g.cs new file mode 100644 index 00000000..de35af1d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateCrmConfigResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateCrmConfigResponseStatus 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.UpdateCrmConfigResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateCrmConfigResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateCrmConfigResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateCrmConfigResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.UpdateCrmConfigResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus2.g.cs new file mode 100644 index 00000000..555410ca --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateCrmConfigResponseStatus2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateCrmConfigResponseStatus2 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.UpdateCrmConfigResponseStatus2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateCrmConfigResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateCrmConfigResponseStatus2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateCrmConfigResponseStatus2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.UpdateCrmConfigResponseStatus2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus2Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus2Nullable.g.cs new file mode 100644 index 00000000..0b860d79 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateCrmConfigResponseStatus2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateCrmConfigResponseStatus2? 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.UpdateCrmConfigResponseStatus2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateCrmConfigResponseStatus2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateCrmConfigResponseStatus2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateCrmConfigResponseStatus2? 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.UpdateCrmConfigResponseStatus2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus3.g.cs new file mode 100644 index 00000000..2580a289 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateCrmConfigResponseStatus3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateCrmConfigResponseStatus3 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.UpdateCrmConfigResponseStatus3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateCrmConfigResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateCrmConfigResponseStatus3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateCrmConfigResponseStatus3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.UpdateCrmConfigResponseStatus3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus3Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus3Nullable.g.cs new file mode 100644 index 00000000..c20a6081 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateCrmConfigResponseStatus3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateCrmConfigResponseStatus3? 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.UpdateCrmConfigResponseStatus3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateCrmConfigResponseStatus3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateCrmConfigResponseStatus3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateCrmConfigResponseStatus3? 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.UpdateCrmConfigResponseStatus3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus4.g.cs new file mode 100644 index 00000000..62372424 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus4.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateCrmConfigResponseStatus4JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateCrmConfigResponseStatus4 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.UpdateCrmConfigResponseStatus4Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateCrmConfigResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateCrmConfigResponseStatus4); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateCrmConfigResponseStatus4 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.UpdateCrmConfigResponseStatus4Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus4Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus4Nullable.g.cs new file mode 100644 index 00000000..a2a32730 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus4Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateCrmConfigResponseStatus4NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateCrmConfigResponseStatus4? 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.UpdateCrmConfigResponseStatus4Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateCrmConfigResponseStatus4)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateCrmConfigResponseStatus4?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateCrmConfigResponseStatus4? 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.UpdateCrmConfigResponseStatus4Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus5.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus5.g.cs new file mode 100644 index 00000000..50d67e15 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus5.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateCrmConfigResponseStatus5JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateCrmConfigResponseStatus5 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.UpdateCrmConfigResponseStatus5Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateCrmConfigResponseStatus5)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateCrmConfigResponseStatus5); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateCrmConfigResponseStatus5 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::RetellAI.UpdateCrmConfigResponseStatus5Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus5Nullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus5Nullable.g.cs new file mode 100644 index 00000000..9db91f8f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatus5Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateCrmConfigResponseStatus5NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateCrmConfigResponseStatus5? 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.UpdateCrmConfigResponseStatus5Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateCrmConfigResponseStatus5)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateCrmConfigResponseStatus5?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateCrmConfigResponseStatus5? 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.UpdateCrmConfigResponseStatus5Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatusNullable.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatusNullable.g.cs new file mode 100644 index 00000000..91a25287 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateCrmConfigResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace RetellAI.JsonConverters +{ + /// + public sealed class UpdateCrmConfigResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::RetellAI.UpdateCrmConfigResponseStatus? 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.UpdateCrmConfigResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::RetellAI.UpdateCrmConfigResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::RetellAI.UpdateCrmConfigResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::RetellAI.UpdateCrmConfigResponseStatus? 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.UpdateCrmConfigResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonSerializerContext.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonSerializerContext.g.cs index d198f996..c9b4d35d 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonSerializerContext.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonSerializerContext.g.cs @@ -107,10 +107,11 @@ namespace RetellAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.PIIConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GuardrailConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.VoiceHandbookConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AgentVersionSummary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AgentResponse), TypeInfoPropertyName = "AgentResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AgentResponseVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AgentResponseVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AgentListFilter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf), TypeInfoPropertyName = "AllOfStringFilterAgentListFilterChannel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AgentListFilterChannel))] @@ -365,9 +366,8 @@ namespace RetellAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CallFilterDataStorageSettingValueItem), TypeInfoPropertyName = "CallFilterDataStorageSettingValueItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf), TypeInfoPropertyName = "AllOfStringFilterCallFilterDynamicVariable2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CallFilterDynamicVariable))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.StoredCallFilter), TypeInfoPropertyName = "StoredCallFilter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.StoredCallFilterVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf), TypeInfoPropertyName = "AllOfEnumFilterChatFilterChatStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ChatFilterChatStatus))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -770,6 +770,49 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ContactChatSentiment), TypeInfoPropertyName = "ContactChatSentiment2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ContactConversationListResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AppType), TypeInfoPropertyName = "AppType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AppConnectionStatus), TypeInfoPropertyName = "AppConnectionStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.OAuthConfigRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.OAuthConfigRequestType), TypeInfoPropertyName = "OAuthConfigRequestType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ApiKeyAuthConfigRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ApiKeyAuthConfigRequestType), TypeInfoPropertyName = "ApiKeyAuthConfigRequestType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AccessTokenAuthConfigRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AccessTokenAuthConfigRequestType), TypeInfoPropertyName = "AccessTokenAuthConfigRequestType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BasicAuthConfigRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BasicAuthConfigRequestType), TypeInfoPropertyName = "BasicAuthConfigRequestType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RefreshTokenAuthConfigRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RefreshTokenAuthConfigRequestType), TypeInfoPropertyName = "RefreshTokenAuthConfigRequestType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AuthConfigRequest), TypeInfoPropertyName = "AuthConfigRequest2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.OAuthConfigResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.OAuthConfigResponseType), TypeInfoPropertyName = "OAuthConfigResponseType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ApiKeyAuthConfigResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ApiKeyAuthConfigResponseType), TypeInfoPropertyName = "ApiKeyAuthConfigResponseType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AccessTokenAuthConfigResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AccessTokenAuthConfigResponseType), TypeInfoPropertyName = "AccessTokenAuthConfigResponseType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BasicAuthConfigResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BasicAuthConfigResponseType), TypeInfoPropertyName = "BasicAuthConfigResponseType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RefreshTokenAuthConfigResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RefreshTokenAuthConfigResponseType), TypeInfoPropertyName = "RefreshTokenAuthConfigResponseType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AppAuthConfigResponse), TypeInfoPropertyName = "AppAuthConfigResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CRMSyncMapping))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AppCRMConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AppResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AppUsageResponse), TypeInfoPropertyName = "AppUsageResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AgentAppUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.KnowledgeBaseAppUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AgentAppUsageType), TypeInfoPropertyName = "AgentAppUsageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.KnowledgeBaseAppUsageType), TypeInfoPropertyName = "KnowledgeBaseAppUsageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CRMCustomFieldSchema))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CRMCustomFieldSchemaType), TypeInfoPropertyName = "CRMCustomFieldSchemaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CRMAnalysisDataMapping))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CRMAnalysisDataMappingUpdateMode), TypeInfoPropertyName = "CRMAnalysisDataMappingUpdateMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CRMConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.JobStatus))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.JobStatusStatus), TypeInfoPropertyName = "JobStatusStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.JobStatusTriggeredBy), TypeInfoPropertyName = "JobStatusTriggeredBy2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DashboardSource), TypeInfoPropertyName = "DashboardSource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ChartGroupItem), TypeInfoPropertyName = "ChartGroupItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ChartGroupItemVariant1))] @@ -811,14 +854,24 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateLiveCallRequestFieldsToOverride))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateLiveCallRequestFieldsToOverrideDataStorageSetting), TypeInfoPropertyName = "UpdateLiveCallRequestFieldsToOverrideDataStorageSetting2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateLiveCallRequestCallControl))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateContactRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateContactRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateAppRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateAppRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateCrmConfigRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BackfillContactAnalysisDataRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BackfillContactAnalysisDataRequestBackfillCallFilter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListTestCaseDefinitionsType), TypeInfoPropertyName = "ListTestCaseDefinitionsType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListBatchTestsType), TypeInfoPropertyName = "ListBatchTestsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsSortOrder), TypeInfoPropertyName = "ListAgentVersionsSortOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentsSortOrder), TypeInfoPropertyName = "ListAgentsSortOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListConversationFlowComponentsSortOrder), TypeInfoPropertyName = "ListConversationFlowComponentsSortOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListConversationFlowsSortOrder), TypeInfoPropertyName = "ListConversationFlowsSortOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListPhoneNumbersSortOrder), TypeInfoPropertyName = "ListPhoneNumbersSortOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListRetellLLMSortOrder), TypeInfoPropertyName = "ListRetellLLMSortOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListExportRequestsSortOrder), TypeInfoPropertyName = "ListExportRequestsSortOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppsSortOrder), TypeInfoPropertyName = "ListAppsSortOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppUsagesSortOrder), TypeInfoPropertyName = "ListAppUsagesSortOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AddKnowledgeBaseSourcesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus), TypeInfoPropertyName = "AddKnowledgeBaseSourcesResponseStatus2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AddKnowledgeBaseSourcesResponse2))] @@ -973,6 +1026,20 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus6), TypeInfoPropertyName = "AgentPlaygroundCompletionResponseStatus62")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateChatCompletionResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateChatCompletionResponse2))] + internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + Converters = new global::System.Type[] + { + })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NullableLLMModel), TypeInfoPropertyName = "NullableLLMModel_RetellAI_NullableLLMModel")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.LLMModel?), TypeInfoPropertyName = "NullableLLMModel_RetellAI_LLMModel")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateChatCompletionResponseStatus), TypeInfoPropertyName = "CreateChatCompletionResponseStatus2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateChatCompletionResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateChatCompletionResponseStatus2), TypeInfoPropertyName = "CreateChatCompletionResponseStatus22")] @@ -1026,20 +1093,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus4), TypeInfoPropertyName = "CreateKnowledgeBaseResponseStatus42")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateKnowledgeBaseResponse5))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus5), TypeInfoPropertyName = "CreateKnowledgeBaseResponseStatus52")] - internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NullableLLMModel), TypeInfoPropertyName = "NullableLLMModel_RetellAI_NullableLLMModel")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.LLMModel?), TypeInfoPropertyName = "NullableLLMModel_RetellAI_LLMModel")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreatePhoneNumberResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreatePhoneNumberResponseStatus), TypeInfoPropertyName = "CreatePhoneNumberResponseStatus2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreatePhoneNumberResponse2))] @@ -1144,6 +1197,21 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.EndChatResponseStatus3), TypeInfoPropertyName = "EndChatResponseStatus32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.EndChatResponse4))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.EndChatResponseStatus4), TypeInfoPropertyName = "EndChatResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf), TypeInfoPropertyName = "AllOfPaginatedResponseBaseListAgentVersionsResponse22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsResponseStatus), TypeInfoPropertyName = "ListAgentVersionsResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsResponseStatus2), TypeInfoPropertyName = "ListAgentVersionsResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsResponse5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsResponseStatus3), TypeInfoPropertyName = "ListAgentVersionsResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsResponse6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsResponseStatus4), TypeInfoPropertyName = "ListAgentVersionsResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsResponse7))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsResponseStatus5), TypeInfoPropertyName = "ListAgentVersionsResponseStatus52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsResponse8))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsResponseStatus6), TypeInfoPropertyName = "ListAgentVersionsResponseStatus62")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetAgentVersionsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetAgentVersionsResponseStatus), TypeInfoPropertyName = "GetAgentVersionsResponseStatus2_3")] @@ -1470,6 +1538,20 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateConversationFlowResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateConversationFlowResponseStatus2), TypeInfoPropertyName = "UpdateConversationFlowResponseStatus22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateConversationFlowResponse3))] + internal sealed partial class SourceGenerationContextChunk2 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + Converters = new global::System.Type[] + { + })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NullableLLMModel), TypeInfoPropertyName = "NullableLLMModel_RetellAI_NullableLLMModel")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.LLMModel?), TypeInfoPropertyName = "NullableLLMModel_RetellAI_LLMModel")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateConversationFlowResponseStatus3), TypeInfoPropertyName = "UpdateConversationFlowResponseStatus32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateConversationFlowResponse4))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateConversationFlowResponseStatus4), TypeInfoPropertyName = "UpdateConversationFlowResponseStatus42")] @@ -1538,20 +1620,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf), TypeInfoPropertyName = "AllOfPaginatedResponseBaseListCallsResponse22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - internal sealed partial class SourceGenerationContextChunk2 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NullableLLMModel), TypeInfoPropertyName = "NullableLLMModel_RetellAI_NullableLLMModel")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.LLMModel?), TypeInfoPropertyName = "NullableLLMModel_RetellAI_LLMModel")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsResponseStatus), TypeInfoPropertyName = "ListCallsResponseStatus2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListCallsResponse4))] @@ -1613,6 +1681,190 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.StopCallResponseStatus3), TypeInfoPropertyName = "StopCallResponseStatus32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.StopCallResponse4))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.StopCallResponseStatus4), TypeInfoPropertyName = "StopCallResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateContactResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateContactResponseStatus), TypeInfoPropertyName = "CreateContactResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateContactResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateContactResponseStatus2), TypeInfoPropertyName = "CreateContactResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateContactResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateContactResponseStatus3), TypeInfoPropertyName = "CreateContactResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateContactResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateContactResponseStatus4), TypeInfoPropertyName = "CreateContactResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactResponseStatus), TypeInfoPropertyName = "GetContactResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactResponseStatus2), TypeInfoPropertyName = "GetContactResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactResponseStatus3), TypeInfoPropertyName = "GetContactResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactResponseStatus4), TypeInfoPropertyName = "GetContactResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactByPhoneResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactByPhoneResponseStatus), TypeInfoPropertyName = "GetContactByPhoneResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactByPhoneResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactByPhoneResponseStatus2), TypeInfoPropertyName = "GetContactByPhoneResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactByPhoneResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactByPhoneResponseStatus3), TypeInfoPropertyName = "GetContactByPhoneResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactByPhoneResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactByPhoneResponseStatus4), TypeInfoPropertyName = "GetContactByPhoneResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactByPhoneResponse5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactByPhoneResponseStatus5), TypeInfoPropertyName = "GetContactByPhoneResponseStatus52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateContactResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateContactResponseStatus), TypeInfoPropertyName = "UpdateContactResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateContactResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateContactResponseStatus2), TypeInfoPropertyName = "UpdateContactResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateContactResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateContactResponseStatus3), TypeInfoPropertyName = "UpdateContactResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateContactResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateContactResponseStatus4), TypeInfoPropertyName = "UpdateContactResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateContactResponse5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateContactResponseStatus5), TypeInfoPropertyName = "UpdateContactResponseStatus52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteContactResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteContactResponseStatus), TypeInfoPropertyName = "DeleteContactResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteContactResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteContactResponseStatus2), TypeInfoPropertyName = "DeleteContactResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteContactResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteContactResponseStatus3), TypeInfoPropertyName = "DeleteContactResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteContactResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteContactResponseStatus4), TypeInfoPropertyName = "DeleteContactResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteContactResponse5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteContactResponseStatus5), TypeInfoPropertyName = "DeleteContactResponseStatus52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactsResponseStatus), TypeInfoPropertyName = "ListContactsResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactsResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactsResponseStatus2), TypeInfoPropertyName = "ListContactsResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactsResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactsResponseStatus3), TypeInfoPropertyName = "ListContactsResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactsResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactsResponseStatus4), TypeInfoPropertyName = "ListContactsResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactConversationsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactConversationsResponseStatus), TypeInfoPropertyName = "ListContactConversationsResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactConversationsResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactConversationsResponseStatus2), TypeInfoPropertyName = "ListContactConversationsResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactConversationsResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactConversationsResponseStatus3), TypeInfoPropertyName = "ListContactConversationsResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactConversationsResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactConversationsResponseStatus4), TypeInfoPropertyName = "ListContactConversationsResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateAppResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateAppResponseStatus), TypeInfoPropertyName = "CreateAppResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateAppResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateAppResponseStatus2), TypeInfoPropertyName = "CreateAppResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateAppResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateAppResponseStatus3), TypeInfoPropertyName = "CreateAppResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateAppResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateAppResponseStatus4), TypeInfoPropertyName = "CreateAppResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetAppResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetAppResponseStatus), TypeInfoPropertyName = "GetAppResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetAppResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetAppResponseStatus2), TypeInfoPropertyName = "GetAppResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetAppResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetAppResponseStatus3), TypeInfoPropertyName = "GetAppResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetAppResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetAppResponseStatus4), TypeInfoPropertyName = "GetAppResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateAppResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateAppResponseStatus), TypeInfoPropertyName = "UpdateAppResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateAppResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateAppResponseStatus2), TypeInfoPropertyName = "UpdateAppResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateAppResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateAppResponseStatus3), TypeInfoPropertyName = "UpdateAppResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateAppResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateAppResponseStatus4), TypeInfoPropertyName = "UpdateAppResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateAppResponse5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateAppResponseStatus5), TypeInfoPropertyName = "UpdateAppResponseStatus52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteAppResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteAppResponseStatus), TypeInfoPropertyName = "DeleteAppResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteAppResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteAppResponseStatus2), TypeInfoPropertyName = "DeleteAppResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteAppResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteAppResponseStatus3), TypeInfoPropertyName = "DeleteAppResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteAppResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteAppResponseStatus4), TypeInfoPropertyName = "DeleteAppResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteAppResponse5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteAppResponseStatus5), TypeInfoPropertyName = "DeleteAppResponseStatus52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf), TypeInfoPropertyName = "AllOfPaginatedResponseBaseListAppsResponse22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppsResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppsResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppsResponseStatus), TypeInfoPropertyName = "ListAppsResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppsResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppsResponseStatus2), TypeInfoPropertyName = "ListAppsResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppsResponse5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppsResponseStatus3), TypeInfoPropertyName = "ListAppsResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf), TypeInfoPropertyName = "AllOfPaginatedResponseBaseListAppUsagesResponse22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppUsagesResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppUsagesResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppUsagesResponseStatus), TypeInfoPropertyName = "ListAppUsagesResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppUsagesResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppUsagesResponseStatus2), TypeInfoPropertyName = "ListAppUsagesResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppUsagesResponse5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppUsagesResponseStatus3), TypeInfoPropertyName = "ListAppUsagesResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppUsagesResponse6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppUsagesResponseStatus4), TypeInfoPropertyName = "ListAppUsagesResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.TestAppAuthResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.TestAppAuthResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.TestAppAuthResponseStatus), TypeInfoPropertyName = "TestAppAuthResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.TestAppAuthResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.TestAppAuthResponseStatus2), TypeInfoPropertyName = "TestAppAuthResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.TestAppAuthResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.TestAppAuthResponseStatus3), TypeInfoPropertyName = "TestAppAuthResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.TestAppAuthResponse5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.TestAppAuthResponseStatus4), TypeInfoPropertyName = "TestAppAuthResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmConfigResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmConfigResponseStatus), TypeInfoPropertyName = "GetCrmConfigResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmConfigResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmConfigResponseStatus2), TypeInfoPropertyName = "GetCrmConfigResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmConfigResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmConfigResponseStatus3), TypeInfoPropertyName = "GetCrmConfigResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateCrmConfigResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateCrmConfigResponseStatus), TypeInfoPropertyName = "UpdateCrmConfigResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateCrmConfigResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateCrmConfigResponseStatus2), TypeInfoPropertyName = "UpdateCrmConfigResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateCrmConfigResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateCrmConfigResponseStatus3), TypeInfoPropertyName = "UpdateCrmConfigResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateCrmConfigResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateCrmConfigResponseStatus4), TypeInfoPropertyName = "UpdateCrmConfigResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateCrmConfigResponse5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateCrmConfigResponseStatus5), TypeInfoPropertyName = "UpdateCrmConfigResponseStatus52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RunSyncJobResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RunSyncJobResponseStatus), TypeInfoPropertyName = "RunSyncJobResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RunSyncJobResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RunSyncJobResponseStatus2), TypeInfoPropertyName = "RunSyncJobResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RunSyncJobResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RunSyncJobResponseStatus3), TypeInfoPropertyName = "RunSyncJobResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RunSyncJobResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RunSyncJobResponseStatus4), TypeInfoPropertyName = "RunSyncJobResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetSyncJobStatusResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetSyncJobStatusResponseStatus), TypeInfoPropertyName = "GetSyncJobStatusResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetSyncJobStatusResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetSyncJobStatusResponseStatus2), TypeInfoPropertyName = "GetSyncJobStatusResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetSyncJobStatusResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetSyncJobStatusResponseStatus3), TypeInfoPropertyName = "GetSyncJobStatusResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BackfillContactAnalysisDataResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus), TypeInfoPropertyName = "BackfillContactAnalysisDataResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BackfillContactAnalysisDataResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus2), TypeInfoPropertyName = "BackfillContactAnalysisDataResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BackfillContactAnalysisDataResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus3), TypeInfoPropertyName = "BackfillContactAnalysisDataResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BackfillContactAnalysisDataResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus4), TypeInfoPropertyName = "BackfillContactAnalysisDataResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetBackfillContactJobStatusResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetBackfillContactJobStatusResponseStatus), TypeInfoPropertyName = "GetBackfillContactJobStatusResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetBackfillContactJobStatusResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetBackfillContactJobStatusResponseStatus2), TypeInfoPropertyName = "GetBackfillContactJobStatusResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetBackfillContactJobStatusResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetBackfillContactJobStatusResponseStatus3), TypeInfoPropertyName = "GetBackfillContactJobStatusResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmSchemaResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmSchemaResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmSchemaResponseStatus), TypeInfoPropertyName = "GetCrmSchemaResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmSchemaResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmSchemaResponseStatus2), TypeInfoPropertyName = "GetCrmSchemaResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmSchemaResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmSchemaResponseStatus3), TypeInfoPropertyName = "GetCrmSchemaResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmSchemaResponse5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmSchemaResponseStatus4), TypeInfoPropertyName = "GetCrmSchemaResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmSchemaResponse6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmSchemaResponseStatus5), TypeInfoPropertyName = "GetCrmSchemaResponseStatus52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmSchemaResponse7))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmSchemaResponseStatus6), TypeInfoPropertyName = "GetCrmSchemaResponseStatus62")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AlertMetricType?), TypeInfoPropertyName = "NullableAlertMetricType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AsrProvider?), TypeInfoPropertyName = "NullableAsrProvider2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] @@ -1656,8 +1908,8 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AgentRequestSttMode?), TypeInfoPropertyName = "NullableAgentRequestSttMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AgentRequestVocabSpecialization?), TypeInfoPropertyName = "NullableAgentRequestVocabSpecialization2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AgentRequestDenoisingMode?), TypeInfoPropertyName = "NullableAgentRequestDenoisingMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AgentResponse?), TypeInfoPropertyName = "NullableAgentResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AgentResponse?), TypeInfoPropertyName = "NullableAgentResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf?), TypeInfoPropertyName = "NullableAllOfStringFilterAgentListFilterChannel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AgentListFilterChannelOp?), TypeInfoPropertyName = "NullableAgentListFilterChannelOp2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AgentListFilterChannelValue?), TypeInfoPropertyName = "NullableAgentListFilterChannelValue2")] @@ -1774,7 +2026,7 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CallFilterUserSentimentValueItem?), TypeInfoPropertyName = "NullableCallFilterUserSentimentValueItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf?), TypeInfoPropertyName = "NullableAllOfEnumFilterCallFilterDataStorageSetting2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CallFilterDataStorageSettingValueItem?), TypeInfoPropertyName = "NullableCallFilterDataStorageSettingValueItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf?), TypeInfoPropertyName = "NullableAllOfStringFilterCallFilterDynamicVariable2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.StoredCallFilter?), TypeInfoPropertyName = "NullableStoredCallFilter2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf?), TypeInfoPropertyName = "NullableAllOfEnumFilterChatFilterChatStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ChatFilterChatStatusValueItem?), TypeInfoPropertyName = "NullableChatFilterChatStatusValueItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf?), TypeInfoPropertyName = "NullableAllOfEnumFilterChatFilterDisconnectionReason2")] @@ -1798,6 +2050,20 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.FinetuneExampleUtteranceVariant2Role?), TypeInfoPropertyName = "NullableFinetuneExampleUtteranceVariant2Role2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.FinetuneExampleUtteranceVariant3Role?), TypeInfoPropertyName = "NullableFinetuneExampleUtteranceVariant3Role2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.FunctionNodeVariant2Type?), TypeInfoPropertyName = "NullableFunctionNodeVariant2Type2")] + internal sealed partial class SourceGenerationContextChunk3 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + Converters = new global::System.Type[] + { + })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NullableLLMModel), TypeInfoPropertyName = "NullableLLMModel_RetellAI_NullableLLMModel")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.LLMModel?), TypeInfoPropertyName = "NullableLLMModel_RetellAI_LLMModel")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.FunctionNodeVariant2ToolType?), TypeInfoPropertyName = "NullableFunctionNodeVariant2ToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CodeNodeVariant2Type?), TypeInfoPropertyName = "NullableCodeNodeVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.KnowledgeBaseResponseStatus?), TypeInfoPropertyName = "NullableKnowledgeBaseResponseStatus2")] @@ -1968,6 +2234,27 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ContactChatType?), TypeInfoPropertyName = "NullableContactChatType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ContactChatDirection?), TypeInfoPropertyName = "NullableContactChatDirection2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ContactChatSentiment?), TypeInfoPropertyName = "NullableContactChatSentiment2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AppType?), TypeInfoPropertyName = "NullableAppType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AppConnectionStatus?), TypeInfoPropertyName = "NullableAppConnectionStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.OAuthConfigRequestType?), TypeInfoPropertyName = "NullableOAuthConfigRequestType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ApiKeyAuthConfigRequestType?), TypeInfoPropertyName = "NullableApiKeyAuthConfigRequestType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AccessTokenAuthConfigRequestType?), TypeInfoPropertyName = "NullableAccessTokenAuthConfigRequestType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BasicAuthConfigRequestType?), TypeInfoPropertyName = "NullableBasicAuthConfigRequestType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RefreshTokenAuthConfigRequestType?), TypeInfoPropertyName = "NullableRefreshTokenAuthConfigRequestType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AuthConfigRequest?), TypeInfoPropertyName = "NullableAuthConfigRequest2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.OAuthConfigResponseType?), TypeInfoPropertyName = "NullableOAuthConfigResponseType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ApiKeyAuthConfigResponseType?), TypeInfoPropertyName = "NullableApiKeyAuthConfigResponseType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AccessTokenAuthConfigResponseType?), TypeInfoPropertyName = "NullableAccessTokenAuthConfigResponseType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BasicAuthConfigResponseType?), TypeInfoPropertyName = "NullableBasicAuthConfigResponseType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RefreshTokenAuthConfigResponseType?), TypeInfoPropertyName = "NullableRefreshTokenAuthConfigResponseType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AppAuthConfigResponse?), TypeInfoPropertyName = "NullableAppAuthConfigResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AppUsageResponse?), TypeInfoPropertyName = "NullableAppUsageResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AgentAppUsageType?), TypeInfoPropertyName = "NullableAgentAppUsageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.KnowledgeBaseAppUsageType?), TypeInfoPropertyName = "NullableKnowledgeBaseAppUsageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CRMCustomFieldSchemaType?), TypeInfoPropertyName = "NullableCRMCustomFieldSchemaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CRMAnalysisDataMappingUpdateMode?), TypeInfoPropertyName = "NullableCRMAnalysisDataMappingUpdateMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.JobStatusStatus?), TypeInfoPropertyName = "NullableJobStatusStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.JobStatusTriggeredBy?), TypeInfoPropertyName = "NullableJobStatusTriggeredBy2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DashboardSource?), TypeInfoPropertyName = "NullableDashboardSource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ChartGroupItem?), TypeInfoPropertyName = "NullableChartGroupItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ChartGroupItemVariant1Type?), TypeInfoPropertyName = "NullableChartGroupItemVariant1Type2")] @@ -1986,12 +2273,15 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateLiveCallRequestFieldsToOverrideDataStorageSetting?), TypeInfoPropertyName = "NullableUpdateLiveCallRequestFieldsToOverrideDataStorageSetting2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListTestCaseDefinitionsType?), TypeInfoPropertyName = "NullableListTestCaseDefinitionsType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListBatchTestsType?), TypeInfoPropertyName = "NullableListBatchTestsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsSortOrder?), TypeInfoPropertyName = "NullableListAgentVersionsSortOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentsSortOrder?), TypeInfoPropertyName = "NullableListAgentsSortOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListConversationFlowComponentsSortOrder?), TypeInfoPropertyName = "NullableListConversationFlowComponentsSortOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListConversationFlowsSortOrder?), TypeInfoPropertyName = "NullableListConversationFlowsSortOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListPhoneNumbersSortOrder?), TypeInfoPropertyName = "NullableListPhoneNumbersSortOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListRetellLLMSortOrder?), TypeInfoPropertyName = "NullableListRetellLLMSortOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListExportRequestsSortOrder?), TypeInfoPropertyName = "NullableListExportRequestsSortOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppsSortOrder?), TypeInfoPropertyName = "NullableListAppsSortOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppUsagesSortOrder?), TypeInfoPropertyName = "NullableListAppUsagesSortOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus?), TypeInfoPropertyName = "NullableAddKnowledgeBaseSourcesResponseStatus2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus2?), TypeInfoPropertyName = "NullableAddKnowledgeBaseSourcesResponseStatus22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus3?), TypeInfoPropertyName = "NullableAddKnowledgeBaseSourcesResponseStatus32")] @@ -2050,20 +2340,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetTestRunResponseStatus3?), TypeInfoPropertyName = "NullableGetTestRunResponseStatus32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetTestRunResponseStatus4?), TypeInfoPropertyName = "NullableGetTestRunResponseStatus42")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetTestRunResponseStatus5?), TypeInfoPropertyName = "NullableGetTestRunResponseStatus52")] - internal sealed partial class SourceGenerationContextChunk3 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NullableLLMModel), TypeInfoPropertyName = "NullableLLMModel_RetellAI_NullableLLMModel")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.LLMModel?), TypeInfoPropertyName = "NullableLLMModel_RetellAI_LLMModel")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf?), TypeInfoPropertyName = "NullableAllOfPaginatedResponseBaseListTestRunsResponse22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListTestRunsResponseStatus?), TypeInfoPropertyName = "NullableListTestRunsResponseStatus2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListTestRunsResponseStatus2?), TypeInfoPropertyName = "NullableListTestRunsResponseStatus22")] @@ -2159,6 +2435,13 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.EndChatResponseStatus2?), TypeInfoPropertyName = "NullableEndChatResponseStatus22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.EndChatResponseStatus3?), TypeInfoPropertyName = "NullableEndChatResponseStatus32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.EndChatResponseStatus4?), TypeInfoPropertyName = "NullableEndChatResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf?), TypeInfoPropertyName = "NullableAllOfPaginatedResponseBaseListAgentVersionsResponse22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsResponseStatus?), TypeInfoPropertyName = "NullableListAgentVersionsResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsResponseStatus2?), TypeInfoPropertyName = "NullableListAgentVersionsResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsResponseStatus3?), TypeInfoPropertyName = "NullableListAgentVersionsResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsResponseStatus4?), TypeInfoPropertyName = "NullableListAgentVersionsResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsResponseStatus5?), TypeInfoPropertyName = "NullableListAgentVersionsResponseStatus52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAgentVersionsResponseStatus6?), TypeInfoPropertyName = "NullableListAgentVersionsResponseStatus62")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetAgentVersionsResponseStatus?), TypeInfoPropertyName = "NullableGetAgentVersionsResponseStatus2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetAgentVersionsResponseStatus2?), TypeInfoPropertyName = "NullableGetAgentVersionsResponseStatus22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetAgentVersionsResponseStatus3?), TypeInfoPropertyName = "NullableGetAgentVersionsResponseStatus32")] @@ -2279,6 +2562,20 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteAgentVersionResponseStatus4?), TypeInfoPropertyName = "NullableDeleteAgentVersionResponseStatus42")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteAgentVersionResponseStatus5?), TypeInfoPropertyName = "NullableDeleteAgentVersionResponseStatus52")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RerunCallAnalysisResponseStatus?), TypeInfoPropertyName = "NullableRerunCallAnalysisResponseStatus2_3")] + internal sealed partial class SourceGenerationContextChunk4 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + Converters = new global::System.Type[] + { + })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.NullableLLMModel), TypeInfoPropertyName = "NullableLLMModel_RetellAI_NullableLLMModel")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.LLMModel?), TypeInfoPropertyName = "NullableLLMModel_RetellAI_LLMModel")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RerunCallAnalysisResponseStatus2?), TypeInfoPropertyName = "NullableRerunCallAnalysisResponseStatus22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RerunCallAnalysisResponseStatus3?), TypeInfoPropertyName = "NullableRerunCallAnalysisResponseStatus32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RerunCallAnalysisResponseStatus4?), TypeInfoPropertyName = "NullableRerunCallAnalysisResponseStatus42")] @@ -2378,6 +2675,96 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.StopCallResponseStatus2?), TypeInfoPropertyName = "NullableStopCallResponseStatus22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.StopCallResponseStatus3?), TypeInfoPropertyName = "NullableStopCallResponseStatus32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.StopCallResponseStatus4?), TypeInfoPropertyName = "NullableStopCallResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateContactResponseStatus?), TypeInfoPropertyName = "NullableCreateContactResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateContactResponseStatus2?), TypeInfoPropertyName = "NullableCreateContactResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateContactResponseStatus3?), TypeInfoPropertyName = "NullableCreateContactResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateContactResponseStatus4?), TypeInfoPropertyName = "NullableCreateContactResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactResponseStatus?), TypeInfoPropertyName = "NullableGetContactResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactResponseStatus2?), TypeInfoPropertyName = "NullableGetContactResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactResponseStatus3?), TypeInfoPropertyName = "NullableGetContactResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactResponseStatus4?), TypeInfoPropertyName = "NullableGetContactResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactByPhoneResponseStatus?), TypeInfoPropertyName = "NullableGetContactByPhoneResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactByPhoneResponseStatus2?), TypeInfoPropertyName = "NullableGetContactByPhoneResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactByPhoneResponseStatus3?), TypeInfoPropertyName = "NullableGetContactByPhoneResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactByPhoneResponseStatus4?), TypeInfoPropertyName = "NullableGetContactByPhoneResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetContactByPhoneResponseStatus5?), TypeInfoPropertyName = "NullableGetContactByPhoneResponseStatus52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateContactResponseStatus?), TypeInfoPropertyName = "NullableUpdateContactResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateContactResponseStatus2?), TypeInfoPropertyName = "NullableUpdateContactResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateContactResponseStatus3?), TypeInfoPropertyName = "NullableUpdateContactResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateContactResponseStatus4?), TypeInfoPropertyName = "NullableUpdateContactResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateContactResponseStatus5?), TypeInfoPropertyName = "NullableUpdateContactResponseStatus52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteContactResponseStatus?), TypeInfoPropertyName = "NullableDeleteContactResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteContactResponseStatus2?), TypeInfoPropertyName = "NullableDeleteContactResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteContactResponseStatus3?), TypeInfoPropertyName = "NullableDeleteContactResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteContactResponseStatus4?), TypeInfoPropertyName = "NullableDeleteContactResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteContactResponseStatus5?), TypeInfoPropertyName = "NullableDeleteContactResponseStatus52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactsResponseStatus?), TypeInfoPropertyName = "NullableListContactsResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactsResponseStatus2?), TypeInfoPropertyName = "NullableListContactsResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactsResponseStatus3?), TypeInfoPropertyName = "NullableListContactsResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactsResponseStatus4?), TypeInfoPropertyName = "NullableListContactsResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactConversationsResponseStatus?), TypeInfoPropertyName = "NullableListContactConversationsResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactConversationsResponseStatus2?), TypeInfoPropertyName = "NullableListContactConversationsResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactConversationsResponseStatus3?), TypeInfoPropertyName = "NullableListContactConversationsResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListContactConversationsResponseStatus4?), TypeInfoPropertyName = "NullableListContactConversationsResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateAppResponseStatus?), TypeInfoPropertyName = "NullableCreateAppResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateAppResponseStatus2?), TypeInfoPropertyName = "NullableCreateAppResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateAppResponseStatus3?), TypeInfoPropertyName = "NullableCreateAppResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.CreateAppResponseStatus4?), TypeInfoPropertyName = "NullableCreateAppResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetAppResponseStatus?), TypeInfoPropertyName = "NullableGetAppResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetAppResponseStatus2?), TypeInfoPropertyName = "NullableGetAppResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetAppResponseStatus3?), TypeInfoPropertyName = "NullableGetAppResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetAppResponseStatus4?), TypeInfoPropertyName = "NullableGetAppResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateAppResponseStatus?), TypeInfoPropertyName = "NullableUpdateAppResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateAppResponseStatus2?), TypeInfoPropertyName = "NullableUpdateAppResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateAppResponseStatus3?), TypeInfoPropertyName = "NullableUpdateAppResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateAppResponseStatus4?), TypeInfoPropertyName = "NullableUpdateAppResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateAppResponseStatus5?), TypeInfoPropertyName = "NullableUpdateAppResponseStatus52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteAppResponseStatus?), TypeInfoPropertyName = "NullableDeleteAppResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteAppResponseStatus2?), TypeInfoPropertyName = "NullableDeleteAppResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteAppResponseStatus3?), TypeInfoPropertyName = "NullableDeleteAppResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteAppResponseStatus4?), TypeInfoPropertyName = "NullableDeleteAppResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.DeleteAppResponseStatus5?), TypeInfoPropertyName = "NullableDeleteAppResponseStatus52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf?), TypeInfoPropertyName = "NullableAllOfPaginatedResponseBaseListAppsResponse22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppsResponseStatus?), TypeInfoPropertyName = "NullableListAppsResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppsResponseStatus2?), TypeInfoPropertyName = "NullableListAppsResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppsResponseStatus3?), TypeInfoPropertyName = "NullableListAppsResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.AllOf?), TypeInfoPropertyName = "NullableAllOfPaginatedResponseBaseListAppUsagesResponse22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppUsagesResponseStatus?), TypeInfoPropertyName = "NullableListAppUsagesResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppUsagesResponseStatus2?), TypeInfoPropertyName = "NullableListAppUsagesResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppUsagesResponseStatus3?), TypeInfoPropertyName = "NullableListAppUsagesResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.ListAppUsagesResponseStatus4?), TypeInfoPropertyName = "NullableListAppUsagesResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.TestAppAuthResponseStatus?), TypeInfoPropertyName = "NullableTestAppAuthResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.TestAppAuthResponseStatus2?), TypeInfoPropertyName = "NullableTestAppAuthResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.TestAppAuthResponseStatus3?), TypeInfoPropertyName = "NullableTestAppAuthResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.TestAppAuthResponseStatus4?), TypeInfoPropertyName = "NullableTestAppAuthResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmConfigResponseStatus?), TypeInfoPropertyName = "NullableGetCrmConfigResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmConfigResponseStatus2?), TypeInfoPropertyName = "NullableGetCrmConfigResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmConfigResponseStatus3?), TypeInfoPropertyName = "NullableGetCrmConfigResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateCrmConfigResponseStatus?), TypeInfoPropertyName = "NullableUpdateCrmConfigResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateCrmConfigResponseStatus2?), TypeInfoPropertyName = "NullableUpdateCrmConfigResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateCrmConfigResponseStatus3?), TypeInfoPropertyName = "NullableUpdateCrmConfigResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateCrmConfigResponseStatus4?), TypeInfoPropertyName = "NullableUpdateCrmConfigResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.UpdateCrmConfigResponseStatus5?), TypeInfoPropertyName = "NullableUpdateCrmConfigResponseStatus52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RunSyncJobResponseStatus?), TypeInfoPropertyName = "NullableRunSyncJobResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RunSyncJobResponseStatus2?), TypeInfoPropertyName = "NullableRunSyncJobResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RunSyncJobResponseStatus3?), TypeInfoPropertyName = "NullableRunSyncJobResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.RunSyncJobResponseStatus4?), TypeInfoPropertyName = "NullableRunSyncJobResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetSyncJobStatusResponseStatus?), TypeInfoPropertyName = "NullableGetSyncJobStatusResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetSyncJobStatusResponseStatus2?), TypeInfoPropertyName = "NullableGetSyncJobStatusResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetSyncJobStatusResponseStatus3?), TypeInfoPropertyName = "NullableGetSyncJobStatusResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus?), TypeInfoPropertyName = "NullableBackfillContactAnalysisDataResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus2?), TypeInfoPropertyName = "NullableBackfillContactAnalysisDataResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus3?), TypeInfoPropertyName = "NullableBackfillContactAnalysisDataResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus4?), TypeInfoPropertyName = "NullableBackfillContactAnalysisDataResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetBackfillContactJobStatusResponseStatus?), TypeInfoPropertyName = "NullableGetBackfillContactJobStatusResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetBackfillContactJobStatusResponseStatus2?), TypeInfoPropertyName = "NullableGetBackfillContactJobStatusResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetBackfillContactJobStatusResponseStatus3?), TypeInfoPropertyName = "NullableGetBackfillContactJobStatusResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmSchemaResponseStatus?), TypeInfoPropertyName = "NullableGetCrmSchemaResponseStatus2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmSchemaResponseStatus2?), TypeInfoPropertyName = "NullableGetCrmSchemaResponseStatus22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmSchemaResponseStatus3?), TypeInfoPropertyName = "NullableGetCrmSchemaResponseStatus32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmSchemaResponseStatus4?), TypeInfoPropertyName = "NullableGetCrmSchemaResponseStatus42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmSchemaResponseStatus5?), TypeInfoPropertyName = "NullableGetCrmSchemaResponseStatus52")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::RetellAI.GetCrmSchemaResponseStatus6?), TypeInfoPropertyName = "NullableGetCrmSchemaResponseStatus62")] [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))] @@ -2421,7 +2808,6 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -2458,11 +2844,15 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -2477,7 +2867,9 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - internal sealed partial class SourceGenerationContextChunk4 : global::System.Text.Json.Serialization.JsonSerializerContext + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + internal sealed partial class SourceGenerationContextChunk5 : global::System.Text.Json.Serialization.JsonSerializerContext { } /// @@ -2539,6 +2931,7 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::RetellAI.JsonConverters.CreateOrganizationRequestJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.ValueFilterJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.CustomFieldFilterJsonConverter()); + options.Converters.Add(new global::RetellAI.JsonConverters.StoredCallFilterJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.ElseEdgeJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.EndNodeJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.ExtractDynamicVariablesNodeJsonConverter()); @@ -2592,6 +2985,9 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::RetellAI.JsonConverters.IvrActionJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.ConductorOverageConfigJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.ContactConversationJsonConverter()); + options.Converters.Add(new global::RetellAI.JsonConverters.AuthConfigRequestJsonConverter()); + options.Converters.Add(new global::RetellAI.JsonConverters.AppAuthConfigResponseJsonConverter()); + options.Converters.Add(new global::RetellAI.JsonConverters.AppUsageResponseJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.ChartGroupItemJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.AllOfJsonConverter()); @@ -2622,7 +3018,6 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::RetellAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::RetellAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.AllOfJsonConverter()); @@ -2654,9 +3049,11 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::RetellAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::RetellAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::RetellAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.AllOfJsonConverter()); @@ -2666,6 +3063,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::RetellAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::RetellAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::RetellAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::RetellAI.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); @@ -3635,6 +4034,78 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::RetellAI.ContactChatSentiment?) + || typeToConvert == typeof(global::RetellAI.AppType) + + || typeToConvert == typeof(global::RetellAI.AppType?) + + || typeToConvert == typeof(global::RetellAI.AppConnectionStatus) + + || typeToConvert == typeof(global::RetellAI.AppConnectionStatus?) + + || typeToConvert == typeof(global::RetellAI.OAuthConfigRequestType) + + || typeToConvert == typeof(global::RetellAI.OAuthConfigRequestType?) + + || typeToConvert == typeof(global::RetellAI.ApiKeyAuthConfigRequestType) + + || typeToConvert == typeof(global::RetellAI.ApiKeyAuthConfigRequestType?) + + || typeToConvert == typeof(global::RetellAI.AccessTokenAuthConfigRequestType) + + || typeToConvert == typeof(global::RetellAI.AccessTokenAuthConfigRequestType?) + + || typeToConvert == typeof(global::RetellAI.BasicAuthConfigRequestType) + + || typeToConvert == typeof(global::RetellAI.BasicAuthConfigRequestType?) + + || typeToConvert == typeof(global::RetellAI.RefreshTokenAuthConfigRequestType) + + || typeToConvert == typeof(global::RetellAI.RefreshTokenAuthConfigRequestType?) + + || typeToConvert == typeof(global::RetellAI.OAuthConfigResponseType) + + || typeToConvert == typeof(global::RetellAI.OAuthConfigResponseType?) + + || typeToConvert == typeof(global::RetellAI.ApiKeyAuthConfigResponseType) + + || typeToConvert == typeof(global::RetellAI.ApiKeyAuthConfigResponseType?) + + || typeToConvert == typeof(global::RetellAI.AccessTokenAuthConfigResponseType) + + || typeToConvert == typeof(global::RetellAI.AccessTokenAuthConfigResponseType?) + + || typeToConvert == typeof(global::RetellAI.BasicAuthConfigResponseType) + + || typeToConvert == typeof(global::RetellAI.BasicAuthConfigResponseType?) + + || typeToConvert == typeof(global::RetellAI.RefreshTokenAuthConfigResponseType) + + || typeToConvert == typeof(global::RetellAI.RefreshTokenAuthConfigResponseType?) + + || typeToConvert == typeof(global::RetellAI.AgentAppUsageType) + + || typeToConvert == typeof(global::RetellAI.AgentAppUsageType?) + + || typeToConvert == typeof(global::RetellAI.KnowledgeBaseAppUsageType) + + || typeToConvert == typeof(global::RetellAI.KnowledgeBaseAppUsageType?) + + || typeToConvert == typeof(global::RetellAI.CRMCustomFieldSchemaType) + + || typeToConvert == typeof(global::RetellAI.CRMCustomFieldSchemaType?) + + || typeToConvert == typeof(global::RetellAI.CRMAnalysisDataMappingUpdateMode) + + || typeToConvert == typeof(global::RetellAI.CRMAnalysisDataMappingUpdateMode?) + + || typeToConvert == typeof(global::RetellAI.JobStatusStatus) + + || typeToConvert == typeof(global::RetellAI.JobStatusStatus?) + + || typeToConvert == typeof(global::RetellAI.JobStatusTriggeredBy) + + || typeToConvert == typeof(global::RetellAI.JobStatusTriggeredBy?) + || typeToConvert == typeof(global::RetellAI.DashboardSource) || typeToConvert == typeof(global::RetellAI.DashboardSource?) @@ -3691,6 +4162,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::RetellAI.ListBatchTestsType?) + || typeToConvert == typeof(global::RetellAI.ListAgentVersionsSortOrder) + + || typeToConvert == typeof(global::RetellAI.ListAgentVersionsSortOrder?) + || typeToConvert == typeof(global::RetellAI.ListAgentsSortOrder) || typeToConvert == typeof(global::RetellAI.ListAgentsSortOrder?) @@ -3715,6 +4190,14 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::RetellAI.ListExportRequestsSortOrder?) + || typeToConvert == typeof(global::RetellAI.ListAppsSortOrder) + + || typeToConvert == typeof(global::RetellAI.ListAppsSortOrder?) + + || typeToConvert == typeof(global::RetellAI.ListAppUsagesSortOrder) + + || typeToConvert == typeof(global::RetellAI.ListAppUsagesSortOrder?) + || typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus) || typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus?) @@ -4315,6 +4798,30 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::RetellAI.EndChatResponseStatus4?) + || typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus) + + || typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus?) + + || typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus2) + + || typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus2?) + + || typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus3) + + || typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus3?) + + || typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus4) + + || typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus4?) + + || typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus5) + + || typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus5?) + + || typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus6) + + || typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus6?) + || typeToConvert == typeof(global::RetellAI.GetAgentVersionsResponseStatus) || typeToConvert == typeof(global::RetellAI.GetAgentVersionsResponseStatus?) @@ -5153,6201 +5660,7703 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::RetellAI.StopCallResponseStatus4) - || typeToConvert == typeof(global::RetellAI.StopCallResponseStatus4?); - } + || typeToConvert == typeof(global::RetellAI.StopCallResponseStatus4?) - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - if (typeToConvert == typeof(global::RetellAI.AlertMetricType)) - { - return new global::RetellAI.JsonConverters.AlertMetricTypeJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.CreateContactResponseStatus) - if (typeToConvert == typeof(global::RetellAI.AlertMetricType?)) - { - return new global::RetellAI.JsonConverters.AlertMetricTypeNullableJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.CreateContactResponseStatus?) - if (typeToConvert == typeof(global::RetellAI.AsrProvider)) - { - return new global::RetellAI.JsonConverters.AsrProviderJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.CreateContactResponseStatus2) - if (typeToConvert == typeof(global::RetellAI.AsrProvider?)) - { - return new global::RetellAI.JsonConverters.AsrProviderNullableJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.CreateContactResponseStatus2?) - if (typeToConvert == typeof(global::RetellAI.AlertFilterStatusCodeValueItem)) - { - return new global::RetellAI.JsonConverters.AlertFilterStatusCodeValueItemJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.CreateContactResponseStatus3) - if (typeToConvert == typeof(global::RetellAI.AlertFilterStatusCodeValueItem?)) - { - return new global::RetellAI.JsonConverters.AlertFilterStatusCodeValueItemNullableJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.CreateContactResponseStatus3?) - if (typeToConvert == typeof(global::RetellAI.AlertFilterErrorCodeItem)) - { - return new global::RetellAI.JsonConverters.AlertFilterErrorCodeItemJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.CreateContactResponseStatus4) - if (typeToConvert == typeof(global::RetellAI.AlertFilterErrorCodeItem?)) - { - return new global::RetellAI.JsonConverters.AlertFilterErrorCodeItemNullableJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.CreateContactResponseStatus4?) - if (typeToConvert == typeof(global::RetellAI.AlertIncidentResponseThresholdType)) - { - return new global::RetellAI.JsonConverters.AlertIncidentResponseThresholdTypeJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.GetContactResponseStatus) - if (typeToConvert == typeof(global::RetellAI.AlertIncidentResponseThresholdType?)) - { - return new global::RetellAI.JsonConverters.AlertIncidentResponseThresholdTypeNullableJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.GetContactResponseStatus?) - if (typeToConvert == typeof(global::RetellAI.AlertIncidentResponseComparator)) - { - return new global::RetellAI.JsonConverters.AlertIncidentResponseComparatorJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.GetContactResponseStatus2) - if (typeToConvert == typeof(global::RetellAI.AlertIncidentResponseComparator?)) - { - return new global::RetellAI.JsonConverters.AlertIncidentResponseComparatorNullableJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.GetContactResponseStatus2?) - if (typeToConvert == typeof(global::RetellAI.AlertIncidentResponseFrequency)) - { - return new global::RetellAI.JsonConverters.AlertIncidentResponseFrequencyJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.GetContactResponseStatus3) - if (typeToConvert == typeof(global::RetellAI.AlertIncidentResponseFrequency?)) - { - return new global::RetellAI.JsonConverters.AlertIncidentResponseFrequencyNullableJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.GetContactResponseStatus3?) - if (typeToConvert == typeof(global::RetellAI.AlertIncidentResponseWindow)) - { - return new global::RetellAI.JsonConverters.AlertIncidentResponseWindowJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.GetContactResponseStatus4) - if (typeToConvert == typeof(global::RetellAI.AlertIncidentResponseWindow?)) - { - return new global::RetellAI.JsonConverters.AlertIncidentResponseWindowNullableJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.GetContactResponseStatus4?) - if (typeToConvert == typeof(global::RetellAI.AlertRuleRequestThresholdType)) - { - return new global::RetellAI.JsonConverters.AlertRuleRequestThresholdTypeJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus) - if (typeToConvert == typeof(global::RetellAI.AlertRuleRequestThresholdType?)) - { - return new global::RetellAI.JsonConverters.AlertRuleRequestThresholdTypeNullableJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus?) - if (typeToConvert == typeof(global::RetellAI.AlertRuleRequestComparator)) - { - return new global::RetellAI.JsonConverters.AlertRuleRequestComparatorJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus2) - if (typeToConvert == typeof(global::RetellAI.AlertRuleRequestComparator?)) - { - return new global::RetellAI.JsonConverters.AlertRuleRequestComparatorNullableJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus2?) - if (typeToConvert == typeof(global::RetellAI.AlertRuleRequestFrequency)) - { - return new global::RetellAI.JsonConverters.AlertRuleRequestFrequencyJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus3) - if (typeToConvert == typeof(global::RetellAI.AlertRuleRequestFrequency?)) - { - return new global::RetellAI.JsonConverters.AlertRuleRequestFrequencyNullableJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus3?) - if (typeToConvert == typeof(global::RetellAI.AlertRuleRequestWindow)) - { - return new global::RetellAI.JsonConverters.AlertRuleRequestWindowJsonConverter(); - } + || typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus4) - if (typeToConvert == typeof(global::RetellAI.AlertRuleRequestWindow?)) + || typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus4?) + + || typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus5) + + || typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus5?) + + || typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus) + + || typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus?) + + || typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus2) + + || typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus2?) + + || typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus3) + + || typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus3?) + + || typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus4) + + || typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus4?) + + || typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus5) + + || typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus5?) + + || typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus) + + || typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus?) + + || typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus2) + + || typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus2?) + + || typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus3) + + || typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus3?) + + || typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus4) + + || typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus4?) + + || typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus5) + + || typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus5?) + + || typeToConvert == typeof(global::RetellAI.ListContactsResponseStatus) + + || typeToConvert == typeof(global::RetellAI.ListContactsResponseStatus?) + + || typeToConvert == typeof(global::RetellAI.ListContactsResponseStatus2) + + || typeToConvert == typeof(global::RetellAI.ListContactsResponseStatus2?) + + || typeToConvert == typeof(global::RetellAI.ListContactsResponseStatus3) + + || typeToConvert == typeof(global::RetellAI.ListContactsResponseStatus3?) + + || typeToConvert == typeof(global::RetellAI.ListContactsResponseStatus4) + + || typeToConvert == typeof(global::RetellAI.ListContactsResponseStatus4?) + + || typeToConvert == typeof(global::RetellAI.ListContactConversationsResponseStatus) + + || typeToConvert == typeof(global::RetellAI.ListContactConversationsResponseStatus?) + + || typeToConvert == typeof(global::RetellAI.ListContactConversationsResponseStatus2) + + || typeToConvert == typeof(global::RetellAI.ListContactConversationsResponseStatus2?) + + || typeToConvert == typeof(global::RetellAI.ListContactConversationsResponseStatus3) + + || typeToConvert == typeof(global::RetellAI.ListContactConversationsResponseStatus3?) + + || typeToConvert == typeof(global::RetellAI.ListContactConversationsResponseStatus4) + + || typeToConvert == typeof(global::RetellAI.ListContactConversationsResponseStatus4?) + + || typeToConvert == typeof(global::RetellAI.CreateAppResponseStatus) + + || typeToConvert == typeof(global::RetellAI.CreateAppResponseStatus?) + + || typeToConvert == typeof(global::RetellAI.CreateAppResponseStatus2) + + || typeToConvert == typeof(global::RetellAI.CreateAppResponseStatus2?) + + || typeToConvert == typeof(global::RetellAI.CreateAppResponseStatus3) + + || typeToConvert == typeof(global::RetellAI.CreateAppResponseStatus3?) + + || typeToConvert == typeof(global::RetellAI.CreateAppResponseStatus4) + + || typeToConvert == typeof(global::RetellAI.CreateAppResponseStatus4?) + + || typeToConvert == typeof(global::RetellAI.GetAppResponseStatus) + + || typeToConvert == typeof(global::RetellAI.GetAppResponseStatus?) + + || typeToConvert == typeof(global::RetellAI.GetAppResponseStatus2) + + || typeToConvert == typeof(global::RetellAI.GetAppResponseStatus2?) + + || typeToConvert == typeof(global::RetellAI.GetAppResponseStatus3) + + || typeToConvert == typeof(global::RetellAI.GetAppResponseStatus3?) + + || typeToConvert == typeof(global::RetellAI.GetAppResponseStatus4) + + || typeToConvert == typeof(global::RetellAI.GetAppResponseStatus4?) + + || typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus) + + || typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus?) + + || typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus2) + + || typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus2?) + + || typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus3) + + || typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus3?) + + || typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus4) + + || typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus4?) + + || typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus5) + + || typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus5?) + + || typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus) + + || typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus?) + + || typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus2) + + || typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus2?) + + || typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus3) + + || typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus3?) + + || typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus4) + + || typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus4?) + + || typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus5) + + || typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus5?) + + || typeToConvert == typeof(global::RetellAI.ListAppsResponseStatus) + + || typeToConvert == typeof(global::RetellAI.ListAppsResponseStatus?) + + || typeToConvert == typeof(global::RetellAI.ListAppsResponseStatus2) + + || typeToConvert == typeof(global::RetellAI.ListAppsResponseStatus2?) + + || typeToConvert == typeof(global::RetellAI.ListAppsResponseStatus3) + + || typeToConvert == typeof(global::RetellAI.ListAppsResponseStatus3?) + + || typeToConvert == typeof(global::RetellAI.ListAppUsagesResponseStatus) + + || typeToConvert == typeof(global::RetellAI.ListAppUsagesResponseStatus?) + + || typeToConvert == typeof(global::RetellAI.ListAppUsagesResponseStatus2) + + || typeToConvert == typeof(global::RetellAI.ListAppUsagesResponseStatus2?) + + || typeToConvert == typeof(global::RetellAI.ListAppUsagesResponseStatus3) + + || typeToConvert == typeof(global::RetellAI.ListAppUsagesResponseStatus3?) + + || typeToConvert == typeof(global::RetellAI.ListAppUsagesResponseStatus4) + + || typeToConvert == typeof(global::RetellAI.ListAppUsagesResponseStatus4?) + + || typeToConvert == typeof(global::RetellAI.TestAppAuthResponseStatus) + + || typeToConvert == typeof(global::RetellAI.TestAppAuthResponseStatus?) + + || typeToConvert == typeof(global::RetellAI.TestAppAuthResponseStatus2) + + || typeToConvert == typeof(global::RetellAI.TestAppAuthResponseStatus2?) + + || typeToConvert == typeof(global::RetellAI.TestAppAuthResponseStatus3) + + || typeToConvert == typeof(global::RetellAI.TestAppAuthResponseStatus3?) + + || typeToConvert == typeof(global::RetellAI.TestAppAuthResponseStatus4) + + || typeToConvert == typeof(global::RetellAI.TestAppAuthResponseStatus4?) + + || typeToConvert == typeof(global::RetellAI.GetCrmConfigResponseStatus) + + || typeToConvert == typeof(global::RetellAI.GetCrmConfigResponseStatus?) + + || typeToConvert == typeof(global::RetellAI.GetCrmConfigResponseStatus2) + + || typeToConvert == typeof(global::RetellAI.GetCrmConfigResponseStatus2?) + + || typeToConvert == typeof(global::RetellAI.GetCrmConfigResponseStatus3) + + || typeToConvert == typeof(global::RetellAI.GetCrmConfigResponseStatus3?) + + || typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus) + + || typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus?) + + || typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus2) + + || typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus2?) + + || typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus3) + + || typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus3?) + + || typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus4) + + || typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus4?) + + || typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus5) + + || typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus5?) + + || typeToConvert == typeof(global::RetellAI.RunSyncJobResponseStatus) + + || typeToConvert == typeof(global::RetellAI.RunSyncJobResponseStatus?) + + || typeToConvert == typeof(global::RetellAI.RunSyncJobResponseStatus2) + + || typeToConvert == typeof(global::RetellAI.RunSyncJobResponseStatus2?) + + || typeToConvert == typeof(global::RetellAI.RunSyncJobResponseStatus3) + + || typeToConvert == typeof(global::RetellAI.RunSyncJobResponseStatus3?) + + || typeToConvert == typeof(global::RetellAI.RunSyncJobResponseStatus4) + + || typeToConvert == typeof(global::RetellAI.RunSyncJobResponseStatus4?) + + || typeToConvert == typeof(global::RetellAI.GetSyncJobStatusResponseStatus) + + || typeToConvert == typeof(global::RetellAI.GetSyncJobStatusResponseStatus?) + + || typeToConvert == typeof(global::RetellAI.GetSyncJobStatusResponseStatus2) + + || typeToConvert == typeof(global::RetellAI.GetSyncJobStatusResponseStatus2?) + + || typeToConvert == typeof(global::RetellAI.GetSyncJobStatusResponseStatus3) + + || typeToConvert == typeof(global::RetellAI.GetSyncJobStatusResponseStatus3?) + + || typeToConvert == typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus) + + || typeToConvert == typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus?) + + || typeToConvert == typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus2) + + || typeToConvert == typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus2?) + + || typeToConvert == typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus3) + + || typeToConvert == typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus3?) + + || typeToConvert == typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus4) + + || typeToConvert == typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus4?) + + || typeToConvert == typeof(global::RetellAI.GetBackfillContactJobStatusResponseStatus) + + || typeToConvert == typeof(global::RetellAI.GetBackfillContactJobStatusResponseStatus?) + + || typeToConvert == typeof(global::RetellAI.GetBackfillContactJobStatusResponseStatus2) + + || typeToConvert == typeof(global::RetellAI.GetBackfillContactJobStatusResponseStatus2?) + + || typeToConvert == typeof(global::RetellAI.GetBackfillContactJobStatusResponseStatus3) + + || typeToConvert == typeof(global::RetellAI.GetBackfillContactJobStatusResponseStatus3?) + + || typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus) + + || typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus?) + + || typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus2) + + || typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus2?) + + || typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus3) + + || typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus3?) + + || typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus4) + + || typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus4?) + + || typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus5) + + || typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus5?) + + || typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus6) + + || typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus6?); + } + + public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + if (typeToConvert == typeof(global::RetellAI.AlertMetricType)) + { + return new global::RetellAI.JsonConverters.AlertMetricTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertMetricType?)) + { + return new global::RetellAI.JsonConverters.AlertMetricTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AsrProvider)) + { + return new global::RetellAI.JsonConverters.AsrProviderJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AsrProvider?)) + { + return new global::RetellAI.JsonConverters.AsrProviderNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertFilterStatusCodeValueItem)) + { + return new global::RetellAI.JsonConverters.AlertFilterStatusCodeValueItemJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertFilterStatusCodeValueItem?)) + { + return new global::RetellAI.JsonConverters.AlertFilterStatusCodeValueItemNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertFilterErrorCodeItem)) + { + return new global::RetellAI.JsonConverters.AlertFilterErrorCodeItemJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertFilterErrorCodeItem?)) + { + return new global::RetellAI.JsonConverters.AlertFilterErrorCodeItemNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertIncidentResponseThresholdType)) + { + return new global::RetellAI.JsonConverters.AlertIncidentResponseThresholdTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertIncidentResponseThresholdType?)) + { + return new global::RetellAI.JsonConverters.AlertIncidentResponseThresholdTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertIncidentResponseComparator)) + { + return new global::RetellAI.JsonConverters.AlertIncidentResponseComparatorJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertIncidentResponseComparator?)) + { + return new global::RetellAI.JsonConverters.AlertIncidentResponseComparatorNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertIncidentResponseFrequency)) + { + return new global::RetellAI.JsonConverters.AlertIncidentResponseFrequencyJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertIncidentResponseFrequency?)) + { + return new global::RetellAI.JsonConverters.AlertIncidentResponseFrequencyNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertIncidentResponseWindow)) + { + return new global::RetellAI.JsonConverters.AlertIncidentResponseWindowJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertIncidentResponseWindow?)) + { + return new global::RetellAI.JsonConverters.AlertIncidentResponseWindowNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertRuleRequestThresholdType)) + { + return new global::RetellAI.JsonConverters.AlertRuleRequestThresholdTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertRuleRequestThresholdType?)) + { + return new global::RetellAI.JsonConverters.AlertRuleRequestThresholdTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertRuleRequestComparator)) + { + return new global::RetellAI.JsonConverters.AlertRuleRequestComparatorJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertRuleRequestComparator?)) + { + return new global::RetellAI.JsonConverters.AlertRuleRequestComparatorNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertRuleRequestFrequency)) + { + return new global::RetellAI.JsonConverters.AlertRuleRequestFrequencyJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertRuleRequestFrequency?)) + { + return new global::RetellAI.JsonConverters.AlertRuleRequestFrequencyNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertRuleRequestWindow)) + { + return new global::RetellAI.JsonConverters.AlertRuleRequestWindowJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertRuleRequestWindow?)) + { + return new global::RetellAI.JsonConverters.AlertRuleRequestWindowNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertRuleResponseThresholdType)) + { + return new global::RetellAI.JsonConverters.AlertRuleResponseThresholdTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertRuleResponseThresholdType?)) + { + return new global::RetellAI.JsonConverters.AlertRuleResponseThresholdTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertRuleResponseComparator)) + { + return new global::RetellAI.JsonConverters.AlertRuleResponseComparatorJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertRuleResponseComparator?)) + { + return new global::RetellAI.JsonConverters.AlertRuleResponseComparatorNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertRuleResponseFrequency)) + { + return new global::RetellAI.JsonConverters.AlertRuleResponseFrequencyJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertRuleResponseFrequency?)) + { + return new global::RetellAI.JsonConverters.AlertRuleResponseFrequencyNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertRuleResponseWindow)) + { + return new global::RetellAI.JsonConverters.AlertRuleResponseWindowJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AlertRuleResponseWindow?)) + { + return new global::RetellAI.JsonConverters.AlertRuleResponseWindowNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestVoiceModel)) + { + return new global::RetellAI.JsonConverters.AgentRequestVoiceModelJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestVoiceModel?)) + { + return new global::RetellAI.JsonConverters.AgentRequestVoiceModelNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestVoiceEmotion)) + { + return new global::RetellAI.JsonConverters.AgentRequestVoiceEmotionJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestVoiceEmotion?)) + { + return new global::RetellAI.JsonConverters.AgentRequestVoiceEmotionNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestExpressiveEmotionTag)) + { + return new global::RetellAI.JsonConverters.AgentRequestExpressiveEmotionTagJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestExpressiveEmotionTag?)) + { + return new global::RetellAI.JsonConverters.AgentRequestExpressiveEmotionTagNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestAmbientSound)) + { + return new global::RetellAI.JsonConverters.AgentRequestAmbientSoundJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestAmbientSound?)) + { + return new global::RetellAI.JsonConverters.AgentRequestAmbientSoundNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestLanguage)) + { + return new global::RetellAI.JsonConverters.AgentRequestLanguageJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestLanguage?)) + { + return new global::RetellAI.JsonConverters.AgentRequestLanguageNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestWebhookEvent)) + { + return new global::RetellAI.JsonConverters.AgentRequestWebhookEventJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestWebhookEvent?)) + { + return new global::RetellAI.JsonConverters.AgentRequestWebhookEventNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestDataStorageSetting)) + { + return new global::RetellAI.JsonConverters.AgentRequestDataStorageSettingJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestDataStorageSetting?)) + { + return new global::RetellAI.JsonConverters.AgentRequestDataStorageSettingNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestPronunciationDictionaryItemAlphabet)) + { + return new global::RetellAI.JsonConverters.AgentRequestPronunciationDictionaryItemAlphabetJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestPronunciationDictionaryItemAlphabet?)) + { + return new global::RetellAI.JsonConverters.AgentRequestPronunciationDictionaryItemAlphabetNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestSttMode)) + { + return new global::RetellAI.JsonConverters.AgentRequestSttModeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestSttMode?)) + { + return new global::RetellAI.JsonConverters.AgentRequestSttModeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestVocabSpecialization)) + { + return new global::RetellAI.JsonConverters.AgentRequestVocabSpecializationJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestVocabSpecialization?)) + { + return new global::RetellAI.JsonConverters.AgentRequestVocabSpecializationNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestDenoisingMode)) + { + return new global::RetellAI.JsonConverters.AgentRequestDenoisingModeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentRequestDenoisingMode?)) + { + return new global::RetellAI.JsonConverters.AgentRequestDenoisingModeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentListFilterChannelOp)) + { + return new global::RetellAI.JsonConverters.AgentListFilterChannelOpJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentListFilterChannelOp?)) + { + return new global::RetellAI.JsonConverters.AgentListFilterChannelOpNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentListFilterChannelValue)) + { + return new global::RetellAI.JsonConverters.AgentListFilterChannelValueJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentListFilterChannelValue?)) + { + return new global::RetellAI.JsonConverters.AgentListFilterChannelValueNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentListItemResponseChannel)) + { + return new global::RetellAI.JsonConverters.AgentListItemResponseChannelJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentListItemResponseChannel?)) + { + return new global::RetellAI.JsonConverters.AgentListItemResponseChannelNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentSwapNodeVariant2Type)) + { + return new global::RetellAI.JsonConverters.AgentSwapNodeVariant2TypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentSwapNodeVariant2Type?)) + { + return new global::RetellAI.JsonConverters.AgentSwapNodeVariant2TypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentSwapToolType)) + { + return new global::RetellAI.JsonConverters.AgentSwapToolTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentSwapToolType?)) + { + return new global::RetellAI.JsonConverters.AgentSwapToolTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentSwapToolExecutionMessageType)) + { + return new global::RetellAI.JsonConverters.AgentSwapToolExecutionMessageTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentSwapToolExecutionMessageType?)) + { + return new global::RetellAI.JsonConverters.AgentSwapToolExecutionMessageTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentSwapWebhookSetting)) + { + return new global::RetellAI.JsonConverters.AgentSwapWebhookSettingJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.AgentSwapWebhookSetting?)) + { + return new global::RetellAI.JsonConverters.AgentSwapWebhookSettingNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.BookAppointmentCalToolType)) + { + return new global::RetellAI.JsonConverters.BookAppointmentCalToolTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.BookAppointmentCalToolType?)) + { + return new global::RetellAI.JsonConverters.BookAppointmentCalToolTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.BooleanAnalysisDataType)) + { + return new global::RetellAI.JsonConverters.BooleanAnalysisDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.BooleanAnalysisDataType?)) + { + return new global::RetellAI.JsonConverters.BooleanAnalysisDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.BranchNodeVariant2Type)) + { + return new global::RetellAI.JsonConverters.BranchNodeVariant2TypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.BranchNodeVariant2Type?)) + { + return new global::RetellAI.JsonConverters.BranchNodeVariant2TypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.BridgeTransferNodeVariant2Type)) + { + return new global::RetellAI.JsonConverters.BridgeTransferNodeVariant2TypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.BridgeTransferNodeVariant2Type?)) + { + return new global::RetellAI.JsonConverters.BridgeTransferNodeVariant2TypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.BridgeTransferToolType)) + { + return new global::RetellAI.JsonConverters.BridgeTransferToolTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.BridgeTransferToolType?)) + { + return new global::RetellAI.JsonConverters.BridgeTransferToolTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.BridgeTransferToolExecutionMessageType)) + { + return new global::RetellAI.JsonConverters.BridgeTransferToolExecutionMessageTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.BridgeTransferToolExecutionMessageType?)) + { + return new global::RetellAI.JsonConverters.BridgeTransferToolExecutionMessageTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CallAnalysisUserSentiment)) + { + return new global::RetellAI.JsonConverters.CallAnalysisUserSentimentJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CallAnalysisUserSentiment?)) + { + return new global::RetellAI.JsonConverters.CallAnalysisUserSentimentNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CancelTransferNodeVariant2Type)) + { + return new global::RetellAI.JsonConverters.CancelTransferNodeVariant2TypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CancelTransferNodeVariant2Type?)) + { + return new global::RetellAI.JsonConverters.CancelTransferNodeVariant2TypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CancelTransferToolType)) + { + return new global::RetellAI.JsonConverters.CancelTransferToolTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CancelTransferToolType?)) + { + return new global::RetellAI.JsonConverters.CancelTransferToolTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CancelTransferToolExecutionMessageType)) + { + return new global::RetellAI.JsonConverters.CancelTransferToolExecutionMessageTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CancelTransferToolExecutionMessageType?)) + { + return new global::RetellAI.JsonConverters.CancelTransferToolExecutionMessageTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ChatAgentRequestLanguage)) + { + return new global::RetellAI.JsonConverters.ChatAgentRequestLanguageJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ChatAgentRequestLanguage?)) + { + return new global::RetellAI.JsonConverters.ChatAgentRequestLanguageNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ChatAgentRequestWebhookEvent)) + { + return new global::RetellAI.JsonConverters.ChatAgentRequestWebhookEventJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ChatAgentRequestWebhookEvent?)) + { + return new global::RetellAI.JsonConverters.ChatAgentRequestWebhookEventNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ChatAgentRequestDataStorageSetting)) + { + return new global::RetellAI.JsonConverters.ChatAgentRequestDataStorageSettingJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ChatAgentRequestDataStorageSetting?)) + { + return new global::RetellAI.JsonConverters.ChatAgentRequestDataStorageSettingNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ChatAnalysisUserSentiment)) + { + return new global::RetellAI.JsonConverters.ChatAnalysisUserSentimentJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ChatAnalysisUserSentiment?)) + { + return new global::RetellAI.JsonConverters.ChatAnalysisUserSentimentNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ChatResponseChatStatus)) + { + return new global::RetellAI.JsonConverters.ChatResponseChatStatusJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ChatResponseChatStatus?)) + { + return new global::RetellAI.JsonConverters.ChatResponseChatStatusNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ChatResponseChatType)) + { + return new global::RetellAI.JsonConverters.ChatResponseChatTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ChatResponseChatType?)) + { + return new global::RetellAI.JsonConverters.ChatResponseChatTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.V3ListChatsRequestSortOrder)) + { + return new global::RetellAI.JsonConverters.V3ListChatsRequestSortOrderJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.V3ListChatsRequestSortOrder?)) + { + return new global::RetellAI.JsonConverters.V3ListChatsRequestSortOrderNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CheckAvailabilityCalToolType)) + { + return new global::RetellAI.JsonConverters.CheckAvailabilityCalToolTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CheckAvailabilityCalToolType?)) + { + return new global::RetellAI.JsonConverters.CheckAvailabilityCalToolTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CohortAggregatedResultGroupBy)) + { + return new global::RetellAI.JsonConverters.CohortAggregatedResultGroupByJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CohortAggregatedResultGroupBy?)) + { + return new global::RetellAI.JsonConverters.CohortAggregatedResultGroupByNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CohortFilterStartTimestampVariant1Op)) + { + return new global::RetellAI.JsonConverters.CohortFilterStartTimestampVariant1OpJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CohortFilterStartTimestampVariant1Op?)) + { + return new global::RetellAI.JsonConverters.CohortFilterStartTimestampVariant1OpNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CohortFilterCallDurationFilterOp)) + { + return new global::RetellAI.JsonConverters.CohortFilterCallDurationFilterOpJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CohortFilterCallDurationFilterOp?)) + { + return new global::RetellAI.JsonConverters.CohortFilterCallDurationFilterOpNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CohortSuccessfulCriteriaType)) + { + return new global::RetellAI.JsonConverters.CohortSuccessfulCriteriaTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CohortSuccessfulCriteriaType?)) + { + return new global::RetellAI.JsonConverters.CohortSuccessfulCriteriaTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CohortSuccessfulCriteriaOp)) + { + return new global::RetellAI.JsonConverters.CohortSuccessfulCriteriaOpJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CohortSuccessfulCriteriaOp?)) + { + return new global::RetellAI.JsonConverters.CohortSuccessfulCriteriaOpNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CohortEvaluationMode)) + { + return new global::RetellAI.JsonConverters.CohortEvaluationModeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CohortEvaluationMode?)) + { + return new global::RetellAI.JsonConverters.CohortEvaluationModeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ComponentNodeVariant2Type)) + { + return new global::RetellAI.JsonConverters.ComponentNodeVariant2TypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ComponentNodeVariant2Type?)) + { + return new global::RetellAI.JsonConverters.ComponentNodeVariant2TypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ComponentNodeVariant2ComponentType)) + { + return new global::RetellAI.JsonConverters.ComponentNodeVariant2ComponentTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ComponentNodeVariant2ComponentType?)) + { + return new global::RetellAI.JsonConverters.ComponentNodeVariant2ComponentTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ConversationFlowOverrideStartSpeaker)) + { + return new global::RetellAI.JsonConverters.ConversationFlowOverrideStartSpeakerJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ConversationFlowOverrideStartSpeaker?)) + { + return new global::RetellAI.JsonConverters.ConversationFlowOverrideStartSpeakerNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ConversationNodeVariant3Type)) + { + return new global::RetellAI.JsonConverters.ConversationNodeVariant3TypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ConversationNodeVariant3Type?)) + { + return new global::RetellAI.JsonConverters.ConversationNodeVariant3TypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.SubagentNodeVariant3Type)) + { + return new global::RetellAI.JsonConverters.SubagentNodeVariant3TypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.SubagentNodeVariant3Type?)) + { + return new global::RetellAI.JsonConverters.SubagentNodeVariant3TypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CustomToolType)) + { + return new global::RetellAI.JsonConverters.CustomToolTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CustomToolType?)) + { + return new global::RetellAI.JsonConverters.CustomToolTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CustomToolMethod)) + { + return new global::RetellAI.JsonConverters.CustomToolMethodJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CustomToolMethod?)) + { + return new global::RetellAI.JsonConverters.CustomToolMethodNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CustomToolExecutionMessageType)) + { + return new global::RetellAI.JsonConverters.CustomToolExecutionMessageTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CustomToolExecutionMessageType?)) + { + return new global::RetellAI.JsonConverters.CustomToolExecutionMessageTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CustomToolParameterType)) + { + return new global::RetellAI.JsonConverters.CustomToolParameterTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CustomToolParameterType?)) + { + return new global::RetellAI.JsonConverters.CustomToolParameterTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CodeToolType)) + { + return new global::RetellAI.JsonConverters.CodeToolTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CodeToolType?)) + { + return new global::RetellAI.JsonConverters.CodeToolTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CodeToolExecutionMessageType)) + { + return new global::RetellAI.JsonConverters.CodeToolExecutionMessageTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CodeToolExecutionMessageType?)) + { + return new global::RetellAI.JsonConverters.CodeToolExecutionMessageTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.DTMFUtteranceRole)) + { + return new global::RetellAI.JsonConverters.DTMFUtteranceRoleJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.DTMFUtteranceRole?)) + { + return new global::RetellAI.JsonConverters.DTMFUtteranceRoleNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.SmsUtteranceRole)) + { + return new global::RetellAI.JsonConverters.SmsUtteranceRoleJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.SmsUtteranceRole?)) + { + return new global::RetellAI.JsonConverters.SmsUtteranceRoleNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.InjectedUtteranceRole)) + { + return new global::RetellAI.JsonConverters.InjectedUtteranceRoleJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.InjectedUtteranceRole?)) + { + return new global::RetellAI.JsonConverters.InjectedUtteranceRoleNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.StringFilterType)) + { + return new global::RetellAI.JsonConverters.StringFilterTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.StringFilterType?)) + { + return new global::RetellAI.JsonConverters.StringFilterTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.StringFilterOp)) + { + return new global::RetellAI.JsonConverters.StringFilterOpJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.StringFilterOp?)) + { + return new global::RetellAI.JsonConverters.StringFilterOpNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.NumberFilterType)) + { + return new global::RetellAI.JsonConverters.NumberFilterTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.NumberFilterType?)) + { + return new global::RetellAI.JsonConverters.NumberFilterTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.NumberFilterOp)) + { + return new global::RetellAI.JsonConverters.NumberFilterOpJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.NumberFilterOp?)) + { + return new global::RetellAI.JsonConverters.NumberFilterOpNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.BooleanFilterType)) + { + return new global::RetellAI.JsonConverters.BooleanFilterTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.BooleanFilterType?)) + { + return new global::RetellAI.JsonConverters.BooleanFilterTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.BooleanFilterOp)) + { + return new global::RetellAI.JsonConverters.BooleanFilterOpJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.BooleanFilterOp?)) + { + return new global::RetellAI.JsonConverters.BooleanFilterOpNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.RangeFilterType)) + { + return new global::RetellAI.JsonConverters.RangeFilterTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.RangeFilterType?)) + { + return new global::RetellAI.JsonConverters.RangeFilterTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.RangeFilterOp)) + { + return new global::RetellAI.JsonConverters.RangeFilterOpJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.RangeFilterOp?)) + { + return new global::RetellAI.JsonConverters.RangeFilterOpNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.EnumFilterType)) + { + return new global::RetellAI.JsonConverters.EnumFilterTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.EnumFilterType?)) + { + return new global::RetellAI.JsonConverters.EnumFilterTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.EnumFilterOp)) + { + return new global::RetellAI.JsonConverters.EnumFilterOpJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.EnumFilterOp?)) + { + return new global::RetellAI.JsonConverters.EnumFilterOpNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.PresentFilterType)) + { + return new global::RetellAI.JsonConverters.PresentFilterTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.PresentFilterType?)) + { + return new global::RetellAI.JsonConverters.PresentFilterTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.PresentFilterOp)) + { + return new global::RetellAI.JsonConverters.PresentFilterOpJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.PresentFilterOp?)) + { + return new global::RetellAI.JsonConverters.PresentFilterOpNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CallFilterCallStatusValueItem)) + { + return new global::RetellAI.JsonConverters.CallFilterCallStatusValueItemJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CallFilterCallStatusValueItem?)) + { + return new global::RetellAI.JsonConverters.CallFilterCallStatusValueItemNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CallFilterCallTypeValueItem)) + { + return new global::RetellAI.JsonConverters.CallFilterCallTypeValueItemJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CallFilterCallTypeValueItem?)) + { + return new global::RetellAI.JsonConverters.CallFilterCallTypeValueItemNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CallFilterDirectionValueItem)) + { + return new global::RetellAI.JsonConverters.CallFilterDirectionValueItemJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CallFilterDirectionValueItem?)) + { + return new global::RetellAI.JsonConverters.CallFilterDirectionValueItemNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CallFilterUserSentimentValueItem)) + { + return new global::RetellAI.JsonConverters.CallFilterUserSentimentValueItemJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CallFilterUserSentimentValueItem?)) + { + return new global::RetellAI.JsonConverters.CallFilterUserSentimentValueItemNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CallFilterDataStorageSettingValueItem)) + { + return new global::RetellAI.JsonConverters.CallFilterDataStorageSettingValueItemJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.CallFilterDataStorageSettingValueItem?)) + { + return new global::RetellAI.JsonConverters.CallFilterDataStorageSettingValueItemNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ChatFilterChatStatusValueItem)) + { + return new global::RetellAI.JsonConverters.ChatFilterChatStatusValueItemJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ChatFilterChatStatusValueItem?)) + { + return new global::RetellAI.JsonConverters.ChatFilterChatStatusValueItemNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ChatFilterUserSentimentValueItem)) + { + return new global::RetellAI.JsonConverters.ChatFilterUserSentimentValueItemJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ChatFilterUserSentimentValueItem?)) + { + return new global::RetellAI.JsonConverters.ChatFilterUserSentimentValueItemNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ListContactsRequestSortOrder)) + { + return new global::RetellAI.JsonConverters.ListContactsRequestSortOrderJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ListContactsRequestSortOrder?)) + { + return new global::RetellAI.JsonConverters.ListContactsRequestSortOrderNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.DayOfWeek)) + { + return new global::RetellAI.JsonConverters.DayOfWeekJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.DayOfWeek?)) + { + return new global::RetellAI.JsonConverters.DayOfWeekNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.DisconnectionReason5)) + { + return new global::RetellAI.JsonConverters.DisconnectionReason5JsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.DisconnectionReason5?)) + { + return new global::RetellAI.JsonConverters.DisconnectionReason5NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ElseEdgeVariant2TransitionConditionType)) + { + return new global::RetellAI.JsonConverters.ElseEdgeVariant2TransitionConditionTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ElseEdgeVariant2TransitionConditionType?)) + { + return new global::RetellAI.JsonConverters.ElseEdgeVariant2TransitionConditionTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ElseEdgeVariant2TransitionConditionPrompt)) + { + return new global::RetellAI.JsonConverters.ElseEdgeVariant2TransitionConditionPromptJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ElseEdgeVariant2TransitionConditionPrompt?)) + { + return new global::RetellAI.JsonConverters.ElseEdgeVariant2TransitionConditionPromptNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.EndCallToolType)) + { + return new global::RetellAI.JsonConverters.EndCallToolTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.EndCallToolType?)) + { + return new global::RetellAI.JsonConverters.EndCallToolTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.EndCallToolExecutionMessageType)) + { + return new global::RetellAI.JsonConverters.EndCallToolExecutionMessageTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.EndCallToolExecutionMessageType?)) + { + return new global::RetellAI.JsonConverters.EndCallToolExecutionMessageTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.EndNodeVariant2Type)) + { + return new global::RetellAI.JsonConverters.EndNodeVariant2TypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.EndNodeVariant2Type?)) + { + return new global::RetellAI.JsonConverters.EndNodeVariant2TypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.EnumAnalysisDataType)) + { + return new global::RetellAI.JsonConverters.EnumAnalysisDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.EnumAnalysisDataType?)) + { + return new global::RetellAI.JsonConverters.EnumAnalysisDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.EquationConditionType)) + { + return new global::RetellAI.JsonConverters.EquationConditionTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.EquationConditionType?)) + { + return new global::RetellAI.JsonConverters.EquationConditionTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.EquationConditionOperator)) + { + return new global::RetellAI.JsonConverters.EquationConditionOperatorJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.EquationConditionOperator?)) + { + return new global::RetellAI.JsonConverters.EquationConditionOperatorNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.EquationOperator)) + { + return new global::RetellAI.JsonConverters.EquationOperatorJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.EquationOperator?)) + { + return new global::RetellAI.JsonConverters.EquationOperatorNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ExtractDynamicVariableToolType)) + { + return new global::RetellAI.JsonConverters.ExtractDynamicVariableToolTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ExtractDynamicVariableToolType?)) + { + return new global::RetellAI.JsonConverters.ExtractDynamicVariableToolTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ExtractDynamicVariablesNodeVariant2Type)) + { + return new global::RetellAI.JsonConverters.ExtractDynamicVariablesNodeVariant2TypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ExtractDynamicVariablesNodeVariant2Type?)) + { + return new global::RetellAI.JsonConverters.ExtractDynamicVariablesNodeVariant2TypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.FinetuneExampleUtteranceVariant1Role)) + { + return new global::RetellAI.JsonConverters.FinetuneExampleUtteranceVariant1RoleJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.FinetuneExampleUtteranceVariant1Role?)) + { + return new global::RetellAI.JsonConverters.FinetuneExampleUtteranceVariant1RoleNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.FinetuneExampleUtteranceVariant2Role)) { - return new global::RetellAI.JsonConverters.AlertRuleRequestWindowNullableJsonConverter(); + return new global::RetellAI.JsonConverters.FinetuneExampleUtteranceVariant2RoleJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AlertRuleResponseThresholdType)) + if (typeToConvert == typeof(global::RetellAI.FinetuneExampleUtteranceVariant2Role?)) { - return new global::RetellAI.JsonConverters.AlertRuleResponseThresholdTypeJsonConverter(); + return new global::RetellAI.JsonConverters.FinetuneExampleUtteranceVariant2RoleNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AlertRuleResponseThresholdType?)) + if (typeToConvert == typeof(global::RetellAI.FinetuneExampleUtteranceVariant3Role)) { - return new global::RetellAI.JsonConverters.AlertRuleResponseThresholdTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.FinetuneExampleUtteranceVariant3RoleJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AlertRuleResponseComparator)) + if (typeToConvert == typeof(global::RetellAI.FinetuneExampleUtteranceVariant3Role?)) { - return new global::RetellAI.JsonConverters.AlertRuleResponseComparatorJsonConverter(); + return new global::RetellAI.JsonConverters.FinetuneExampleUtteranceVariant3RoleNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AlertRuleResponseComparator?)) + if (typeToConvert == typeof(global::RetellAI.FunctionNodeVariant2Type)) { - return new global::RetellAI.JsonConverters.AlertRuleResponseComparatorNullableJsonConverter(); + return new global::RetellAI.JsonConverters.FunctionNodeVariant2TypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AlertRuleResponseFrequency)) + if (typeToConvert == typeof(global::RetellAI.FunctionNodeVariant2Type?)) { - return new global::RetellAI.JsonConverters.AlertRuleResponseFrequencyJsonConverter(); + return new global::RetellAI.JsonConverters.FunctionNodeVariant2TypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AlertRuleResponseFrequency?)) + if (typeToConvert == typeof(global::RetellAI.FunctionNodeVariant2ToolType)) { - return new global::RetellAI.JsonConverters.AlertRuleResponseFrequencyNullableJsonConverter(); + return new global::RetellAI.JsonConverters.FunctionNodeVariant2ToolTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AlertRuleResponseWindow)) + if (typeToConvert == typeof(global::RetellAI.FunctionNodeVariant2ToolType?)) { - return new global::RetellAI.JsonConverters.AlertRuleResponseWindowJsonConverter(); + return new global::RetellAI.JsonConverters.FunctionNodeVariant2ToolTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AlertRuleResponseWindow?)) + if (typeToConvert == typeof(global::RetellAI.CodeNodeVariant2Type)) { - return new global::RetellAI.JsonConverters.AlertRuleResponseWindowNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CodeNodeVariant2TypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestVoiceModel)) + if (typeToConvert == typeof(global::RetellAI.CodeNodeVariant2Type?)) { - return new global::RetellAI.JsonConverters.AgentRequestVoiceModelJsonConverter(); + return new global::RetellAI.JsonConverters.CodeNodeVariant2TypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestVoiceModel?)) + if (typeToConvert == typeof(global::RetellAI.KnowledgeBaseResponseStatus)) { - return new global::RetellAI.JsonConverters.AgentRequestVoiceModelNullableJsonConverter(); + return new global::RetellAI.JsonConverters.KnowledgeBaseResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestVoiceEmotion)) + if (typeToConvert == typeof(global::RetellAI.KnowledgeBaseResponseStatus?)) { - return new global::RetellAI.JsonConverters.AgentRequestVoiceEmotionJsonConverter(); + return new global::RetellAI.JsonConverters.KnowledgeBaseResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestVoiceEmotion?)) + if (typeToConvert == typeof(global::RetellAI.KnowledgeBaseSourceDocumentType)) + { + return new global::RetellAI.JsonConverters.KnowledgeBaseSourceDocumentTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.KnowledgeBaseSourceDocumentType?)) + { + return new global::RetellAI.JsonConverters.KnowledgeBaseSourceDocumentTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.KnowledgeBaseSourceTextType)) + { + return new global::RetellAI.JsonConverters.KnowledgeBaseSourceTextTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.KnowledgeBaseSourceTextType?)) + { + return new global::RetellAI.JsonConverters.KnowledgeBaseSourceTextTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.KnowledgeBaseSourceUrlType)) + { + return new global::RetellAI.JsonConverters.KnowledgeBaseSourceUrlTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.KnowledgeBaseSourceUrlType?)) + { + return new global::RetellAI.JsonConverters.KnowledgeBaseSourceUrlTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.Language3)) + { + return new global::RetellAI.JsonConverters.Language3JsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.Language3?)) + { + return new global::RetellAI.JsonConverters.Language3NullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.LLMModel)) + { + return new global::RetellAI.JsonConverters.LLMModelJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.LLMModel?)) + { + return new global::RetellAI.JsonConverters.LLMModelNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.MCPNodeVariant2Type)) + { + return new global::RetellAI.JsonConverters.MCPNodeVariant2TypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.MCPNodeVariant2Type?)) + { + return new global::RetellAI.JsonConverters.MCPNodeVariant2TypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.MCPToolType)) + { + return new global::RetellAI.JsonConverters.MCPToolTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.MCPToolType?)) + { + return new global::RetellAI.JsonConverters.MCPToolTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.MCPToolExecutionMessageType)) + { + return new global::RetellAI.JsonConverters.MCPToolExecutionMessageTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.MCPToolExecutionMessageType?)) + { + return new global::RetellAI.JsonConverters.MCPToolExecutionMessageTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.MessageBaseRole)) + { + return new global::RetellAI.JsonConverters.MessageBaseRoleJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.MessageBaseRole?)) + { + return new global::RetellAI.JsonConverters.MessageBaseRoleNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.InjectedMessageBaseRole)) + { + return new global::RetellAI.JsonConverters.InjectedMessageBaseRoleJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.InjectedMessageBaseRole?)) + { + return new global::RetellAI.JsonConverters.InjectedMessageBaseRoleNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.SmsMessageBaseRole)) + { + return new global::RetellAI.JsonConverters.SmsMessageBaseRoleJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.SmsMessageBaseRole?)) + { + return new global::RetellAI.JsonConverters.SmsMessageBaseRoleNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ModelChoiceCascadingType)) + { + return new global::RetellAI.JsonConverters.ModelChoiceCascadingTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.ModelChoiceCascadingType?)) + { + return new global::RetellAI.JsonConverters.ModelChoiceCascadingTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.NaturalnessIssue)) + { + return new global::RetellAI.JsonConverters.NaturalnessIssueJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.NaturalnessIssue?)) + { + return new global::RetellAI.JsonConverters.NaturalnessIssueNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.NodeInstructionPromptType)) + { + return new global::RetellAI.JsonConverters.NodeInstructionPromptTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.NodeInstructionPromptType?)) + { + return new global::RetellAI.JsonConverters.NodeInstructionPromptTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.NodeInstructionStaticTextType)) + { + return new global::RetellAI.JsonConverters.NodeInstructionStaticTextTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.NodeInstructionStaticTextType?)) + { + return new global::RetellAI.JsonConverters.NodeInstructionStaticTextTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.SmsInstructionTemplateType)) + { + return new global::RetellAI.JsonConverters.SmsInstructionTemplateTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.SmsInstructionTemplateType?)) + { + return new global::RetellAI.JsonConverters.SmsInstructionTemplateTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.SmsInstructionTemplateTemplate)) + { + return new global::RetellAI.JsonConverters.SmsInstructionTemplateTemplateJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.SmsInstructionTemplateTemplate?)) + { + return new global::RetellAI.JsonConverters.SmsInstructionTemplateTemplateNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.NodeTransitionMessageBaseRole)) + { + return new global::RetellAI.JsonConverters.NodeTransitionMessageBaseRoleJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.NodeTransitionMessageBaseRole?)) + { + return new global::RetellAI.JsonConverters.NodeTransitionMessageBaseRoleNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.NodeTransitionMessageBaseTransitionType)) + { + return new global::RetellAI.JsonConverters.NodeTransitionMessageBaseTransitionTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.NodeTransitionMessageBaseTransitionType?)) + { + return new global::RetellAI.JsonConverters.NodeTransitionMessageBaseTransitionTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.NodeTransitionUtteranceRole)) + { + return new global::RetellAI.JsonConverters.NodeTransitionUtteranceRoleJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.NodeTransitionUtteranceRole?)) + { + return new global::RetellAI.JsonConverters.NodeTransitionUtteranceRoleNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.NodeTransitionUtteranceTransitionType)) + { + return new global::RetellAI.JsonConverters.NodeTransitionUtteranceTransitionTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::RetellAI.NodeTransitionUtteranceTransitionType?)) { - return new global::RetellAI.JsonConverters.AgentRequestVoiceEmotionNullableJsonConverter(); + return new global::RetellAI.JsonConverters.NodeTransitionUtteranceTransitionTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestExpressiveEmotionTag)) + if (typeToConvert == typeof(global::RetellAI.NullableLLMModel)) { - return new global::RetellAI.JsonConverters.AgentRequestExpressiveEmotionTagJsonConverter(); + return new global::RetellAI.JsonConverters.NullableLLMModelJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestExpressiveEmotionTag?)) + if (typeToConvert == typeof(global::RetellAI.NullableLLMModel?)) { - return new global::RetellAI.JsonConverters.AgentRequestExpressiveEmotionTagNullableJsonConverter(); + return new global::RetellAI.JsonConverters.NullableLLMModelNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestAmbientSound)) + if (typeToConvert == typeof(global::RetellAI.NumberAnalysisDataType)) { - return new global::RetellAI.JsonConverters.AgentRequestAmbientSoundJsonConverter(); + return new global::RetellAI.JsonConverters.NumberAnalysisDataTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestAmbientSound?)) + if (typeToConvert == typeof(global::RetellAI.NumberAnalysisDataType?)) { - return new global::RetellAI.JsonConverters.AgentRequestAmbientSoundNullableJsonConverter(); + return new global::RetellAI.JsonConverters.NumberAnalysisDataTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestLanguage)) + if (typeToConvert == typeof(global::RetellAI.PresetAnalysisDataType)) { - return new global::RetellAI.JsonConverters.AgentRequestLanguageJsonConverter(); + return new global::RetellAI.JsonConverters.PresetAnalysisDataTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestLanguage?)) + if (typeToConvert == typeof(global::RetellAI.PresetAnalysisDataType?)) { - return new global::RetellAI.JsonConverters.AgentRequestLanguageNullableJsonConverter(); + return new global::RetellAI.JsonConverters.PresetAnalysisDataTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestWebhookEvent)) + if (typeToConvert == typeof(global::RetellAI.PresetAnalysisDataName)) { - return new global::RetellAI.JsonConverters.AgentRequestWebhookEventJsonConverter(); + return new global::RetellAI.JsonConverters.PresetAnalysisDataNameJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestWebhookEvent?)) + if (typeToConvert == typeof(global::RetellAI.PresetAnalysisDataName?)) { - return new global::RetellAI.JsonConverters.AgentRequestWebhookEventNullableJsonConverter(); + return new global::RetellAI.JsonConverters.PresetAnalysisDataNameNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestDataStorageSetting)) + if (typeToConvert == typeof(global::RetellAI.CallPresetAnalysisDataType)) { - return new global::RetellAI.JsonConverters.AgentRequestDataStorageSettingJsonConverter(); + return new global::RetellAI.JsonConverters.CallPresetAnalysisDataTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestDataStorageSetting?)) + if (typeToConvert == typeof(global::RetellAI.CallPresetAnalysisDataType?)) { - return new global::RetellAI.JsonConverters.AgentRequestDataStorageSettingNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CallPresetAnalysisDataTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestPronunciationDictionaryItemAlphabet)) + if (typeToConvert == typeof(global::RetellAI.CallPresetAnalysisDataName)) { - return new global::RetellAI.JsonConverters.AgentRequestPronunciationDictionaryItemAlphabetJsonConverter(); + return new global::RetellAI.JsonConverters.CallPresetAnalysisDataNameJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestPronunciationDictionaryItemAlphabet?)) + if (typeToConvert == typeof(global::RetellAI.CallPresetAnalysisDataName?)) { - return new global::RetellAI.JsonConverters.AgentRequestPronunciationDictionaryItemAlphabetNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CallPresetAnalysisDataNameNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestSttMode)) + if (typeToConvert == typeof(global::RetellAI.ChatPresetAnalysisDataType)) { - return new global::RetellAI.JsonConverters.AgentRequestSttModeJsonConverter(); + return new global::RetellAI.JsonConverters.ChatPresetAnalysisDataTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestSttMode?)) + if (typeToConvert == typeof(global::RetellAI.ChatPresetAnalysisDataType?)) { - return new global::RetellAI.JsonConverters.AgentRequestSttModeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ChatPresetAnalysisDataTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestVocabSpecialization)) + if (typeToConvert == typeof(global::RetellAI.ChatPresetAnalysisDataName)) { - return new global::RetellAI.JsonConverters.AgentRequestVocabSpecializationJsonConverter(); + return new global::RetellAI.JsonConverters.ChatPresetAnalysisDataNameJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestVocabSpecialization?)) + if (typeToConvert == typeof(global::RetellAI.ChatPresetAnalysisDataName?)) { - return new global::RetellAI.JsonConverters.AgentRequestVocabSpecializationNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ChatPresetAnalysisDataNameNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestDenoisingMode)) + if (typeToConvert == typeof(global::RetellAI.OrganizationResponseVariant2EnterprisePlanStatus)) { - return new global::RetellAI.JsonConverters.AgentRequestDenoisingModeJsonConverter(); + return new global::RetellAI.JsonConverters.OrganizationResponseVariant2EnterprisePlanStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentRequestDenoisingMode?)) + if (typeToConvert == typeof(global::RetellAI.OrganizationResponseVariant2EnterprisePlanStatus?)) { - return new global::RetellAI.JsonConverters.AgentRequestDenoisingModeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.OrganizationResponseVariant2EnterprisePlanStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentListFilterChannelOp)) + if (typeToConvert == typeof(global::RetellAI.PIIConfigMode)) { - return new global::RetellAI.JsonConverters.AgentListFilterChannelOpJsonConverter(); + return new global::RetellAI.JsonConverters.PIIConfigModeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentListFilterChannelOp?)) + if (typeToConvert == typeof(global::RetellAI.PIIConfigMode?)) { - return new global::RetellAI.JsonConverters.AgentListFilterChannelOpNullableJsonConverter(); + return new global::RetellAI.JsonConverters.PIIConfigModeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentListFilterChannelValue)) + if (typeToConvert == typeof(global::RetellAI.PIIConfigCategorie)) { - return new global::RetellAI.JsonConverters.AgentListFilterChannelValueJsonConverter(); + return new global::RetellAI.JsonConverters.PIIConfigCategorieJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentListFilterChannelValue?)) + if (typeToConvert == typeof(global::RetellAI.PIIConfigCategorie?)) { - return new global::RetellAI.JsonConverters.AgentListFilterChannelValueNullableJsonConverter(); + return new global::RetellAI.JsonConverters.PIIConfigCategorieNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentListItemResponseChannel)) + if (typeToConvert == typeof(global::RetellAI.GuardrailConfigOutputTopic)) { - return new global::RetellAI.JsonConverters.AgentListItemResponseChannelJsonConverter(); + return new global::RetellAI.JsonConverters.GuardrailConfigOutputTopicJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentListItemResponseChannel?)) + if (typeToConvert == typeof(global::RetellAI.GuardrailConfigOutputTopic?)) { - return new global::RetellAI.JsonConverters.AgentListItemResponseChannelNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GuardrailConfigOutputTopicNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentSwapNodeVariant2Type)) + if (typeToConvert == typeof(global::RetellAI.GuardrailConfigInputTopic)) { - return new global::RetellAI.JsonConverters.AgentSwapNodeVariant2TypeJsonConverter(); + return new global::RetellAI.JsonConverters.GuardrailConfigInputTopicJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentSwapNodeVariant2Type?)) + if (typeToConvert == typeof(global::RetellAI.GuardrailConfigInputTopic?)) { - return new global::RetellAI.JsonConverters.AgentSwapNodeVariant2TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GuardrailConfigInputTopicNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentSwapToolType)) + if (typeToConvert == typeof(global::RetellAI.PerformanceMetricCriteriaOp)) { - return new global::RetellAI.JsonConverters.AgentSwapToolTypeJsonConverter(); + return new global::RetellAI.JsonConverters.PerformanceMetricCriteriaOpJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentSwapToolType?)) + if (typeToConvert == typeof(global::RetellAI.PerformanceMetricCriteriaOp?)) { - return new global::RetellAI.JsonConverters.AgentSwapToolTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.PerformanceMetricCriteriaOpNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentSwapToolExecutionMessageType)) + if (typeToConvert == typeof(global::RetellAI.PhoneNumberResponsePhoneNumberType)) { - return new global::RetellAI.JsonConverters.AgentSwapToolExecutionMessageTypeJsonConverter(); + return new global::RetellAI.JsonConverters.PhoneNumberResponsePhoneNumberTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentSwapToolExecutionMessageType?)) + if (typeToConvert == typeof(global::RetellAI.PhoneNumberResponsePhoneNumberType?)) { - return new global::RetellAI.JsonConverters.AgentSwapToolExecutionMessageTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.PhoneNumberResponsePhoneNumberTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentSwapWebhookSetting)) + if (typeToConvert == typeof(global::RetellAI.PostCallAnalysisSetting)) { - return new global::RetellAI.JsonConverters.AgentSwapWebhookSettingJsonConverter(); + return new global::RetellAI.JsonConverters.PostCallAnalysisSettingJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentSwapWebhookSetting?)) + if (typeToConvert == typeof(global::RetellAI.PostCallAnalysisSetting?)) { - return new global::RetellAI.JsonConverters.AgentSwapWebhookSettingNullableJsonConverter(); + return new global::RetellAI.JsonConverters.PostCallAnalysisSettingNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.BookAppointmentCalToolType)) + if (typeToConvert == typeof(global::RetellAI.PressDigitNodeVariant2Type)) { - return new global::RetellAI.JsonConverters.BookAppointmentCalToolTypeJsonConverter(); + return new global::RetellAI.JsonConverters.PressDigitNodeVariant2TypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.BookAppointmentCalToolType?)) + if (typeToConvert == typeof(global::RetellAI.PressDigitNodeVariant2Type?)) { - return new global::RetellAI.JsonConverters.BookAppointmentCalToolTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.PressDigitNodeVariant2TypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.BooleanAnalysisDataType)) + if (typeToConvert == typeof(global::RetellAI.PressDigitToolType)) { - return new global::RetellAI.JsonConverters.BooleanAnalysisDataTypeJsonConverter(); + return new global::RetellAI.JsonConverters.PressDigitToolTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.BooleanAnalysisDataType?)) + if (typeToConvert == typeof(global::RetellAI.PressDigitToolType?)) { - return new global::RetellAI.JsonConverters.BooleanAnalysisDataTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.PressDigitToolTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.BranchNodeVariant2Type)) + if (typeToConvert == typeof(global::RetellAI.PromptConditionType)) { - return new global::RetellAI.JsonConverters.BranchNodeVariant2TypeJsonConverter(); + return new global::RetellAI.JsonConverters.PromptConditionTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.BranchNodeVariant2Type?)) + if (typeToConvert == typeof(global::RetellAI.PromptConditionType?)) { - return new global::RetellAI.JsonConverters.BranchNodeVariant2TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.PromptConditionTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.BridgeTransferNodeVariant2Type)) + if (typeToConvert == typeof(global::RetellAI.QaViewFilterScoreRangeType)) { - return new global::RetellAI.JsonConverters.BridgeTransferNodeVariant2TypeJsonConverter(); + return new global::RetellAI.JsonConverters.QaViewFilterScoreRangeTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.BridgeTransferNodeVariant2Type?)) + if (typeToConvert == typeof(global::RetellAI.QaViewFilterScoreRangeType?)) { - return new global::RetellAI.JsonConverters.BridgeTransferNodeVariant2TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.QaViewFilterScoreRangeTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.BridgeTransferToolType)) + if (typeToConvert == typeof(global::RetellAI.QaViewFilterScoreRangeOp)) { - return new global::RetellAI.JsonConverters.BridgeTransferToolTypeJsonConverter(); + return new global::RetellAI.JsonConverters.QaViewFilterScoreRangeOpJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.BridgeTransferToolType?)) + if (typeToConvert == typeof(global::RetellAI.QaViewFilterScoreRangeOp?)) { - return new global::RetellAI.JsonConverters.BridgeTransferToolTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.QaViewFilterScoreRangeOpNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.BridgeTransferToolExecutionMessageType)) + if (typeToConvert == typeof(global::RetellAI.CohortQaListArgsSortKey)) { - return new global::RetellAI.JsonConverters.BridgeTransferToolExecutionMessageTypeJsonConverter(); + return new global::RetellAI.JsonConverters.CohortQaListArgsSortKeyJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.BridgeTransferToolExecutionMessageType?)) + if (typeToConvert == typeof(global::RetellAI.CohortQaListArgsSortKey?)) { - return new global::RetellAI.JsonConverters.BridgeTransferToolExecutionMessageTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CohortQaListArgsSortKeyNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CallAnalysisUserSentiment)) + if (typeToConvert == typeof(global::RetellAI.CohortQaListArgsOrder)) { - return new global::RetellAI.JsonConverters.CallAnalysisUserSentimentJsonConverter(); + return new global::RetellAI.JsonConverters.CohortQaListArgsOrderJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CallAnalysisUserSentiment?)) + if (typeToConvert == typeof(global::RetellAI.CohortQaListArgsOrder?)) { - return new global::RetellAI.JsonConverters.CallAnalysisUserSentimentNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CohortQaListArgsOrderNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CancelTransferNodeVariant2Type)) + if (typeToConvert == typeof(global::RetellAI.ResponseEngineConversationFlowType)) { - return new global::RetellAI.JsonConverters.CancelTransferNodeVariant2TypeJsonConverter(); + return new global::RetellAI.JsonConverters.ResponseEngineConversationFlowTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CancelTransferNodeVariant2Type?)) + if (typeToConvert == typeof(global::RetellAI.ResponseEngineConversationFlowType?)) { - return new global::RetellAI.JsonConverters.CancelTransferNodeVariant2TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ResponseEngineConversationFlowTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CancelTransferToolType)) + if (typeToConvert == typeof(global::RetellAI.ResponseEngineCustomLmType)) { - return new global::RetellAI.JsonConverters.CancelTransferToolTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ResponseEngineCustomLmTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CancelTransferToolType?)) + if (typeToConvert == typeof(global::RetellAI.ResponseEngineCustomLmType?)) { - return new global::RetellAI.JsonConverters.CancelTransferToolTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ResponseEngineCustomLmTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CancelTransferToolExecutionMessageType)) + if (typeToConvert == typeof(global::RetellAI.ResponseEngineRetellLmType)) { - return new global::RetellAI.JsonConverters.CancelTransferToolExecutionMessageTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ResponseEngineRetellLmTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CancelTransferToolExecutionMessageType?)) + if (typeToConvert == typeof(global::RetellAI.ResponseEngineRetellLmType?)) { - return new global::RetellAI.JsonConverters.CancelTransferToolExecutionMessageTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ResponseEngineRetellLmTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatAgentRequestLanguage)) + if (typeToConvert == typeof(global::RetellAI.RetellLlmOverrideS2sModel)) { - return new global::RetellAI.JsonConverters.ChatAgentRequestLanguageJsonConverter(); + return new global::RetellAI.JsonConverters.RetellLlmOverrideS2sModelJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatAgentRequestLanguage?)) + if (typeToConvert == typeof(global::RetellAI.RetellLlmOverrideS2sModel?)) { - return new global::RetellAI.JsonConverters.ChatAgentRequestLanguageNullableJsonConverter(); + return new global::RetellAI.JsonConverters.RetellLlmOverrideS2sModelNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatAgentRequestWebhookEvent)) + if (typeToConvert == typeof(global::RetellAI.RetellLlmOverrideStartSpeaker)) { - return new global::RetellAI.JsonConverters.ChatAgentRequestWebhookEventJsonConverter(); + return new global::RetellAI.JsonConverters.RetellLlmOverrideStartSpeakerJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatAgentRequestWebhookEvent?)) + if (typeToConvert == typeof(global::RetellAI.RetellLlmOverrideStartSpeaker?)) { - return new global::RetellAI.JsonConverters.ChatAgentRequestWebhookEventNullableJsonConverter(); + return new global::RetellAI.JsonConverters.RetellLlmOverrideStartSpeakerNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatAgentRequestDataStorageSetting)) + if (typeToConvert == typeof(global::RetellAI.SendSMSToolType)) { - return new global::RetellAI.JsonConverters.ChatAgentRequestDataStorageSettingJsonConverter(); + return new global::RetellAI.JsonConverters.SendSMSToolTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatAgentRequestDataStorageSetting?)) + if (typeToConvert == typeof(global::RetellAI.SendSMSToolType?)) { - return new global::RetellAI.JsonConverters.ChatAgentRequestDataStorageSettingNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SendSMSToolTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatAnalysisUserSentiment)) + if (typeToConvert == typeof(global::RetellAI.SendSMSToolExecutionMessageType)) { - return new global::RetellAI.JsonConverters.ChatAnalysisUserSentimentJsonConverter(); + return new global::RetellAI.JsonConverters.SendSMSToolExecutionMessageTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatAnalysisUserSentiment?)) + if (typeToConvert == typeof(global::RetellAI.SendSMSToolExecutionMessageType?)) { - return new global::RetellAI.JsonConverters.ChatAnalysisUserSentimentNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SendSMSToolExecutionMessageTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatResponseChatStatus)) + if (typeToConvert == typeof(global::RetellAI.SmsSenderVariant1Type)) { - return new global::RetellAI.JsonConverters.ChatResponseChatStatusJsonConverter(); + return new global::RetellAI.JsonConverters.SmsSenderVariant1TypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatResponseChatStatus?)) + if (typeToConvert == typeof(global::RetellAI.SmsSenderVariant1Type?)) { - return new global::RetellAI.JsonConverters.ChatResponseChatStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SmsSenderVariant1TypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatResponseChatType)) + if (typeToConvert == typeof(global::RetellAI.SmsSenderVariant2Type)) { - return new global::RetellAI.JsonConverters.ChatResponseChatTypeJsonConverter(); + return new global::RetellAI.JsonConverters.SmsSenderVariant2TypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatResponseChatType?)) + if (typeToConvert == typeof(global::RetellAI.SmsSenderVariant2Type?)) { - return new global::RetellAI.JsonConverters.ChatResponseChatTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SmsSenderVariant2TypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V3ListChatsRequestSortOrder)) + if (typeToConvert == typeof(global::RetellAI.SmsDestinationVariant1Type)) { - return new global::RetellAI.JsonConverters.V3ListChatsRequestSortOrderJsonConverter(); + return new global::RetellAI.JsonConverters.SmsDestinationVariant1TypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V3ListChatsRequestSortOrder?)) + if (typeToConvert == typeof(global::RetellAI.SmsDestinationVariant1Type?)) { - return new global::RetellAI.JsonConverters.V3ListChatsRequestSortOrderNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SmsDestinationVariant1TypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CheckAvailabilityCalToolType)) + if (typeToConvert == typeof(global::RetellAI.SmsDestinationVariant2Type)) { - return new global::RetellAI.JsonConverters.CheckAvailabilityCalToolTypeJsonConverter(); + return new global::RetellAI.JsonConverters.SmsDestinationVariant2TypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CheckAvailabilityCalToolType?)) + if (typeToConvert == typeof(global::RetellAI.SmsDestinationVariant2Type?)) { - return new global::RetellAI.JsonConverters.CheckAvailabilityCalToolTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SmsDestinationVariant2TypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CohortAggregatedResultGroupBy)) + if (typeToConvert == typeof(global::RetellAI.SentimentAnalysisDetailVariant1Sentiment)) { - return new global::RetellAI.JsonConverters.CohortAggregatedResultGroupByJsonConverter(); + return new global::RetellAI.JsonConverters.SentimentAnalysisDetailVariant1SentimentJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CohortAggregatedResultGroupBy?)) + if (typeToConvert == typeof(global::RetellAI.SentimentAnalysisDetailVariant1Sentiment?)) { - return new global::RetellAI.JsonConverters.CohortAggregatedResultGroupByNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SentimentAnalysisDetailVariant1SentimentNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CohortFilterStartTimestampVariant1Op)) + if (typeToConvert == typeof(global::RetellAI.SentimentAnalysisDetailVariant2Sentiment)) { - return new global::RetellAI.JsonConverters.CohortFilterStartTimestampVariant1OpJsonConverter(); + return new global::RetellAI.JsonConverters.SentimentAnalysisDetailVariant2SentimentJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CohortFilterStartTimestampVariant1Op?)) + if (typeToConvert == typeof(global::RetellAI.SentimentAnalysisDetailVariant2Sentiment?)) { - return new global::RetellAI.JsonConverters.CohortFilterStartTimestampVariant1OpNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SentimentAnalysisDetailVariant2SentimentNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CohortFilterCallDurationFilterOp)) + if (typeToConvert == typeof(global::RetellAI.SkipResponseEdgeVariant2TransitionConditionType)) { - return new global::RetellAI.JsonConverters.CohortFilterCallDurationFilterOpJsonConverter(); + return new global::RetellAI.JsonConverters.SkipResponseEdgeVariant2TransitionConditionTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CohortFilterCallDurationFilterOp?)) + if (typeToConvert == typeof(global::RetellAI.SkipResponseEdgeVariant2TransitionConditionType?)) { - return new global::RetellAI.JsonConverters.CohortFilterCallDurationFilterOpNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SkipResponseEdgeVariant2TransitionConditionTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CohortSuccessfulCriteriaType)) + if (typeToConvert == typeof(global::RetellAI.SkipResponseEdgeVariant2TransitionConditionPrompt)) { - return new global::RetellAI.JsonConverters.CohortSuccessfulCriteriaTypeJsonConverter(); + return new global::RetellAI.JsonConverters.SkipResponseEdgeVariant2TransitionConditionPromptJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CohortSuccessfulCriteriaType?)) + if (typeToConvert == typeof(global::RetellAI.SkipResponseEdgeVariant2TransitionConditionPrompt?)) { - return new global::RetellAI.JsonConverters.CohortSuccessfulCriteriaTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SkipResponseEdgeVariant2TransitionConditionPromptNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CohortSuccessfulCriteriaOp)) + if (typeToConvert == typeof(global::RetellAI.AlwaysEdgeVariant2TransitionConditionType)) { - return new global::RetellAI.JsonConverters.CohortSuccessfulCriteriaOpJsonConverter(); + return new global::RetellAI.JsonConverters.AlwaysEdgeVariant2TransitionConditionTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CohortSuccessfulCriteriaOp?)) + if (typeToConvert == typeof(global::RetellAI.AlwaysEdgeVariant2TransitionConditionType?)) { - return new global::RetellAI.JsonConverters.CohortSuccessfulCriteriaOpNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AlwaysEdgeVariant2TransitionConditionTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CohortEvaluationMode)) + if (typeToConvert == typeof(global::RetellAI.AlwaysEdgeVariant2TransitionConditionPrompt)) { - return new global::RetellAI.JsonConverters.CohortEvaluationModeJsonConverter(); + return new global::RetellAI.JsonConverters.AlwaysEdgeVariant2TransitionConditionPromptJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CohortEvaluationMode?)) + if (typeToConvert == typeof(global::RetellAI.AlwaysEdgeVariant2TransitionConditionPrompt?)) { - return new global::RetellAI.JsonConverters.CohortEvaluationModeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AlwaysEdgeVariant2TransitionConditionPromptNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ComponentNodeVariant2Type)) + if (typeToConvert == typeof(global::RetellAI.SmsContentInferredType)) { - return new global::RetellAI.JsonConverters.ComponentNodeVariant2TypeJsonConverter(); + return new global::RetellAI.JsonConverters.SmsContentInferredTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ComponentNodeVariant2Type?)) + if (typeToConvert == typeof(global::RetellAI.SmsContentInferredType?)) { - return new global::RetellAI.JsonConverters.ComponentNodeVariant2TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SmsContentInferredTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ComponentNodeVariant2ComponentType)) + if (typeToConvert == typeof(global::RetellAI.SmsContentPredefinedType)) { - return new global::RetellAI.JsonConverters.ComponentNodeVariant2ComponentTypeJsonConverter(); + return new global::RetellAI.JsonConverters.SmsContentPredefinedTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ComponentNodeVariant2ComponentType?)) + if (typeToConvert == typeof(global::RetellAI.SmsContentPredefinedType?)) { - return new global::RetellAI.JsonConverters.ComponentNodeVariant2ComponentTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SmsContentPredefinedTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ConversationFlowOverrideStartSpeaker)) + if (typeToConvert == typeof(global::RetellAI.SmsContentTemplateType)) { - return new global::RetellAI.JsonConverters.ConversationFlowOverrideStartSpeakerJsonConverter(); + return new global::RetellAI.JsonConverters.SmsContentTemplateTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ConversationFlowOverrideStartSpeaker?)) + if (typeToConvert == typeof(global::RetellAI.SmsContentTemplateType?)) { - return new global::RetellAI.JsonConverters.ConversationFlowOverrideStartSpeakerNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SmsContentTemplateTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ConversationNodeVariant3Type)) + if (typeToConvert == typeof(global::RetellAI.SmsContentTemplateTemplate)) { - return new global::RetellAI.JsonConverters.ConversationNodeVariant3TypeJsonConverter(); + return new global::RetellAI.JsonConverters.SmsContentTemplateTemplateJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ConversationNodeVariant3Type?)) + if (typeToConvert == typeof(global::RetellAI.SmsContentTemplateTemplate?)) { - return new global::RetellAI.JsonConverters.ConversationNodeVariant3TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SmsContentTemplateTemplateNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SubagentNodeVariant3Type)) + if (typeToConvert == typeof(global::RetellAI.SmsFailedEdgeVariant2TransitionConditionType)) { - return new global::RetellAI.JsonConverters.SubagentNodeVariant3TypeJsonConverter(); + return new global::RetellAI.JsonConverters.SmsFailedEdgeVariant2TransitionConditionTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SubagentNodeVariant3Type?)) + if (typeToConvert == typeof(global::RetellAI.SmsFailedEdgeVariant2TransitionConditionType?)) { - return new global::RetellAI.JsonConverters.SubagentNodeVariant3TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SmsFailedEdgeVariant2TransitionConditionTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CustomToolType)) + if (typeToConvert == typeof(global::RetellAI.SmsFailedEdgeVariant2TransitionConditionPrompt)) { - return new global::RetellAI.JsonConverters.CustomToolTypeJsonConverter(); + return new global::RetellAI.JsonConverters.SmsFailedEdgeVariant2TransitionConditionPromptJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CustomToolType?)) + if (typeToConvert == typeof(global::RetellAI.SmsFailedEdgeVariant2TransitionConditionPrompt?)) { - return new global::RetellAI.JsonConverters.CustomToolTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SmsFailedEdgeVariant2TransitionConditionPromptNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CustomToolMethod)) + if (typeToConvert == typeof(global::RetellAI.SmsNodeVariant2Type)) { - return new global::RetellAI.JsonConverters.CustomToolMethodJsonConverter(); + return new global::RetellAI.JsonConverters.SmsNodeVariant2TypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CustomToolMethod?)) + if (typeToConvert == typeof(global::RetellAI.SmsNodeVariant2Type?)) { - return new global::RetellAI.JsonConverters.CustomToolMethodNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SmsNodeVariant2TypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CustomToolExecutionMessageType)) + if (typeToConvert == typeof(global::RetellAI.SmsSuccessEdgeVariant2TransitionConditionType)) { - return new global::RetellAI.JsonConverters.CustomToolExecutionMessageTypeJsonConverter(); + return new global::RetellAI.JsonConverters.SmsSuccessEdgeVariant2TransitionConditionTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CustomToolExecutionMessageType?)) + if (typeToConvert == typeof(global::RetellAI.SmsSuccessEdgeVariant2TransitionConditionType?)) { - return new global::RetellAI.JsonConverters.CustomToolExecutionMessageTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SmsSuccessEdgeVariant2TransitionConditionTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CustomToolParameterType)) + if (typeToConvert == typeof(global::RetellAI.SmsSuccessEdgeVariant2TransitionConditionPrompt)) { - return new global::RetellAI.JsonConverters.CustomToolParameterTypeJsonConverter(); + return new global::RetellAI.JsonConverters.SmsSuccessEdgeVariant2TransitionConditionPromptJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CustomToolParameterType?)) + if (typeToConvert == typeof(global::RetellAI.SmsSuccessEdgeVariant2TransitionConditionPrompt?)) { - return new global::RetellAI.JsonConverters.CustomToolParameterTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SmsSuccessEdgeVariant2TransitionConditionPromptNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CodeToolType)) + if (typeToConvert == typeof(global::RetellAI.StateTransitionMessageBaseRole)) { - return new global::RetellAI.JsonConverters.CodeToolTypeJsonConverter(); + return new global::RetellAI.JsonConverters.StateTransitionMessageBaseRoleJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CodeToolType?)) + if (typeToConvert == typeof(global::RetellAI.StateTransitionMessageBaseRole?)) { - return new global::RetellAI.JsonConverters.CodeToolTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.StateTransitionMessageBaseRoleNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CodeToolExecutionMessageType)) + if (typeToConvert == typeof(global::RetellAI.StringAnalysisDataType)) { - return new global::RetellAI.JsonConverters.CodeToolExecutionMessageTypeJsonConverter(); + return new global::RetellAI.JsonConverters.StringAnalysisDataTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CodeToolExecutionMessageType?)) + if (typeToConvert == typeof(global::RetellAI.StringAnalysisDataType?)) { - return new global::RetellAI.JsonConverters.CodeToolExecutionMessageTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.StringAnalysisDataTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DTMFUtteranceRole)) + if (typeToConvert == typeof(global::RetellAI.TestCaseBatchJobStatus)) { - return new global::RetellAI.JsonConverters.DTMFUtteranceRoleJsonConverter(); + return new global::RetellAI.JsonConverters.TestCaseBatchJobStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DTMFUtteranceRole?)) + if (typeToConvert == typeof(global::RetellAI.TestCaseBatchJobStatus?)) { - return new global::RetellAI.JsonConverters.DTMFUtteranceRoleNullableJsonConverter(); + return new global::RetellAI.JsonConverters.TestCaseBatchJobStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsUtteranceRole)) + if (typeToConvert == typeof(global::RetellAI.TestCaseDefinitionVariant2Type)) { - return new global::RetellAI.JsonConverters.SmsUtteranceRoleJsonConverter(); + return new global::RetellAI.JsonConverters.TestCaseDefinitionVariant2TypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsUtteranceRole?)) + if (typeToConvert == typeof(global::RetellAI.TestCaseDefinitionVariant2Type?)) { - return new global::RetellAI.JsonConverters.SmsUtteranceRoleNullableJsonConverter(); + return new global::RetellAI.JsonConverters.TestCaseDefinitionVariant2TypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.InjectedUtteranceRole)) + if (typeToConvert == typeof(global::RetellAI.TestCaseJobStatus)) { - return new global::RetellAI.JsonConverters.InjectedUtteranceRoleJsonConverter(); + return new global::RetellAI.JsonConverters.TestCaseJobStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.InjectedUtteranceRole?)) + if (typeToConvert == typeof(global::RetellAI.TestCaseJobStatus?)) { - return new global::RetellAI.JsonConverters.InjectedUtteranceRoleNullableJsonConverter(); + return new global::RetellAI.JsonConverters.TestCaseJobStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.StringFilterType)) + if (typeToConvert == typeof(global::RetellAI.ToolMockInputMatchRuleVariant1Type)) { - return new global::RetellAI.JsonConverters.StringFilterTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ToolMockInputMatchRuleVariant1TypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.StringFilterType?)) + if (typeToConvert == typeof(global::RetellAI.ToolMockInputMatchRuleVariant1Type?)) { - return new global::RetellAI.JsonConverters.StringFilterTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ToolMockInputMatchRuleVariant1TypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.StringFilterOp)) + if (typeToConvert == typeof(global::RetellAI.ToolMockInputMatchRuleVariant2Type)) { - return new global::RetellAI.JsonConverters.StringFilterOpJsonConverter(); + return new global::RetellAI.JsonConverters.ToolMockInputMatchRuleVariant2TypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.StringFilterOp?)) + if (typeToConvert == typeof(global::RetellAI.ToolMockInputMatchRuleVariant2Type?)) { - return new global::RetellAI.JsonConverters.StringFilterOpNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ToolMockInputMatchRuleVariant2TypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NumberFilterType)) + if (typeToConvert == typeof(global::RetellAI.ToolCallInvocationMessageBaseRole)) { - return new global::RetellAI.JsonConverters.NumberFilterTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ToolCallInvocationMessageBaseRoleJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NumberFilterType?)) + if (typeToConvert == typeof(global::RetellAI.ToolCallInvocationMessageBaseRole?)) { - return new global::RetellAI.JsonConverters.NumberFilterTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ToolCallInvocationMessageBaseRoleNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NumberFilterOp)) + if (typeToConvert == typeof(global::RetellAI.ToolCallInvocationUtteranceRole)) { - return new global::RetellAI.JsonConverters.NumberFilterOpJsonConverter(); + return new global::RetellAI.JsonConverters.ToolCallInvocationUtteranceRoleJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NumberFilterOp?)) + if (typeToConvert == typeof(global::RetellAI.ToolCallInvocationUtteranceRole?)) { - return new global::RetellAI.JsonConverters.NumberFilterOpNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ToolCallInvocationUtteranceRoleNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.BooleanFilterType)) + if (typeToConvert == typeof(global::RetellAI.ToolCallResultMessageBaseRole)) { - return new global::RetellAI.JsonConverters.BooleanFilterTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ToolCallResultMessageBaseRoleJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.BooleanFilterType?)) + if (typeToConvert == typeof(global::RetellAI.ToolCallResultMessageBaseRole?)) { - return new global::RetellAI.JsonConverters.BooleanFilterTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ToolCallResultMessageBaseRoleNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.BooleanFilterOp)) + if (typeToConvert == typeof(global::RetellAI.ToolCallResultUtteranceRole)) { - return new global::RetellAI.JsonConverters.BooleanFilterOpJsonConverter(); + return new global::RetellAI.JsonConverters.ToolCallResultUtteranceRoleJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.BooleanFilterOp?)) + if (typeToConvert == typeof(global::RetellAI.ToolCallResultUtteranceRole?)) { - return new global::RetellAI.JsonConverters.BooleanFilterOpNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ToolCallResultUtteranceRoleNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RangeFilterType)) + if (typeToConvert == typeof(global::RetellAI.ToolParameterType)) { - return new global::RetellAI.JsonConverters.RangeFilterTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ToolParameterTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RangeFilterType?)) + if (typeToConvert == typeof(global::RetellAI.ToolParameterType?)) { - return new global::RetellAI.JsonConverters.RangeFilterTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ToolParameterTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RangeFilterOp)) + if (typeToConvert == typeof(global::RetellAI.TransferCallNodeVariant2Type)) { - return new global::RetellAI.JsonConverters.RangeFilterOpJsonConverter(); + return new global::RetellAI.JsonConverters.TransferCallNodeVariant2TypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RangeFilterOp?)) + if (typeToConvert == typeof(global::RetellAI.TransferCallNodeVariant2Type?)) { - return new global::RetellAI.JsonConverters.RangeFilterOpNullableJsonConverter(); + return new global::RetellAI.JsonConverters.TransferCallNodeVariant2TypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EnumFilterType)) + if (typeToConvert == typeof(global::RetellAI.TransferCallToolType)) { - return new global::RetellAI.JsonConverters.EnumFilterTypeJsonConverter(); + return new global::RetellAI.JsonConverters.TransferCallToolTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EnumFilterType?)) + if (typeToConvert == typeof(global::RetellAI.TransferCallToolType?)) { - return new global::RetellAI.JsonConverters.EnumFilterTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.TransferCallToolTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EnumFilterOp)) + if (typeToConvert == typeof(global::RetellAI.TransferCallToolExecutionMessageType)) { - return new global::RetellAI.JsonConverters.EnumFilterOpJsonConverter(); + return new global::RetellAI.JsonConverters.TransferCallToolExecutionMessageTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EnumFilterOp?)) + if (typeToConvert == typeof(global::RetellAI.TransferCallToolExecutionMessageType?)) { - return new global::RetellAI.JsonConverters.EnumFilterOpNullableJsonConverter(); + return new global::RetellAI.JsonConverters.TransferCallToolExecutionMessageTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PresentFilterType)) + if (typeToConvert == typeof(global::RetellAI.TransferDestinationInferredType)) { - return new global::RetellAI.JsonConverters.PresentFilterTypeJsonConverter(); + return new global::RetellAI.JsonConverters.TransferDestinationInferredTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PresentFilterType?)) + if (typeToConvert == typeof(global::RetellAI.TransferDestinationInferredType?)) { - return new global::RetellAI.JsonConverters.PresentFilterTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.TransferDestinationInferredTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PresentFilterOp)) + if (typeToConvert == typeof(global::RetellAI.TransferDestinationPredefinedType)) { - return new global::RetellAI.JsonConverters.PresentFilterOpJsonConverter(); + return new global::RetellAI.JsonConverters.TransferDestinationPredefinedTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PresentFilterOp?)) + if (typeToConvert == typeof(global::RetellAI.TransferDestinationPredefinedType?)) { - return new global::RetellAI.JsonConverters.PresentFilterOpNullableJsonConverter(); + return new global::RetellAI.JsonConverters.TransferDestinationPredefinedTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CallFilterCallStatusValueItem)) + if (typeToConvert == typeof(global::RetellAI.TransferFailedEdgeVariant2TransitionConditionType)) { - return new global::RetellAI.JsonConverters.CallFilterCallStatusValueItemJsonConverter(); + return new global::RetellAI.JsonConverters.TransferFailedEdgeVariant2TransitionConditionTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CallFilterCallStatusValueItem?)) + if (typeToConvert == typeof(global::RetellAI.TransferFailedEdgeVariant2TransitionConditionType?)) { - return new global::RetellAI.JsonConverters.CallFilterCallStatusValueItemNullableJsonConverter(); + return new global::RetellAI.JsonConverters.TransferFailedEdgeVariant2TransitionConditionTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CallFilterCallTypeValueItem)) + if (typeToConvert == typeof(global::RetellAI.TransferFailedEdgeVariant2TransitionConditionPrompt)) { - return new global::RetellAI.JsonConverters.CallFilterCallTypeValueItemJsonConverter(); + return new global::RetellAI.JsonConverters.TransferFailedEdgeVariant2TransitionConditionPromptJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CallFilterCallTypeValueItem?)) + if (typeToConvert == typeof(global::RetellAI.TransferFailedEdgeVariant2TransitionConditionPrompt?)) { - return new global::RetellAI.JsonConverters.CallFilterCallTypeValueItemNullableJsonConverter(); + return new global::RetellAI.JsonConverters.TransferFailedEdgeVariant2TransitionConditionPromptNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CallFilterDirectionValueItem)) + if (typeToConvert == typeof(global::RetellAI.TransferOptionAgenticWarmTransferType)) { - return new global::RetellAI.JsonConverters.CallFilterDirectionValueItemJsonConverter(); + return new global::RetellAI.JsonConverters.TransferOptionAgenticWarmTransferTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CallFilterDirectionValueItem?)) + if (typeToConvert == typeof(global::RetellAI.TransferOptionAgenticWarmTransferType?)) { - return new global::RetellAI.JsonConverters.CallFilterDirectionValueItemNullableJsonConverter(); + return new global::RetellAI.JsonConverters.TransferOptionAgenticWarmTransferTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CallFilterUserSentimentValueItem)) + if (typeToConvert == typeof(global::RetellAI.TransferOptionAgenticWarmTransferOnHoldMusic)) { - return new global::RetellAI.JsonConverters.CallFilterUserSentimentValueItemJsonConverter(); + return new global::RetellAI.JsonConverters.TransferOptionAgenticWarmTransferOnHoldMusicJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CallFilterUserSentimentValueItem?)) + if (typeToConvert == typeof(global::RetellAI.TransferOptionAgenticWarmTransferOnHoldMusic?)) { - return new global::RetellAI.JsonConverters.CallFilterUserSentimentValueItemNullableJsonConverter(); + return new global::RetellAI.JsonConverters.TransferOptionAgenticWarmTransferOnHoldMusicNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CallFilterDataStorageSettingValueItem)) + if (typeToConvert == typeof(global::RetellAI.TransferOptionAgenticWarmTransferAgenticTransferConfigActionOnTimeout)) { - return new global::RetellAI.JsonConverters.CallFilterDataStorageSettingValueItemJsonConverter(); + return new global::RetellAI.JsonConverters.TransferOptionAgenticWarmTransferAgenticTransferConfigActionOnTimeoutJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CallFilterDataStorageSettingValueItem?)) + if (typeToConvert == typeof(global::RetellAI.TransferOptionAgenticWarmTransferAgenticTransferConfigActionOnTimeout?)) { - return new global::RetellAI.JsonConverters.CallFilterDataStorageSettingValueItemNullableJsonConverter(); + return new global::RetellAI.JsonConverters.TransferOptionAgenticWarmTransferAgenticTransferConfigActionOnTimeoutNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatFilterChatStatusValueItem)) + if (typeToConvert == typeof(global::RetellAI.TransferOptionColdTransferType)) { - return new global::RetellAI.JsonConverters.ChatFilterChatStatusValueItemJsonConverter(); + return new global::RetellAI.JsonConverters.TransferOptionColdTransferTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatFilterChatStatusValueItem?)) + if (typeToConvert == typeof(global::RetellAI.TransferOptionColdTransferType?)) { - return new global::RetellAI.JsonConverters.ChatFilterChatStatusValueItemNullableJsonConverter(); + return new global::RetellAI.JsonConverters.TransferOptionColdTransferTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatFilterUserSentimentValueItem)) + if (typeToConvert == typeof(global::RetellAI.TransferOptionColdTransferColdTransferMode)) { - return new global::RetellAI.JsonConverters.ChatFilterUserSentimentValueItemJsonConverter(); + return new global::RetellAI.JsonConverters.TransferOptionColdTransferColdTransferModeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatFilterUserSentimentValueItem?)) + if (typeToConvert == typeof(global::RetellAI.TransferOptionColdTransferColdTransferMode?)) { - return new global::RetellAI.JsonConverters.ChatFilterUserSentimentValueItemNullableJsonConverter(); + return new global::RetellAI.JsonConverters.TransferOptionColdTransferColdTransferModeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListContactsRequestSortOrder)) + if (typeToConvert == typeof(global::RetellAI.TransferOptionWarmTransferType)) { - return new global::RetellAI.JsonConverters.ListContactsRequestSortOrderJsonConverter(); + return new global::RetellAI.JsonConverters.TransferOptionWarmTransferTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListContactsRequestSortOrder?)) + if (typeToConvert == typeof(global::RetellAI.TransferOptionWarmTransferType?)) { - return new global::RetellAI.JsonConverters.ListContactsRequestSortOrderNullableJsonConverter(); + return new global::RetellAI.JsonConverters.TransferOptionWarmTransferTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DayOfWeek)) + if (typeToConvert == typeof(global::RetellAI.TransferOptionWarmTransferOnHoldMusic)) { - return new global::RetellAI.JsonConverters.DayOfWeekJsonConverter(); + return new global::RetellAI.JsonConverters.TransferOptionWarmTransferOnHoldMusicJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DayOfWeek?)) + if (typeToConvert == typeof(global::RetellAI.TransferOptionWarmTransferOnHoldMusic?)) { - return new global::RetellAI.JsonConverters.DayOfWeekNullableJsonConverter(); + return new global::RetellAI.JsonConverters.TransferOptionWarmTransferOnHoldMusicNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DisconnectionReason5)) + if (typeToConvert == typeof(global::RetellAI.UtteranceHallucinationHallucinationType)) { - return new global::RetellAI.JsonConverters.DisconnectionReason5JsonConverter(); + return new global::RetellAI.JsonConverters.UtteranceHallucinationHallucinationTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DisconnectionReason5?)) + if (typeToConvert == typeof(global::RetellAI.UtteranceHallucinationHallucinationType?)) { - return new global::RetellAI.JsonConverters.DisconnectionReason5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UtteranceHallucinationHallucinationTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ElseEdgeVariant2TransitionConditionType)) + if (typeToConvert == typeof(global::RetellAI.UtteranceRole)) { - return new global::RetellAI.JsonConverters.ElseEdgeVariant2TransitionConditionTypeJsonConverter(); + return new global::RetellAI.JsonConverters.UtteranceRoleJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ElseEdgeVariant2TransitionConditionType?)) + if (typeToConvert == typeof(global::RetellAI.UtteranceRole?)) { - return new global::RetellAI.JsonConverters.ElseEdgeVariant2TransitionConditionTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UtteranceRoleNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ElseEdgeVariant2TransitionConditionPrompt)) + if (typeToConvert == typeof(global::RetellAI.V2CallBaseCallStatus)) { - return new global::RetellAI.JsonConverters.ElseEdgeVariant2TransitionConditionPromptJsonConverter(); + return new global::RetellAI.JsonConverters.V2CallBaseCallStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ElseEdgeVariant2TransitionConditionPrompt?)) + if (typeToConvert == typeof(global::RetellAI.V2CallBaseCallStatus?)) { - return new global::RetellAI.JsonConverters.ElseEdgeVariant2TransitionConditionPromptNullableJsonConverter(); + return new global::RetellAI.JsonConverters.V2CallBaseCallStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EndCallToolType)) + if (typeToConvert == typeof(global::RetellAI.V2CallBaseDataStorageSetting)) { - return new global::RetellAI.JsonConverters.EndCallToolTypeJsonConverter(); + return new global::RetellAI.JsonConverters.V2CallBaseDataStorageSettingJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EndCallToolType?)) + if (typeToConvert == typeof(global::RetellAI.V2CallBaseDataStorageSetting?)) { - return new global::RetellAI.JsonConverters.EndCallToolTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.V2CallBaseDataStorageSettingNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EndCallToolExecutionMessageType)) + if (typeToConvert == typeof(global::RetellAI.V3CallBaseCallStatus)) { - return new global::RetellAI.JsonConverters.EndCallToolExecutionMessageTypeJsonConverter(); + return new global::RetellAI.JsonConverters.V3CallBaseCallStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EndCallToolExecutionMessageType?)) + if (typeToConvert == typeof(global::RetellAI.V3CallBaseCallStatus?)) { - return new global::RetellAI.JsonConverters.EndCallToolExecutionMessageTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.V3CallBaseCallStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EndNodeVariant2Type)) + if (typeToConvert == typeof(global::RetellAI.V3CallBaseDataStorageSetting)) { - return new global::RetellAI.JsonConverters.EndNodeVariant2TypeJsonConverter(); + return new global::RetellAI.JsonConverters.V3CallBaseDataStorageSettingJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EndNodeVariant2Type?)) + if (typeToConvert == typeof(global::RetellAI.V3CallBaseDataStorageSetting?)) { - return new global::RetellAI.JsonConverters.EndNodeVariant2TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.V3CallBaseDataStorageSettingNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EnumAnalysisDataType)) + if (typeToConvert == typeof(global::RetellAI.V3PhoneCallResponseVariant1CallType)) { - return new global::RetellAI.JsonConverters.EnumAnalysisDataTypeJsonConverter(); + return new global::RetellAI.JsonConverters.V3PhoneCallResponseVariant1CallTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EnumAnalysisDataType?)) + if (typeToConvert == typeof(global::RetellAI.V3PhoneCallResponseVariant1CallType?)) { - return new global::RetellAI.JsonConverters.EnumAnalysisDataTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.V3PhoneCallResponseVariant1CallTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EquationConditionType)) + if (typeToConvert == typeof(global::RetellAI.V3PhoneCallResponseVariant1Direction)) { - return new global::RetellAI.JsonConverters.EquationConditionTypeJsonConverter(); + return new global::RetellAI.JsonConverters.V3PhoneCallResponseVariant1DirectionJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EquationConditionType?)) + if (typeToConvert == typeof(global::RetellAI.V3PhoneCallResponseVariant1Direction?)) { - return new global::RetellAI.JsonConverters.EquationConditionTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.V3PhoneCallResponseVariant1DirectionNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EquationConditionOperator)) + if (typeToConvert == typeof(global::RetellAI.V3WebCallResponseVariant1CallType)) { - return new global::RetellAI.JsonConverters.EquationConditionOperatorJsonConverter(); + return new global::RetellAI.JsonConverters.V3WebCallResponseVariant1CallTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EquationConditionOperator?)) + if (typeToConvert == typeof(global::RetellAI.V3WebCallResponseVariant1CallType?)) { - return new global::RetellAI.JsonConverters.EquationConditionOperatorNullableJsonConverter(); + return new global::RetellAI.JsonConverters.V3WebCallResponseVariant1CallTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EquationOperator)) + if (typeToConvert == typeof(global::RetellAI.V3ListCallsRequestSortOrder)) { - return new global::RetellAI.JsonConverters.EquationOperatorJsonConverter(); + return new global::RetellAI.JsonConverters.V3ListCallsRequestSortOrderJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EquationOperator?)) + if (typeToConvert == typeof(global::RetellAI.V3ListCallsRequestSortOrder?)) { - return new global::RetellAI.JsonConverters.EquationOperatorNullableJsonConverter(); + return new global::RetellAI.JsonConverters.V3ListCallsRequestSortOrderNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ExtractDynamicVariableToolType)) + if (typeToConvert == typeof(global::RetellAI.V2PhoneCallResponseVariant1CallType)) { - return new global::RetellAI.JsonConverters.ExtractDynamicVariableToolTypeJsonConverter(); + return new global::RetellAI.JsonConverters.V2PhoneCallResponseVariant1CallTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ExtractDynamicVariableToolType?)) + if (typeToConvert == typeof(global::RetellAI.V2PhoneCallResponseVariant1CallType?)) { - return new global::RetellAI.JsonConverters.ExtractDynamicVariableToolTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.V2PhoneCallResponseVariant1CallTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ExtractDynamicVariablesNodeVariant2Type)) + if (typeToConvert == typeof(global::RetellAI.V2PhoneCallResponseVariant1Direction)) { - return new global::RetellAI.JsonConverters.ExtractDynamicVariablesNodeVariant2TypeJsonConverter(); + return new global::RetellAI.JsonConverters.V2PhoneCallResponseVariant1DirectionJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ExtractDynamicVariablesNodeVariant2Type?)) + if (typeToConvert == typeof(global::RetellAI.V2PhoneCallResponseVariant1Direction?)) { - return new global::RetellAI.JsonConverters.ExtractDynamicVariablesNodeVariant2TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.V2PhoneCallResponseVariant1DirectionNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.FinetuneExampleUtteranceVariant1Role)) + if (typeToConvert == typeof(global::RetellAI.V2WebCallResponseVariant1CallType)) { - return new global::RetellAI.JsonConverters.FinetuneExampleUtteranceVariant1RoleJsonConverter(); + return new global::RetellAI.JsonConverters.V2WebCallResponseVariant1CallTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.FinetuneExampleUtteranceVariant1Role?)) + if (typeToConvert == typeof(global::RetellAI.V2WebCallResponseVariant1CallType?)) { - return new global::RetellAI.JsonConverters.FinetuneExampleUtteranceVariant1RoleNullableJsonConverter(); + return new global::RetellAI.JsonConverters.V2WebCallResponseVariant1CallTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.FinetuneExampleUtteranceVariant2Role)) + if (typeToConvert == typeof(global::RetellAI.VoiceResponseProvider)) { - return new global::RetellAI.JsonConverters.FinetuneExampleUtteranceVariant2RoleJsonConverter(); + return new global::RetellAI.JsonConverters.VoiceResponseProviderJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.FinetuneExampleUtteranceVariant2Role?)) + if (typeToConvert == typeof(global::RetellAI.VoiceResponseProvider?)) { - return new global::RetellAI.JsonConverters.FinetuneExampleUtteranceVariant2RoleNullableJsonConverter(); + return new global::RetellAI.JsonConverters.VoiceResponseProviderNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.FinetuneExampleUtteranceVariant3Role)) + if (typeToConvert == typeof(global::RetellAI.VoiceResponseGender)) { - return new global::RetellAI.JsonConverters.FinetuneExampleUtteranceVariant3RoleJsonConverter(); + return new global::RetellAI.JsonConverters.VoiceResponseGenderJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.FinetuneExampleUtteranceVariant3Role?)) + if (typeToConvert == typeof(global::RetellAI.VoiceResponseGender?)) { - return new global::RetellAI.JsonConverters.FinetuneExampleUtteranceVariant3RoleNullableJsonConverter(); + return new global::RetellAI.JsonConverters.VoiceResponseGenderNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.FunctionNodeVariant2Type)) + if (typeToConvert == typeof(global::RetellAI.VoicemailActionBridgeTransferType)) { - return new global::RetellAI.JsonConverters.FunctionNodeVariant2TypeJsonConverter(); + return new global::RetellAI.JsonConverters.VoicemailActionBridgeTransferTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.FunctionNodeVariant2Type?)) + if (typeToConvert == typeof(global::RetellAI.VoicemailActionBridgeTransferType?)) { - return new global::RetellAI.JsonConverters.FunctionNodeVariant2TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.VoicemailActionBridgeTransferTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.FunctionNodeVariant2ToolType)) + if (typeToConvert == typeof(global::RetellAI.VoicemailActionHangupType)) { - return new global::RetellAI.JsonConverters.FunctionNodeVariant2ToolTypeJsonConverter(); + return new global::RetellAI.JsonConverters.VoicemailActionHangupTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.FunctionNodeVariant2ToolType?)) + if (typeToConvert == typeof(global::RetellAI.VoicemailActionHangupType?)) { - return new global::RetellAI.JsonConverters.FunctionNodeVariant2ToolTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.VoicemailActionHangupTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CodeNodeVariant2Type)) + if (typeToConvert == typeof(global::RetellAI.VoicemailActionPromptType)) { - return new global::RetellAI.JsonConverters.CodeNodeVariant2TypeJsonConverter(); + return new global::RetellAI.JsonConverters.VoicemailActionPromptTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CodeNodeVariant2Type?)) + if (typeToConvert == typeof(global::RetellAI.VoicemailActionPromptType?)) { - return new global::RetellAI.JsonConverters.CodeNodeVariant2TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.VoicemailActionPromptTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.KnowledgeBaseResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.VoicemailActionStaticTextType)) { - return new global::RetellAI.JsonConverters.KnowledgeBaseResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.VoicemailActionStaticTextTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.KnowledgeBaseResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.VoicemailActionStaticTextType?)) { - return new global::RetellAI.JsonConverters.KnowledgeBaseResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.VoicemailActionStaticTextTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.KnowledgeBaseSourceDocumentType)) + if (typeToConvert == typeof(global::RetellAI.IvrActionHangupType)) { - return new global::RetellAI.JsonConverters.KnowledgeBaseSourceDocumentTypeJsonConverter(); + return new global::RetellAI.JsonConverters.IvrActionHangupTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.KnowledgeBaseSourceDocumentType?)) + if (typeToConvert == typeof(global::RetellAI.IvrActionHangupType?)) { - return new global::RetellAI.JsonConverters.KnowledgeBaseSourceDocumentTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.IvrActionHangupTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.KnowledgeBaseSourceTextType)) + if (typeToConvert == typeof(global::RetellAI.WarmTransferPromptType)) { - return new global::RetellAI.JsonConverters.KnowledgeBaseSourceTextTypeJsonConverter(); + return new global::RetellAI.JsonConverters.WarmTransferPromptTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.KnowledgeBaseSourceTextType?)) + if (typeToConvert == typeof(global::RetellAI.WarmTransferPromptType?)) { - return new global::RetellAI.JsonConverters.KnowledgeBaseSourceTextTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.WarmTransferPromptTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.KnowledgeBaseSourceUrlType)) + if (typeToConvert == typeof(global::RetellAI.WarmTransferStaticMessageType)) { - return new global::RetellAI.JsonConverters.KnowledgeBaseSourceUrlTypeJsonConverter(); + return new global::RetellAI.JsonConverters.WarmTransferStaticMessageTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.KnowledgeBaseSourceUrlType?)) + if (typeToConvert == typeof(global::RetellAI.WarmTransferStaticMessageType?)) { - return new global::RetellAI.JsonConverters.KnowledgeBaseSourceUrlTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.WarmTransferStaticMessageTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.Language3)) + if (typeToConvert == typeof(global::RetellAI.ConductorOverageConfigVariant1Mode)) { - return new global::RetellAI.JsonConverters.Language3JsonConverter(); + return new global::RetellAI.JsonConverters.ConductorOverageConfigVariant1ModeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.Language3?)) + if (typeToConvert == typeof(global::RetellAI.ConductorOverageConfigVariant1Mode?)) { - return new global::RetellAI.JsonConverters.Language3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ConductorOverageConfigVariant1ModeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.LLMModel)) + if (typeToConvert == typeof(global::RetellAI.ConductorOverageConfigVariant2Mode)) { - return new global::RetellAI.JsonConverters.LLMModelJsonConverter(); + return new global::RetellAI.JsonConverters.ConductorOverageConfigVariant2ModeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.LLMModel?)) + if (typeToConvert == typeof(global::RetellAI.ConductorOverageConfigVariant2Mode?)) { - return new global::RetellAI.JsonConverters.LLMModelNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ConductorOverageConfigVariant2ModeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.MCPNodeVariant2Type)) + if (typeToConvert == typeof(global::RetellAI.ConductorOverageConfigVariant3Mode)) { - return new global::RetellAI.JsonConverters.MCPNodeVariant2TypeJsonConverter(); + return new global::RetellAI.JsonConverters.ConductorOverageConfigVariant3ModeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.MCPNodeVariant2Type?)) + if (typeToConvert == typeof(global::RetellAI.ConductorOverageConfigVariant3Mode?)) { - return new global::RetellAI.JsonConverters.MCPNodeVariant2TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ConductorOverageConfigVariant3ModeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.MCPToolType)) + if (typeToConvert == typeof(global::RetellAI.ContactCallType)) { - return new global::RetellAI.JsonConverters.MCPToolTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ContactCallTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.MCPToolType?)) + if (typeToConvert == typeof(global::RetellAI.ContactCallType?)) { - return new global::RetellAI.JsonConverters.MCPToolTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ContactCallTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.MCPToolExecutionMessageType)) + if (typeToConvert == typeof(global::RetellAI.ContactCallDirection)) { - return new global::RetellAI.JsonConverters.MCPToolExecutionMessageTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ContactCallDirectionJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.MCPToolExecutionMessageType?)) + if (typeToConvert == typeof(global::RetellAI.ContactCallDirection?)) { - return new global::RetellAI.JsonConverters.MCPToolExecutionMessageTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ContactCallDirectionNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.MessageBaseRole)) + if (typeToConvert == typeof(global::RetellAI.ContactCallSentiment)) { - return new global::RetellAI.JsonConverters.MessageBaseRoleJsonConverter(); + return new global::RetellAI.JsonConverters.ContactCallSentimentJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.MessageBaseRole?)) + if (typeToConvert == typeof(global::RetellAI.ContactCallSentiment?)) { - return new global::RetellAI.JsonConverters.MessageBaseRoleNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ContactCallSentimentNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.InjectedMessageBaseRole)) + if (typeToConvert == typeof(global::RetellAI.ContactChatType)) { - return new global::RetellAI.JsonConverters.InjectedMessageBaseRoleJsonConverter(); + return new global::RetellAI.JsonConverters.ContactChatTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.InjectedMessageBaseRole?)) + if (typeToConvert == typeof(global::RetellAI.ContactChatType?)) { - return new global::RetellAI.JsonConverters.InjectedMessageBaseRoleNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ContactChatTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsMessageBaseRole)) + if (typeToConvert == typeof(global::RetellAI.ContactChatDirection)) { - return new global::RetellAI.JsonConverters.SmsMessageBaseRoleJsonConverter(); + return new global::RetellAI.JsonConverters.ContactChatDirectionJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsMessageBaseRole?)) + if (typeToConvert == typeof(global::RetellAI.ContactChatDirection?)) { - return new global::RetellAI.JsonConverters.SmsMessageBaseRoleNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ContactChatDirectionNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ModelChoiceCascadingType)) + if (typeToConvert == typeof(global::RetellAI.ContactChatSentiment)) { - return new global::RetellAI.JsonConverters.ModelChoiceCascadingTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ContactChatSentimentJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ModelChoiceCascadingType?)) + if (typeToConvert == typeof(global::RetellAI.ContactChatSentiment?)) { - return new global::RetellAI.JsonConverters.ModelChoiceCascadingTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ContactChatSentimentNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NaturalnessIssue)) + if (typeToConvert == typeof(global::RetellAI.AppType)) { - return new global::RetellAI.JsonConverters.NaturalnessIssueJsonConverter(); + return new global::RetellAI.JsonConverters.AppTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NaturalnessIssue?)) + if (typeToConvert == typeof(global::RetellAI.AppType?)) { - return new global::RetellAI.JsonConverters.NaturalnessIssueNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AppTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NodeInstructionPromptType)) + if (typeToConvert == typeof(global::RetellAI.AppConnectionStatus)) { - return new global::RetellAI.JsonConverters.NodeInstructionPromptTypeJsonConverter(); + return new global::RetellAI.JsonConverters.AppConnectionStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NodeInstructionPromptType?)) + if (typeToConvert == typeof(global::RetellAI.AppConnectionStatus?)) { - return new global::RetellAI.JsonConverters.NodeInstructionPromptTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AppConnectionStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NodeInstructionStaticTextType)) + if (typeToConvert == typeof(global::RetellAI.OAuthConfigRequestType)) { - return new global::RetellAI.JsonConverters.NodeInstructionStaticTextTypeJsonConverter(); + return new global::RetellAI.JsonConverters.OAuthConfigRequestTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NodeInstructionStaticTextType?)) + if (typeToConvert == typeof(global::RetellAI.OAuthConfigRequestType?)) { - return new global::RetellAI.JsonConverters.NodeInstructionStaticTextTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.OAuthConfigRequestTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsInstructionTemplateType)) + if (typeToConvert == typeof(global::RetellAI.ApiKeyAuthConfigRequestType)) { - return new global::RetellAI.JsonConverters.SmsInstructionTemplateTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ApiKeyAuthConfigRequestTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsInstructionTemplateType?)) + if (typeToConvert == typeof(global::RetellAI.ApiKeyAuthConfigRequestType?)) { - return new global::RetellAI.JsonConverters.SmsInstructionTemplateTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ApiKeyAuthConfigRequestTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsInstructionTemplateTemplate)) + if (typeToConvert == typeof(global::RetellAI.AccessTokenAuthConfigRequestType)) { - return new global::RetellAI.JsonConverters.SmsInstructionTemplateTemplateJsonConverter(); + return new global::RetellAI.JsonConverters.AccessTokenAuthConfigRequestTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsInstructionTemplateTemplate?)) + if (typeToConvert == typeof(global::RetellAI.AccessTokenAuthConfigRequestType?)) { - return new global::RetellAI.JsonConverters.SmsInstructionTemplateTemplateNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AccessTokenAuthConfigRequestTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NodeTransitionMessageBaseRole)) + if (typeToConvert == typeof(global::RetellAI.BasicAuthConfigRequestType)) { - return new global::RetellAI.JsonConverters.NodeTransitionMessageBaseRoleJsonConverter(); + return new global::RetellAI.JsonConverters.BasicAuthConfigRequestTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NodeTransitionMessageBaseRole?)) + if (typeToConvert == typeof(global::RetellAI.BasicAuthConfigRequestType?)) { - return new global::RetellAI.JsonConverters.NodeTransitionMessageBaseRoleNullableJsonConverter(); + return new global::RetellAI.JsonConverters.BasicAuthConfigRequestTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NodeTransitionMessageBaseTransitionType)) + if (typeToConvert == typeof(global::RetellAI.RefreshTokenAuthConfigRequestType)) { - return new global::RetellAI.JsonConverters.NodeTransitionMessageBaseTransitionTypeJsonConverter(); + return new global::RetellAI.JsonConverters.RefreshTokenAuthConfigRequestTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NodeTransitionMessageBaseTransitionType?)) + if (typeToConvert == typeof(global::RetellAI.RefreshTokenAuthConfigRequestType?)) { - return new global::RetellAI.JsonConverters.NodeTransitionMessageBaseTransitionTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.RefreshTokenAuthConfigRequestTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NodeTransitionUtteranceRole)) + if (typeToConvert == typeof(global::RetellAI.OAuthConfigResponseType)) { - return new global::RetellAI.JsonConverters.NodeTransitionUtteranceRoleJsonConverter(); + return new global::RetellAI.JsonConverters.OAuthConfigResponseTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NodeTransitionUtteranceRole?)) + if (typeToConvert == typeof(global::RetellAI.OAuthConfigResponseType?)) { - return new global::RetellAI.JsonConverters.NodeTransitionUtteranceRoleNullableJsonConverter(); + return new global::RetellAI.JsonConverters.OAuthConfigResponseTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NodeTransitionUtteranceTransitionType)) + if (typeToConvert == typeof(global::RetellAI.ApiKeyAuthConfigResponseType)) { - return new global::RetellAI.JsonConverters.NodeTransitionUtteranceTransitionTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ApiKeyAuthConfigResponseTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NodeTransitionUtteranceTransitionType?)) + if (typeToConvert == typeof(global::RetellAI.ApiKeyAuthConfigResponseType?)) { - return new global::RetellAI.JsonConverters.NodeTransitionUtteranceTransitionTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ApiKeyAuthConfigResponseTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NullableLLMModel)) + if (typeToConvert == typeof(global::RetellAI.AccessTokenAuthConfigResponseType)) { - return new global::RetellAI.JsonConverters.NullableLLMModelJsonConverter(); + return new global::RetellAI.JsonConverters.AccessTokenAuthConfigResponseTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NullableLLMModel?)) + if (typeToConvert == typeof(global::RetellAI.AccessTokenAuthConfigResponseType?)) { - return new global::RetellAI.JsonConverters.NullableLLMModelNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AccessTokenAuthConfigResponseTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NumberAnalysisDataType)) + if (typeToConvert == typeof(global::RetellAI.BasicAuthConfigResponseType)) { - return new global::RetellAI.JsonConverters.NumberAnalysisDataTypeJsonConverter(); + return new global::RetellAI.JsonConverters.BasicAuthConfigResponseTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.NumberAnalysisDataType?)) + if (typeToConvert == typeof(global::RetellAI.BasicAuthConfigResponseType?)) { - return new global::RetellAI.JsonConverters.NumberAnalysisDataTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.BasicAuthConfigResponseTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PresetAnalysisDataType)) + if (typeToConvert == typeof(global::RetellAI.RefreshTokenAuthConfigResponseType)) { - return new global::RetellAI.JsonConverters.PresetAnalysisDataTypeJsonConverter(); + return new global::RetellAI.JsonConverters.RefreshTokenAuthConfigResponseTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PresetAnalysisDataType?)) + if (typeToConvert == typeof(global::RetellAI.RefreshTokenAuthConfigResponseType?)) { - return new global::RetellAI.JsonConverters.PresetAnalysisDataTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.RefreshTokenAuthConfigResponseTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PresetAnalysisDataName)) + if (typeToConvert == typeof(global::RetellAI.AgentAppUsageType)) { - return new global::RetellAI.JsonConverters.PresetAnalysisDataNameJsonConverter(); + return new global::RetellAI.JsonConverters.AgentAppUsageTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PresetAnalysisDataName?)) + if (typeToConvert == typeof(global::RetellAI.AgentAppUsageType?)) { - return new global::RetellAI.JsonConverters.PresetAnalysisDataNameNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AgentAppUsageTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CallPresetAnalysisDataType)) + if (typeToConvert == typeof(global::RetellAI.KnowledgeBaseAppUsageType)) { - return new global::RetellAI.JsonConverters.CallPresetAnalysisDataTypeJsonConverter(); + return new global::RetellAI.JsonConverters.KnowledgeBaseAppUsageTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CallPresetAnalysisDataType?)) + if (typeToConvert == typeof(global::RetellAI.KnowledgeBaseAppUsageType?)) { - return new global::RetellAI.JsonConverters.CallPresetAnalysisDataTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.KnowledgeBaseAppUsageTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CallPresetAnalysisDataName)) + if (typeToConvert == typeof(global::RetellAI.CRMCustomFieldSchemaType)) { - return new global::RetellAI.JsonConverters.CallPresetAnalysisDataNameJsonConverter(); + return new global::RetellAI.JsonConverters.CRMCustomFieldSchemaTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CallPresetAnalysisDataName?)) + if (typeToConvert == typeof(global::RetellAI.CRMCustomFieldSchemaType?)) { - return new global::RetellAI.JsonConverters.CallPresetAnalysisDataNameNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CRMCustomFieldSchemaTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatPresetAnalysisDataType)) + if (typeToConvert == typeof(global::RetellAI.CRMAnalysisDataMappingUpdateMode)) { - return new global::RetellAI.JsonConverters.ChatPresetAnalysisDataTypeJsonConverter(); + return new global::RetellAI.JsonConverters.CRMAnalysisDataMappingUpdateModeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatPresetAnalysisDataType?)) + if (typeToConvert == typeof(global::RetellAI.CRMAnalysisDataMappingUpdateMode?)) { - return new global::RetellAI.JsonConverters.ChatPresetAnalysisDataTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CRMAnalysisDataMappingUpdateModeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatPresetAnalysisDataName)) + if (typeToConvert == typeof(global::RetellAI.JobStatusStatus)) { - return new global::RetellAI.JsonConverters.ChatPresetAnalysisDataNameJsonConverter(); + return new global::RetellAI.JsonConverters.JobStatusStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChatPresetAnalysisDataName?)) + if (typeToConvert == typeof(global::RetellAI.JobStatusStatus?)) { - return new global::RetellAI.JsonConverters.ChatPresetAnalysisDataNameNullableJsonConverter(); + return new global::RetellAI.JsonConverters.JobStatusStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.OrganizationResponseVariant2EnterprisePlanStatus)) + if (typeToConvert == typeof(global::RetellAI.JobStatusTriggeredBy)) { - return new global::RetellAI.JsonConverters.OrganizationResponseVariant2EnterprisePlanStatusJsonConverter(); + return new global::RetellAI.JsonConverters.JobStatusTriggeredByJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.OrganizationResponseVariant2EnterprisePlanStatus?)) + if (typeToConvert == typeof(global::RetellAI.JobStatusTriggeredBy?)) { - return new global::RetellAI.JsonConverters.OrganizationResponseVariant2EnterprisePlanStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.JobStatusTriggeredByNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PIIConfigMode)) + if (typeToConvert == typeof(global::RetellAI.DashboardSource)) { - return new global::RetellAI.JsonConverters.PIIConfigModeJsonConverter(); + return new global::RetellAI.JsonConverters.DashboardSourceJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PIIConfigMode?)) + if (typeToConvert == typeof(global::RetellAI.DashboardSource?)) { - return new global::RetellAI.JsonConverters.PIIConfigModeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DashboardSourceNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PIIConfigCategorie)) + if (typeToConvert == typeof(global::RetellAI.ChartGroupItemVariant1Type)) { - return new global::RetellAI.JsonConverters.PIIConfigCategorieJsonConverter(); + return new global::RetellAI.JsonConverters.ChartGroupItemVariant1TypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PIIConfigCategorie?)) + if (typeToConvert == typeof(global::RetellAI.ChartGroupItemVariant1Type?)) { - return new global::RetellAI.JsonConverters.PIIConfigCategorieNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ChartGroupItemVariant1TypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GuardrailConfigOutputTopic)) + if (typeToConvert == typeof(global::RetellAI.ChartGroupItemVariant2Type)) { - return new global::RetellAI.JsonConverters.GuardrailConfigOutputTopicJsonConverter(); + return new global::RetellAI.JsonConverters.ChartGroupItemVariant2TypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GuardrailConfigOutputTopic?)) + if (typeToConvert == typeof(global::RetellAI.ChartGroupItemVariant2Type?)) { - return new global::RetellAI.JsonConverters.GuardrailConfigOutputTopicNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ChartGroupItemVariant2TypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GuardrailConfigInputTopic)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberRequestNumberProvider)) { - return new global::RetellAI.JsonConverters.GuardrailConfigInputTopicJsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneNumberRequestNumberProviderJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GuardrailConfigInputTopic?)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberRequestNumberProvider?)) { - return new global::RetellAI.JsonConverters.GuardrailConfigInputTopicNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneNumberRequestNumberProviderNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PerformanceMetricCriteriaOp)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberRequestCountryCode)) { - return new global::RetellAI.JsonConverters.PerformanceMetricCriteriaOpJsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneNumberRequestCountryCodeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PerformanceMetricCriteriaOp?)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberRequestCountryCode?)) { - return new global::RetellAI.JsonConverters.PerformanceMetricCriteriaOpNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneNumberRequestCountryCodeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PhoneNumberResponsePhoneNumberType)) + if (typeToConvert == typeof(global::RetellAI.CloneVoiceRequestVoiceProvider)) { - return new global::RetellAI.JsonConverters.PhoneNumberResponsePhoneNumberTypeJsonConverter(); + return new global::RetellAI.JsonConverters.CloneVoiceRequestVoiceProviderJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PhoneNumberResponsePhoneNumberType?)) + if (typeToConvert == typeof(global::RetellAI.CloneVoiceRequestVoiceProvider?)) { - return new global::RetellAI.JsonConverters.PhoneNumberResponsePhoneNumberTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CloneVoiceRequestVoiceProviderNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PostCallAnalysisSetting)) + if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceRequestVoiceProvider)) { - return new global::RetellAI.JsonConverters.PostCallAnalysisSettingJsonConverter(); + return new global::RetellAI.JsonConverters.AddCommunityVoiceRequestVoiceProviderJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PostCallAnalysisSetting?)) + if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceRequestVoiceProvider?)) { - return new global::RetellAI.JsonConverters.PostCallAnalysisSettingNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AddCommunityVoiceRequestVoiceProviderNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PressDigitNodeVariant2Type)) + if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceRequestVoiceProvider)) { - return new global::RetellAI.JsonConverters.PressDigitNodeVariant2TypeJsonConverter(); + return new global::RetellAI.JsonConverters.SearchCommunityVoiceRequestVoiceProviderJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PressDigitNodeVariant2Type?)) + if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceRequestVoiceProvider?)) { - return new global::RetellAI.JsonConverters.PressDigitNodeVariant2TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SearchCommunityVoiceRequestVoiceProviderNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PressDigitToolType)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataRequestDataStorageSetting)) { - return new global::RetellAI.JsonConverters.PressDigitToolTypeJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatMetadataRequestDataStorageSettingJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PressDigitToolType?)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataRequestDataStorageSetting?)) { - return new global::RetellAI.JsonConverters.PressDigitToolTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatMetadataRequestDataStorageSettingNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PromptConditionType)) + if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallRequestDirection)) { - return new global::RetellAI.JsonConverters.PromptConditionTypeJsonConverter(); + return new global::RetellAI.JsonConverters.RegisterPhoneCallRequestDirectionJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PromptConditionType?)) + if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallRequestDirection?)) { - return new global::RetellAI.JsonConverters.PromptConditionTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.RegisterPhoneCallRequestDirectionNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.QaViewFilterScoreRangeType)) + if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataRequestDataStorageSetting)) { - return new global::RetellAI.JsonConverters.QaViewFilterScoreRangeTypeJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCallMetadataRequestDataStorageSettingJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.QaViewFilterScoreRangeType?)) + if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataRequestDataStorageSetting?)) { - return new global::RetellAI.JsonConverters.QaViewFilterScoreRangeTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCallMetadataRequestDataStorageSettingNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.QaViewFilterScoreRangeOp)) + if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallRequestFieldsToOverrideDataStorageSetting)) { - return new global::RetellAI.JsonConverters.QaViewFilterScoreRangeOpJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateLiveCallRequestFieldsToOverrideDataStorageSettingJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.QaViewFilterScoreRangeOp?)) + if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallRequestFieldsToOverrideDataStorageSetting?)) { - return new global::RetellAI.JsonConverters.QaViewFilterScoreRangeOpNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateLiveCallRequestFieldsToOverrideDataStorageSettingNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CohortQaListArgsSortKey)) + if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsType)) { - return new global::RetellAI.JsonConverters.CohortQaListArgsSortKeyJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CohortQaListArgsSortKey?)) + if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsType?)) { - return new global::RetellAI.JsonConverters.CohortQaListArgsSortKeyNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CohortQaListArgsOrder)) + if (typeToConvert == typeof(global::RetellAI.ListBatchTestsType)) { - return new global::RetellAI.JsonConverters.CohortQaListArgsOrderJsonConverter(); + return new global::RetellAI.JsonConverters.ListBatchTestsTypeJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CohortQaListArgsOrder?)) + if (typeToConvert == typeof(global::RetellAI.ListBatchTestsType?)) { - return new global::RetellAI.JsonConverters.CohortQaListArgsOrderNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListBatchTestsTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ResponseEngineConversationFlowType)) + if (typeToConvert == typeof(global::RetellAI.ListAgentVersionsSortOrder)) { - return new global::RetellAI.JsonConverters.ResponseEngineConversationFlowTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentVersionsSortOrderJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ResponseEngineConversationFlowType?)) + if (typeToConvert == typeof(global::RetellAI.ListAgentVersionsSortOrder?)) { - return new global::RetellAI.JsonConverters.ResponseEngineConversationFlowTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentVersionsSortOrderNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ResponseEngineCustomLmType)) + if (typeToConvert == typeof(global::RetellAI.ListAgentsSortOrder)) { - return new global::RetellAI.JsonConverters.ResponseEngineCustomLmTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentsSortOrderJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ResponseEngineCustomLmType?)) + if (typeToConvert == typeof(global::RetellAI.ListAgentsSortOrder?)) { - return new global::RetellAI.JsonConverters.ResponseEngineCustomLmTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentsSortOrderNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ResponseEngineRetellLmType)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsSortOrder)) { - return new global::RetellAI.JsonConverters.ResponseEngineRetellLmTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowComponentsSortOrderJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ResponseEngineRetellLmType?)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsSortOrder?)) { - return new global::RetellAI.JsonConverters.ResponseEngineRetellLmTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowComponentsSortOrderNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RetellLlmOverrideS2sModel)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsSortOrder)) { - return new global::RetellAI.JsonConverters.RetellLlmOverrideS2sModelJsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowsSortOrderJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RetellLlmOverrideS2sModel?)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsSortOrder?)) { - return new global::RetellAI.JsonConverters.RetellLlmOverrideS2sModelNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowsSortOrderNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RetellLlmOverrideStartSpeaker)) + if (typeToConvert == typeof(global::RetellAI.ListPhoneNumbersSortOrder)) { - return new global::RetellAI.JsonConverters.RetellLlmOverrideStartSpeakerJsonConverter(); + return new global::RetellAI.JsonConverters.ListPhoneNumbersSortOrderJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RetellLlmOverrideStartSpeaker?)) + if (typeToConvert == typeof(global::RetellAI.ListPhoneNumbersSortOrder?)) { - return new global::RetellAI.JsonConverters.RetellLlmOverrideStartSpeakerNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListPhoneNumbersSortOrderNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SendSMSToolType)) + if (typeToConvert == typeof(global::RetellAI.ListRetellLLMSortOrder)) { - return new global::RetellAI.JsonConverters.SendSMSToolTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ListRetellLLMSortOrderJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SendSMSToolType?)) + if (typeToConvert == typeof(global::RetellAI.ListRetellLLMSortOrder?)) { - return new global::RetellAI.JsonConverters.SendSMSToolTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListRetellLLMSortOrderNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SendSMSToolExecutionMessageType)) + if (typeToConvert == typeof(global::RetellAI.ListExportRequestsSortOrder)) { - return new global::RetellAI.JsonConverters.SendSMSToolExecutionMessageTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ListExportRequestsSortOrderJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SendSMSToolExecutionMessageType?)) + if (typeToConvert == typeof(global::RetellAI.ListExportRequestsSortOrder?)) { - return new global::RetellAI.JsonConverters.SendSMSToolExecutionMessageTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListExportRequestsSortOrderNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsSenderVariant1Type)) + if (typeToConvert == typeof(global::RetellAI.ListAppsSortOrder)) { - return new global::RetellAI.JsonConverters.SmsSenderVariant1TypeJsonConverter(); + return new global::RetellAI.JsonConverters.ListAppsSortOrderJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsSenderVariant1Type?)) + if (typeToConvert == typeof(global::RetellAI.ListAppsSortOrder?)) { - return new global::RetellAI.JsonConverters.SmsSenderVariant1TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAppsSortOrderNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsSenderVariant2Type)) + if (typeToConvert == typeof(global::RetellAI.ListAppUsagesSortOrder)) { - return new global::RetellAI.JsonConverters.SmsSenderVariant2TypeJsonConverter(); + return new global::RetellAI.JsonConverters.ListAppUsagesSortOrderJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsSenderVariant2Type?)) + if (typeToConvert == typeof(global::RetellAI.ListAppUsagesSortOrder?)) { - return new global::RetellAI.JsonConverters.SmsSenderVariant2TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAppUsagesSortOrderNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsDestinationVariant1Type)) + if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus)) { - return new global::RetellAI.JsonConverters.SmsDestinationVariant1TypeJsonConverter(); + return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsDestinationVariant1Type?)) + if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus?)) { - return new global::RetellAI.JsonConverters.SmsDestinationVariant1TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsDestinationVariant2Type)) + if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus2)) { - return new global::RetellAI.JsonConverters.SmsDestinationVariant2TypeJsonConverter(); + return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsDestinationVariant2Type?)) + if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus2?)) { - return new global::RetellAI.JsonConverters.SmsDestinationVariant2TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SentimentAnalysisDetailVariant1Sentiment)) + if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus3)) { - return new global::RetellAI.JsonConverters.SentimentAnalysisDetailVariant1SentimentJsonConverter(); + return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SentimentAnalysisDetailVariant1Sentiment?)) + if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus3?)) { - return new global::RetellAI.JsonConverters.SentimentAnalysisDetailVariant1SentimentNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SentimentAnalysisDetailVariant2Sentiment)) + if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus4)) { - return new global::RetellAI.JsonConverters.SentimentAnalysisDetailVariant2SentimentJsonConverter(); + return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SentimentAnalysisDetailVariant2Sentiment?)) + if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus4?)) { - return new global::RetellAI.JsonConverters.SentimentAnalysisDetailVariant2SentimentNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SkipResponseEdgeVariant2TransitionConditionType)) + if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus5)) { - return new global::RetellAI.JsonConverters.SkipResponseEdgeVariant2TransitionConditionTypeJsonConverter(); + return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SkipResponseEdgeVariant2TransitionConditionType?)) + if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus5?)) { - return new global::RetellAI.JsonConverters.SkipResponseEdgeVariant2TransitionConditionTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SkipResponseEdgeVariant2TransitionConditionPrompt)) + if (typeToConvert == typeof(global::RetellAI.CreateAgentResponseStatus)) { - return new global::RetellAI.JsonConverters.SkipResponseEdgeVariant2TransitionConditionPromptJsonConverter(); + return new global::RetellAI.JsonConverters.CreateAgentResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SkipResponseEdgeVariant2TransitionConditionPrompt?)) + if (typeToConvert == typeof(global::RetellAI.CreateAgentResponseStatus?)) { - return new global::RetellAI.JsonConverters.SkipResponseEdgeVariant2TransitionConditionPromptNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateAgentResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AlwaysEdgeVariant2TransitionConditionType)) + if (typeToConvert == typeof(global::RetellAI.CreateAgentResponseStatus2)) { - return new global::RetellAI.JsonConverters.AlwaysEdgeVariant2TransitionConditionTypeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateAgentResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AlwaysEdgeVariant2TransitionConditionType?)) + if (typeToConvert == typeof(global::RetellAI.CreateAgentResponseStatus2?)) { - return new global::RetellAI.JsonConverters.AlwaysEdgeVariant2TransitionConditionTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateAgentResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AlwaysEdgeVariant2TransitionConditionPrompt)) + if (typeToConvert == typeof(global::RetellAI.CreateAgentResponseStatus3)) { - return new global::RetellAI.JsonConverters.AlwaysEdgeVariant2TransitionConditionPromptJsonConverter(); + return new global::RetellAI.JsonConverters.CreateAgentResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AlwaysEdgeVariant2TransitionConditionPrompt?)) + if (typeToConvert == typeof(global::RetellAI.CreateAgentResponseStatus3?)) { - return new global::RetellAI.JsonConverters.AlwaysEdgeVariant2TransitionConditionPromptNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateAgentResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsContentInferredType)) + if (typeToConvert == typeof(global::RetellAI.CreateAgentResponseStatus4)) { - return new global::RetellAI.JsonConverters.SmsContentInferredTypeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateAgentResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsContentInferredType?)) + if (typeToConvert == typeof(global::RetellAI.CreateAgentResponseStatus4?)) { - return new global::RetellAI.JsonConverters.SmsContentInferredTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateAgentResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsContentPredefinedType)) + if (typeToConvert == typeof(global::RetellAI.CreateBatchCallResponseStatus)) { - return new global::RetellAI.JsonConverters.SmsContentPredefinedTypeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateBatchCallResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsContentPredefinedType?)) + if (typeToConvert == typeof(global::RetellAI.CreateBatchCallResponseStatus?)) { - return new global::RetellAI.JsonConverters.SmsContentPredefinedTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateBatchCallResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsContentTemplateType)) + if (typeToConvert == typeof(global::RetellAI.CreateBatchCallResponseStatus2)) { - return new global::RetellAI.JsonConverters.SmsContentTemplateTypeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateBatchCallResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsContentTemplateType?)) + if (typeToConvert == typeof(global::RetellAI.CreateBatchCallResponseStatus2?)) { - return new global::RetellAI.JsonConverters.SmsContentTemplateTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateBatchCallResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsContentTemplateTemplate)) + if (typeToConvert == typeof(global::RetellAI.CreateBatchCallResponseStatus3)) { - return new global::RetellAI.JsonConverters.SmsContentTemplateTemplateJsonConverter(); + return new global::RetellAI.JsonConverters.CreateBatchCallResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsContentTemplateTemplate?)) + if (typeToConvert == typeof(global::RetellAI.CreateBatchCallResponseStatus3?)) { - return new global::RetellAI.JsonConverters.SmsContentTemplateTemplateNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateBatchCallResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsFailedEdgeVariant2TransitionConditionType)) + if (typeToConvert == typeof(global::RetellAI.CreateBatchCallResponseStatus4)) { - return new global::RetellAI.JsonConverters.SmsFailedEdgeVariant2TransitionConditionTypeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateBatchCallResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsFailedEdgeVariant2TransitionConditionType?)) + if (typeToConvert == typeof(global::RetellAI.CreateBatchCallResponseStatus4?)) { - return new global::RetellAI.JsonConverters.SmsFailedEdgeVariant2TransitionConditionTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateBatchCallResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsFailedEdgeVariant2TransitionConditionPrompt)) + if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus)) { - return new global::RetellAI.JsonConverters.SmsFailedEdgeVariant2TransitionConditionPromptJsonConverter(); + return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsFailedEdgeVariant2TransitionConditionPrompt?)) + if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus?)) { - return new global::RetellAI.JsonConverters.SmsFailedEdgeVariant2TransitionConditionPromptNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsNodeVariant2Type)) + if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus2)) { - return new global::RetellAI.JsonConverters.SmsNodeVariant2TypeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsNodeVariant2Type?)) + if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus2?)) { - return new global::RetellAI.JsonConverters.SmsNodeVariant2TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsSuccessEdgeVariant2TransitionConditionType)) + if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus3)) { - return new global::RetellAI.JsonConverters.SmsSuccessEdgeVariant2TransitionConditionTypeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsSuccessEdgeVariant2TransitionConditionType?)) + if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus3?)) { - return new global::RetellAI.JsonConverters.SmsSuccessEdgeVariant2TransitionConditionTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsSuccessEdgeVariant2TransitionConditionPrompt)) + if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus4)) { - return new global::RetellAI.JsonConverters.SmsSuccessEdgeVariant2TransitionConditionPromptJsonConverter(); + return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SmsSuccessEdgeVariant2TransitionConditionPrompt?)) + if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus4?)) { - return new global::RetellAI.JsonConverters.SmsSuccessEdgeVariant2TransitionConditionPromptNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.StateTransitionMessageBaseRole)) + if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus5)) { - return new global::RetellAI.JsonConverters.StateTransitionMessageBaseRoleJsonConverter(); + return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.StateTransitionMessageBaseRole?)) + if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus5?)) { - return new global::RetellAI.JsonConverters.StateTransitionMessageBaseRoleNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.StringAnalysisDataType)) + if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus)) { - return new global::RetellAI.JsonConverters.StringAnalysisDataTypeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.StringAnalysisDataType?)) + if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus?)) { - return new global::RetellAI.JsonConverters.StringAnalysisDataTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TestCaseBatchJobStatus)) + if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus2)) { - return new global::RetellAI.JsonConverters.TestCaseBatchJobStatusJsonConverter(); + return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TestCaseBatchJobStatus?)) + if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus2?)) { - return new global::RetellAI.JsonConverters.TestCaseBatchJobStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TestCaseDefinitionVariant2Type)) + if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus3)) { - return new global::RetellAI.JsonConverters.TestCaseDefinitionVariant2TypeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TestCaseDefinitionVariant2Type?)) + if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus3?)) { - return new global::RetellAI.JsonConverters.TestCaseDefinitionVariant2TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TestCaseJobStatus)) + if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus4)) { - return new global::RetellAI.JsonConverters.TestCaseJobStatusJsonConverter(); + return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TestCaseJobStatus?)) + if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus4?)) { - return new global::RetellAI.JsonConverters.TestCaseJobStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ToolMockInputMatchRuleVariant1Type)) + if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus5)) { - return new global::RetellAI.JsonConverters.ToolMockInputMatchRuleVariant1TypeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ToolMockInputMatchRuleVariant1Type?)) + if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus5?)) { - return new global::RetellAI.JsonConverters.ToolMockInputMatchRuleVariant1TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ToolMockInputMatchRuleVariant2Type)) + if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus)) { - return new global::RetellAI.JsonConverters.ToolMockInputMatchRuleVariant2TypeJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ToolMockInputMatchRuleVariant2Type?)) + if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus?)) { - return new global::RetellAI.JsonConverters.ToolMockInputMatchRuleVariant2TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ToolCallInvocationMessageBaseRole)) + if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus2)) { - return new global::RetellAI.JsonConverters.ToolCallInvocationMessageBaseRoleJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ToolCallInvocationMessageBaseRole?)) + if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus2?)) { - return new global::RetellAI.JsonConverters.ToolCallInvocationMessageBaseRoleNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ToolCallInvocationUtteranceRole)) + if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus3)) { - return new global::RetellAI.JsonConverters.ToolCallInvocationUtteranceRoleJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ToolCallInvocationUtteranceRole?)) + if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus3?)) { - return new global::RetellAI.JsonConverters.ToolCallInvocationUtteranceRoleNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ToolCallResultMessageBaseRole)) + if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus4)) { - return new global::RetellAI.JsonConverters.ToolCallResultMessageBaseRoleJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ToolCallResultMessageBaseRole?)) + if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus4?)) { - return new global::RetellAI.JsonConverters.ToolCallResultMessageBaseRoleNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ToolCallResultUtteranceRole)) + if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus5)) { - return new global::RetellAI.JsonConverters.ToolCallResultUtteranceRoleJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ToolCallResultUtteranceRole?)) + if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus5?)) { - return new global::RetellAI.JsonConverters.ToolCallResultUtteranceRoleNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ToolParameterType)) + if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus)) { - return new global::RetellAI.JsonConverters.ToolParameterTypeJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ToolParameterType?)) + if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus?)) { - return new global::RetellAI.JsonConverters.ToolParameterTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferCallNodeVariant2Type)) + if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus2)) { - return new global::RetellAI.JsonConverters.TransferCallNodeVariant2TypeJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferCallNodeVariant2Type?)) + if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus2?)) { - return new global::RetellAI.JsonConverters.TransferCallNodeVariant2TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferCallToolType)) + if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus3)) { - return new global::RetellAI.JsonConverters.TransferCallToolTypeJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferCallToolType?)) + if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus3?)) { - return new global::RetellAI.JsonConverters.TransferCallToolTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferCallToolExecutionMessageType)) + if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus4)) { - return new global::RetellAI.JsonConverters.TransferCallToolExecutionMessageTypeJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferCallToolExecutionMessageType?)) + if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus4?)) { - return new global::RetellAI.JsonConverters.TransferCallToolExecutionMessageTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferDestinationInferredType)) + if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus5)) { - return new global::RetellAI.JsonConverters.TransferDestinationInferredTypeJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferDestinationInferredType?)) + if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus5?)) { - return new global::RetellAI.JsonConverters.TransferDestinationInferredTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferDestinationPredefinedType)) + if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsResponseStatus)) { - return new global::RetellAI.JsonConverters.TransferDestinationPredefinedTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferDestinationPredefinedType?)) + if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsResponseStatus?)) { - return new global::RetellAI.JsonConverters.TransferDestinationPredefinedTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferFailedEdgeVariant2TransitionConditionType)) + if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsResponseStatus2)) { - return new global::RetellAI.JsonConverters.TransferFailedEdgeVariant2TransitionConditionTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferFailedEdgeVariant2TransitionConditionType?)) + if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsResponseStatus2?)) { - return new global::RetellAI.JsonConverters.TransferFailedEdgeVariant2TransitionConditionTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferFailedEdgeVariant2TransitionConditionPrompt)) + if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsResponseStatus3)) { - return new global::RetellAI.JsonConverters.TransferFailedEdgeVariant2TransitionConditionPromptJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferFailedEdgeVariant2TransitionConditionPrompt?)) + if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsResponseStatus3?)) { - return new global::RetellAI.JsonConverters.TransferFailedEdgeVariant2TransitionConditionPromptNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferOptionAgenticWarmTransferType)) + if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsResponseStatus4)) { - return new global::RetellAI.JsonConverters.TransferOptionAgenticWarmTransferTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferOptionAgenticWarmTransferType?)) + if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsResponseStatus4?)) { - return new global::RetellAI.JsonConverters.TransferOptionAgenticWarmTransferTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferOptionAgenticWarmTransferOnHoldMusic)) + if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus)) { - return new global::RetellAI.JsonConverters.TransferOptionAgenticWarmTransferOnHoldMusicJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferOptionAgenticWarmTransferOnHoldMusic?)) + if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus?)) { - return new global::RetellAI.JsonConverters.TransferOptionAgenticWarmTransferOnHoldMusicNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferOptionAgenticWarmTransferAgenticTransferConfigActionOnTimeout)) + if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus2)) { - return new global::RetellAI.JsonConverters.TransferOptionAgenticWarmTransferAgenticTransferConfigActionOnTimeoutJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferOptionAgenticWarmTransferAgenticTransferConfigActionOnTimeout?)) + if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus2?)) { - return new global::RetellAI.JsonConverters.TransferOptionAgenticWarmTransferAgenticTransferConfigActionOnTimeoutNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferOptionColdTransferType)) + if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus3)) { - return new global::RetellAI.JsonConverters.TransferOptionColdTransferTypeJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferOptionColdTransferType?)) + if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus3?)) { - return new global::RetellAI.JsonConverters.TransferOptionColdTransferTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferOptionColdTransferColdTransferMode)) + if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus4)) { - return new global::RetellAI.JsonConverters.TransferOptionColdTransferColdTransferModeJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferOptionColdTransferColdTransferMode?)) + if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus4?)) { - return new global::RetellAI.JsonConverters.TransferOptionColdTransferColdTransferModeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferOptionWarmTransferType)) + if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus5)) { - return new global::RetellAI.JsonConverters.TransferOptionWarmTransferTypeJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferOptionWarmTransferType?)) + if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus5?)) { - return new global::RetellAI.JsonConverters.TransferOptionWarmTransferTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferOptionWarmTransferOnHoldMusic)) + if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus)) { - return new global::RetellAI.JsonConverters.TransferOptionWarmTransferOnHoldMusicJsonConverter(); + return new global::RetellAI.JsonConverters.GetBatchTestResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.TransferOptionWarmTransferOnHoldMusic?)) + if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus?)) { - return new global::RetellAI.JsonConverters.TransferOptionWarmTransferOnHoldMusicNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetBatchTestResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UtteranceHallucinationHallucinationType)) + if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus2)) { - return new global::RetellAI.JsonConverters.UtteranceHallucinationHallucinationTypeJsonConverter(); + return new global::RetellAI.JsonConverters.GetBatchTestResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UtteranceHallucinationHallucinationType?)) + if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus2?)) { - return new global::RetellAI.JsonConverters.UtteranceHallucinationHallucinationTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetBatchTestResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UtteranceRole)) + if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus3)) { - return new global::RetellAI.JsonConverters.UtteranceRoleJsonConverter(); + return new global::RetellAI.JsonConverters.GetBatchTestResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UtteranceRole?)) + if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus3?)) { - return new global::RetellAI.JsonConverters.UtteranceRoleNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetBatchTestResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V2CallBaseCallStatus)) + if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus4)) { - return new global::RetellAI.JsonConverters.V2CallBaseCallStatusJsonConverter(); + return new global::RetellAI.JsonConverters.GetBatchTestResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V2CallBaseCallStatus?)) + if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus4?)) { - return new global::RetellAI.JsonConverters.V2CallBaseCallStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetBatchTestResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V2CallBaseDataStorageSetting)) + if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus5)) { - return new global::RetellAI.JsonConverters.V2CallBaseDataStorageSettingJsonConverter(); + return new global::RetellAI.JsonConverters.GetBatchTestResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V2CallBaseDataStorageSetting?)) + if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus5?)) { - return new global::RetellAI.JsonConverters.V2CallBaseDataStorageSettingNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetBatchTestResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V3CallBaseCallStatus)) + if (typeToConvert == typeof(global::RetellAI.ListBatchTestsResponseStatus)) { - return new global::RetellAI.JsonConverters.V3CallBaseCallStatusJsonConverter(); + return new global::RetellAI.JsonConverters.ListBatchTestsResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V3CallBaseCallStatus?)) + if (typeToConvert == typeof(global::RetellAI.ListBatchTestsResponseStatus?)) { - return new global::RetellAI.JsonConverters.V3CallBaseCallStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListBatchTestsResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V3CallBaseDataStorageSetting)) + if (typeToConvert == typeof(global::RetellAI.ListBatchTestsResponseStatus2)) { - return new global::RetellAI.JsonConverters.V3CallBaseDataStorageSettingJsonConverter(); + return new global::RetellAI.JsonConverters.ListBatchTestsResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V3CallBaseDataStorageSetting?)) + if (typeToConvert == typeof(global::RetellAI.ListBatchTestsResponseStatus2?)) { - return new global::RetellAI.JsonConverters.V3CallBaseDataStorageSettingNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListBatchTestsResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V3PhoneCallResponseVariant1CallType)) + if (typeToConvert == typeof(global::RetellAI.ListBatchTestsResponseStatus3)) { - return new global::RetellAI.JsonConverters.V3PhoneCallResponseVariant1CallTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ListBatchTestsResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V3PhoneCallResponseVariant1CallType?)) + if (typeToConvert == typeof(global::RetellAI.ListBatchTestsResponseStatus3?)) { - return new global::RetellAI.JsonConverters.V3PhoneCallResponseVariant1CallTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListBatchTestsResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V3PhoneCallResponseVariant1Direction)) + if (typeToConvert == typeof(global::RetellAI.ListBatchTestsResponseStatus4)) { - return new global::RetellAI.JsonConverters.V3PhoneCallResponseVariant1DirectionJsonConverter(); + return new global::RetellAI.JsonConverters.ListBatchTestsResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V3PhoneCallResponseVariant1Direction?)) + if (typeToConvert == typeof(global::RetellAI.ListBatchTestsResponseStatus4?)) { - return new global::RetellAI.JsonConverters.V3PhoneCallResponseVariant1DirectionNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListBatchTestsResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V3WebCallResponseVariant1CallType)) + if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus)) { - return new global::RetellAI.JsonConverters.V3WebCallResponseVariant1CallTypeJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestRunResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V3WebCallResponseVariant1CallType?)) + if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus?)) { - return new global::RetellAI.JsonConverters.V3WebCallResponseVariant1CallTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestRunResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V3ListCallsRequestSortOrder)) + if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus2)) { - return new global::RetellAI.JsonConverters.V3ListCallsRequestSortOrderJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestRunResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V3ListCallsRequestSortOrder?)) + if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus2?)) { - return new global::RetellAI.JsonConverters.V3ListCallsRequestSortOrderNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestRunResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V2PhoneCallResponseVariant1CallType)) + if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus3)) { - return new global::RetellAI.JsonConverters.V2PhoneCallResponseVariant1CallTypeJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestRunResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V2PhoneCallResponseVariant1CallType?)) + if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus3?)) { - return new global::RetellAI.JsonConverters.V2PhoneCallResponseVariant1CallTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestRunResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V2PhoneCallResponseVariant1Direction)) + if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus4)) { - return new global::RetellAI.JsonConverters.V2PhoneCallResponseVariant1DirectionJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestRunResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V2PhoneCallResponseVariant1Direction?)) + if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus4?)) { - return new global::RetellAI.JsonConverters.V2PhoneCallResponseVariant1DirectionNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestRunResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V2WebCallResponseVariant1CallType)) + if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus5)) { - return new global::RetellAI.JsonConverters.V2WebCallResponseVariant1CallTypeJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestRunResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.V2WebCallResponseVariant1CallType?)) + if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus5?)) { - return new global::RetellAI.JsonConverters.V2WebCallResponseVariant1CallTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetTestRunResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.VoiceResponseProvider)) + if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus)) { - return new global::RetellAI.JsonConverters.VoiceResponseProviderJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestRunsResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.VoiceResponseProvider?)) + if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus?)) { - return new global::RetellAI.JsonConverters.VoiceResponseProviderNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestRunsResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.VoiceResponseGender)) + if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus2)) { - return new global::RetellAI.JsonConverters.VoiceResponseGenderJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestRunsResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.VoiceResponseGender?)) + if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus2?)) { - return new global::RetellAI.JsonConverters.VoiceResponseGenderNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestRunsResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.VoicemailActionBridgeTransferType)) + if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus3)) { - return new global::RetellAI.JsonConverters.VoicemailActionBridgeTransferTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestRunsResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.VoicemailActionBridgeTransferType?)) + if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus3?)) { - return new global::RetellAI.JsonConverters.VoicemailActionBridgeTransferTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestRunsResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.VoicemailActionHangupType)) + if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus4)) { - return new global::RetellAI.JsonConverters.VoicemailActionHangupTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestRunsResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.VoicemailActionHangupType?)) + if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus4?)) { - return new global::RetellAI.JsonConverters.VoicemailActionHangupTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestRunsResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.VoicemailActionPromptType)) + if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus5)) { - return new global::RetellAI.JsonConverters.VoicemailActionPromptTypeJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestRunsResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.VoicemailActionPromptType?)) + if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus5?)) { - return new global::RetellAI.JsonConverters.VoicemailActionPromptTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListTestRunsResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.VoicemailActionStaticTextType)) + if (typeToConvert == typeof(global::RetellAI.CreateChatAgentResponseStatus)) { - return new global::RetellAI.JsonConverters.VoicemailActionStaticTextTypeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatAgentResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.VoicemailActionStaticTextType?)) + if (typeToConvert == typeof(global::RetellAI.CreateChatAgentResponseStatus?)) { - return new global::RetellAI.JsonConverters.VoicemailActionStaticTextTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatAgentResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.IvrActionHangupType)) + if (typeToConvert == typeof(global::RetellAI.CreateChatAgentResponseStatus2)) { - return new global::RetellAI.JsonConverters.IvrActionHangupTypeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatAgentResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.IvrActionHangupType?)) + if (typeToConvert == typeof(global::RetellAI.CreateChatAgentResponseStatus2?)) { - return new global::RetellAI.JsonConverters.IvrActionHangupTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatAgentResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.WarmTransferPromptType)) + if (typeToConvert == typeof(global::RetellAI.CreateChatAgentResponseStatus3)) { - return new global::RetellAI.JsonConverters.WarmTransferPromptTypeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatAgentResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.WarmTransferPromptType?)) + if (typeToConvert == typeof(global::RetellAI.CreateChatAgentResponseStatus3?)) { - return new global::RetellAI.JsonConverters.WarmTransferPromptTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatAgentResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.WarmTransferStaticMessageType)) + if (typeToConvert == typeof(global::RetellAI.CreateChatAgentResponseStatus4)) { - return new global::RetellAI.JsonConverters.WarmTransferStaticMessageTypeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatAgentResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.WarmTransferStaticMessageType?)) + if (typeToConvert == typeof(global::RetellAI.CreateChatAgentResponseStatus4?)) { - return new global::RetellAI.JsonConverters.WarmTransferStaticMessageTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatAgentResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ConductorOverageConfigVariant1Mode)) + if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus)) { - return new global::RetellAI.JsonConverters.ConductorOverageConfigVariant1ModeJsonConverter(); + return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ConductorOverageConfigVariant1Mode?)) + if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus?)) { - return new global::RetellAI.JsonConverters.ConductorOverageConfigVariant1ModeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ConductorOverageConfigVariant2Mode)) + if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus2)) { - return new global::RetellAI.JsonConverters.ConductorOverageConfigVariant2ModeJsonConverter(); + return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ConductorOverageConfigVariant2Mode?)) + if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus2?)) { - return new global::RetellAI.JsonConverters.ConductorOverageConfigVariant2ModeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ConductorOverageConfigVariant3Mode)) + if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus3)) { - return new global::RetellAI.JsonConverters.ConductorOverageConfigVariant3ModeJsonConverter(); + return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ConductorOverageConfigVariant3Mode?)) + if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus3?)) { - return new global::RetellAI.JsonConverters.ConductorOverageConfigVariant3ModeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ContactCallType)) + if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus4)) { - return new global::RetellAI.JsonConverters.ContactCallTypeJsonConverter(); + return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ContactCallType?)) + if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus4?)) { - return new global::RetellAI.JsonConverters.ContactCallTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ContactCallDirection)) + if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus5)) { - return new global::RetellAI.JsonConverters.ContactCallDirectionJsonConverter(); + return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ContactCallDirection?)) + if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus5?)) { - return new global::RetellAI.JsonConverters.ContactCallDirectionNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ContactCallSentiment)) + if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus6)) { - return new global::RetellAI.JsonConverters.ContactCallSentimentJsonConverter(); + return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus6JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ContactCallSentiment?)) + if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus6?)) { - return new global::RetellAI.JsonConverters.ContactCallSentimentNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus6NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ContactChatType)) + if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus)) { - return new global::RetellAI.JsonConverters.ContactChatTypeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ContactChatType?)) + if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus?)) { - return new global::RetellAI.JsonConverters.ContactChatTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ContactChatDirection)) + if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus2)) { - return new global::RetellAI.JsonConverters.ContactChatDirectionJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ContactChatDirection?)) + if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus2?)) { - return new global::RetellAI.JsonConverters.ContactChatDirectionNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ContactChatSentiment)) + if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus3)) { - return new global::RetellAI.JsonConverters.ContactChatSentimentJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ContactChatSentiment?)) + if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus3?)) { - return new global::RetellAI.JsonConverters.ContactChatSentimentNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DashboardSource)) + if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus4)) { - return new global::RetellAI.JsonConverters.DashboardSourceJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DashboardSource?)) + if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus4?)) { - return new global::RetellAI.JsonConverters.DashboardSourceNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChartGroupItemVariant1Type)) + if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus5)) { - return new global::RetellAI.JsonConverters.ChartGroupItemVariant1TypeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChartGroupItemVariant1Type?)) + if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus5?)) { - return new global::RetellAI.JsonConverters.ChartGroupItemVariant1TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChartGroupItemVariant2Type)) + if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus6)) { - return new global::RetellAI.JsonConverters.ChartGroupItemVariant2TypeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus6JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ChartGroupItemVariant2Type?)) + if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus6?)) { - return new global::RetellAI.JsonConverters.ChartGroupItemVariant2TypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus6NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberRequestNumberProvider)) + if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus)) { - return new global::RetellAI.JsonConverters.CreatePhoneNumberRequestNumberProviderJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberRequestNumberProvider?)) + if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreatePhoneNumberRequestNumberProviderNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberRequestCountryCode)) + if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreatePhoneNumberRequestCountryCodeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberRequestCountryCode?)) + if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreatePhoneNumberRequestCountryCodeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CloneVoiceRequestVoiceProvider)) + if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus3)) { - return new global::RetellAI.JsonConverters.CloneVoiceRequestVoiceProviderJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CloneVoiceRequestVoiceProvider?)) + if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CloneVoiceRequestVoiceProviderNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceRequestVoiceProvider)) + if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus4)) { - return new global::RetellAI.JsonConverters.AddCommunityVoiceRequestVoiceProviderJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceRequestVoiceProvider?)) + if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus4?)) { - return new global::RetellAI.JsonConverters.AddCommunityVoiceRequestVoiceProviderNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceRequestVoiceProvider)) + if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus5)) { - return new global::RetellAI.JsonConverters.SearchCommunityVoiceRequestVoiceProviderJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceRequestVoiceProvider?)) + if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus5?)) { - return new global::RetellAI.JsonConverters.SearchCommunityVoiceRequestVoiceProviderNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataRequestDataStorageSetting)) + if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus6)) { - return new global::RetellAI.JsonConverters.UpdateChatMetadataRequestDataStorageSettingJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatResponseStatus6JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataRequestDataStorageSetting?)) + if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus6?)) { - return new global::RetellAI.JsonConverters.UpdateChatMetadataRequestDataStorageSettingNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateChatResponseStatus6NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallRequestDirection)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus)) { - return new global::RetellAI.JsonConverters.RegisterPhoneCallRequestDirectionJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallRequestDirection?)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus?)) { - return new global::RetellAI.JsonConverters.RegisterPhoneCallRequestDirectionNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataRequestDataStorageSetting)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus2)) { - return new global::RetellAI.JsonConverters.UpdateCallMetadataRequestDataStorageSettingJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataRequestDataStorageSetting?)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus2?)) { - return new global::RetellAI.JsonConverters.UpdateCallMetadataRequestDataStorageSettingNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallRequestFieldsToOverrideDataStorageSetting)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus3)) { - return new global::RetellAI.JsonConverters.UpdateLiveCallRequestFieldsToOverrideDataStorageSettingJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallRequestFieldsToOverrideDataStorageSetting?)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus3?)) { - return new global::RetellAI.JsonConverters.UpdateLiveCallRequestFieldsToOverrideDataStorageSettingNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsType)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus4)) { - return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsTypeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsType?)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus4?)) { - return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListBatchTestsType)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus5)) { - return new global::RetellAI.JsonConverters.ListBatchTestsTypeJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListBatchTestsType?)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus5?)) { - return new global::RetellAI.JsonConverters.ListBatchTestsTypeNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListAgentsSortOrder)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus)) { - return new global::RetellAI.JsonConverters.ListAgentsSortOrderJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListAgentsSortOrder?)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus?)) { - return new global::RetellAI.JsonConverters.ListAgentsSortOrderNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsSortOrder)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus2)) { - return new global::RetellAI.JsonConverters.ListConversationFlowComponentsSortOrderJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsSortOrder?)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus2?)) { - return new global::RetellAI.JsonConverters.ListConversationFlowComponentsSortOrderNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsSortOrder)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus3)) { - return new global::RetellAI.JsonConverters.ListConversationFlowsSortOrderJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsSortOrder?)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus3?)) { - return new global::RetellAI.JsonConverters.ListConversationFlowsSortOrderNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListPhoneNumbersSortOrder)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus4)) { - return new global::RetellAI.JsonConverters.ListPhoneNumbersSortOrderJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListPhoneNumbersSortOrder?)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus4?)) { - return new global::RetellAI.JsonConverters.ListPhoneNumbersSortOrderNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListRetellLLMSortOrder)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus5)) { - return new global::RetellAI.JsonConverters.ListRetellLLMSortOrderJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListRetellLLMSortOrder?)) + if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus5?)) { - return new global::RetellAI.JsonConverters.ListRetellLLMSortOrderNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListExportRequestsSortOrder)) + if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus)) { - return new global::RetellAI.JsonConverters.ListExportRequestsSortOrderJsonConverter(); + return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListExportRequestsSortOrder?)) + if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus?)) { - return new global::RetellAI.JsonConverters.ListExportRequestsSortOrderNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus2)) { - return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus2?)) { - return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus3)) { - return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus3?)) { - return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus4)) { - return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus4?)) { - return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus5)) { - return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus5?)) { - return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberResponseStatus)) { - return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneNumberResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddKnowledgeBaseSourcesResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberResponseStatus?)) { - return new global::RetellAI.JsonConverters.AddKnowledgeBaseSourcesResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneNumberResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateAgentResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreateAgentResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneNumberResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateAgentResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreateAgentResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneNumberResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateAgentResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberResponseStatus3)) { - return new global::RetellAI.JsonConverters.CreateAgentResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneNumberResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateAgentResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CreateAgentResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneNumberResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateAgentResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.CreateRetellLLMResponseStatus)) { - return new global::RetellAI.JsonConverters.CreateAgentResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.CreateRetellLLMResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateAgentResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.CreateRetellLLMResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreateAgentResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateRetellLLMResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateAgentResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.CreateRetellLLMResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreateAgentResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.CreateRetellLLMResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateAgentResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.CreateRetellLLMResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreateAgentResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateRetellLLMResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateBatchCallResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.CreateRetellLLMResponseStatus3)) { - return new global::RetellAI.JsonConverters.CreateBatchCallResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.CreateRetellLLMResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateBatchCallResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.CreateRetellLLMResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CreateBatchCallResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateRetellLLMResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateBatchCallResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus)) { - return new global::RetellAI.JsonConverters.CreateBatchCallResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateBatchCallResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreateBatchCallResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateBatchCallResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreateBatchCallResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateBatchCallResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreateBatchCallResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateBatchCallResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus3)) { - return new global::RetellAI.JsonConverters.CreateBatchCallResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateBatchCallResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CreateBatchCallResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus4)) { - return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus4?)) { - return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus5)) { - return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus5?)) { - return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus6)) { - return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus6JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus6?)) { - return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus6NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.DeleteAgentResponseStatus)) { - return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAgentResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.DeleteAgentResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAgentResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.DeleteAgentResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAgentResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateBatchTestResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.DeleteAgentResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreateBatchTestResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAgentResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.DeleteAgentResponseStatus3)) { - return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAgentResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.DeleteAgentResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAgentResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.DeleteAgentResponseStatus4)) { - return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAgentResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.DeleteAgentResponseStatus4?)) { - return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAgentResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.DeleteChatResponseStatus)) { - return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteChatResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.DeleteChatResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteChatResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.DeleteChatResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteChatResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.DeleteChatResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteChatResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.DeleteChatResponseStatus3)) { - return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteChatResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateTestCaseDefinitionResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.DeleteChatResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CreateTestCaseDefinitionResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteChatResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.DeleteChatResponseStatus4)) { - return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteChatResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.DeleteChatResponseStatus4?)) { - return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteChatResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.DeleteChatAgentResponseStatus)) { - return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteChatAgentResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.DeleteChatAgentResponseStatus?)) { - return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteChatAgentResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.DeleteChatAgentResponseStatus2)) { - return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteChatAgentResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.DeleteChatAgentResponseStatus2?)) { - return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteChatAgentResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.DeleteChatAgentResponseStatus3)) { - return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteChatAgentResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.DeleteChatAgentResponseStatus3?)) { - return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteChatAgentResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.DeleteChatAgentResponseStatus4)) { - return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteChatAgentResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteTestCaseDefinitionResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.DeleteChatAgentResponseStatus4?)) { - return new global::RetellAI.JsonConverters.DeleteTestCaseDefinitionResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteChatAgentResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowComponentResponseStatus)) { - return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteConversationFlowComponentResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowComponentResponseStatus?)) { - return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteConversationFlowComponentResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowComponentResponseStatus2)) { - return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteConversationFlowComponentResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowComponentResponseStatus2?)) { - return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteConversationFlowComponentResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowComponentResponseStatus3)) { - return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteConversationFlowComponentResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowComponentResponseStatus3?)) { - return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteConversationFlowComponentResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowComponentResponseStatus4)) { - return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteConversationFlowComponentResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowComponentResponseStatus4?)) { - return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteConversationFlowComponentResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus)) { - return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestCaseDefinitionResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus?)) { - return new global::RetellAI.JsonConverters.GetTestCaseDefinitionResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus2)) { - return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus2?)) { - return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus3)) { - return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus3?)) { - return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus4)) { - return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus4?)) { - return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus5)) { - return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestCaseDefinitionsResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus5?)) { - return new global::RetellAI.JsonConverters.ListTestCaseDefinitionsResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus)) { - return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseSourceResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus?)) { - return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseSourceResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus2)) { - return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseSourceResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus2?)) { - return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseSourceResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus3)) { - return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseSourceResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus3?)) { - return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseSourceResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus4)) { - return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseSourceResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus4?)) { - return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseSourceResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseResponseStatus)) { - return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateTestCaseDefinitionResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseResponseStatus?)) { - return new global::RetellAI.JsonConverters.UpdateTestCaseDefinitionResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseResponseStatus2)) { - return new global::RetellAI.JsonConverters.GetBatchTestResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseResponseStatus2?)) { - return new global::RetellAI.JsonConverters.GetBatchTestResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseResponseStatus3)) { - return new global::RetellAI.JsonConverters.GetBatchTestResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseResponseStatus3?)) { - return new global::RetellAI.JsonConverters.GetBatchTestResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseResponseStatus4)) { - return new global::RetellAI.JsonConverters.GetBatchTestResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseResponseStatus4?)) { - return new global::RetellAI.JsonConverters.GetBatchTestResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.DeletePhoneNumberResponseStatus)) { - return new global::RetellAI.JsonConverters.GetBatchTestResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.DeletePhoneNumberResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.DeletePhoneNumberResponseStatus?)) { - return new global::RetellAI.JsonConverters.GetBatchTestResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeletePhoneNumberResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.DeletePhoneNumberResponseStatus2)) { - return new global::RetellAI.JsonConverters.GetBatchTestResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.DeletePhoneNumberResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetBatchTestResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.DeletePhoneNumberResponseStatus2?)) { - return new global::RetellAI.JsonConverters.GetBatchTestResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeletePhoneNumberResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListBatchTestsResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.DeletePhoneNumberResponseStatus3)) { - return new global::RetellAI.JsonConverters.ListBatchTestsResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.DeletePhoneNumberResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListBatchTestsResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.DeletePhoneNumberResponseStatus3?)) { - return new global::RetellAI.JsonConverters.ListBatchTestsResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeletePhoneNumberResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListBatchTestsResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.DeleteRetellLLMResponseStatus)) { - return new global::RetellAI.JsonConverters.ListBatchTestsResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteRetellLLMResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListBatchTestsResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.DeleteRetellLLMResponseStatus?)) { - return new global::RetellAI.JsonConverters.ListBatchTestsResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteRetellLLMResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListBatchTestsResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.DeleteRetellLLMResponseStatus2)) { - return new global::RetellAI.JsonConverters.ListBatchTestsResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteRetellLLMResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListBatchTestsResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.DeleteRetellLLMResponseStatus2?)) { - return new global::RetellAI.JsonConverters.ListBatchTestsResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteRetellLLMResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListBatchTestsResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.DeleteRetellLLMResponseStatus3)) { - return new global::RetellAI.JsonConverters.ListBatchTestsResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteRetellLLMResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListBatchTestsResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.DeleteRetellLLMResponseStatus3?)) { - return new global::RetellAI.JsonConverters.ListBatchTestsResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteRetellLLMResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.DeleteRetellLLMResponseStatus4)) { - return new global::RetellAI.JsonConverters.GetTestRunResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteRetellLLMResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.DeleteRetellLLMResponseStatus4?)) { - return new global::RetellAI.JsonConverters.GetTestRunResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteRetellLLMResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.EndChatResponseStatus)) { - return new global::RetellAI.JsonConverters.GetTestRunResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.EndChatResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.EndChatResponseStatus?)) { - return new global::RetellAI.JsonConverters.GetTestRunResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.EndChatResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.EndChatResponseStatus2)) { - return new global::RetellAI.JsonConverters.GetTestRunResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.EndChatResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.EndChatResponseStatus2?)) { - return new global::RetellAI.JsonConverters.GetTestRunResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.EndChatResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.EndChatResponseStatus3)) { - return new global::RetellAI.JsonConverters.GetTestRunResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.EndChatResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.EndChatResponseStatus3?)) { - return new global::RetellAI.JsonConverters.GetTestRunResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.EndChatResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.EndChatResponseStatus4)) { - return new global::RetellAI.JsonConverters.GetTestRunResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.EndChatResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetTestRunResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.EndChatResponseStatus4?)) { - return new global::RetellAI.JsonConverters.GetTestRunResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.EndChatResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus)) { - return new global::RetellAI.JsonConverters.ListTestRunsResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentVersionsResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus?)) { - return new global::RetellAI.JsonConverters.ListTestRunsResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentVersionsResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus2)) { - return new global::RetellAI.JsonConverters.ListTestRunsResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentVersionsResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus2?)) { - return new global::RetellAI.JsonConverters.ListTestRunsResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentVersionsResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus3)) { - return new global::RetellAI.JsonConverters.ListTestRunsResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentVersionsResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus3?)) { - return new global::RetellAI.JsonConverters.ListTestRunsResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentVersionsResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus4)) { - return new global::RetellAI.JsonConverters.ListTestRunsResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentVersionsResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus4?)) { - return new global::RetellAI.JsonConverters.ListTestRunsResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentVersionsResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus5)) { - return new global::RetellAI.JsonConverters.ListTestRunsResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentVersionsResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListTestRunsResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus5?)) { - return new global::RetellAI.JsonConverters.ListTestRunsResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentVersionsResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatAgentResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus6)) { - return new global::RetellAI.JsonConverters.CreateChatAgentResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentVersionsResponseStatus6JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatAgentResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.ListAgentVersionsResponseStatus6?)) { - return new global::RetellAI.JsonConverters.CreateChatAgentResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentVersionsResponseStatus6NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatAgentResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.GetAgentVersionsResponseStatus)) { - return new global::RetellAI.JsonConverters.CreateChatAgentResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.GetAgentVersionsResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatAgentResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.GetAgentVersionsResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreateChatAgentResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetAgentVersionsResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatAgentResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.GetAgentVersionsResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreateChatAgentResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.GetAgentVersionsResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatAgentResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.GetAgentVersionsResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreateChatAgentResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetAgentVersionsResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatAgentResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.GetAgentVersionsResponseStatus3)) { - return new global::RetellAI.JsonConverters.CreateChatAgentResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.GetAgentVersionsResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatAgentResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.GetAgentVersionsResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CreateChatAgentResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetAgentVersionsResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.GetAgentVersionsResponseStatus4)) { - return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.GetAgentVersionsResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.GetAgentVersionsResponseStatus4?)) { - return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetAgentVersionsResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.GetAgentResponseStatus)) { - return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.GetAgentResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.GetAgentResponseStatus?)) { - return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetAgentResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.GetAgentResponseStatus2)) { - return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.GetAgentResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.GetAgentResponseStatus2?)) { - return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetAgentResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.GetAgentResponseStatus3)) { - return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.GetAgentResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.GetAgentResponseStatus3?)) { - return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetAgentResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.GetAgentResponseStatus4)) { - return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.GetAgentResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.GetAgentResponseStatus4?)) { - return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetAgentResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus6)) + if (typeToConvert == typeof(global::RetellAI.GetChatAgentVersionsResponseStatus)) { - return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus6JsonConverter(); + return new global::RetellAI.JsonConverters.GetChatAgentVersionsResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AgentPlaygroundCompletionResponseStatus6?)) + if (typeToConvert == typeof(global::RetellAI.GetChatAgentVersionsResponseStatus?)) { - return new global::RetellAI.JsonConverters.AgentPlaygroundCompletionResponseStatus6NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetChatAgentVersionsResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.GetChatAgentVersionsResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.GetChatAgentVersionsResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.GetChatAgentVersionsResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetChatAgentVersionsResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.GetChatAgentVersionsResponseStatus3)) { - return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.GetChatAgentVersionsResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.GetChatAgentVersionsResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetChatAgentVersionsResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.GetChatAgentResponseStatus)) { - return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.GetChatAgentResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.GetChatAgentResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetChatAgentResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.GetChatAgentResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.GetChatAgentResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.GetChatAgentResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetChatAgentResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.GetChatAgentResponseStatus3)) { - return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.GetChatAgentResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.GetChatAgentResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetChatAgentResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus6)) + if (typeToConvert == typeof(global::RetellAI.GetChatAgentResponseStatus4)) { - return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus6JsonConverter(); + return new global::RetellAI.JsonConverters.GetChatAgentResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatCompletionResponseStatus6?)) + if (typeToConvert == typeof(global::RetellAI.GetChatAgentResponseStatus4?)) { - return new global::RetellAI.JsonConverters.CreateChatCompletionResponseStatus6NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetChatAgentResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.GetChatResponseStatus)) { - return new global::RetellAI.JsonConverters.CreateChatResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.GetChatResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.GetChatResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreateChatResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetChatResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.GetChatResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreateChatResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.GetChatResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.GetChatResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreateChatResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetChatResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.GetChatResponseStatus3)) { - return new global::RetellAI.JsonConverters.CreateChatResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.GetChatResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.GetChatResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CreateChatResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetChatResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.GetChatResponseStatus4)) { - return new global::RetellAI.JsonConverters.CreateChatResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.GetChatResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.GetChatResponseStatus4?)) { - return new global::RetellAI.JsonConverters.CreateChatResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetChatResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.GetConcurrencyResponseStatus)) { - return new global::RetellAI.JsonConverters.CreateChatResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.GetConcurrencyResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.GetConcurrencyResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreateChatResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetConcurrencyResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus6)) + if (typeToConvert == typeof(global::RetellAI.GetConcurrencyResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreateChatResponseStatus6JsonConverter(); + return new global::RetellAI.JsonConverters.GetConcurrencyResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateChatResponseStatus6?)) + if (typeToConvert == typeof(global::RetellAI.GetConcurrencyResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreateChatResponseStatus6NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetConcurrencyResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.GetApiKeyInfoResponseStatus)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.GetApiKeyInfoResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.GetApiKeyInfoResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetApiKeyInfoResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.GetApiKeyInfoResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.GetApiKeyInfoResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.GetApiKeyInfoResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetApiKeyInfoResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.GetConversationFlowComponentResponseStatus)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.GetConversationFlowComponentResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.GetConversationFlowComponentResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetConversationFlowComponentResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.GetConversationFlowComponentResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.GetConversationFlowComponentResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.GetConversationFlowComponentResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetConversationFlowComponentResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.GetConversationFlowComponentResponseStatus3)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.GetConversationFlowComponentResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowComponentResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.GetConversationFlowComponentResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowComponentResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetConversationFlowComponentResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.GetConversationFlowComponentResponseStatus4)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.GetConversationFlowComponentResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.GetConversationFlowComponentResponseStatus4?)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetConversationFlowComponentResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus3)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus4)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateConversationFlowResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus4?)) { - return new global::RetellAI.JsonConverters.CreateConversationFlowResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus5)) { - return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus5?)) { - return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.GetKnowledgeBaseResponseStatus)) { - return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.GetKnowledgeBaseResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.GetKnowledgeBaseResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetKnowledgeBaseResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.GetKnowledgeBaseResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.GetKnowledgeBaseResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.GetKnowledgeBaseResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetKnowledgeBaseResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.GetKnowledgeBaseResponseStatus3)) { - return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.GetKnowledgeBaseResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.GetKnowledgeBaseResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetKnowledgeBaseResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.GetKnowledgeBaseResponseStatus4)) { - return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.GetKnowledgeBaseResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateKnowledgeBaseResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.GetKnowledgeBaseResponseStatus4?)) { - return new global::RetellAI.JsonConverters.CreateKnowledgeBaseResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetKnowledgeBaseResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.GetMCPToolsResponseStatus)) { - return new global::RetellAI.JsonConverters.CreatePhoneNumberResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.GetMCPToolsResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.GetMCPToolsResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreatePhoneNumberResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetMCPToolsResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.GetMCPToolsResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreatePhoneNumberResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.GetMCPToolsResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.GetMCPToolsResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreatePhoneNumberResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetMCPToolsResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.GetMCPToolsResponseStatus3)) { - return new global::RetellAI.JsonConverters.CreatePhoneNumberResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.GetMCPToolsResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneNumberResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.GetMCPToolsResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CreatePhoneNumberResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetMCPToolsResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateRetellLLMResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.GetMCPToolsResponseStatus4)) { - return new global::RetellAI.JsonConverters.CreateRetellLLMResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.GetMCPToolsResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateRetellLLMResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.GetMCPToolsResponseStatus4?)) { - return new global::RetellAI.JsonConverters.CreateRetellLLMResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetMCPToolsResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateRetellLLMResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.GetPhoneNumberResponseStatus)) { - return new global::RetellAI.JsonConverters.CreateRetellLLMResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.GetPhoneNumberResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateRetellLLMResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.GetPhoneNumberResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreateRetellLLMResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetPhoneNumberResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateRetellLLMResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.GetPhoneNumberResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreateRetellLLMResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.GetPhoneNumberResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateRetellLLMResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.GetPhoneNumberResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreateRetellLLMResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetPhoneNumberResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.GetPhoneNumberResponseStatus3)) { - return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.GetPhoneNumberResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.GetPhoneNumberResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetPhoneNumberResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.GetPhoneNumberResponseStatus4)) { - return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.GetPhoneNumberResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.GetPhoneNumberResponseStatus4?)) { - return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetPhoneNumberResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.GetRetellLLMResponseStatus)) { - return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.GetRetellLLMResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.GetRetellLLMResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetRetellLLMResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.GetRetellLLMResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.GetRetellLLMResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.GetRetellLLMResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetRetellLLMResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.GetRetellLLMResponseStatus3)) { - return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.GetRetellLLMResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.GetRetellLLMResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetRetellLLMResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus6)) + if (typeToConvert == typeof(global::RetellAI.GetRetellLLMResponseStatus4)) { - return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus6JsonConverter(); + return new global::RetellAI.JsonConverters.GetRetellLLMResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateSmsChatResponseStatus6?)) + if (typeToConvert == typeof(global::RetellAI.GetRetellLLMResponseStatus4?)) { - return new global::RetellAI.JsonConverters.CreateSmsChatResponseStatus6NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetRetellLLMResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteAgentResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.GetVoiceResponseStatus)) { - return new global::RetellAI.JsonConverters.DeleteAgentResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.GetVoiceResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteAgentResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.GetVoiceResponseStatus?)) { - return new global::RetellAI.JsonConverters.DeleteAgentResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetVoiceResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteAgentResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.GetVoiceResponseStatus2)) { - return new global::RetellAI.JsonConverters.DeleteAgentResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.GetVoiceResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteAgentResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.GetVoiceResponseStatus2?)) { - return new global::RetellAI.JsonConverters.DeleteAgentResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetVoiceResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteAgentResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.GetVoiceResponseStatus3)) { - return new global::RetellAI.JsonConverters.DeleteAgentResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.GetVoiceResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteAgentResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.GetVoiceResponseStatus3?)) { - return new global::RetellAI.JsonConverters.DeleteAgentResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetVoiceResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteAgentResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.GetVoiceResponseStatus4)) { - return new global::RetellAI.JsonConverters.DeleteAgentResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.GetVoiceResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteAgentResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.GetVoiceResponseStatus4?)) { - return new global::RetellAI.JsonConverters.DeleteAgentResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetVoiceResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteChatResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus)) { - return new global::RetellAI.JsonConverters.DeleteChatResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.CloneVoiceResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteChatResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus?)) { - return new global::RetellAI.JsonConverters.DeleteChatResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CloneVoiceResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteChatResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus2)) { - return new global::RetellAI.JsonConverters.DeleteChatResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.CloneVoiceResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteChatResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus2?)) { - return new global::RetellAI.JsonConverters.DeleteChatResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CloneVoiceResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteChatResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus3)) { - return new global::RetellAI.JsonConverters.DeleteChatResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.CloneVoiceResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteChatResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus3?)) { - return new global::RetellAI.JsonConverters.DeleteChatResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CloneVoiceResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteChatResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus4)) { - return new global::RetellAI.JsonConverters.DeleteChatResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.CloneVoiceResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteChatResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus4?)) { - return new global::RetellAI.JsonConverters.DeleteChatResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CloneVoiceResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteChatAgentResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus5)) { - return new global::RetellAI.JsonConverters.DeleteChatAgentResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.CloneVoiceResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteChatAgentResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus5?)) { - return new global::RetellAI.JsonConverters.DeleteChatAgentResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CloneVoiceResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteChatAgentResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceResponseStatus)) { - return new global::RetellAI.JsonConverters.DeleteChatAgentResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.AddCommunityVoiceResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteChatAgentResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceResponseStatus?)) { - return new global::RetellAI.JsonConverters.DeleteChatAgentResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.AddCommunityVoiceResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteChatAgentResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceResponseStatus2)) { - return new global::RetellAI.JsonConverters.DeleteChatAgentResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.AddCommunityVoiceResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteChatAgentResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceResponseStatus2?)) { - return new global::RetellAI.JsonConverters.DeleteChatAgentResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.AddCommunityVoiceResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteChatAgentResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceResponseStatus3)) { - return new global::RetellAI.JsonConverters.DeleteChatAgentResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.AddCommunityVoiceResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteChatAgentResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceResponseStatus3?)) { - return new global::RetellAI.JsonConverters.DeleteChatAgentResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.AddCommunityVoiceResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowComponentResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceResponseStatus4)) { - return new global::RetellAI.JsonConverters.DeleteConversationFlowComponentResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.AddCommunityVoiceResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowComponentResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceResponseStatus4?)) { - return new global::RetellAI.JsonConverters.DeleteConversationFlowComponentResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.AddCommunityVoiceResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowComponentResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceResponseStatus)) { - return new global::RetellAI.JsonConverters.DeleteConversationFlowComponentResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.SearchCommunityVoiceResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowComponentResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceResponseStatus?)) { - return new global::RetellAI.JsonConverters.DeleteConversationFlowComponentResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.SearchCommunityVoiceResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowComponentResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceResponseStatus2)) { - return new global::RetellAI.JsonConverters.DeleteConversationFlowComponentResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.SearchCommunityVoiceResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowComponentResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceResponseStatus2?)) { - return new global::RetellAI.JsonConverters.DeleteConversationFlowComponentResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.SearchCommunityVoiceResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowComponentResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceResponseStatus3)) { - return new global::RetellAI.JsonConverters.DeleteConversationFlowComponentResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.SearchCommunityVoiceResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowComponentResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceResponseStatus3?)) { - return new global::RetellAI.JsonConverters.DeleteConversationFlowComponentResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.SearchCommunityVoiceResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceResponseStatus4)) { - return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.SearchCommunityVoiceResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceResponseStatus4?)) { - return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.SearchCommunityVoiceResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.ImportPhoneNumberResponseStatus)) { - return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.ImportPhoneNumberResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.ImportPhoneNumberResponseStatus?)) { - return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ImportPhoneNumberResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.ImportPhoneNumberResponseStatus2)) { - return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.ImportPhoneNumberResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.ImportPhoneNumberResponseStatus2?)) { - return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ImportPhoneNumberResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.ImportPhoneNumberResponseStatus3)) { - return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.ImportPhoneNumberResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.ImportPhoneNumberResponseStatus3?)) { - return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ImportPhoneNumberResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.ListAgentsResponseStatus)) { - return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentsResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteConversationFlowResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.ListAgentsResponseStatus?)) { - return new global::RetellAI.JsonConverters.DeleteConversationFlowResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentsResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.ListAgentsResponseStatus2)) { - return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseSourceResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentsResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.ListAgentsResponseStatus2?)) { - return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseSourceResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentsResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.ListAgentsResponseStatus3)) { - return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseSourceResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentsResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.ListAgentsResponseStatus3?)) { - return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseSourceResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentsResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.ListAgentsResponseStatus4)) { - return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseSourceResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentsResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.ListAgentsResponseStatus4?)) { - return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseSourceResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAgentsResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.ListChatsResponseStatus)) { - return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseSourceResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.ListChatsResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.ListChatsResponseStatus?)) { - return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseSourceResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListChatsResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.ListChatsResponseStatus2)) { - return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.ListChatsResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.ListChatsResponseStatus2?)) { - return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListChatsResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.ListChatsResponseStatus3)) { - return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.ListChatsResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.ListChatsResponseStatus3?)) { - return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListChatsResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.ListChatsResponseStatus4)) { - return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.ListChatsResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.ListChatsResponseStatus4?)) { - return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListChatsResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsResponseStatus)) { - return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowComponentsResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteKnowledgeBaseResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsResponseStatus?)) { - return new global::RetellAI.JsonConverters.DeleteKnowledgeBaseResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowComponentsResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeletePhoneNumberResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsResponseStatus2)) { - return new global::RetellAI.JsonConverters.DeletePhoneNumberResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowComponentsResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeletePhoneNumberResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsResponseStatus2?)) { - return new global::RetellAI.JsonConverters.DeletePhoneNumberResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowComponentsResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeletePhoneNumberResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsResponseStatus3)) { - return new global::RetellAI.JsonConverters.DeletePhoneNumberResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowComponentsResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeletePhoneNumberResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsResponseStatus3?)) { - return new global::RetellAI.JsonConverters.DeletePhoneNumberResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowComponentsResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeletePhoneNumberResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsResponseStatus4)) { - return new global::RetellAI.JsonConverters.DeletePhoneNumberResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowComponentsResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeletePhoneNumberResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsResponseStatus4?)) { - return new global::RetellAI.JsonConverters.DeletePhoneNumberResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowComponentsResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteRetellLLMResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus)) { - return new global::RetellAI.JsonConverters.DeleteRetellLLMResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteRetellLLMResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus?)) { - return new global::RetellAI.JsonConverters.DeleteRetellLLMResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteRetellLLMResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus2)) { - return new global::RetellAI.JsonConverters.DeleteRetellLLMResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteRetellLLMResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus2?)) { - return new global::RetellAI.JsonConverters.DeleteRetellLLMResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteRetellLLMResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus3)) { - return new global::RetellAI.JsonConverters.DeleteRetellLLMResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteRetellLLMResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus3?)) { - return new global::RetellAI.JsonConverters.DeleteRetellLLMResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteRetellLLMResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus4)) { - return new global::RetellAI.JsonConverters.DeleteRetellLLMResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteRetellLLMResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus4?)) { - return new global::RetellAI.JsonConverters.DeleteRetellLLMResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EndChatResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus5)) { - return new global::RetellAI.JsonConverters.EndChatResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EndChatResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus5?)) { - return new global::RetellAI.JsonConverters.EndChatResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EndChatResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.ListKnowledgeBasesResponseStatus)) { - return new global::RetellAI.JsonConverters.EndChatResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.ListKnowledgeBasesResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EndChatResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.ListKnowledgeBasesResponseStatus?)) { - return new global::RetellAI.JsonConverters.EndChatResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListKnowledgeBasesResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EndChatResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.ListKnowledgeBasesResponseStatus2)) { - return new global::RetellAI.JsonConverters.EndChatResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.ListKnowledgeBasesResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EndChatResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.ListKnowledgeBasesResponseStatus2?)) { - return new global::RetellAI.JsonConverters.EndChatResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListKnowledgeBasesResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EndChatResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.ListKnowledgeBasesResponseStatus3)) { - return new global::RetellAI.JsonConverters.EndChatResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.ListKnowledgeBasesResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.EndChatResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.ListKnowledgeBasesResponseStatus3?)) { - return new global::RetellAI.JsonConverters.EndChatResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListKnowledgeBasesResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetAgentVersionsResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.ListPhoneNumbersResponseStatus)) { - return new global::RetellAI.JsonConverters.GetAgentVersionsResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.ListPhoneNumbersResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetAgentVersionsResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.ListPhoneNumbersResponseStatus?)) { - return new global::RetellAI.JsonConverters.GetAgentVersionsResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListPhoneNumbersResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetAgentVersionsResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.ListPhoneNumbersResponseStatus2)) { - return new global::RetellAI.JsonConverters.GetAgentVersionsResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.ListPhoneNumbersResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetAgentVersionsResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.ListPhoneNumbersResponseStatus2?)) { - return new global::RetellAI.JsonConverters.GetAgentVersionsResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListPhoneNumbersResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetAgentVersionsResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus)) { - return new global::RetellAI.JsonConverters.GetAgentVersionsResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetAgentVersionsResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus?)) { - return new global::RetellAI.JsonConverters.GetAgentVersionsResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetAgentVersionsResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus2)) { - return new global::RetellAI.JsonConverters.GetAgentVersionsResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetAgentVersionsResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus2?)) { - return new global::RetellAI.JsonConverters.GetAgentVersionsResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetAgentResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus3)) { - return new global::RetellAI.JsonConverters.GetAgentResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetAgentResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus3?)) { - return new global::RetellAI.JsonConverters.GetAgentResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetAgentResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus4)) { - return new global::RetellAI.JsonConverters.GetAgentResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetAgentResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus4?)) { - return new global::RetellAI.JsonConverters.GetAgentResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetAgentResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus5)) { - return new global::RetellAI.JsonConverters.GetAgentResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetAgentResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus5?)) { - return new global::RetellAI.JsonConverters.GetAgentResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetAgentResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.ListVoicesResponseStatus)) { - return new global::RetellAI.JsonConverters.GetAgentResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.ListVoicesResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetAgentResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.ListVoicesResponseStatus?)) { - return new global::RetellAI.JsonConverters.GetAgentResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListVoicesResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatAgentVersionsResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.ListVoicesResponseStatus2)) { - return new global::RetellAI.JsonConverters.GetChatAgentVersionsResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.ListVoicesResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatAgentVersionsResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.ListVoicesResponseStatus2?)) { - return new global::RetellAI.JsonConverters.GetChatAgentVersionsResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListVoicesResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatAgentVersionsResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus)) { - return new global::RetellAI.JsonConverters.GetChatAgentVersionsResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatAgentVersionsResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus?)) { - return new global::RetellAI.JsonConverters.GetChatAgentVersionsResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatAgentVersionsResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus2)) { - return new global::RetellAI.JsonConverters.GetChatAgentVersionsResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatAgentVersionsResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus2?)) { - return new global::RetellAI.JsonConverters.GetChatAgentVersionsResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatAgentResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus3)) { - return new global::RetellAI.JsonConverters.GetChatAgentResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatAgentResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus3?)) { - return new global::RetellAI.JsonConverters.GetChatAgentResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatAgentResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus4)) { - return new global::RetellAI.JsonConverters.GetChatAgentResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatAgentResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus4?)) { - return new global::RetellAI.JsonConverters.GetChatAgentResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatAgentResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus5)) { - return new global::RetellAI.JsonConverters.GetChatAgentResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatAgentResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus5?)) { - return new global::RetellAI.JsonConverters.GetChatAgentResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatAgentResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus)) { - return new global::RetellAI.JsonConverters.GetChatAgentResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatAgentResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus?)) { - return new global::RetellAI.JsonConverters.GetChatAgentResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus2)) { - return new global::RetellAI.JsonConverters.GetChatResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus2?)) { - return new global::RetellAI.JsonConverters.GetChatResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus3)) { - return new global::RetellAI.JsonConverters.GetChatResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus3?)) { - return new global::RetellAI.JsonConverters.GetChatResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus4)) { - return new global::RetellAI.JsonConverters.GetChatResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus4?)) { - return new global::RetellAI.JsonConverters.GetChatResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus5)) { - return new global::RetellAI.JsonConverters.GetChatResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetChatResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus5?)) { - return new global::RetellAI.JsonConverters.GetChatResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConcurrencyResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus)) { - return new global::RetellAI.JsonConverters.GetConcurrencyResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConcurrencyResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus?)) { - return new global::RetellAI.JsonConverters.GetConcurrencyResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConcurrencyResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus2)) { - return new global::RetellAI.JsonConverters.GetConcurrencyResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConcurrencyResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus2?)) { - return new global::RetellAI.JsonConverters.GetConcurrencyResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetApiKeyInfoResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus3)) { - return new global::RetellAI.JsonConverters.GetApiKeyInfoResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetApiKeyInfoResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus3?)) { - return new global::RetellAI.JsonConverters.GetApiKeyInfoResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetApiKeyInfoResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus4)) { - return new global::RetellAI.JsonConverters.GetApiKeyInfoResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetApiKeyInfoResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus4?)) { - return new global::RetellAI.JsonConverters.GetApiKeyInfoResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConversationFlowComponentResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus5)) { - return new global::RetellAI.JsonConverters.GetConversationFlowComponentResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConversationFlowComponentResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus5?)) { - return new global::RetellAI.JsonConverters.GetConversationFlowComponentResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConversationFlowComponentResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus)) { - return new global::RetellAI.JsonConverters.GetConversationFlowComponentResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConversationFlowComponentResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus?)) { - return new global::RetellAI.JsonConverters.GetConversationFlowComponentResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConversationFlowComponentResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus2)) { - return new global::RetellAI.JsonConverters.GetConversationFlowComponentResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConversationFlowComponentResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus2?)) { - return new global::RetellAI.JsonConverters.GetConversationFlowComponentResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConversationFlowComponentResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus3)) { - return new global::RetellAI.JsonConverters.GetConversationFlowComponentResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConversationFlowComponentResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus3?)) { - return new global::RetellAI.JsonConverters.GetConversationFlowComponentResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus4)) { - return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus4?)) { - return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus5)) { - return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus5?)) { - return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus6)) { - return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus6JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus6?)) { - return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus6NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus7)) { - return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus7JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus7?)) { - return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus7NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus)) { - return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetConversationFlowResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus?)) { - return new global::RetellAI.JsonConverters.GetConversationFlowResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetKnowledgeBaseResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus2)) { - return new global::RetellAI.JsonConverters.GetKnowledgeBaseResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetKnowledgeBaseResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus2?)) { - return new global::RetellAI.JsonConverters.GetKnowledgeBaseResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetKnowledgeBaseResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus3)) { - return new global::RetellAI.JsonConverters.GetKnowledgeBaseResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetKnowledgeBaseResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus3?)) { - return new global::RetellAI.JsonConverters.GetKnowledgeBaseResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetKnowledgeBaseResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus4)) { - return new global::RetellAI.JsonConverters.GetKnowledgeBaseResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetKnowledgeBaseResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus4?)) { - return new global::RetellAI.JsonConverters.GetKnowledgeBaseResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetKnowledgeBaseResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus5)) { - return new global::RetellAI.JsonConverters.GetKnowledgeBaseResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetKnowledgeBaseResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus5?)) { - return new global::RetellAI.JsonConverters.GetKnowledgeBaseResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetMCPToolsResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus6)) { - return new global::RetellAI.JsonConverters.GetMCPToolsResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus6JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetMCPToolsResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus6?)) { - return new global::RetellAI.JsonConverters.GetMCPToolsResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus6NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetMCPToolsResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus7)) { - return new global::RetellAI.JsonConverters.GetMCPToolsResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus7JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetMCPToolsResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus7?)) { - return new global::RetellAI.JsonConverters.GetMCPToolsResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus7NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetMCPToolsResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus)) { - return new global::RetellAI.JsonConverters.GetMCPToolsResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAgentResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetMCPToolsResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus?)) { - return new global::RetellAI.JsonConverters.GetMCPToolsResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAgentResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetMCPToolsResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus2)) { - return new global::RetellAI.JsonConverters.GetMCPToolsResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAgentResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetMCPToolsResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus2?)) { - return new global::RetellAI.JsonConverters.GetMCPToolsResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAgentResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetPhoneNumberResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus3)) { - return new global::RetellAI.JsonConverters.GetPhoneNumberResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAgentResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetPhoneNumberResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus3?)) { - return new global::RetellAI.JsonConverters.GetPhoneNumberResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAgentResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetPhoneNumberResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus4)) { - return new global::RetellAI.JsonConverters.GetPhoneNumberResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAgentResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetPhoneNumberResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus4?)) { - return new global::RetellAI.JsonConverters.GetPhoneNumberResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAgentResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetPhoneNumberResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus5)) { - return new global::RetellAI.JsonConverters.GetPhoneNumberResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAgentResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetPhoneNumberResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus5?)) { - return new global::RetellAI.JsonConverters.GetPhoneNumberResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAgentResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetPhoneNumberResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus)) { - return new global::RetellAI.JsonConverters.GetPhoneNumberResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetPhoneNumberResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus?)) { - return new global::RetellAI.JsonConverters.GetPhoneNumberResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetRetellLLMResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus2)) { - return new global::RetellAI.JsonConverters.GetRetellLLMResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetRetellLLMResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus2?)) { - return new global::RetellAI.JsonConverters.GetRetellLLMResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetRetellLLMResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus3)) { - return new global::RetellAI.JsonConverters.GetRetellLLMResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetRetellLLMResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus3?)) { - return new global::RetellAI.JsonConverters.GetRetellLLMResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetRetellLLMResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus4)) { - return new global::RetellAI.JsonConverters.GetRetellLLMResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetRetellLLMResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus4?)) { - return new global::RetellAI.JsonConverters.GetRetellLLMResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetRetellLLMResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus5)) { - return new global::RetellAI.JsonConverters.GetRetellLLMResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetRetellLLMResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus5?)) { - return new global::RetellAI.JsonConverters.GetRetellLLMResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetVoiceResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataResponseStatus)) { - return new global::RetellAI.JsonConverters.GetVoiceResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatMetadataResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetVoiceResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataResponseStatus?)) { - return new global::RetellAI.JsonConverters.GetVoiceResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatMetadataResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetVoiceResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataResponseStatus2)) { - return new global::RetellAI.JsonConverters.GetVoiceResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatMetadataResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetVoiceResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataResponseStatus2?)) { - return new global::RetellAI.JsonConverters.GetVoiceResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatMetadataResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetVoiceResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataResponseStatus3)) { - return new global::RetellAI.JsonConverters.GetVoiceResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatMetadataResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetVoiceResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataResponseStatus3?)) { - return new global::RetellAI.JsonConverters.GetVoiceResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatMetadataResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetVoiceResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataResponseStatus4)) { - return new global::RetellAI.JsonConverters.GetVoiceResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatMetadataResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetVoiceResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataResponseStatus4?)) { - return new global::RetellAI.JsonConverters.GetVoiceResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateChatMetadataResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus)) { - return new global::RetellAI.JsonConverters.CloneVoiceResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus?)) { - return new global::RetellAI.JsonConverters.CloneVoiceResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus2)) { - return new global::RetellAI.JsonConverters.CloneVoiceResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CloneVoiceResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus3)) { - return new global::RetellAI.JsonConverters.CloneVoiceResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CloneVoiceResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus4)) { - return new global::RetellAI.JsonConverters.CloneVoiceResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus4?)) { - return new global::RetellAI.JsonConverters.CloneVoiceResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus5)) { - return new global::RetellAI.JsonConverters.CloneVoiceResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CloneVoiceResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus5?)) { - return new global::RetellAI.JsonConverters.CloneVoiceResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus6)) { - return new global::RetellAI.JsonConverters.AddCommunityVoiceResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus6JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus6?)) { - return new global::RetellAI.JsonConverters.AddCommunityVoiceResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus6NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus)) { - return new global::RetellAI.JsonConverters.AddCommunityVoiceResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus?)) { - return new global::RetellAI.JsonConverters.AddCommunityVoiceResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus2)) { - return new global::RetellAI.JsonConverters.AddCommunityVoiceResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus2?)) { - return new global::RetellAI.JsonConverters.AddCommunityVoiceResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus3)) { - return new global::RetellAI.JsonConverters.AddCommunityVoiceResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.AddCommunityVoiceResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus3?)) { - return new global::RetellAI.JsonConverters.AddCommunityVoiceResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus4)) { - return new global::RetellAI.JsonConverters.SearchCommunityVoiceResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus4?)) { - return new global::RetellAI.JsonConverters.SearchCommunityVoiceResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus5)) { - return new global::RetellAI.JsonConverters.SearchCommunityVoiceResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus5?)) { - return new global::RetellAI.JsonConverters.SearchCommunityVoiceResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus6)) { - return new global::RetellAI.JsonConverters.SearchCommunityVoiceResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus6JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus6?)) { - return new global::RetellAI.JsonConverters.SearchCommunityVoiceResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus6NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.UpdatePhoneNumberResponseStatus)) { - return new global::RetellAI.JsonConverters.SearchCommunityVoiceResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.UpdatePhoneNumberResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.SearchCommunityVoiceResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.UpdatePhoneNumberResponseStatus?)) { - return new global::RetellAI.JsonConverters.SearchCommunityVoiceResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdatePhoneNumberResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ImportPhoneNumberResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.UpdatePhoneNumberResponseStatus2)) { - return new global::RetellAI.JsonConverters.ImportPhoneNumberResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.UpdatePhoneNumberResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ImportPhoneNumberResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.UpdatePhoneNumberResponseStatus2?)) { - return new global::RetellAI.JsonConverters.ImportPhoneNumberResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdatePhoneNumberResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ImportPhoneNumberResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.UpdatePhoneNumberResponseStatus3)) { - return new global::RetellAI.JsonConverters.ImportPhoneNumberResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.UpdatePhoneNumberResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ImportPhoneNumberResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.UpdatePhoneNumberResponseStatus3?)) { - return new global::RetellAI.JsonConverters.ImportPhoneNumberResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdatePhoneNumberResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ImportPhoneNumberResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.UpdatePhoneNumberResponseStatus4)) { - return new global::RetellAI.JsonConverters.ImportPhoneNumberResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.UpdatePhoneNumberResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ImportPhoneNumberResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.UpdatePhoneNumberResponseStatus4?)) { - return new global::RetellAI.JsonConverters.ImportPhoneNumberResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdatePhoneNumberResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListAgentsResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus)) { - return new global::RetellAI.JsonConverters.ListAgentsResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListAgentsResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus?)) { - return new global::RetellAI.JsonConverters.ListAgentsResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListAgentsResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus2)) { - return new global::RetellAI.JsonConverters.ListAgentsResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListAgentsResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus2?)) { - return new global::RetellAI.JsonConverters.ListAgentsResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListAgentsResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus3)) { - return new global::RetellAI.JsonConverters.ListAgentsResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListAgentsResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus3?)) { - return new global::RetellAI.JsonConverters.ListAgentsResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListAgentsResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus4)) { - return new global::RetellAI.JsonConverters.ListAgentsResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListAgentsResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus4?)) { - return new global::RetellAI.JsonConverters.ListAgentsResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListChatsResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus5)) { - return new global::RetellAI.JsonConverters.ListChatsResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListChatsResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus5?)) { - return new global::RetellAI.JsonConverters.ListChatsResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListChatsResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus)) { - return new global::RetellAI.JsonConverters.ListChatsResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListChatsResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus?)) { - return new global::RetellAI.JsonConverters.ListChatsResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListChatsResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus2)) { - return new global::RetellAI.JsonConverters.ListChatsResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListChatsResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus2?)) { - return new global::RetellAI.JsonConverters.ListChatsResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListChatsResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus3)) { - return new global::RetellAI.JsonConverters.ListChatsResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListChatsResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus3?)) { - return new global::RetellAI.JsonConverters.ListChatsResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus4)) { - return new global::RetellAI.JsonConverters.ListConversationFlowComponentsResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus4?)) { - return new global::RetellAI.JsonConverters.ListConversationFlowComponentsResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus5)) { - return new global::RetellAI.JsonConverters.ListConversationFlowComponentsResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus5?)) { - return new global::RetellAI.JsonConverters.ListConversationFlowComponentsResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus6)) { - return new global::RetellAI.JsonConverters.ListConversationFlowComponentsResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus6JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus6?)) { - return new global::RetellAI.JsonConverters.ListConversationFlowComponentsResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus6NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus)) { - return new global::RetellAI.JsonConverters.ListConversationFlowComponentsResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.CreateWebCallResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowComponentsResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus?)) { - return new global::RetellAI.JsonConverters.ListConversationFlowComponentsResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateWebCallResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus2)) { - return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus2?)) { - return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus3)) { - return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus3?)) { - return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus4)) { - return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus4?)) { - return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus5)) { - return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus5?)) { - return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus6)) { - return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus6JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListConversationFlowsResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus6?)) { - return new global::RetellAI.JsonConverters.ListConversationFlowsResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus6NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListKnowledgeBasesResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.DeleteCallResponseStatus)) { - return new global::RetellAI.JsonConverters.ListKnowledgeBasesResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteCallResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListKnowledgeBasesResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.DeleteCallResponseStatus?)) { - return new global::RetellAI.JsonConverters.ListKnowledgeBasesResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteCallResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListKnowledgeBasesResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.DeleteCallResponseStatus2)) { - return new global::RetellAI.JsonConverters.ListKnowledgeBasesResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteCallResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListKnowledgeBasesResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.DeleteCallResponseStatus2?)) { - return new global::RetellAI.JsonConverters.ListKnowledgeBasesResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteCallResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListKnowledgeBasesResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.DeleteCallResponseStatus3)) { - return new global::RetellAI.JsonConverters.ListKnowledgeBasesResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteCallResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListKnowledgeBasesResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.DeleteCallResponseStatus3?)) { - return new global::RetellAI.JsonConverters.ListKnowledgeBasesResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteCallResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListPhoneNumbersResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.DeleteCallResponseStatus4)) { - return new global::RetellAI.JsonConverters.ListPhoneNumbersResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteCallResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListPhoneNumbersResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.DeleteCallResponseStatus4?)) { - return new global::RetellAI.JsonConverters.ListPhoneNumbersResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteCallResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListPhoneNumbersResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.GetCallResponseStatus)) { - return new global::RetellAI.JsonConverters.ListPhoneNumbersResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.GetCallResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListPhoneNumbersResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.GetCallResponseStatus?)) { - return new global::RetellAI.JsonConverters.ListPhoneNumbersResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetCallResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.GetCallResponseStatus2)) { - return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.GetCallResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.GetCallResponseStatus2?)) { - return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetCallResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.GetCallResponseStatus3)) { - return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.GetCallResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.GetCallResponseStatus3?)) { - return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetCallResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.GetCallResponseStatus4)) { - return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.GetCallResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.GetCallResponseStatus4?)) { - return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetCallResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.ListCallsResponseStatus)) { - return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.ListCallsResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.ListCallsResponseStatus?)) { - return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListCallsResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.ListCallsResponseStatus2)) { - return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.ListCallsResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListRetellLLMResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.ListCallsResponseStatus2?)) { - return new global::RetellAI.JsonConverters.ListRetellLLMResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListCallsResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListVoicesResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.ListCallsResponseStatus3)) { - return new global::RetellAI.JsonConverters.ListVoicesResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.ListCallsResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListVoicesResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.ListCallsResponseStatus3?)) { - return new global::RetellAI.JsonConverters.ListVoicesResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListCallsResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListVoicesResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.ListCallsResponseStatus4)) { - return new global::RetellAI.JsonConverters.ListVoicesResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.ListCallsResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListVoicesResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.ListCallsResponseStatus4?)) { - return new global::RetellAI.JsonConverters.ListVoicesResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListCallsResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseItemChannel)) { - return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.ListExportRequestsResponseItemChannelJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseItemChannel?)) { - return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListExportRequestsResponseItemChannelNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseItemStatus)) { - return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.ListExportRequestsResponseItemStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseItemStatus?)) { - return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListExportRequestsResponseItemStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseStatus)) { - return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.ListExportRequestsResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListExportRequestsResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.ListExportRequestsResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListExportRequestsResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseStatus3)) { - return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.ListExportRequestsResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateAgentVersionResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CreateAgentVersionResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListExportRequestsResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseStatus4)) { - return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.ListExportRequestsResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseStatus4?)) { - return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListExportRequestsResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus)) { - return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus?)) { - return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus2)) { - return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus2?)) { - return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus3)) { - return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus3?)) { - return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus4)) { - return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.PublishAgentVersionResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus4?)) { - return new global::RetellAI.JsonConverters.PublishAgentVersionResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus5)) { - return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus5?)) { - return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus6)) { - return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus6JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus6?)) { - return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus6NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataResponseStatus)) { - return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCallMetadataResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataResponseStatus?)) { - return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCallMetadataResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataResponseStatus2)) { - return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCallMetadataResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataResponseStatus2?)) { - return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCallMetadataResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataResponseStatus3)) { - return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCallMetadataResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteAgentVersionResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataResponseStatus3?)) { - return new global::RetellAI.JsonConverters.DeleteAgentVersionResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCallMetadataResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataResponseStatus4)) { - return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCallMetadataResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataResponseStatus4?)) { - return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCallMetadataResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus)) { - return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus?)) { - return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus2)) { - return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus2?)) { - return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus3)) { - return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus3?)) { - return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus4)) { - return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus4?)) { - return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus6)) + if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus5)) { - return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus6JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus6?)) + if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus5?)) { - return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus6NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus7)) + if (typeToConvert == typeof(global::RetellAI.StopCallResponseStatus)) { - return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus7JsonConverter(); + return new global::RetellAI.JsonConverters.StopCallResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunCallAnalysisResponseStatus7?)) + if (typeToConvert == typeof(global::RetellAI.StopCallResponseStatus?)) { - return new global::RetellAI.JsonConverters.RerunCallAnalysisResponseStatus7NullableJsonConverter(); + return new global::RetellAI.JsonConverters.StopCallResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.StopCallResponseStatus2)) { - return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.StopCallResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.StopCallResponseStatus2?)) { - return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.StopCallResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.StopCallResponseStatus3)) { - return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.StopCallResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.StopCallResponseStatus3?)) { - return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.StopCallResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.StopCallResponseStatus4)) { - return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.StopCallResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.StopCallResponseStatus4?)) { - return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.StopCallResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.CreateContactResponseStatus)) { - return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.CreateContactResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.CreateContactResponseStatus?)) { - return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateContactResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.CreateContactResponseStatus2)) { - return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.CreateContactResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.CreateContactResponseStatus2?)) { - return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateContactResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus6)) + if (typeToConvert == typeof(global::RetellAI.CreateContactResponseStatus3)) { - return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus6JsonConverter(); + return new global::RetellAI.JsonConverters.CreateContactResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus6?)) + if (typeToConvert == typeof(global::RetellAI.CreateContactResponseStatus3?)) { - return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus6NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateContactResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus7)) + if (typeToConvert == typeof(global::RetellAI.CreateContactResponseStatus4)) { - return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus7JsonConverter(); + return new global::RetellAI.JsonConverters.CreateContactResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RerunChatAnalysisResponseStatus7?)) + if (typeToConvert == typeof(global::RetellAI.CreateContactResponseStatus4?)) { - return new global::RetellAI.JsonConverters.RerunChatAnalysisResponseStatus7NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateContactResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.GetContactResponseStatus)) { - return new global::RetellAI.JsonConverters.UpdateAgentResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.GetContactResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.GetContactResponseStatus?)) { - return new global::RetellAI.JsonConverters.UpdateAgentResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetContactResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.GetContactResponseStatus2)) { - return new global::RetellAI.JsonConverters.UpdateAgentResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.GetContactResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.GetContactResponseStatus2?)) { - return new global::RetellAI.JsonConverters.UpdateAgentResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetContactResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.GetContactResponseStatus3)) { - return new global::RetellAI.JsonConverters.UpdateAgentResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.GetContactResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.GetContactResponseStatus3?)) { - return new global::RetellAI.JsonConverters.UpdateAgentResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetContactResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.GetContactResponseStatus4)) { - return new global::RetellAI.JsonConverters.UpdateAgentResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.GetContactResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.GetContactResponseStatus4?)) { - return new global::RetellAI.JsonConverters.UpdateAgentResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetContactResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus)) { - return new global::RetellAI.JsonConverters.UpdateAgentResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.GetContactByPhoneResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateAgentResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus?)) { - return new global::RetellAI.JsonConverters.UpdateAgentResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetContactByPhoneResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus2)) { - return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.GetContactByPhoneResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus2?)) { - return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetContactByPhoneResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus3)) { - return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.GetContactByPhoneResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus3?)) { - return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetContactByPhoneResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus4)) { - return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.GetContactByPhoneResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus4?)) { - return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetContactByPhoneResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus5)) { - return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.GetContactByPhoneResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.GetContactByPhoneResponseStatus5?)) { - return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetContactByPhoneResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus)) { - return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateContactResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatAgentResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus?)) { - return new global::RetellAI.JsonConverters.UpdateChatAgentResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateContactResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus2)) { - return new global::RetellAI.JsonConverters.UpdateChatMetadataResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateContactResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus2?)) { - return new global::RetellAI.JsonConverters.UpdateChatMetadataResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateContactResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus3)) { - return new global::RetellAI.JsonConverters.UpdateChatMetadataResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateContactResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus3?)) { - return new global::RetellAI.JsonConverters.UpdateChatMetadataResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateContactResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus4)) { - return new global::RetellAI.JsonConverters.UpdateChatMetadataResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateContactResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus4?)) { - return new global::RetellAI.JsonConverters.UpdateChatMetadataResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateContactResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus5)) { - return new global::RetellAI.JsonConverters.UpdateChatMetadataResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateContactResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateChatMetadataResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.UpdateContactResponseStatus5?)) { - return new global::RetellAI.JsonConverters.UpdateChatMetadataResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateContactResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteContactResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus?)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteContactResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus2)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteContactResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus2?)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteContactResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus3)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteContactResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus3?)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteContactResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus4)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteContactResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus4?)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteContactResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus5)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteContactResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.DeleteContactResponseStatus5?)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteContactResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus6)) + if (typeToConvert == typeof(global::RetellAI.ListContactsResponseStatus)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus6JsonConverter(); + return new global::RetellAI.JsonConverters.ListContactsResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowComponentResponseStatus6?)) + if (typeToConvert == typeof(global::RetellAI.ListContactsResponseStatus?)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowComponentResponseStatus6NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListContactsResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.ListContactsResponseStatus2)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.ListContactsResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.ListContactsResponseStatus2?)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListContactsResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.ListContactsResponseStatus3)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.ListContactsResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.ListContactsResponseStatus3?)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListContactsResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.ListContactsResponseStatus4)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.ListContactsResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.ListContactsResponseStatus4?)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListContactsResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.ListContactConversationsResponseStatus)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.ListContactConversationsResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.ListContactConversationsResponseStatus?)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListContactConversationsResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.ListContactConversationsResponseStatus2)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.ListContactConversationsResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.ListContactConversationsResponseStatus2?)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListContactConversationsResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus6)) + if (typeToConvert == typeof(global::RetellAI.ListContactConversationsResponseStatus3)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus6JsonConverter(); + return new global::RetellAI.JsonConverters.ListContactConversationsResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateConversationFlowResponseStatus6?)) + if (typeToConvert == typeof(global::RetellAI.ListContactConversationsResponseStatus3?)) { - return new global::RetellAI.JsonConverters.UpdateConversationFlowResponseStatus6NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListContactConversationsResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdatePhoneNumberResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.ListContactConversationsResponseStatus4)) { - return new global::RetellAI.JsonConverters.UpdatePhoneNumberResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.ListContactConversationsResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdatePhoneNumberResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.ListContactConversationsResponseStatus4?)) { - return new global::RetellAI.JsonConverters.UpdatePhoneNumberResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListContactConversationsResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdatePhoneNumberResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.CreateAppResponseStatus)) { - return new global::RetellAI.JsonConverters.UpdatePhoneNumberResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.CreateAppResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdatePhoneNumberResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.CreateAppResponseStatus?)) { - return new global::RetellAI.JsonConverters.UpdatePhoneNumberResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateAppResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdatePhoneNumberResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.CreateAppResponseStatus2)) { - return new global::RetellAI.JsonConverters.UpdatePhoneNumberResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.CreateAppResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdatePhoneNumberResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.CreateAppResponseStatus2?)) { - return new global::RetellAI.JsonConverters.UpdatePhoneNumberResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateAppResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdatePhoneNumberResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.CreateAppResponseStatus3)) { - return new global::RetellAI.JsonConverters.UpdatePhoneNumberResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.CreateAppResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdatePhoneNumberResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.CreateAppResponseStatus3?)) { - return new global::RetellAI.JsonConverters.UpdatePhoneNumberResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateAppResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.CreateAppResponseStatus4)) { - return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.CreateAppResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.CreateAppResponseStatus4?)) { - return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.CreateAppResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.GetAppResponseStatus)) { - return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.GetAppResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.GetAppResponseStatus?)) { - return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetAppResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.GetAppResponseStatus2)) { - return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.GetAppResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.GetAppResponseStatus2?)) { - return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetAppResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.GetAppResponseStatus3)) { - return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.GetAppResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.GetAppResponseStatus3?)) { - return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetAppResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.GetAppResponseStatus4)) { - return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.GetAppResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateRetellLLMResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.GetAppResponseStatus4?)) { - return new global::RetellAI.JsonConverters.UpdateRetellLLMResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetAppResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus)) { - return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAppResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAppResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAppResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAppResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus3)) { - return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAppResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAppResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus4)) { - return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAppResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus4?)) { - return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAppResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus5)) { - return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAppResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.UpdateAppResponseStatus5?)) { - return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateAppResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus6)) + if (typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus)) { - return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus6JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAppResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreatePhoneCallResponseStatus6?)) + if (typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreatePhoneCallResponseStatus6NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAppResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreateWebCallResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAppResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreateWebCallResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAppResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus3)) { - return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAppResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus3?)) { - return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAppResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus4)) { - return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAppResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus4?)) { - return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAppResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus5)) { - return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAppResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.DeleteAppResponseStatus5?)) { - return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.DeleteAppResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.ListAppsResponseStatus)) { - return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.ListAppsResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.ListAppsResponseStatus?)) { - return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAppsResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus6)) + if (typeToConvert == typeof(global::RetellAI.ListAppsResponseStatus2)) { - return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus6JsonConverter(); + return new global::RetellAI.JsonConverters.ListAppsResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.CreateWebCallResponseStatus6?)) + if (typeToConvert == typeof(global::RetellAI.ListAppsResponseStatus2?)) { - return new global::RetellAI.JsonConverters.CreateWebCallResponseStatus6NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAppsResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteCallResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.ListAppsResponseStatus3)) { - return new global::RetellAI.JsonConverters.DeleteCallResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.ListAppsResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteCallResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.ListAppsResponseStatus3?)) { - return new global::RetellAI.JsonConverters.DeleteCallResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAppsResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteCallResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.ListAppUsagesResponseStatus)) { - return new global::RetellAI.JsonConverters.DeleteCallResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.ListAppUsagesResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteCallResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.ListAppUsagesResponseStatus?)) { - return new global::RetellAI.JsonConverters.DeleteCallResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAppUsagesResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteCallResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.ListAppUsagesResponseStatus2)) { - return new global::RetellAI.JsonConverters.DeleteCallResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.ListAppUsagesResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteCallResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.ListAppUsagesResponseStatus2?)) { - return new global::RetellAI.JsonConverters.DeleteCallResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAppUsagesResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteCallResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.ListAppUsagesResponseStatus3)) { - return new global::RetellAI.JsonConverters.DeleteCallResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.ListAppUsagesResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.DeleteCallResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.ListAppUsagesResponseStatus3?)) { - return new global::RetellAI.JsonConverters.DeleteCallResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAppUsagesResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetCallResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.ListAppUsagesResponseStatus4)) { - return new global::RetellAI.JsonConverters.GetCallResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.ListAppUsagesResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetCallResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.ListAppUsagesResponseStatus4?)) { - return new global::RetellAI.JsonConverters.GetCallResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.ListAppUsagesResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetCallResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.TestAppAuthResponseStatus)) { - return new global::RetellAI.JsonConverters.GetCallResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.TestAppAuthResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetCallResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.TestAppAuthResponseStatus?)) { - return new global::RetellAI.JsonConverters.GetCallResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.TestAppAuthResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetCallResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.TestAppAuthResponseStatus2)) { - return new global::RetellAI.JsonConverters.GetCallResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.TestAppAuthResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetCallResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.TestAppAuthResponseStatus2?)) { - return new global::RetellAI.JsonConverters.GetCallResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.TestAppAuthResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetCallResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.TestAppAuthResponseStatus3)) { - return new global::RetellAI.JsonConverters.GetCallResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.TestAppAuthResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.GetCallResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.TestAppAuthResponseStatus3?)) { - return new global::RetellAI.JsonConverters.GetCallResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.TestAppAuthResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListCallsResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.TestAppAuthResponseStatus4)) { - return new global::RetellAI.JsonConverters.ListCallsResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.TestAppAuthResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListCallsResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.TestAppAuthResponseStatus4?)) { - return new global::RetellAI.JsonConverters.ListCallsResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.TestAppAuthResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListCallsResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.GetCrmConfigResponseStatus)) { - return new global::RetellAI.JsonConverters.ListCallsResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.GetCrmConfigResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListCallsResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.GetCrmConfigResponseStatus?)) { - return new global::RetellAI.JsonConverters.ListCallsResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetCrmConfigResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListCallsResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.GetCrmConfigResponseStatus2)) { - return new global::RetellAI.JsonConverters.ListCallsResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.GetCrmConfigResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListCallsResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.GetCrmConfigResponseStatus2?)) { - return new global::RetellAI.JsonConverters.ListCallsResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetCrmConfigResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListCallsResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.GetCrmConfigResponseStatus3)) { - return new global::RetellAI.JsonConverters.ListCallsResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.GetCrmConfigResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListCallsResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.GetCrmConfigResponseStatus3?)) { - return new global::RetellAI.JsonConverters.ListCallsResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetCrmConfigResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseItemChannel)) + if (typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus)) { - return new global::RetellAI.JsonConverters.ListExportRequestsResponseItemChannelJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCrmConfigResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseItemChannel?)) + if (typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus?)) { - return new global::RetellAI.JsonConverters.ListExportRequestsResponseItemChannelNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCrmConfigResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseItemStatus)) + if (typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus2)) { - return new global::RetellAI.JsonConverters.ListExportRequestsResponseItemStatusJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCrmConfigResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseItemStatus?)) + if (typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus2?)) { - return new global::RetellAI.JsonConverters.ListExportRequestsResponseItemStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCrmConfigResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus3)) { - return new global::RetellAI.JsonConverters.ListExportRequestsResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCrmConfigResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus3?)) { - return new global::RetellAI.JsonConverters.ListExportRequestsResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCrmConfigResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus4)) { - return new global::RetellAI.JsonConverters.ListExportRequestsResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCrmConfigResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus4?)) { - return new global::RetellAI.JsonConverters.ListExportRequestsResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCrmConfigResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus5)) { - return new global::RetellAI.JsonConverters.ListExportRequestsResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCrmConfigResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.UpdateCrmConfigResponseStatus5?)) { - return new global::RetellAI.JsonConverters.ListExportRequestsResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.UpdateCrmConfigResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.RunSyncJobResponseStatus)) { - return new global::RetellAI.JsonConverters.ListExportRequestsResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.RunSyncJobResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.ListExportRequestsResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.RunSyncJobResponseStatus?)) { - return new global::RetellAI.JsonConverters.ListExportRequestsResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.RunSyncJobResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.RunSyncJobResponseStatus2)) { - return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.RunSyncJobResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.RunSyncJobResponseStatus2?)) { - return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.RunSyncJobResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.RunSyncJobResponseStatus3)) { - return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.RunSyncJobResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.RunSyncJobResponseStatus3?)) { - return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.RunSyncJobResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.RunSyncJobResponseStatus4)) { - return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.RunSyncJobResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.RunSyncJobResponseStatus4?)) { - return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.RunSyncJobResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.GetSyncJobStatusResponseStatus)) { - return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.GetSyncJobStatusResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.GetSyncJobStatusResponseStatus?)) { - return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetSyncJobStatusResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.GetSyncJobStatusResponseStatus2)) { - return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.GetSyncJobStatusResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.GetSyncJobStatusResponseStatus2?)) { - return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetSyncJobStatusResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus6)) + if (typeToConvert == typeof(global::RetellAI.GetSyncJobStatusResponseStatus3)) { - return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus6JsonConverter(); + return new global::RetellAI.JsonConverters.GetSyncJobStatusResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.RegisterPhoneCallResponseStatus6?)) + if (typeToConvert == typeof(global::RetellAI.GetSyncJobStatusResponseStatus3?)) { - return new global::RetellAI.JsonConverters.RegisterPhoneCallResponseStatus6NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetSyncJobStatusResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus)) { - return new global::RetellAI.JsonConverters.UpdateCallMetadataResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus?)) { - return new global::RetellAI.JsonConverters.UpdateCallMetadataResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus2)) { - return new global::RetellAI.JsonConverters.UpdateCallMetadataResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus2?)) { - return new global::RetellAI.JsonConverters.UpdateCallMetadataResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus3)) { - return new global::RetellAI.JsonConverters.UpdateCallMetadataResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus3?)) { - return new global::RetellAI.JsonConverters.UpdateCallMetadataResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus4)) { - return new global::RetellAI.JsonConverters.UpdateCallMetadataResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateCallMetadataResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.BackfillContactAnalysisDataResponseStatus4?)) { - return new global::RetellAI.JsonConverters.UpdateCallMetadataResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.GetBackfillContactJobStatusResponseStatus)) { - return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.GetBackfillContactJobStatusResponseStatus?)) { - return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.GetBackfillContactJobStatusResponseStatus2)) { - return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.GetBackfillContactJobStatusResponseStatus2?)) { - return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.GetBackfillContactJobStatusResponseStatus3)) { - return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.GetBackfillContactJobStatusResponseStatus3?)) { - return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus)) { - return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.GetCrmSchemaResponseStatusJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus?)) { - return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetCrmSchemaResponseStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus5)) + if (typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus2)) { - return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatus5JsonConverter(); + return new global::RetellAI.JsonConverters.GetCrmSchemaResponseStatus2JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.UpdateLiveCallResponseStatus5?)) + if (typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus2?)) { - return new global::RetellAI.JsonConverters.UpdateLiveCallResponseStatus5NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetCrmSchemaResponseStatus2NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.StopCallResponseStatus)) + if (typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus3)) { - return new global::RetellAI.JsonConverters.StopCallResponseStatusJsonConverter(); + return new global::RetellAI.JsonConverters.GetCrmSchemaResponseStatus3JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.StopCallResponseStatus?)) + if (typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus3?)) { - return new global::RetellAI.JsonConverters.StopCallResponseStatusNullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetCrmSchemaResponseStatus3NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.StopCallResponseStatus2)) + if (typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus4)) { - return new global::RetellAI.JsonConverters.StopCallResponseStatus2JsonConverter(); + return new global::RetellAI.JsonConverters.GetCrmSchemaResponseStatus4JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.StopCallResponseStatus2?)) + if (typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus4?)) { - return new global::RetellAI.JsonConverters.StopCallResponseStatus2NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetCrmSchemaResponseStatus4NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.StopCallResponseStatus3)) + if (typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus5)) { - return new global::RetellAI.JsonConverters.StopCallResponseStatus3JsonConverter(); + return new global::RetellAI.JsonConverters.GetCrmSchemaResponseStatus5JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.StopCallResponseStatus3?)) + if (typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus5?)) { - return new global::RetellAI.JsonConverters.StopCallResponseStatus3NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetCrmSchemaResponseStatus5NullableJsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.StopCallResponseStatus4)) + if (typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus6)) { - return new global::RetellAI.JsonConverters.StopCallResponseStatus4JsonConverter(); + return new global::RetellAI.JsonConverters.GetCrmSchemaResponseStatus6JsonConverter(); } - if (typeToConvert == typeof(global::RetellAI.StopCallResponseStatus4?)) + if (typeToConvert == typeof(global::RetellAI.GetCrmSchemaResponseStatus6?)) { - return new global::RetellAI.JsonConverters.StopCallResponseStatus4NullableJsonConverter(); + return new global::RetellAI.JsonConverters.GetCrmSchemaResponseStatus6NullableJsonConverter(); } throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); } @@ -11356,7 +13365,7 @@ public override bool CanConvert(global::System.Type typeToConvert) private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver { private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[5]; + private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[6]; public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( global::System.Type type, @@ -11401,6 +13410,8 @@ private sealed class LazyChunkResolver : global::System.Text.Json.Serialization. 3 => new SourceGenerationContextChunk3(new global::System.Text.Json.JsonSerializerOptions()), 4 => new SourceGenerationContextChunk4(new global::System.Text.Json.JsonSerializerOptions()), + + 5 => new SourceGenerationContextChunk5(new global::System.Text.Json.JsonSerializerOptions()), _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), }; } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonSerializerContextTypes.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonSerializerContextTypes.g.cs index 06d8b630..bb20f8c2 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonSerializerContextTypes.g.cs @@ -384,1047 +384,1047 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::RetellAI.AgentResponse? Type89 { get; set; } + public global::RetellAI.AgentVersionSummary? Type89 { get; set; } /// /// /// - public global::RetellAI.AgentResponseVariant1? Type90 { get; set; } + public long? Type90 { get; set; } /// /// /// - public global::RetellAI.AgentResponseVariant3? Type91 { get; set; } + public global::RetellAI.AgentResponse? Type91 { get; set; } /// /// /// - public long? Type92 { get; set; } + public global::RetellAI.AgentResponseVariant1? Type92 { get; set; } /// /// /// - public global::RetellAI.AgentListFilter? Type93 { get; set; } + public global::RetellAI.AgentResponseVariant3? Type93 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type94 { get; set; } + public global::RetellAI.AgentListFilter? Type94 { get; set; } /// /// /// - public global::RetellAI.AgentListFilterChannel? Type95 { get; set; } + public global::RetellAI.AllOf? Type95 { get; set; } /// /// /// - public global::RetellAI.AgentListFilterChannelOp? Type96 { get; set; } + public global::RetellAI.AgentListFilterChannel? Type96 { get; set; } /// /// /// - public global::RetellAI.AgentListFilterChannelValue? Type97 { get; set; } + public global::RetellAI.AgentListFilterChannelOp? Type97 { get; set; } /// /// /// - public global::RetellAI.AgentListItemResponse? Type98 { get; set; } + public global::RetellAI.AgentListFilterChannelValue? Type98 { get; set; } /// /// /// - public global::RetellAI.AgentListItemResponseChannel? Type99 { get; set; } + public global::RetellAI.AgentListItemResponse? Type99 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type100 { get; set; } + public global::RetellAI.AgentListItemResponseChannel? Type100 { get; set; } /// /// /// - public global::RetellAI.AgentSwapNode? Type101 { get; set; } + public global::System.Collections.Generic.Dictionary? Type101 { get; set; } /// /// /// - public global::RetellAI.NodeBase? Type102 { get; set; } + public global::RetellAI.AgentSwapNode? Type102 { get; set; } /// /// /// - public global::RetellAI.AgentSwapNodeVariant2? Type103 { get; set; } + public global::RetellAI.NodeBase? Type103 { get; set; } /// /// /// - public global::RetellAI.AgentSwapNodeVariant2Type? Type104 { get; set; } + public global::RetellAI.AgentSwapNodeVariant2? Type104 { get; set; } /// /// /// - public global::RetellAI.PostCallAnalysisSetting? Type105 { get; set; } + public global::RetellAI.AgentSwapNodeVariant2Type? Type105 { get; set; } /// /// /// - public global::RetellAI.AgentSwapWebhookSetting? Type106 { get; set; } + public global::RetellAI.PostCallAnalysisSetting? Type106 { get; set; } /// /// /// - public global::RetellAI.TransferFailedEdge? Type107 { get; set; } + public global::RetellAI.AgentSwapWebhookSetting? Type107 { get; set; } /// /// /// - public global::RetellAI.NodeInstruction? Type108 { get; set; } + public global::RetellAI.TransferFailedEdge? Type108 { get; set; } /// /// /// - public global::RetellAI.AgentSwapTool? Type109 { get; set; } + public global::RetellAI.NodeInstruction? Type109 { get; set; } /// /// /// - public global::RetellAI.AgentSwapToolType? Type110 { get; set; } + public global::RetellAI.AgentSwapTool? Type110 { get; set; } /// /// /// - public global::RetellAI.AgentSwapToolExecutionMessageType? Type111 { get; set; } + public global::RetellAI.AgentSwapToolType? Type111 { get; set; } /// /// /// - public global::RetellAI.AnalysisData? Type112 { get; set; } + public global::RetellAI.AgentSwapToolExecutionMessageType? Type112 { get; set; } /// /// /// - public global::RetellAI.StringAnalysisData? Type113 { get; set; } + public global::RetellAI.AnalysisData? Type113 { get; set; } /// /// /// - public global::RetellAI.EnumAnalysisData? Type114 { get; set; } + public global::RetellAI.StringAnalysisData? Type114 { get; set; } /// /// /// - public global::RetellAI.BooleanAnalysisData? Type115 { get; set; } + public global::RetellAI.EnumAnalysisData? Type115 { get; set; } /// /// /// - public global::RetellAI.NumberAnalysisData? Type116 { get; set; } + public global::RetellAI.BooleanAnalysisData? Type116 { get; set; } /// /// /// - public global::RetellAI.CallPresetAnalysisData? Type117 { get; set; } + public global::RetellAI.NumberAnalysisData? Type117 { get; set; } /// /// /// - public global::RetellAI.PostChatAnalysisData? Type118 { get; set; } + public global::RetellAI.CallPresetAnalysisData? Type118 { get; set; } /// /// /// - public global::RetellAI.ChatPresetAnalysisData? Type119 { get; set; } + public global::RetellAI.PostChatAnalysisData? Type119 { get; set; } /// /// /// - public global::RetellAI.AverageMetric? Type120 { get; set; } + public global::RetellAI.ChatPresetAnalysisData? Type120 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type121 { get; set; } + public global::RetellAI.AverageMetric? Type121 { get; set; } /// /// /// - public global::RetellAI.BatchCallResponse? Type122 { get; set; } + public global::System.Collections.Generic.IList? Type122 { get; set; } /// /// /// - public global::RetellAI.CallTimeWindow? Type123 { get; set; } + public global::RetellAI.BatchCallResponse? Type123 { get; set; } /// /// /// - public global::RetellAI.BatchCallTask? Type124 { get; set; } + public global::RetellAI.CallTimeWindow? Type124 { get; set; } /// /// /// - public global::RetellAI.BookAppointmentCalTool? Type125 { get; set; } + public global::RetellAI.BatchCallTask? Type125 { get; set; } /// /// /// - public global::RetellAI.BookAppointmentCalToolType? Type126 { get; set; } + public global::RetellAI.BookAppointmentCalTool? Type126 { get; set; } /// /// /// - public global::RetellAI.OneOf? Type127 { get; set; } + public global::RetellAI.BookAppointmentCalToolType? Type127 { get; set; } /// /// /// - public global::RetellAI.BooleanAnalysisDataType? Type128 { get; set; } + public global::RetellAI.OneOf? Type128 { get; set; } /// /// /// - public global::RetellAI.BranchNode? Type129 { get; set; } + public global::RetellAI.BooleanAnalysisDataType? Type129 { get; set; } /// /// /// - public global::RetellAI.BranchNodeVariant2? Type130 { get; set; } + public global::RetellAI.BranchNode? Type130 { get; set; } /// /// /// - public global::RetellAI.BranchNodeVariant2Type? Type131 { get; set; } + public global::RetellAI.BranchNodeVariant2? Type131 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type132 { get; set; } + public global::RetellAI.BranchNodeVariant2Type? Type132 { get; set; } /// /// /// - public global::RetellAI.NodeEdge? Type133 { get; set; } + public global::System.Collections.Generic.IList? Type133 { get; set; } /// /// /// - public global::RetellAI.ElseEdge? Type134 { get; set; } + public global::RetellAI.NodeEdge? Type134 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type135 { get; set; } + public global::RetellAI.ElseEdge? Type135 { get; set; } /// /// /// - public global::RetellAI.NodeFinetuneTransitionExample? Type136 { get; set; } + public global::System.Collections.Generic.IList? Type136 { get; set; } /// /// /// - public global::RetellAI.BreakdownMetric? Type137 { get; set; } + public global::RetellAI.NodeFinetuneTransitionExample? Type137 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type138 { get; set; } + public global::RetellAI.BreakdownMetric? Type138 { get; set; } /// /// /// - public global::RetellAI.Breakdown? Type139 { get; set; } + public global::System.Collections.Generic.IList? Type139 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type140 { get; set; } + public global::RetellAI.Breakdown? Type140 { get; set; } /// /// /// - public global::RetellAI.BridgeTransferNode? Type141 { get; set; } + public global::System.Collections.Generic.IList>? Type141 { get; set; } /// /// /// - public global::RetellAI.BridgeTransferNodeVariant2? Type142 { get; set; } + public global::RetellAI.BridgeTransferNode? Type142 { get; set; } /// /// /// - public global::RetellAI.BridgeTransferNodeVariant2Type? Type143 { get; set; } + public global::RetellAI.BridgeTransferNodeVariant2? Type143 { get; set; } /// /// /// - public global::RetellAI.BridgeTransferTool? Type144 { get; set; } + public global::RetellAI.BridgeTransferNodeVariant2Type? Type144 { get; set; } /// /// /// - public global::RetellAI.BridgeTransferToolType? Type145 { get; set; } + public global::RetellAI.BridgeTransferTool? Type145 { get; set; } /// /// /// - public global::RetellAI.BridgeTransferToolExecutionMessageType? Type146 { get; set; } + public global::RetellAI.BridgeTransferToolType? Type146 { get; set; } /// /// /// - public global::RetellAI.CallAnalysis? Type147 { get; set; } + public global::RetellAI.BridgeTransferToolExecutionMessageType? Type147 { get; set; } /// /// /// - public global::RetellAI.CallAnalysisUserSentiment? Type148 { get; set; } + public global::RetellAI.CallAnalysis? Type148 { get; set; } /// /// /// - public global::RetellAI.CallLatency? Type149 { get; set; } + public global::RetellAI.CallAnalysisUserSentiment? Type149 { get; set; } /// /// /// - public global::RetellAI.CallQA? Type150 { get; set; } + public global::RetellAI.CallLatency? Type150 { get; set; } /// /// /// - public global::RetellAI.InterruptionAnalysis? Type151 { get; set; } + public global::RetellAI.CallQA? Type151 { get; set; } /// /// /// - public global::RetellAI.SentimentAnalysis? Type152 { get; set; } + public global::RetellAI.InterruptionAnalysis? Type152 { get; set; } /// /// /// - public global::RetellAI.TranscriptionErrorAnalysis? Type153 { get; set; } + public global::RetellAI.SentimentAnalysis? Type153 { get; set; } /// /// /// - public global::RetellAI.RAGAnalysis? Type154 { get; set; } + public global::RetellAI.TranscriptionErrorAnalysis? Type154 { get; set; } /// /// /// - public global::RetellAI.ToolCallMetricAnalysis? Type155 { get; set; } + public global::RetellAI.RAGAnalysis? Type155 { get; set; } /// /// /// - public global::RetellAI.ToolCallAccuracyAnalysis? Type156 { get; set; } + public global::RetellAI.ToolCallMetricAnalysis? Type156 { get; set; } /// /// /// - public global::RetellAI.NodeTransitionAnalysis? Type157 { get; set; } + public global::RetellAI.ToolCallAccuracyAnalysis? Type157 { get; set; } /// /// /// - public global::RetellAI.HallucinationAnalysis? Type158 { get; set; } + public global::RetellAI.NodeTransitionAnalysis? Type158 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type159 { get; set; } + public global::RetellAI.HallucinationAnalysis? Type159 { get; set; } /// /// /// - public global::RetellAI.MetricResult? Type160 { get; set; } + public global::System.Collections.Generic.IList? Type160 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type161 { get; set; } + public global::RetellAI.MetricResult? Type161 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type162 { get; set; } + public global::System.Collections.Generic.IList? Type162 { get; set; } /// /// /// - public global::RetellAI.TimeWindow? Type163 { get; set; } + public global::System.Collections.Generic.IList? Type163 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type164 { get; set; } + public global::RetellAI.TimeWindow? Type164 { get; set; } /// /// /// - public global::RetellAI.DayOfWeek? Type165 { get; set; } + public global::System.Collections.Generic.IList? Type165 { get; set; } /// /// /// - public global::RetellAI.CancelTransferNode? Type166 { get; set; } + public global::RetellAI.DayOfWeek? Type166 { get; set; } /// /// /// - public global::RetellAI.CancelTransferNodeVariant2? Type167 { get; set; } + public global::RetellAI.CancelTransferNode? Type167 { get; set; } /// /// /// - public global::RetellAI.CancelTransferNodeVariant2Type? Type168 { get; set; } + public global::RetellAI.CancelTransferNodeVariant2? Type168 { get; set; } /// /// /// - public global::RetellAI.CancelTransferTool? Type169 { get; set; } + public global::RetellAI.CancelTransferNodeVariant2Type? Type169 { get; set; } /// /// /// - public global::RetellAI.CancelTransferToolType? Type170 { get; set; } + public global::RetellAI.CancelTransferTool? Type170 { get; set; } /// /// /// - public global::RetellAI.CancelTransferToolExecutionMessageType? Type171 { get; set; } + public global::RetellAI.CancelTransferToolType? Type171 { get; set; } /// /// /// - public global::RetellAI.ChCallQA? Type172 { get; set; } + public global::RetellAI.CancelTransferToolExecutionMessageType? Type172 { get; set; } /// /// /// - public global::RetellAI.PreviewCallQA? Type173 { get; set; } + public global::RetellAI.ChCallQA? Type173 { get; set; } /// /// /// - public global::RetellAI.PreviewCallQAVariant2? Type174 { get; set; } + public global::RetellAI.PreviewCallQA? Type174 { get; set; } /// /// /// - public global::RetellAI.ChatAgentRequest? Type175 { get; set; } + public global::RetellAI.PreviewCallQAVariant2? Type175 { get; set; } /// /// /// - public global::RetellAI.OneOf, global::RetellAI.ChatAgentRequestLanguage?>? Type176 { get; set; } + public global::RetellAI.ChatAgentRequest? Type176 { get; set; } /// /// /// - public global::RetellAI.ChatAgentRequestLanguage? Type177 { get; set; } + public global::RetellAI.OneOf, global::RetellAI.ChatAgentRequestLanguage?>? Type177 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type178 { get; set; } + public global::RetellAI.ChatAgentRequestLanguage? Type178 { get; set; } /// /// /// - public global::RetellAI.ChatAgentRequestWebhookEvent? Type179 { get; set; } + public global::System.Collections.Generic.IList? Type179 { get; set; } /// /// /// - public global::RetellAI.ChatAgentRequestDataStorageSetting? Type180 { get; set; } + public global::RetellAI.ChatAgentRequestWebhookEvent? Type180 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type181 { get; set; } + public global::RetellAI.ChatAgentRequestDataStorageSetting? Type181 { get; set; } /// /// /// - public global::RetellAI.ChatHandbookConfig? Type182 { get; set; } + public global::System.Collections.Generic.IList? Type182 { get; set; } /// /// /// - public global::RetellAI.ChatAgentResponse? Type183 { get; set; } + public global::RetellAI.ChatHandbookConfig? Type183 { get; set; } /// /// /// - public global::RetellAI.ChatAgentResponseVariant1? Type184 { get; set; } + public global::RetellAI.ChatAgentResponse? Type184 { get; set; } /// /// /// - public global::RetellAI.ChatAgentResponseVariant3? Type185 { get; set; } + public global::RetellAI.ChatAgentResponseVariant1? Type185 { get; set; } /// /// /// - public global::RetellAI.ChatAnalysis? Type186 { get; set; } + public global::RetellAI.ChatAgentResponseVariant3? Type186 { get; set; } /// /// /// - public global::RetellAI.ChatAnalysisUserSentiment? Type187 { get; set; } + public global::RetellAI.ChatAnalysis? Type187 { get; set; } /// /// /// - public global::RetellAI.ChatResponse? Type188 { get; set; } + public global::RetellAI.ChatAnalysisUserSentiment? Type188 { get; set; } /// /// /// - public global::RetellAI.ChatResponseChatStatus? Type189 { get; set; } + public global::RetellAI.ChatResponse? Type189 { get; set; } /// /// /// - public global::RetellAI.ChatResponseChatType? Type190 { get; set; } + public global::RetellAI.ChatResponseChatStatus? Type190 { get; set; } /// /// /// - public global::RetellAI.OneOf? Type191 { get; set; } + public global::RetellAI.ChatResponseChatType? Type191 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type192 { get; set; } + public global::RetellAI.OneOf? Type192 { get; set; } /// /// /// - public global::RetellAI.MessageOrToolCall? Type193 { get; set; } + public global::System.Collections.Generic.IList? Type193 { get; set; } /// /// /// - public global::RetellAI.ChatResponseChatCost? Type194 { get; set; } + public global::RetellAI.MessageOrToolCall? Type194 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type195 { get; set; } + public global::RetellAI.ChatResponseChatCost? Type195 { get; set; } /// /// /// - public global::RetellAI.ProductCost? Type196 { get; set; } + public global::System.Collections.Generic.IList? Type196 { get; set; } /// /// /// - public global::RetellAI.V3ChatResponse? Type197 { get; set; } + public global::RetellAI.ProductCost? Type197 { get; set; } /// /// /// - public global::RetellAI.V3ListChatsRequest? Type198 { get; set; } + public global::RetellAI.V3ChatResponse? Type198 { get; set; } /// /// /// - public global::RetellAI.ChatFilter? Type199 { get; set; } + public global::RetellAI.V3ListChatsRequest? Type199 { get; set; } /// /// /// - public global::RetellAI.V3ListChatsRequestSortOrder? Type200 { get; set; } + public global::RetellAI.ChatFilter? Type200 { get; set; } /// /// /// - public global::RetellAI.CheckAvailabilityCalTool? Type201 { get; set; } + public global::RetellAI.V3ListChatsRequestSortOrder? Type201 { get; set; } /// /// /// - public global::RetellAI.CheckAvailabilityCalToolType? Type202 { get; set; } + public global::RetellAI.CheckAvailabilityCalTool? Type202 { get; set; } /// /// /// - public global::RetellAI.CohortAgent? Type203 { get; set; } + public global::RetellAI.CheckAvailabilityCalToolType? Type203 { get; set; } /// /// /// - public global::RetellAI.CohortAggregatedResult? Type204 { get; set; } + public global::RetellAI.CohortAgent? Type204 { get; set; } /// /// /// - public global::RetellAI.CohortAggregatedResultGroupBy? Type205 { get; set; } + public global::RetellAI.CohortAggregatedResult? Type205 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type206 { get; set; } + public global::RetellAI.CohortAggregatedResultGroupBy? Type206 { get; set; } /// /// /// - public global::RetellAI.CohortAggregatedResultTopQuestion? Type207 { get; set; } + public global::System.Collections.Generic.IList? Type207 { get; set; } /// /// /// - public global::RetellAI.CohortFilter? Type208 { get; set; } + public global::RetellAI.CohortAggregatedResultTopQuestion? Type208 { get; set; } /// /// /// - public global::RetellAI.OneOf?, global::RetellAI.RangeFilter>? Type209 { get; set; } + public global::RetellAI.CohortFilter? Type209 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type210 { get; set; } + public global::RetellAI.OneOf?, global::RetellAI.RangeFilter>? Type210 { get; set; } /// /// /// - public global::RetellAI.NumberFilter? Type211 { get; set; } + public global::RetellAI.AllOf? Type211 { get; set; } /// /// /// - public global::RetellAI.CohortFilterStartTimestampVariant1? Type212 { get; set; } + public global::RetellAI.NumberFilter? Type212 { get; set; } /// /// /// - public global::RetellAI.CohortFilterStartTimestampVariant1Op? Type213 { get; set; } + public global::RetellAI.CohortFilterStartTimestampVariant1? Type213 { get; set; } /// /// /// - public global::RetellAI.RangeFilter? Type214 { get; set; } + public global::RetellAI.CohortFilterStartTimestampVariant1Op? Type214 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type215 { get; set; } + public global::RetellAI.RangeFilter? Type215 { get; set; } /// /// /// - public global::RetellAI.CohortFilterDisconnectionReason? Type216 { get; set; } + public global::RetellAI.AllOf? Type216 { get; set; } /// /// /// - public global::RetellAI.OneOf? Type217 { get; set; } + public global::RetellAI.CohortFilterDisconnectionReason? Type217 { get; set; } /// /// /// - public global::RetellAI.DateRange? Type218 { get; set; } + public global::RetellAI.OneOf? Type218 { get; set; } /// /// /// - public global::RetellAI.CohortFilterCallDurationFilter? Type219 { get; set; } + public global::RetellAI.DateRange? Type219 { get; set; } /// /// /// - public global::RetellAI.CohortFilterCallDurationFilterOp? Type220 { get; set; } + public global::RetellAI.CohortFilterCallDurationFilter? Type220 { get; set; } /// /// /// - public global::RetellAI.Cohort? Type221 { get; set; } + public global::RetellAI.CohortFilterCallDurationFilterOp? Type221 { get; set; } /// /// /// - public global::RetellAI.ScoringCriteria? Type222 { get; set; } + public global::RetellAI.Cohort? Type222 { get; set; } /// /// /// - public global::RetellAI.CohortSuccessfulCriteria? Type223 { get; set; } + public global::RetellAI.ScoringCriteria? Type223 { get; set; } /// /// /// - public global::RetellAI.CohortSuccessfulCriteriaType? Type224 { get; set; } + public global::RetellAI.CohortSuccessfulCriteria? Type224 { get; set; } /// /// /// - public global::RetellAI.CohortSuccessfulCriteriaOp? Type225 { get; set; } + public global::RetellAI.CohortSuccessfulCriteriaType? Type225 { get; set; } /// /// /// - public global::RetellAI.CohortEvaluationMode? Type226 { get; set; } + public global::RetellAI.CohortSuccessfulCriteriaOp? Type226 { get; set; } /// /// /// - public global::RetellAI.ComponentNode? Type227 { get; set; } + public global::RetellAI.CohortEvaluationMode? Type227 { get; set; } /// /// /// - public global::RetellAI.NodeBaseCommon? Type228 { get; set; } + public global::RetellAI.ComponentNode? Type228 { get; set; } /// /// /// - public global::RetellAI.ComponentNodeVariant2? Type229 { get; set; } + public global::RetellAI.NodeBaseCommon? Type229 { get; set; } /// /// /// - public global::RetellAI.ComponentNodeVariant2Type? Type230 { get; set; } + public global::RetellAI.ComponentNodeVariant2? Type230 { get; set; } /// /// /// - public global::RetellAI.ComponentNodeVariant2ComponentType? Type231 { get; set; } + public global::RetellAI.ComponentNodeVariant2Type? Type231 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowComponentResponse? Type232 { get; set; } + public global::RetellAI.ComponentNodeVariant2ComponentType? Type232 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentRequest? Type233 { get; set; } + public global::RetellAI.ConversationFlowComponentResponse? Type233 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowComponentResponseVariant2? Type234 { get; set; } + public global::RetellAI.CreateConversationFlowComponentRequest? Type234 { get; set; } /// /// /// - public global::RetellAI.Asset? Type235 { get; set; } + public global::RetellAI.ConversationFlowComponentResponseVariant2? Type235 { get; set; } /// /// /// - public global::RetellAI.Note? Type236 { get; set; } + public global::RetellAI.Asset? Type236 { get; set; } /// /// /// - public global::RetellAI.NoteDisplayPosition? Type237 { get; set; } + public global::RetellAI.Note? Type237 { get; set; } /// /// /// - public global::RetellAI.NoteSize? Type238 { get; set; } + public global::RetellAI.NoteDisplayPosition? Type238 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowComponent? Type239 { get; set; } + public global::RetellAI.NoteSize? Type239 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type240 { get; set; } + public global::RetellAI.ConversationFlowComponent? Type240 { get; set; } /// /// /// - public global::RetellAI.NodeTool? Type241 { get; set; } + public global::System.Collections.Generic.IList? Type241 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type242 { get; set; } + public global::RetellAI.NodeTool? Type242 { get; set; } /// /// /// - public global::RetellAI.Mcp? Type243 { get; set; } + public global::System.Collections.Generic.IList? Type243 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type244 { get; set; } + public global::RetellAI.Mcp? Type244 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowNode? Type245 { get; set; } + public global::System.Collections.Generic.IList? Type245 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowComponentBeginTagDisplayPosition? Type246 { get; set; } + public global::RetellAI.ConversationFlowNode? Type246 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type247 { get; set; } + public global::RetellAI.ConversationFlowComponentBeginTagDisplayPosition? Type247 { get; set; } /// /// /// - public global::RetellAI.ConversationNode? Type248 { get; set; } + public global::System.Collections.Generic.IList? Type248 { get; set; } /// /// /// - public global::RetellAI.SubagentNode? Type249 { get; set; } + public global::RetellAI.ConversationNode? Type249 { get; set; } /// /// /// - public global::RetellAI.EndNode? Type250 { get; set; } + public global::RetellAI.SubagentNode? Type250 { get; set; } /// /// /// - public global::RetellAI.FunctionNode? Type251 { get; set; } + public global::RetellAI.EndNode? Type251 { get; set; } /// /// /// - public global::RetellAI.CodeNode? Type252 { get; set; } + public global::RetellAI.FunctionNode? Type252 { get; set; } /// /// /// - public global::RetellAI.TransferCallNode? Type253 { get; set; } + public global::RetellAI.CodeNode? Type253 { get; set; } /// /// /// - public global::RetellAI.PressDigitNode? Type254 { get; set; } + public global::RetellAI.TransferCallNode? Type254 { get; set; } /// /// /// - public global::RetellAI.SmsNode? Type255 { get; set; } + public global::RetellAI.PressDigitNode? Type255 { get; set; } /// /// /// - public global::RetellAI.ExtractDynamicVariablesNode? Type256 { get; set; } + public global::RetellAI.SmsNode? Type256 { get; set; } /// /// /// - public global::RetellAI.MCPNode? Type257 { get; set; } + public global::RetellAI.ExtractDynamicVariablesNode? Type257 { get; set; } /// /// /// - public global::RetellAI.AgentOverrideConfig? Type258 { get; set; } + public global::RetellAI.MCPNode? Type258 { get; set; } /// /// /// - public global::RetellAI.KBConfig? Type259 { get; set; } + public global::RetellAI.AgentOverrideConfig? Type259 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowOverrideStartSpeaker? Type260 { get; set; } + public global::RetellAI.KBConfig? Type260 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowResponse? Type261 { get; set; } + public global::RetellAI.ConversationFlowOverrideStartSpeaker? Type261 { get; set; } /// /// /// - public global::RetellAI.ConversationFlow? Type262 { get; set; } + public global::RetellAI.ConversationFlowResponse? Type262 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowResponseVariant2? Type263 { get; set; } + public global::RetellAI.ConversationFlow? Type263 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowVariant2? Type264 { get; set; } + public global::RetellAI.ConversationFlowResponseVariant2? Type264 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type265 { get; set; } + public global::RetellAI.ConversationFlowVariant2? Type265 { get; set; } /// /// /// - public global::RetellAI.ConversationFlowVariant2BeginTagDisplayPosition? Type266 { get; set; } + public global::System.Collections.Generic.IList? Type266 { get; set; } /// /// /// - public global::RetellAI.ConversationNodeVariant3? Type267 { get; set; } + public global::RetellAI.ConversationFlowVariant2BeginTagDisplayPosition? Type267 { get; set; } /// /// /// - public global::RetellAI.ConversationNodeVariant3Type? Type268 { get; set; } + public global::RetellAI.ConversationNodeVariant3? Type268 { get; set; } /// /// /// - public global::RetellAI.SkipResponseEdge? Type269 { get; set; } + public global::RetellAI.ConversationNodeVariant3Type? Type269 { get; set; } /// /// /// - public global::RetellAI.AlwaysEdge? Type270 { get; set; } + public global::RetellAI.SkipResponseEdge? Type270 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type271 { get; set; } + public global::RetellAI.AlwaysEdge? Type271 { get; set; } /// /// /// - public global::RetellAI.NodeFinetuneConversationExample? Type272 { get; set; } + public global::System.Collections.Generic.IList? Type272 { get; set; } /// /// /// - public global::RetellAI.SubagentNodeVariant3? Type273 { get; set; } + public global::RetellAI.NodeFinetuneConversationExample? Type273 { get; set; } /// /// /// - public global::RetellAI.SubagentNodeVariant3Type? Type274 { get; set; } + public global::RetellAI.SubagentNodeVariant3? Type274 { get; set; } /// /// /// - public global::RetellAI.NodeInstructionPrompt? Type275 { get; set; } + public global::RetellAI.SubagentNodeVariant3Type? Type275 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type276 { get; set; } + public global::RetellAI.NodeInstructionPrompt? Type276 { get; set; } /// /// /// - public global::RetellAI.Tool? Type277 { get; set; } + public global::System.Collections.Generic.IList? Type277 { get; set; } /// /// /// - public global::RetellAI.CpsConfig? Type278 { get; set; } + public global::RetellAI.Tool? Type278 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowRequest? Type279 { get; set; } + public global::RetellAI.CpsConfig? Type279 { get; set; } /// /// /// - public global::RetellAI.CreateOrganizationRequest? Type280 { get; set; } + public global::RetellAI.CreateConversationFlowRequest? Type280 { get; set; } /// /// /// - public global::RetellAI.CreateOrganizationRequestNew? Type281 { get; set; } + public global::RetellAI.CreateOrganizationRequest? Type281 { get; set; } /// /// /// - public global::RetellAI.CreateOrganizationRequestOld? Type282 { get; set; } + public global::RetellAI.CreateOrganizationRequestNew? Type282 { get; set; } /// /// /// - public global::RetellAI.CreateCreditTopupInvoiceRequest? Type283 { get; set; } + public global::RetellAI.CreateOrganizationRequestOld? Type283 { get; set; } /// /// /// - public global::RetellAI.CreateCreditTopupInvoiceResponse? Type284 { get; set; } + public global::RetellAI.CreateCreditTopupInvoiceRequest? Type284 { get; set; } /// /// /// - public global::RetellAI.OptInBillingV2Request? Type285 { get; set; } + public global::RetellAI.CreateCreditTopupInvoiceResponse? Type285 { get; set; } /// /// /// - public global::RetellAI.OptInBillingV2Response? Type286 { get; set; } + public global::RetellAI.OptInBillingV2Request? Type286 { get; set; } /// /// /// - public global::RetellAI.CustomMetricCriteria? Type287 { get; set; } + public global::RetellAI.OptInBillingV2Response? Type287 { get; set; } /// /// /// - public global::RetellAI.CustomTool? Type288 { get; set; } + public global::RetellAI.CustomMetricCriteria? Type288 { get; set; } /// /// /// - public global::RetellAI.CustomToolType? Type289 { get; set; } + public global::RetellAI.CustomTool? Type289 { get; set; } /// /// /// - public global::RetellAI.CustomToolMethod? Type290 { get; set; } + public global::RetellAI.CustomToolType? Type290 { get; set; } /// /// /// - public global::RetellAI.ToolParameter? Type291 { get; set; } + public global::RetellAI.CustomToolMethod? Type291 { get; set; } /// /// /// - public global::RetellAI.CustomToolExecutionMessageType? Type292 { get; set; } + public global::RetellAI.ToolParameter? Type292 { get; set; } /// /// /// - public global::RetellAI.CustomToolParameterType? Type293 { get; set; } + public global::RetellAI.CustomToolExecutionMessageType? Type293 { get; set; } /// /// /// - public global::RetellAI.CodeTool? Type294 { get; set; } + public global::RetellAI.CustomToolParameterType? Type294 { get; set; } /// /// /// - public global::RetellAI.CodeToolType? Type295 { get; set; } + public global::RetellAI.CodeTool? Type295 { get; set; } /// /// /// - public global::RetellAI.CodeToolExecutionMessageType? Type296 { get; set; } + public global::RetellAI.CodeToolType? Type296 { get; set; } /// /// /// - public global::RetellAI.DTMFUtterance? Type297 { get; set; } + public global::RetellAI.CodeToolExecutionMessageType? Type297 { get; set; } /// /// /// - public global::RetellAI.DTMFUtteranceRole? Type298 { get; set; } + public global::RetellAI.DTMFUtterance? Type298 { get; set; } /// /// /// - public global::RetellAI.SmsUtterance? Type299 { get; set; } + public global::RetellAI.DTMFUtteranceRole? Type299 { get; set; } /// /// /// - public global::RetellAI.SmsUtteranceRole? Type300 { get; set; } + public global::RetellAI.SmsUtterance? Type300 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type301 { get; set; } + public global::RetellAI.SmsUtteranceRole? Type301 { get; set; } /// /// /// - public global::RetellAI.SmsMultimediaItem? Type302 { get; set; } + public global::System.Collections.Generic.IList? Type302 { get; set; } /// /// /// - public global::RetellAI.InjectedUtterance? Type303 { get; set; } + public global::RetellAI.SmsMultimediaItem? Type303 { get; set; } /// /// /// - public global::RetellAI.InjectedUtteranceRole? Type304 { get; set; } + public global::RetellAI.InjectedUtterance? Type304 { get; set; } /// /// /// - public global::RetellAI.StringFilterType? Type305 { get; set; } + public global::RetellAI.InjectedUtteranceRole? Type305 { get; set; } /// /// /// - public global::RetellAI.StringFilterOp? Type306 { get; set; } + public global::RetellAI.StringFilterType? Type306 { get; set; } /// /// /// - public global::RetellAI.NumberFilterType? Type307 { get; set; } + public global::RetellAI.StringFilterOp? Type307 { get; set; } /// /// /// - public global::RetellAI.NumberFilterOp? Type308 { get; set; } + public global::RetellAI.NumberFilterType? Type308 { get; set; } /// /// /// - public global::RetellAI.BooleanFilter? Type309 { get; set; } + public global::RetellAI.NumberFilterOp? Type309 { get; set; } /// /// /// - public global::RetellAI.BooleanFilterType? Type310 { get; set; } + public global::RetellAI.BooleanFilter? Type310 { get; set; } /// /// /// - public global::RetellAI.BooleanFilterOp? Type311 { get; set; } + public global::RetellAI.BooleanFilterType? Type311 { get; set; } /// /// /// - public global::RetellAI.RangeFilterType? Type312 { get; set; } + public global::RetellAI.BooleanFilterOp? Type312 { get; set; } /// /// /// - public global::RetellAI.RangeFilterOp? Type313 { get; set; } + public global::RetellAI.RangeFilterType? Type313 { get; set; } /// /// /// - public global::RetellAI.EnumFilterType? Type314 { get; set; } + public global::RetellAI.RangeFilterOp? Type314 { get; set; } /// /// /// - public global::RetellAI.EnumFilterOp? Type315 { get; set; } + public global::RetellAI.EnumFilterType? Type315 { get; set; } /// /// /// - public global::RetellAI.PresentFilter? Type316 { get; set; } + public global::RetellAI.EnumFilterOp? Type316 { get; set; } /// /// /// - public global::RetellAI.PresentFilterType? Type317 { get; set; } + public global::RetellAI.PresentFilter? Type317 { get; set; } /// /// /// - public global::RetellAI.PresentFilterOp? Type318 { get; set; } + public global::RetellAI.PresentFilterType? Type318 { get; set; } /// /// /// - public global::RetellAI.ValueFilter? Type319 { get; set; } + public global::RetellAI.PresentFilterOp? Type319 { get; set; } /// /// /// - public global::RetellAI.CustomFieldFilterVariant2? Type320 { get; set; } + public global::RetellAI.ValueFilter? Type320 { get; set; } /// /// /// - public global::RetellAI.ToolCallFilter? Type321 { get; set; } + public global::RetellAI.CustomFieldFilterVariant2? Type321 { get; set; } /// /// /// - public global::RetellAI.CallFilter? Type322 { get; set; } + public global::RetellAI.ToolCallFilter? Type322 { get; set; } /// /// /// - public global::RetellAI.OneOf? Type323 { get; set; } + public global::RetellAI.CallFilter? Type323 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type324 { get; set; } + public global::RetellAI.OneOf? Type324 { get; set; } /// /// /// - public global::RetellAI.CallFilterCallStatus? Type325 { get; set; } + public global::RetellAI.AllOf? Type325 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type326 { get; set; } + public global::RetellAI.CallFilterCallStatus? Type326 { get; set; } /// /// /// - public global::RetellAI.CallFilterCallStatusValueItem? Type327 { get; set; } + public global::System.Collections.Generic.IList? Type327 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type328 { get; set; } + public global::RetellAI.CallFilterCallStatusValueItem? Type328 { get; set; } /// /// /// - public global::RetellAI.CallFilterDisconnectionReason? Type329 { get; set; } + public global::RetellAI.AllOf? Type329 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type330 { get; set; } + public global::RetellAI.CallFilterDisconnectionReason? Type330 { get; set; } /// /// /// - public global::RetellAI.CallFilterCallType? Type331 { get; set; } + public global::RetellAI.AllOf? Type331 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type332 { get; set; } + public global::RetellAI.CallFilterCallType? Type332 { get; set; } /// /// /// - public global::RetellAI.CallFilterCallTypeValueItem? Type333 { get; set; } + public global::System.Collections.Generic.IList? Type333 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type334 { get; set; } + public global::RetellAI.CallFilterCallTypeValueItem? Type334 { get; set; } /// /// /// - public global::RetellAI.CallFilterDirection? Type335 { get; set; } + public global::RetellAI.AllOf? Type335 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type336 { get; set; } + public global::RetellAI.CallFilterDirection? Type336 { get; set; } /// /// /// - public global::RetellAI.CallFilterDirectionValueItem? Type337 { get; set; } + public global::System.Collections.Generic.IList? Type337 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type338 { get; set; } + public global::RetellAI.CallFilterDirectionValueItem? Type338 { get; set; } /// /// /// - public global::RetellAI.CallFilterUserSentiment? Type339 { get; set; } + public global::RetellAI.AllOf? Type339 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type340 { get; set; } + public global::RetellAI.CallFilterUserSentiment? Type340 { get; set; } /// /// /// - public global::RetellAI.CallFilterUserSentimentValueItem? Type341 { get; set; } + public global::System.Collections.Generic.IList? Type341 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type342 { get; set; } + public global::RetellAI.CallFilterUserSentimentValueItem? Type342 { get; set; } /// /// /// - public global::RetellAI.CallFilterDataStorageSetting? Type343 { get; set; } + public global::RetellAI.AllOf? Type343 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type344 { get; set; } + public global::RetellAI.CallFilterDataStorageSetting? Type344 { get; set; } /// /// /// - public global::RetellAI.CallFilterDataStorageSettingValueItem? Type345 { get; set; } + public global::System.Collections.Generic.IList? Type345 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type346 { get; set; } + public global::RetellAI.CallFilterDataStorageSettingValueItem? Type346 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type347 { get; set; } + public global::System.Collections.Generic.IList? Type347 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type348 { get; set; } + public global::RetellAI.StoredCallFilter? Type348 { get; set; } /// /// /// - public global::RetellAI.CallFilterDynamicVariable? Type349 { get; set; } + public global::RetellAI.StoredCallFilterVariant2? Type349 { get; set; } /// /// /// @@ -2976,3263 +2976,4271 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::RetellAI.DashboardSource? Type737 { get; set; } + public global::RetellAI.AppType? Type737 { get; set; } /// /// /// - public global::RetellAI.ChartGroupItem? Type738 { get; set; } + public global::RetellAI.AppConnectionStatus? Type738 { get; set; } /// /// /// - public global::RetellAI.ChartGroupItemVariant1? Type739 { get; set; } + public global::RetellAI.OAuthConfigRequest? Type739 { get; set; } /// /// /// - public global::RetellAI.ChartGroupItemVariant1Type? Type740 { get; set; } + public global::RetellAI.OAuthConfigRequestType? Type740 { get; set; } /// /// /// - public global::RetellAI.ChartGroupItemVariant2? Type741 { get; set; } + public global::RetellAI.ApiKeyAuthConfigRequest? Type741 { get; set; } /// /// /// - public global::RetellAI.ChartGroupItemVariant2Type? Type742 { get; set; } + public global::RetellAI.ApiKeyAuthConfigRequestType? Type742 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type743 { get; set; } + public global::RetellAI.AccessTokenAuthConfigRequest? Type743 { get; set; } /// /// /// - public global::RetellAI.CreateBatchCallRequest? Type744 { get; set; } + public global::RetellAI.AccessTokenAuthConfigRequestType? Type744 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type745 { get; set; } + public global::RetellAI.BasicAuthConfigRequest? Type745 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestRequest? Type746 { get; set; } + public global::RetellAI.BasicAuthConfigRequestType? Type746 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type747 { get; set; } + public global::RetellAI.RefreshTokenAuthConfigRequest? Type747 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type748 { get; set; } + public global::RetellAI.RefreshTokenAuthConfigRequestType? Type748 { get; set; } /// /// /// - public global::RetellAI.AgentPlaygroundCompletionRequest? Type749 { get; set; } + public global::RetellAI.AuthConfigRequest? Type749 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type750 { get; set; } + public global::RetellAI.OAuthConfigResponse? Type750 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionRequest? Type751 { get; set; } + public global::RetellAI.OAuthConfigResponseType? Type751 { get; set; } /// /// /// - public global::RetellAI.CreateChatRequest? Type752 { get; set; } + public global::RetellAI.ApiKeyAuthConfigResponse? Type752 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneNumberRequest? Type753 { get; set; } + public global::RetellAI.ApiKeyAuthConfigResponseType? Type753 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneNumberRequestNumberProvider? Type754 { get; set; } + public global::RetellAI.AccessTokenAuthConfigResponse? Type754 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneNumberRequestCountryCode? Type755 { get; set; } + public global::RetellAI.AccessTokenAuthConfigResponseType? Type755 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatRequest? Type756 { get; set; } + public global::RetellAI.BasicAuthConfigResponse? Type756 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceRequest? Type757 { get; set; } + public global::RetellAI.BasicAuthConfigResponseType? Type757 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceRequestVoiceProvider? Type758 { get; set; } + public global::RetellAI.RefreshTokenAuthConfigResponse? Type758 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceRequest? Type759 { get; set; } + public global::RetellAI.RefreshTokenAuthConfigResponseType? Type759 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceRequestVoiceProvider? Type760 { get; set; } + public global::RetellAI.AppAuthConfigResponse? Type760 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceRequest? Type761 { get; set; } + public global::RetellAI.CRMSyncMapping? Type761 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceRequestVoiceProvider? Type762 { get; set; } + public global::RetellAI.AppCRMConfig? Type762 { get; set; } /// /// /// - public global::RetellAI.ImportPhoneNumberRequest? Type763 { get; set; } + public global::System.Collections.Generic.IList? Type763 { get; set; } /// /// /// - public global::RetellAI.ListAgentsRequest? Type764 { get; set; } + public global::RetellAI.AppResponse? Type764 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataRequest? Type765 { get; set; } + public global::RetellAI.AppUsageResponse? Type765 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataRequestDataStorageSetting? Type766 { get; set; } + public global::RetellAI.AgentAppUsage? Type766 { get; set; } /// /// /// - public global::RetellAI.UpdatePhoneNumberRequest? Type767 { get; set; } + public global::RetellAI.KnowledgeBaseAppUsage? Type767 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallRequest? Type768 { get; set; } + public global::RetellAI.AgentAppUsageType? Type768 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallRequest? Type769 { get; set; } + public global::RetellAI.KnowledgeBaseAppUsageType? Type769 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallRequest? Type770 { get; set; } + public global::RetellAI.CRMCustomFieldSchema? Type770 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallRequestDirection? Type771 { get; set; } + public global::RetellAI.CRMCustomFieldSchemaType? Type771 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataRequest? Type772 { get; set; } + public global::RetellAI.CRMAnalysisDataMapping? Type772 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataRequestDataStorageSetting? Type773 { get; set; } + public global::RetellAI.CRMAnalysisDataMappingUpdateMode? Type773 { get; set; } /// /// /// - public global::RetellAI.UpdateLiveCallRequest? Type774 { get; set; } + public global::RetellAI.CRMConfig? Type774 { get; set; } /// /// /// - public global::RetellAI.UpdateLiveCallRequestFieldsToOverride? Type775 { get; set; } + public global::System.Collections.Generic.IList? Type775 { get; set; } /// /// /// - public global::RetellAI.UpdateLiveCallRequestFieldsToOverrideDataStorageSetting? Type776 { get; set; } + public global::System.Collections.Generic.IList? Type776 { get; set; } /// /// /// - public global::RetellAI.UpdateLiveCallRequestCallControl? Type777 { get; set; } + public global::RetellAI.JobStatus? Type777 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsType? Type778 { get; set; } + public global::RetellAI.JobStatusStatus? Type778 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsType? Type779 { get; set; } + public global::RetellAI.JobStatusTriggeredBy? Type779 { get; set; } /// /// /// - public global::RetellAI.ListAgentsSortOrder? Type780 { get; set; } + public global::RetellAI.DashboardSource? Type780 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsSortOrder? Type781 { get; set; } + public global::RetellAI.ChartGroupItem? Type781 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsSortOrder? Type782 { get; set; } + public global::RetellAI.ChartGroupItemVariant1? Type782 { get; set; } /// /// /// - public global::RetellAI.ListPhoneNumbersSortOrder? Type783 { get; set; } + public global::RetellAI.ChartGroupItemVariant1Type? Type783 { get; set; } /// /// /// - public global::RetellAI.ListRetellLLMSortOrder? Type784 { get; set; } + public global::RetellAI.ChartGroupItemVariant2? Type784 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsSortOrder? Type785 { get; set; } + public global::RetellAI.ChartGroupItemVariant2Type? Type785 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponse? Type786 { get; set; } + public global::RetellAI.AllOf? Type786 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus? Type787 { get; set; } + public global::RetellAI.CreateBatchCallRequest? Type787 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponse2? Type788 { get; set; } + public global::System.Collections.Generic.IList? Type788 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus2? Type789 { get; set; } + public global::RetellAI.CreateBatchTestRequest? Type789 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponse3? Type790 { get; set; } + public global::RetellAI.AllOf? Type790 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus3? Type791 { get; set; } + public global::RetellAI.AllOf? Type791 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponse4? Type792 { get; set; } + public global::RetellAI.AgentPlaygroundCompletionRequest? Type792 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus4? Type793 { get; set; } + public global::System.Collections.Generic.IList? Type793 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponse5? Type794 { get; set; } + public global::RetellAI.CreateChatCompletionRequest? Type794 { get; set; } /// /// /// - public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus5? Type795 { get; set; } + public global::RetellAI.CreateChatRequest? Type795 { get; set; } /// /// /// - public global::RetellAI.CreateAgentResponse? Type796 { get; set; } + public global::RetellAI.CreatePhoneNumberRequest? Type796 { get; set; } /// /// /// - public global::RetellAI.CreateAgentResponseStatus? Type797 { get; set; } + public global::RetellAI.CreatePhoneNumberRequestNumberProvider? Type797 { get; set; } /// /// /// - public global::RetellAI.CreateAgentResponse2? Type798 { get; set; } + public global::RetellAI.CreatePhoneNumberRequestCountryCode? Type798 { get; set; } /// /// /// - public global::RetellAI.CreateAgentResponseStatus2? Type799 { get; set; } + public global::RetellAI.CreateSmsChatRequest? Type799 { get; set; } /// /// /// - public global::RetellAI.CreateAgentResponse3? Type800 { get; set; } + public global::RetellAI.CloneVoiceRequest? Type800 { get; set; } /// /// /// - public global::RetellAI.CreateAgentResponseStatus3? Type801 { get; set; } + public global::RetellAI.CloneVoiceRequestVoiceProvider? Type801 { get; set; } /// /// /// - public global::RetellAI.CreateAgentResponse4? Type802 { get; set; } + public global::RetellAI.AddCommunityVoiceRequest? Type802 { get; set; } /// /// /// - public global::RetellAI.CreateAgentResponseStatus4? Type803 { get; set; } + public global::RetellAI.AddCommunityVoiceRequestVoiceProvider? Type803 { get; set; } /// /// /// - public global::RetellAI.CreateBatchCallResponse? Type804 { get; set; } + public global::RetellAI.SearchCommunityVoiceRequest? Type804 { get; set; } /// /// /// - public global::RetellAI.CreateBatchCallResponseStatus? Type805 { get; set; } + public global::RetellAI.SearchCommunityVoiceRequestVoiceProvider? Type805 { get; set; } /// /// /// - public global::RetellAI.CreateBatchCallResponse2? Type806 { get; set; } + public global::RetellAI.ImportPhoneNumberRequest? Type806 { get; set; } /// /// /// - public global::RetellAI.CreateBatchCallResponseStatus2? Type807 { get; set; } + public global::RetellAI.ListAgentsRequest? Type807 { get; set; } /// /// /// - public global::RetellAI.CreateBatchCallResponse3? Type808 { get; set; } + public global::RetellAI.UpdateChatMetadataRequest? Type808 { get; set; } /// /// /// - public global::RetellAI.CreateBatchCallResponseStatus3? Type809 { get; set; } + public global::RetellAI.UpdateChatMetadataRequestDataStorageSetting? Type809 { get; set; } /// /// /// - public global::RetellAI.CreateBatchCallResponse4? Type810 { get; set; } + public global::RetellAI.UpdatePhoneNumberRequest? Type810 { get; set; } /// /// /// - public global::RetellAI.CreateBatchCallResponseStatus4? Type811 { get; set; } + public global::RetellAI.CreatePhoneCallRequest? Type811 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponse? Type812 { get; set; } + public global::RetellAI.CreateWebCallRequest? Type812 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponseStatus? Type813 { get; set; } + public global::RetellAI.RegisterPhoneCallRequest? Type813 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponse2? Type814 { get; set; } + public global::RetellAI.RegisterPhoneCallRequestDirection? Type814 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponseStatus2? Type815 { get; set; } + public global::RetellAI.UpdateCallMetadataRequest? Type815 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponse3? Type816 { get; set; } + public global::RetellAI.UpdateCallMetadataRequestDataStorageSetting? Type816 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponseStatus3? Type817 { get; set; } + public global::RetellAI.UpdateLiveCallRequest? Type817 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponse4? Type818 { get; set; } + public global::RetellAI.UpdateLiveCallRequestFieldsToOverride? Type818 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponseStatus4? Type819 { get; set; } + public global::RetellAI.UpdateLiveCallRequestFieldsToOverrideDataStorageSetting? Type819 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponse5? Type820 { get; set; } + public global::RetellAI.UpdateLiveCallRequestCallControl? Type820 { get; set; } /// /// /// - public global::RetellAI.CreateBatchTestResponseStatus5? Type821 { get; set; } + public global::RetellAI.CreateContactRequest? Type821 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponse? Type822 { get; set; } + public global::RetellAI.UpdateContactRequest? Type822 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponseStatus? Type823 { get; set; } + public global::RetellAI.CreateAppRequest? Type823 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponse2? Type824 { get; set; } + public global::RetellAI.UpdateAppRequest? Type824 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponseStatus2? Type825 { get; set; } + public global::RetellAI.UpdateCrmConfigRequest? Type825 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponse3? Type826 { get; set; } + public global::RetellAI.BackfillContactAnalysisDataRequest? Type826 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponseStatus3? Type827 { get; set; } + public global::RetellAI.BackfillContactAnalysisDataRequestBackfillCallFilter? Type827 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponse4? Type828 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsType? Type828 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponseStatus4? Type829 { get; set; } + public global::RetellAI.ListBatchTestsType? Type829 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponse5? Type830 { get; set; } + public global::RetellAI.ListAgentVersionsSortOrder? Type830 { get; set; } /// /// /// - public global::RetellAI.CreateTestCaseDefinitionResponseStatus5? Type831 { get; set; } + public global::RetellAI.ListAgentsSortOrder? Type831 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponse? Type832 { get; set; } + public global::RetellAI.ListConversationFlowComponentsSortOrder? Type832 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponseStatus? Type833 { get; set; } + public global::RetellAI.ListConversationFlowsSortOrder? Type833 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponse2? Type834 { get; set; } + public global::RetellAI.ListPhoneNumbersSortOrder? Type834 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponseStatus2? Type835 { get; set; } + public global::RetellAI.ListRetellLLMSortOrder? Type835 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponse3? Type836 { get; set; } + public global::RetellAI.ListExportRequestsSortOrder? Type836 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponseStatus3? Type837 { get; set; } + public global::RetellAI.ListAppsSortOrder? Type837 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponse4? Type838 { get; set; } + public global::RetellAI.ListAppUsagesSortOrder? Type838 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponseStatus4? Type839 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponse? Type839 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponse5? Type840 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus? Type840 { get; set; } /// /// /// - public global::RetellAI.DeleteTestCaseDefinitionResponseStatus5? Type841 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponse2? Type841 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponse? Type842 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus2? Type842 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponseStatus? Type843 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponse3? Type843 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponse2? Type844 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus3? Type844 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponseStatus2? Type845 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponse4? Type845 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponse3? Type846 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus4? Type846 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponseStatus3? Type847 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponse5? Type847 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponse4? Type848 { get; set; } + public global::RetellAI.AddKnowledgeBaseSourcesResponseStatus5? Type848 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponseStatus4? Type849 { get; set; } + public global::RetellAI.CreateAgentResponse? Type849 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponse5? Type850 { get; set; } + public global::RetellAI.CreateAgentResponseStatus? Type850 { get; set; } /// /// /// - public global::RetellAI.GetTestCaseDefinitionResponseStatus5? Type851 { get; set; } + public global::RetellAI.CreateAgentResponse2? Type851 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type852 { get; set; } + public global::RetellAI.CreateAgentResponseStatus2? Type852 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsResponse2? Type853 { get; set; } + public global::RetellAI.CreateAgentResponse3? Type853 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type854 { get; set; } + public global::RetellAI.CreateAgentResponseStatus3? Type854 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsResponse3? Type855 { get; set; } + public global::RetellAI.CreateAgentResponse4? Type855 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsResponseStatus? Type856 { get; set; } + public global::RetellAI.CreateAgentResponseStatus4? Type856 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsResponse4? Type857 { get; set; } + public global::RetellAI.CreateBatchCallResponse? Type857 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsResponseStatus2? Type858 { get; set; } + public global::RetellAI.CreateBatchCallResponseStatus? Type858 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsResponse5? Type859 { get; set; } + public global::RetellAI.CreateBatchCallResponse2? Type859 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsResponseStatus3? Type860 { get; set; } + public global::RetellAI.CreateBatchCallResponseStatus2? Type860 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsResponse6? Type861 { get; set; } + public global::RetellAI.CreateBatchCallResponse3? Type861 { get; set; } /// /// /// - public global::RetellAI.ListTestCaseDefinitionsResponseStatus4? Type862 { get; set; } + public global::RetellAI.CreateBatchCallResponseStatus3? Type862 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponse? Type863 { get; set; } + public global::RetellAI.CreateBatchCallResponse4? Type863 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponseStatus? Type864 { get; set; } + public global::RetellAI.CreateBatchCallResponseStatus4? Type864 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponse2? Type865 { get; set; } + public global::RetellAI.CreateBatchTestResponse? Type865 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponseStatus2? Type866 { get; set; } + public global::RetellAI.CreateBatchTestResponseStatus? Type866 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponse3? Type867 { get; set; } + public global::RetellAI.CreateBatchTestResponse2? Type867 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponseStatus3? Type868 { get; set; } + public global::RetellAI.CreateBatchTestResponseStatus2? Type868 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponse4? Type869 { get; set; } + public global::RetellAI.CreateBatchTestResponse3? Type869 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponseStatus4? Type870 { get; set; } + public global::RetellAI.CreateBatchTestResponseStatus3? Type870 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponse5? Type871 { get; set; } + public global::RetellAI.CreateBatchTestResponse4? Type871 { get; set; } /// /// /// - public global::RetellAI.UpdateTestCaseDefinitionResponseStatus5? Type872 { get; set; } + public global::RetellAI.CreateBatchTestResponseStatus4? Type872 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponse? Type873 { get; set; } + public global::RetellAI.CreateBatchTestResponse5? Type873 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponseStatus? Type874 { get; set; } + public global::RetellAI.CreateBatchTestResponseStatus5? Type874 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponse2? Type875 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponse? Type875 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponseStatus2? Type876 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponseStatus? Type876 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponse3? Type877 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponse2? Type877 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponseStatus3? Type878 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponseStatus2? Type878 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponse4? Type879 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponse3? Type879 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponseStatus4? Type880 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponseStatus3? Type880 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponse5? Type881 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponse4? Type881 { get; set; } /// /// /// - public global::RetellAI.GetBatchTestResponseStatus5? Type882 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponseStatus4? Type882 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type883 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponse5? Type883 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsResponse2? Type884 { get; set; } + public global::RetellAI.CreateTestCaseDefinitionResponseStatus5? Type884 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type885 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponse? Type885 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsResponse3? Type886 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponseStatus? Type886 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsResponseStatus? Type887 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponse2? Type887 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsResponse4? Type888 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponseStatus2? Type888 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsResponseStatus2? Type889 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponse3? Type889 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsResponse5? Type890 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponseStatus3? Type890 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsResponseStatus3? Type891 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponse4? Type891 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsResponse6? Type892 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponseStatus4? Type892 { get; set; } /// /// /// - public global::RetellAI.ListBatchTestsResponseStatus4? Type893 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponse5? Type893 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponse? Type894 { get; set; } + public global::RetellAI.DeleteTestCaseDefinitionResponseStatus5? Type894 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponseStatus? Type895 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponse? Type895 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponse2? Type896 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponseStatus? Type896 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponseStatus2? Type897 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponse2? Type897 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponse3? Type898 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponseStatus2? Type898 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponseStatus3? Type899 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponse3? Type899 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponse4? Type900 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponseStatus3? Type900 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponseStatus4? Type901 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponse4? Type901 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponse5? Type902 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponseStatus4? Type902 { get; set; } /// /// /// - public global::RetellAI.GetTestRunResponseStatus5? Type903 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponse5? Type903 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type904 { get; set; } + public global::RetellAI.GetTestCaseDefinitionResponseStatus5? Type904 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponse2? Type905 { get; set; } + public global::RetellAI.AllOf? Type905 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type906 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsResponse2? Type906 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponse3? Type907 { get; set; } + public global::System.Collections.Generic.IList? Type907 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponseStatus? Type908 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsResponse3? Type908 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponse4? Type909 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsResponseStatus? Type909 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponseStatus2? Type910 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsResponse4? Type910 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponse5? Type911 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsResponseStatus2? Type911 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponseStatus3? Type912 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsResponse5? Type912 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponse6? Type913 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsResponseStatus3? Type913 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponseStatus4? Type914 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsResponse6? Type914 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponse7? Type915 { get; set; } + public global::RetellAI.ListTestCaseDefinitionsResponseStatus4? Type915 { get; set; } /// /// /// - public global::RetellAI.ListTestRunsResponseStatus5? Type916 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponse? Type916 { get; set; } /// /// /// - public global::RetellAI.CreateChatAgentResponse? Type917 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponseStatus? Type917 { get; set; } /// /// /// - public global::RetellAI.CreateChatAgentResponseStatus? Type918 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponse2? Type918 { get; set; } /// /// /// - public global::RetellAI.CreateChatAgentResponse2? Type919 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponseStatus2? Type919 { get; set; } /// /// /// - public global::RetellAI.CreateChatAgentResponseStatus2? Type920 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponse3? Type920 { get; set; } /// /// /// - public global::RetellAI.CreateChatAgentResponse3? Type921 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponseStatus3? Type921 { get; set; } /// /// /// - public global::RetellAI.CreateChatAgentResponseStatus3? Type922 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponse4? Type922 { get; set; } /// /// /// - public global::RetellAI.CreateChatAgentResponse4? Type923 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponseStatus4? Type923 { get; set; } /// /// /// - public global::RetellAI.CreateChatAgentResponseStatus4? Type924 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponse5? Type924 { get; set; } /// /// /// - public global::RetellAI.AgentPlaygroundCompletionResponse? Type925 { get; set; } + public global::RetellAI.UpdateTestCaseDefinitionResponseStatus5? Type925 { get; set; } /// /// /// - public global::RetellAI.AgentPlaygroundCompletionResponse2? Type926 { get; set; } + public global::RetellAI.GetBatchTestResponse? Type926 { get; set; } /// /// /// - public global::RetellAI.AgentPlaygroundCompletionResponseStatus? Type927 { get; set; } + public global::RetellAI.GetBatchTestResponseStatus? Type927 { get; set; } /// /// /// - public global::RetellAI.AgentPlaygroundCompletionResponse3? Type928 { get; set; } + public global::RetellAI.GetBatchTestResponse2? Type928 { get; set; } /// /// /// - public global::RetellAI.AgentPlaygroundCompletionResponseStatus2? Type929 { get; set; } + public global::RetellAI.GetBatchTestResponseStatus2? Type929 { get; set; } /// /// /// - public global::RetellAI.AgentPlaygroundCompletionResponse4? Type930 { get; set; } + public global::RetellAI.GetBatchTestResponse3? Type930 { get; set; } /// /// /// - public global::RetellAI.AgentPlaygroundCompletionResponseStatus3? Type931 { get; set; } + public global::RetellAI.GetBatchTestResponseStatus3? Type931 { get; set; } /// /// /// - public global::RetellAI.AgentPlaygroundCompletionResponse5? Type932 { get; set; } + public global::RetellAI.GetBatchTestResponse4? Type932 { get; set; } /// /// /// - public global::RetellAI.AgentPlaygroundCompletionResponseStatus4? Type933 { get; set; } + public global::RetellAI.GetBatchTestResponseStatus4? Type933 { get; set; } /// /// /// - public global::RetellAI.AgentPlaygroundCompletionResponse6? Type934 { get; set; } + public global::RetellAI.GetBatchTestResponse5? Type934 { get; set; } /// /// /// - public global::RetellAI.AgentPlaygroundCompletionResponseStatus5? Type935 { get; set; } + public global::RetellAI.GetBatchTestResponseStatus5? Type935 { get; set; } /// /// /// - public global::RetellAI.AgentPlaygroundCompletionResponse7? Type936 { get; set; } + public global::RetellAI.AllOf? Type936 { get; set; } /// /// /// - public global::RetellAI.AgentPlaygroundCompletionResponseStatus6? Type937 { get; set; } + public global::RetellAI.ListBatchTestsResponse2? Type937 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponse? Type938 { get; set; } + public global::System.Collections.Generic.IList? Type938 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponse2? Type939 { get; set; } + public global::RetellAI.ListBatchTestsResponse3? Type939 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponseStatus? Type940 { get; set; } + public global::RetellAI.ListBatchTestsResponseStatus? Type940 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponse3? Type941 { get; set; } + public global::RetellAI.ListBatchTestsResponse4? Type941 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponseStatus2? Type942 { get; set; } + public global::RetellAI.ListBatchTestsResponseStatus2? Type942 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponse4? Type943 { get; set; } + public global::RetellAI.ListBatchTestsResponse5? Type943 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponseStatus3? Type944 { get; set; } + public global::RetellAI.ListBatchTestsResponseStatus3? Type944 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponse5? Type945 { get; set; } + public global::RetellAI.ListBatchTestsResponse6? Type945 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponseStatus4? Type946 { get; set; } + public global::RetellAI.ListBatchTestsResponseStatus4? Type946 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponse6? Type947 { get; set; } + public global::RetellAI.GetTestRunResponse? Type947 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponseStatus5? Type948 { get; set; } + public global::RetellAI.GetTestRunResponseStatus? Type948 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponse7? Type949 { get; set; } + public global::RetellAI.GetTestRunResponse2? Type949 { get; set; } /// /// /// - public global::RetellAI.CreateChatCompletionResponseStatus6? Type950 { get; set; } + public global::RetellAI.GetTestRunResponseStatus2? Type950 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponse? Type951 { get; set; } + public global::RetellAI.GetTestRunResponse3? Type951 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponseStatus? Type952 { get; set; } + public global::RetellAI.GetTestRunResponseStatus3? Type952 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponse2? Type953 { get; set; } + public global::RetellAI.GetTestRunResponse4? Type953 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponseStatus2? Type954 { get; set; } + public global::RetellAI.GetTestRunResponseStatus4? Type954 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponse3? Type955 { get; set; } + public global::RetellAI.GetTestRunResponse5? Type955 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponseStatus3? Type956 { get; set; } + public global::RetellAI.GetTestRunResponseStatus5? Type956 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponse4? Type957 { get; set; } + public global::RetellAI.AllOf? Type957 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponseStatus4? Type958 { get; set; } + public global::RetellAI.ListTestRunsResponse2? Type958 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponse5? Type959 { get; set; } + public global::System.Collections.Generic.IList? Type959 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponseStatus5? Type960 { get; set; } + public global::RetellAI.ListTestRunsResponse3? Type960 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponse6? Type961 { get; set; } + public global::RetellAI.ListTestRunsResponseStatus? Type961 { get; set; } /// /// /// - public global::RetellAI.CreateChatResponseStatus6? Type962 { get; set; } + public global::RetellAI.ListTestRunsResponse4? Type962 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponse? Type963 { get; set; } + public global::RetellAI.ListTestRunsResponseStatus2? Type963 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponseStatus? Type964 { get; set; } + public global::RetellAI.ListTestRunsResponse5? Type964 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponse2? Type965 { get; set; } + public global::RetellAI.ListTestRunsResponseStatus3? Type965 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponseStatus2? Type966 { get; set; } + public global::RetellAI.ListTestRunsResponse6? Type966 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponse3? Type967 { get; set; } + public global::RetellAI.ListTestRunsResponseStatus4? Type967 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponseStatus3? Type968 { get; set; } + public global::RetellAI.ListTestRunsResponse7? Type968 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponse4? Type969 { get; set; } + public global::RetellAI.ListTestRunsResponseStatus5? Type969 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponseStatus4? Type970 { get; set; } + public global::RetellAI.CreateChatAgentResponse? Type970 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponse5? Type971 { get; set; } + public global::RetellAI.CreateChatAgentResponseStatus? Type971 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowComponentResponseStatus5? Type972 { get; set; } + public global::RetellAI.CreateChatAgentResponse2? Type972 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponse? Type973 { get; set; } + public global::RetellAI.CreateChatAgentResponseStatus2? Type973 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponseStatus? Type974 { get; set; } + public global::RetellAI.CreateChatAgentResponse3? Type974 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponse2? Type975 { get; set; } + public global::RetellAI.CreateChatAgentResponseStatus3? Type975 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponseStatus2? Type976 { get; set; } + public global::RetellAI.CreateChatAgentResponse4? Type976 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponse3? Type977 { get; set; } + public global::RetellAI.CreateChatAgentResponseStatus4? Type977 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponseStatus3? Type978 { get; set; } + public global::RetellAI.AgentPlaygroundCompletionResponse? Type978 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponse4? Type979 { get; set; } + public global::RetellAI.AgentPlaygroundCompletionResponse2? Type979 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponseStatus4? Type980 { get; set; } + public global::RetellAI.AgentPlaygroundCompletionResponseStatus? Type980 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponse5? Type981 { get; set; } + public global::RetellAI.AgentPlaygroundCompletionResponse3? Type981 { get; set; } /// /// /// - public global::RetellAI.CreateConversationFlowResponseStatus5? Type982 { get; set; } + public global::RetellAI.AgentPlaygroundCompletionResponseStatus2? Type982 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponse? Type983 { get; set; } + public global::RetellAI.AgentPlaygroundCompletionResponse4? Type983 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponseStatus? Type984 { get; set; } + public global::RetellAI.AgentPlaygroundCompletionResponseStatus3? Type984 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponse2? Type985 { get; set; } + public global::RetellAI.AgentPlaygroundCompletionResponse5? Type985 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponseStatus2? Type986 { get; set; } + public global::RetellAI.AgentPlaygroundCompletionResponseStatus4? Type986 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponse3? Type987 { get; set; } + public global::RetellAI.AgentPlaygroundCompletionResponse6? Type987 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponseStatus3? Type988 { get; set; } + public global::RetellAI.AgentPlaygroundCompletionResponseStatus5? Type988 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponse4? Type989 { get; set; } + public global::RetellAI.AgentPlaygroundCompletionResponse7? Type989 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponseStatus4? Type990 { get; set; } + public global::RetellAI.AgentPlaygroundCompletionResponseStatus6? Type990 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponse5? Type991 { get; set; } + public global::RetellAI.CreateChatCompletionResponse? Type991 { get; set; } /// /// /// - public global::RetellAI.CreateKnowledgeBaseResponseStatus5? Type992 { get; set; } + public global::RetellAI.CreateChatCompletionResponse2? Type992 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneNumberResponse? Type993 { get; set; } + public global::RetellAI.CreateChatCompletionResponseStatus? Type993 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneNumberResponseStatus? Type994 { get; set; } + public global::RetellAI.CreateChatCompletionResponse3? Type994 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneNumberResponse2? Type995 { get; set; } + public global::RetellAI.CreateChatCompletionResponseStatus2? Type995 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneNumberResponseStatus2? Type996 { get; set; } + public global::RetellAI.CreateChatCompletionResponse4? Type996 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneNumberResponse3? Type997 { get; set; } + public global::RetellAI.CreateChatCompletionResponseStatus3? Type997 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneNumberResponseStatus3? Type998 { get; set; } + public global::RetellAI.CreateChatCompletionResponse5? Type998 { get; set; } /// /// /// - public global::RetellAI.CreateRetellLLMResponse? Type999 { get; set; } + public global::RetellAI.CreateChatCompletionResponseStatus4? Type999 { get; set; } /// /// /// - public global::RetellAI.CreateRetellLLMResponseStatus? Type1000 { get; set; } + public global::RetellAI.CreateChatCompletionResponse6? Type1000 { get; set; } /// /// /// - public global::RetellAI.CreateRetellLLMResponse2? Type1001 { get; set; } + public global::RetellAI.CreateChatCompletionResponseStatus5? Type1001 { get; set; } /// /// /// - public global::RetellAI.CreateRetellLLMResponseStatus2? Type1002 { get; set; } + public global::RetellAI.CreateChatCompletionResponse7? Type1002 { get; set; } /// /// /// - public global::RetellAI.CreateRetellLLMResponse3? Type1003 { get; set; } + public global::RetellAI.CreateChatCompletionResponseStatus6? Type1003 { get; set; } /// /// /// - public global::RetellAI.CreateRetellLLMResponseStatus3? Type1004 { get; set; } + public global::RetellAI.CreateChatResponse? Type1004 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponse? Type1005 { get; set; } + public global::RetellAI.CreateChatResponseStatus? Type1005 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponseStatus? Type1006 { get; set; } + public global::RetellAI.CreateChatResponse2? Type1006 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponse2? Type1007 { get; set; } + public global::RetellAI.CreateChatResponseStatus2? Type1007 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponseStatus2? Type1008 { get; set; } + public global::RetellAI.CreateChatResponse3? Type1008 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponse3? Type1009 { get; set; } + public global::RetellAI.CreateChatResponseStatus3? Type1009 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponseStatus3? Type1010 { get; set; } + public global::RetellAI.CreateChatResponse4? Type1010 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponse4? Type1011 { get; set; } + public global::RetellAI.CreateChatResponseStatus4? Type1011 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponseStatus4? Type1012 { get; set; } + public global::RetellAI.CreateChatResponse5? Type1012 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponse5? Type1013 { get; set; } + public global::RetellAI.CreateChatResponseStatus5? Type1013 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponseStatus5? Type1014 { get; set; } + public global::RetellAI.CreateChatResponse6? Type1014 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponse6? Type1015 { get; set; } + public global::RetellAI.CreateChatResponseStatus6? Type1015 { get; set; } /// /// /// - public global::RetellAI.CreateSmsChatResponseStatus6? Type1016 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponse? Type1016 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentResponse? Type1017 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponseStatus? Type1017 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentResponseStatus? Type1018 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponse2? Type1018 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentResponse2? Type1019 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponseStatus2? Type1019 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentResponseStatus2? Type1020 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponse3? Type1020 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentResponse3? Type1021 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponseStatus3? Type1021 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentResponseStatus3? Type1022 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponse4? Type1022 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentResponse4? Type1023 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponseStatus4? Type1023 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentResponseStatus4? Type1024 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponse5? Type1024 { get; set; } /// /// /// - public global::RetellAI.DeleteChatResponse? Type1025 { get; set; } + public global::RetellAI.CreateConversationFlowComponentResponseStatus5? Type1025 { get; set; } /// /// /// - public global::RetellAI.DeleteChatResponseStatus? Type1026 { get; set; } + public global::RetellAI.CreateConversationFlowResponse? Type1026 { get; set; } /// /// /// - public global::RetellAI.DeleteChatResponse2? Type1027 { get; set; } + public global::RetellAI.CreateConversationFlowResponseStatus? Type1027 { get; set; } /// /// /// - public global::RetellAI.DeleteChatResponseStatus2? Type1028 { get; set; } + public global::RetellAI.CreateConversationFlowResponse2? Type1028 { get; set; } /// /// /// - public global::RetellAI.DeleteChatResponse3? Type1029 { get; set; } + public global::RetellAI.CreateConversationFlowResponseStatus2? Type1029 { get; set; } /// /// /// - public global::RetellAI.DeleteChatResponseStatus3? Type1030 { get; set; } + public global::RetellAI.CreateConversationFlowResponse3? Type1030 { get; set; } /// /// /// - public global::RetellAI.DeleteChatResponse4? Type1031 { get; set; } + public global::RetellAI.CreateConversationFlowResponseStatus3? Type1031 { get; set; } /// /// /// - public global::RetellAI.DeleteChatResponseStatus4? Type1032 { get; set; } + public global::RetellAI.CreateConversationFlowResponse4? Type1032 { get; set; } /// /// /// - public global::RetellAI.DeleteChatAgentResponse? Type1033 { get; set; } + public global::RetellAI.CreateConversationFlowResponseStatus4? Type1033 { get; set; } /// /// /// - public global::RetellAI.DeleteChatAgentResponseStatus? Type1034 { get; set; } + public global::RetellAI.CreateConversationFlowResponse5? Type1034 { get; set; } /// /// /// - public global::RetellAI.DeleteChatAgentResponse2? Type1035 { get; set; } + public global::RetellAI.CreateConversationFlowResponseStatus5? Type1035 { get; set; } /// /// /// - public global::RetellAI.DeleteChatAgentResponseStatus2? Type1036 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponse? Type1036 { get; set; } /// /// /// - public global::RetellAI.DeleteChatAgentResponse3? Type1037 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponseStatus? Type1037 { get; set; } /// /// /// - public global::RetellAI.DeleteChatAgentResponseStatus3? Type1038 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponse2? Type1038 { get; set; } /// /// /// - public global::RetellAI.DeleteChatAgentResponse4? Type1039 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponseStatus2? Type1039 { get; set; } /// /// /// - public global::RetellAI.DeleteChatAgentResponseStatus4? Type1040 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponse3? Type1040 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowComponentResponse? Type1041 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponseStatus3? Type1041 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowComponentResponseStatus? Type1042 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponse4? Type1042 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowComponentResponse2? Type1043 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponseStatus4? Type1043 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowComponentResponseStatus2? Type1044 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponse5? Type1044 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowComponentResponse3? Type1045 { get; set; } + public global::RetellAI.CreateKnowledgeBaseResponseStatus5? Type1045 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowComponentResponseStatus3? Type1046 { get; set; } + public global::RetellAI.CreatePhoneNumberResponse? Type1046 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowComponentResponse4? Type1047 { get; set; } + public global::RetellAI.CreatePhoneNumberResponseStatus? Type1047 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowComponentResponseStatus4? Type1048 { get; set; } + public global::RetellAI.CreatePhoneNumberResponse2? Type1048 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponse? Type1049 { get; set; } + public global::RetellAI.CreatePhoneNumberResponseStatus2? Type1049 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponseStatus? Type1050 { get; set; } + public global::RetellAI.CreatePhoneNumberResponse3? Type1050 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponse2? Type1051 { get; set; } + public global::RetellAI.CreatePhoneNumberResponseStatus3? Type1051 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponseStatus2? Type1052 { get; set; } + public global::RetellAI.CreateRetellLLMResponse? Type1052 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponse3? Type1053 { get; set; } + public global::RetellAI.CreateRetellLLMResponseStatus? Type1053 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponseStatus3? Type1054 { get; set; } + public global::RetellAI.CreateRetellLLMResponse2? Type1054 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponse4? Type1055 { get; set; } + public global::RetellAI.CreateRetellLLMResponseStatus2? Type1055 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponseStatus4? Type1056 { get; set; } + public global::RetellAI.CreateRetellLLMResponse3? Type1056 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponse5? Type1057 { get; set; } + public global::RetellAI.CreateRetellLLMResponseStatus3? Type1057 { get; set; } /// /// /// - public global::RetellAI.DeleteConversationFlowResponseStatus5? Type1058 { get; set; } + public global::RetellAI.CreateSmsChatResponse? Type1058 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseSourceResponse? Type1059 { get; set; } + public global::RetellAI.CreateSmsChatResponseStatus? Type1059 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus? Type1060 { get; set; } + public global::RetellAI.CreateSmsChatResponse2? Type1060 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseSourceResponse2? Type1061 { get; set; } + public global::RetellAI.CreateSmsChatResponseStatus2? Type1061 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus2? Type1062 { get; set; } + public global::RetellAI.CreateSmsChatResponse3? Type1062 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseSourceResponse3? Type1063 { get; set; } + public global::RetellAI.CreateSmsChatResponseStatus3? Type1063 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus3? Type1064 { get; set; } + public global::RetellAI.CreateSmsChatResponse4? Type1064 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseSourceResponse4? Type1065 { get; set; } + public global::RetellAI.CreateSmsChatResponseStatus4? Type1065 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus4? Type1066 { get; set; } + public global::RetellAI.CreateSmsChatResponse5? Type1066 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseResponse? Type1067 { get; set; } + public global::RetellAI.CreateSmsChatResponseStatus5? Type1067 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseResponseStatus? Type1068 { get; set; } + public global::RetellAI.CreateSmsChatResponse6? Type1068 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseResponse2? Type1069 { get; set; } + public global::RetellAI.CreateSmsChatResponseStatus6? Type1069 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseResponseStatus2? Type1070 { get; set; } + public global::RetellAI.DeleteAgentResponse? Type1070 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseResponse3? Type1071 { get; set; } + public global::RetellAI.DeleteAgentResponseStatus? Type1071 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseResponseStatus3? Type1072 { get; set; } + public global::RetellAI.DeleteAgentResponse2? Type1072 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseResponse4? Type1073 { get; set; } + public global::RetellAI.DeleteAgentResponseStatus2? Type1073 { get; set; } /// /// /// - public global::RetellAI.DeleteKnowledgeBaseResponseStatus4? Type1074 { get; set; } + public global::RetellAI.DeleteAgentResponse3? Type1074 { get; set; } /// /// /// - public global::RetellAI.DeletePhoneNumberResponse? Type1075 { get; set; } + public global::RetellAI.DeleteAgentResponseStatus3? Type1075 { get; set; } /// /// /// - public global::RetellAI.DeletePhoneNumberResponseStatus? Type1076 { get; set; } + public global::RetellAI.DeleteAgentResponse4? Type1076 { get; set; } /// /// /// - public global::RetellAI.DeletePhoneNumberResponse2? Type1077 { get; set; } + public global::RetellAI.DeleteAgentResponseStatus4? Type1077 { get; set; } /// /// /// - public global::RetellAI.DeletePhoneNumberResponseStatus2? Type1078 { get; set; } + public global::RetellAI.DeleteChatResponse? Type1078 { get; set; } /// /// /// - public global::RetellAI.DeletePhoneNumberResponse3? Type1079 { get; set; } + public global::RetellAI.DeleteChatResponseStatus? Type1079 { get; set; } /// /// /// - public global::RetellAI.DeletePhoneNumberResponseStatus3? Type1080 { get; set; } + public global::RetellAI.DeleteChatResponse2? Type1080 { get; set; } /// /// /// - public global::RetellAI.DeleteRetellLLMResponse? Type1081 { get; set; } + public global::RetellAI.DeleteChatResponseStatus2? Type1081 { get; set; } /// /// /// - public global::RetellAI.DeleteRetellLLMResponseStatus? Type1082 { get; set; } + public global::RetellAI.DeleteChatResponse3? Type1082 { get; set; } /// /// /// - public global::RetellAI.DeleteRetellLLMResponse2? Type1083 { get; set; } + public global::RetellAI.DeleteChatResponseStatus3? Type1083 { get; set; } /// /// /// - public global::RetellAI.DeleteRetellLLMResponseStatus2? Type1084 { get; set; } + public global::RetellAI.DeleteChatResponse4? Type1084 { get; set; } /// /// /// - public global::RetellAI.DeleteRetellLLMResponse3? Type1085 { get; set; } + public global::RetellAI.DeleteChatResponseStatus4? Type1085 { get; set; } /// /// /// - public global::RetellAI.DeleteRetellLLMResponseStatus3? Type1086 { get; set; } + public global::RetellAI.DeleteChatAgentResponse? Type1086 { get; set; } /// /// /// - public global::RetellAI.DeleteRetellLLMResponse4? Type1087 { get; set; } + public global::RetellAI.DeleteChatAgentResponseStatus? Type1087 { get; set; } /// /// /// - public global::RetellAI.DeleteRetellLLMResponseStatus4? Type1088 { get; set; } + public global::RetellAI.DeleteChatAgentResponse2? Type1088 { get; set; } /// /// /// - public global::RetellAI.EndChatResponse? Type1089 { get; set; } + public global::RetellAI.DeleteChatAgentResponseStatus2? Type1089 { get; set; } /// /// /// - public global::RetellAI.EndChatResponseStatus? Type1090 { get; set; } + public global::RetellAI.DeleteChatAgentResponse3? Type1090 { get; set; } /// /// /// - public global::RetellAI.EndChatResponse2? Type1091 { get; set; } + public global::RetellAI.DeleteChatAgentResponseStatus3? Type1091 { get; set; } /// /// /// - public global::RetellAI.EndChatResponseStatus2? Type1092 { get; set; } + public global::RetellAI.DeleteChatAgentResponse4? Type1092 { get; set; } /// /// /// - public global::RetellAI.EndChatResponse3? Type1093 { get; set; } + public global::RetellAI.DeleteChatAgentResponseStatus4? Type1093 { get; set; } /// /// /// - public global::RetellAI.EndChatResponseStatus3? Type1094 { get; set; } + public global::RetellAI.DeleteConversationFlowComponentResponse? Type1094 { get; set; } /// /// /// - public global::RetellAI.EndChatResponse4? Type1095 { get; set; } + public global::RetellAI.DeleteConversationFlowComponentResponseStatus? Type1095 { get; set; } /// /// /// - public global::RetellAI.EndChatResponseStatus4? Type1096 { get; set; } + public global::RetellAI.DeleteConversationFlowComponentResponse2? Type1096 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1097 { get; set; } + public global::RetellAI.DeleteConversationFlowComponentResponseStatus2? Type1097 { get; set; } /// /// /// - public global::RetellAI.GetAgentVersionsResponse? Type1098 { get; set; } + public global::RetellAI.DeleteConversationFlowComponentResponse3? Type1098 { get; set; } /// /// /// - public global::RetellAI.GetAgentVersionsResponseStatus? Type1099 { get; set; } + public global::RetellAI.DeleteConversationFlowComponentResponseStatus3? Type1099 { get; set; } /// /// /// - public global::RetellAI.GetAgentVersionsResponse2? Type1100 { get; set; } + public global::RetellAI.DeleteConversationFlowComponentResponse4? Type1100 { get; set; } /// /// /// - public global::RetellAI.GetAgentVersionsResponseStatus2? Type1101 { get; set; } + public global::RetellAI.DeleteConversationFlowComponentResponseStatus4? Type1101 { get; set; } /// /// /// - public global::RetellAI.GetAgentVersionsResponse3? Type1102 { get; set; } + public global::RetellAI.DeleteConversationFlowResponse? Type1102 { get; set; } /// /// /// - public global::RetellAI.GetAgentVersionsResponseStatus3? Type1103 { get; set; } + public global::RetellAI.DeleteConversationFlowResponseStatus? Type1103 { get; set; } /// /// /// - public global::RetellAI.GetAgentVersionsResponse4? Type1104 { get; set; } + public global::RetellAI.DeleteConversationFlowResponse2? Type1104 { get; set; } /// /// /// - public global::RetellAI.GetAgentVersionsResponseStatus4? Type1105 { get; set; } + public global::RetellAI.DeleteConversationFlowResponseStatus2? Type1105 { get; set; } /// /// /// - public global::RetellAI.GetAgentResponse? Type1106 { get; set; } + public global::RetellAI.DeleteConversationFlowResponse3? Type1106 { get; set; } /// /// /// - public global::RetellAI.GetAgentResponseStatus? Type1107 { get; set; } + public global::RetellAI.DeleteConversationFlowResponseStatus3? Type1107 { get; set; } /// /// /// - public global::RetellAI.GetAgentResponse2? Type1108 { get; set; } + public global::RetellAI.DeleteConversationFlowResponse4? Type1108 { get; set; } /// /// /// - public global::RetellAI.GetAgentResponseStatus2? Type1109 { get; set; } + public global::RetellAI.DeleteConversationFlowResponseStatus4? Type1109 { get; set; } /// /// /// - public global::RetellAI.GetAgentResponse3? Type1110 { get; set; } + public global::RetellAI.DeleteConversationFlowResponse5? Type1110 { get; set; } /// /// /// - public global::RetellAI.GetAgentResponseStatus3? Type1111 { get; set; } + public global::RetellAI.DeleteConversationFlowResponseStatus5? Type1111 { get; set; } /// /// /// - public global::RetellAI.GetAgentResponse4? Type1112 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseSourceResponse? Type1112 { get; set; } /// /// /// - public global::RetellAI.GetAgentResponseStatus4? Type1113 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus? Type1113 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1114 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseSourceResponse2? Type1114 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentVersionsResponse? Type1115 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus2? Type1115 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentVersionsResponseStatus? Type1116 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseSourceResponse3? Type1116 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentVersionsResponse2? Type1117 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus3? Type1117 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentVersionsResponseStatus2? Type1118 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseSourceResponse4? Type1118 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentVersionsResponse3? Type1119 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseSourceResponseStatus4? Type1119 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentVersionsResponseStatus3? Type1120 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseResponse? Type1120 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentResponse? Type1121 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseResponseStatus? Type1121 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentResponseStatus? Type1122 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseResponse2? Type1122 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentResponse2? Type1123 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseResponseStatus2? Type1123 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentResponseStatus2? Type1124 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseResponse3? Type1124 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentResponse3? Type1125 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseResponseStatus3? Type1125 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentResponseStatus3? Type1126 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseResponse4? Type1126 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentResponse4? Type1127 { get; set; } + public global::RetellAI.DeleteKnowledgeBaseResponseStatus4? Type1127 { get; set; } /// /// /// - public global::RetellAI.GetChatAgentResponseStatus4? Type1128 { get; set; } + public global::RetellAI.DeletePhoneNumberResponse? Type1128 { get; set; } /// /// /// - public global::RetellAI.GetChatResponse? Type1129 { get; set; } + public global::RetellAI.DeletePhoneNumberResponseStatus? Type1129 { get; set; } /// /// /// - public global::RetellAI.GetChatResponseStatus? Type1130 { get; set; } + public global::RetellAI.DeletePhoneNumberResponse2? Type1130 { get; set; } /// /// /// - public global::RetellAI.GetChatResponse2? Type1131 { get; set; } + public global::RetellAI.DeletePhoneNumberResponseStatus2? Type1131 { get; set; } /// /// /// - public global::RetellAI.GetChatResponseStatus2? Type1132 { get; set; } + public global::RetellAI.DeletePhoneNumberResponse3? Type1132 { get; set; } /// /// /// - public global::RetellAI.GetChatResponse3? Type1133 { get; set; } + public global::RetellAI.DeletePhoneNumberResponseStatus3? Type1133 { get; set; } /// /// /// - public global::RetellAI.GetChatResponseStatus3? Type1134 { get; set; } + public global::RetellAI.DeleteRetellLLMResponse? Type1134 { get; set; } /// /// /// - public global::RetellAI.GetChatResponse4? Type1135 { get; set; } + public global::RetellAI.DeleteRetellLLMResponseStatus? Type1135 { get; set; } /// /// /// - public global::RetellAI.GetChatResponseStatus4? Type1136 { get; set; } + public global::RetellAI.DeleteRetellLLMResponse2? Type1136 { get; set; } /// /// /// - public global::RetellAI.GetConcurrencyResponse? Type1137 { get; set; } + public global::RetellAI.DeleteRetellLLMResponseStatus2? Type1137 { get; set; } /// /// /// - public global::RetellAI.GetConcurrencyResponse2? Type1138 { get; set; } + public global::RetellAI.DeleteRetellLLMResponse3? Type1138 { get; set; } /// /// /// - public global::RetellAI.GetConcurrencyResponseStatus? Type1139 { get; set; } + public global::RetellAI.DeleteRetellLLMResponseStatus3? Type1139 { get; set; } /// /// /// - public global::RetellAI.GetConcurrencyResponse3? Type1140 { get; set; } + public global::RetellAI.DeleteRetellLLMResponse4? Type1140 { get; set; } /// /// /// - public global::RetellAI.GetConcurrencyResponseStatus2? Type1141 { get; set; } + public global::RetellAI.DeleteRetellLLMResponseStatus4? Type1141 { get; set; } /// /// /// - public global::RetellAI.GetApiKeyInfoResponse? Type1142 { get; set; } + public global::RetellAI.EndChatResponse? Type1142 { get; set; } /// /// /// - public global::RetellAI.GetApiKeyInfoResponse2? Type1143 { get; set; } + public global::RetellAI.EndChatResponseStatus? Type1143 { get; set; } /// /// /// - public global::RetellAI.GetApiKeyInfoResponseStatus? Type1144 { get; set; } + public global::RetellAI.EndChatResponse2? Type1144 { get; set; } /// /// /// - public global::RetellAI.GetApiKeyInfoResponse3? Type1145 { get; set; } + public global::RetellAI.EndChatResponseStatus2? Type1145 { get; set; } /// /// /// - public global::RetellAI.GetApiKeyInfoResponseStatus2? Type1146 { get; set; } + public global::RetellAI.EndChatResponse3? Type1146 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowComponentResponse? Type1147 { get; set; } + public global::RetellAI.EndChatResponseStatus3? Type1147 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowComponentResponseStatus? Type1148 { get; set; } + public global::RetellAI.EndChatResponse4? Type1148 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowComponentResponse2? Type1149 { get; set; } + public global::RetellAI.EndChatResponseStatus4? Type1149 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowComponentResponseStatus2? Type1150 { get; set; } + public global::RetellAI.AllOf? Type1150 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowComponentResponse3? Type1151 { get; set; } + public global::RetellAI.ListAgentVersionsResponse2? Type1151 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowComponentResponseStatus3? Type1152 { get; set; } + public global::System.Collections.Generic.IList? Type1152 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowComponentResponse4? Type1153 { get; set; } + public global::RetellAI.ListAgentVersionsResponse3? Type1153 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowComponentResponseStatus4? Type1154 { get; set; } + public global::RetellAI.ListAgentVersionsResponseStatus? Type1154 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponse? Type1155 { get; set; } + public global::RetellAI.ListAgentVersionsResponse4? Type1155 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponseStatus? Type1156 { get; set; } + public global::RetellAI.ListAgentVersionsResponseStatus2? Type1156 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponse2? Type1157 { get; set; } + public global::RetellAI.ListAgentVersionsResponse5? Type1157 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponseStatus2? Type1158 { get; set; } + public global::RetellAI.ListAgentVersionsResponseStatus3? Type1158 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponse3? Type1159 { get; set; } + public global::RetellAI.ListAgentVersionsResponse6? Type1159 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponseStatus3? Type1160 { get; set; } + public global::RetellAI.ListAgentVersionsResponseStatus4? Type1160 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponse4? Type1161 { get; set; } + public global::RetellAI.ListAgentVersionsResponse7? Type1161 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponseStatus4? Type1162 { get; set; } + public global::RetellAI.ListAgentVersionsResponseStatus5? Type1162 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponse5? Type1163 { get; set; } + public global::RetellAI.ListAgentVersionsResponse8? Type1163 { get; set; } /// /// /// - public global::RetellAI.GetConversationFlowResponseStatus5? Type1164 { get; set; } + public global::RetellAI.ListAgentVersionsResponseStatus6? Type1164 { get; set; } /// /// /// - public global::RetellAI.GetKnowledgeBaseResponse? Type1165 { get; set; } + public global::System.Collections.Generic.IList? Type1165 { get; set; } /// /// /// - public global::RetellAI.GetKnowledgeBaseResponseStatus? Type1166 { get; set; } + public global::RetellAI.GetAgentVersionsResponse? Type1166 { get; set; } /// /// /// - public global::RetellAI.GetKnowledgeBaseResponse2? Type1167 { get; set; } + public global::RetellAI.GetAgentVersionsResponseStatus? Type1167 { get; set; } /// /// /// - public global::RetellAI.GetKnowledgeBaseResponseStatus2? Type1168 { get; set; } + public global::RetellAI.GetAgentVersionsResponse2? Type1168 { get; set; } /// /// /// - public global::RetellAI.GetKnowledgeBaseResponse3? Type1169 { get; set; } + public global::RetellAI.GetAgentVersionsResponseStatus2? Type1169 { get; set; } /// /// /// - public global::RetellAI.GetKnowledgeBaseResponseStatus3? Type1170 { get; set; } + public global::RetellAI.GetAgentVersionsResponse3? Type1170 { get; set; } /// /// /// - public global::RetellAI.GetKnowledgeBaseResponse4? Type1171 { get; set; } + public global::RetellAI.GetAgentVersionsResponseStatus3? Type1171 { get; set; } /// /// /// - public global::RetellAI.GetKnowledgeBaseResponseStatus4? Type1172 { get; set; } + public global::RetellAI.GetAgentVersionsResponse4? Type1172 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1173 { get; set; } + public global::RetellAI.GetAgentVersionsResponseStatus4? Type1173 { get; set; } /// /// /// - public global::RetellAI.GetMCPToolsResponse? Type1174 { get; set; } + public global::RetellAI.GetAgentResponse? Type1174 { get; set; } /// /// /// - public global::RetellAI.GetMCPToolsResponseStatus? Type1175 { get; set; } + public global::RetellAI.GetAgentResponseStatus? Type1175 { get; set; } /// /// /// - public global::RetellAI.GetMCPToolsResponse2? Type1176 { get; set; } + public global::RetellAI.GetAgentResponse2? Type1176 { get; set; } /// /// /// - public global::RetellAI.GetMCPToolsResponseStatus2? Type1177 { get; set; } + public global::RetellAI.GetAgentResponseStatus2? Type1177 { get; set; } /// /// /// - public global::RetellAI.GetMCPToolsResponse3? Type1178 { get; set; } + public global::RetellAI.GetAgentResponse3? Type1178 { get; set; } /// /// /// - public global::RetellAI.GetMCPToolsResponseStatus3? Type1179 { get; set; } + public global::RetellAI.GetAgentResponseStatus3? Type1179 { get; set; } /// /// /// - public global::RetellAI.GetMCPToolsResponse4? Type1180 { get; set; } + public global::RetellAI.GetAgentResponse4? Type1180 { get; set; } /// /// /// - public global::RetellAI.GetMCPToolsResponseStatus4? Type1181 { get; set; } + public global::RetellAI.GetAgentResponseStatus4? Type1181 { get; set; } /// /// /// - public global::RetellAI.GetPhoneNumberResponse? Type1182 { get; set; } + public global::System.Collections.Generic.IList? Type1182 { get; set; } /// /// /// - public global::RetellAI.GetPhoneNumberResponseStatus? Type1183 { get; set; } + public global::RetellAI.GetChatAgentVersionsResponse? Type1183 { get; set; } /// /// /// - public global::RetellAI.GetPhoneNumberResponse2? Type1184 { get; set; } + public global::RetellAI.GetChatAgentVersionsResponseStatus? Type1184 { get; set; } /// /// /// - public global::RetellAI.GetPhoneNumberResponseStatus2? Type1185 { get; set; } + public global::RetellAI.GetChatAgentVersionsResponse2? Type1185 { get; set; } /// /// /// - public global::RetellAI.GetPhoneNumberResponse3? Type1186 { get; set; } + public global::RetellAI.GetChatAgentVersionsResponseStatus2? Type1186 { get; set; } /// /// /// - public global::RetellAI.GetPhoneNumberResponseStatus3? Type1187 { get; set; } + public global::RetellAI.GetChatAgentVersionsResponse3? Type1187 { get; set; } /// /// /// - public global::RetellAI.GetPhoneNumberResponse4? Type1188 { get; set; } + public global::RetellAI.GetChatAgentVersionsResponseStatus3? Type1188 { get; set; } /// /// /// - public global::RetellAI.GetPhoneNumberResponseStatus4? Type1189 { get; set; } + public global::RetellAI.GetChatAgentResponse? Type1189 { get; set; } /// /// /// - public global::RetellAI.GetRetellLLMResponse? Type1190 { get; set; } + public global::RetellAI.GetChatAgentResponseStatus? Type1190 { get; set; } /// /// /// - public global::RetellAI.GetRetellLLMResponseStatus? Type1191 { get; set; } + public global::RetellAI.GetChatAgentResponse2? Type1191 { get; set; } /// /// /// - public global::RetellAI.GetRetellLLMResponse2? Type1192 { get; set; } + public global::RetellAI.GetChatAgentResponseStatus2? Type1192 { get; set; } /// /// /// - public global::RetellAI.GetRetellLLMResponseStatus2? Type1193 { get; set; } + public global::RetellAI.GetChatAgentResponse3? Type1193 { get; set; } /// /// /// - public global::RetellAI.GetRetellLLMResponse3? Type1194 { get; set; } + public global::RetellAI.GetChatAgentResponseStatus3? Type1194 { get; set; } /// /// /// - public global::RetellAI.GetRetellLLMResponseStatus3? Type1195 { get; set; } + public global::RetellAI.GetChatAgentResponse4? Type1195 { get; set; } /// /// /// - public global::RetellAI.GetRetellLLMResponse4? Type1196 { get; set; } + public global::RetellAI.GetChatAgentResponseStatus4? Type1196 { get; set; } /// /// /// - public global::RetellAI.GetRetellLLMResponseStatus4? Type1197 { get; set; } + public global::RetellAI.GetChatResponse? Type1197 { get; set; } /// /// /// - public global::RetellAI.GetVoiceResponse? Type1198 { get; set; } + public global::RetellAI.GetChatResponseStatus? Type1198 { get; set; } /// /// /// - public global::RetellAI.GetVoiceResponseStatus? Type1199 { get; set; } + public global::RetellAI.GetChatResponse2? Type1199 { get; set; } /// /// /// - public global::RetellAI.GetVoiceResponse2? Type1200 { get; set; } + public global::RetellAI.GetChatResponseStatus2? Type1200 { get; set; } /// /// /// - public global::RetellAI.GetVoiceResponseStatus2? Type1201 { get; set; } + public global::RetellAI.GetChatResponse3? Type1201 { get; set; } /// /// /// - public global::RetellAI.GetVoiceResponse3? Type1202 { get; set; } + public global::RetellAI.GetChatResponseStatus3? Type1202 { get; set; } /// /// /// - public global::RetellAI.GetVoiceResponseStatus3? Type1203 { get; set; } + public global::RetellAI.GetChatResponse4? Type1203 { get; set; } /// /// /// - public global::RetellAI.GetVoiceResponse4? Type1204 { get; set; } + public global::RetellAI.GetChatResponseStatus4? Type1204 { get; set; } /// /// /// - public global::RetellAI.GetVoiceResponseStatus4? Type1205 { get; set; } + public global::RetellAI.GetConcurrencyResponse? Type1205 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponse? Type1206 { get; set; } + public global::RetellAI.GetConcurrencyResponse2? Type1206 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponseStatus? Type1207 { get; set; } + public global::RetellAI.GetConcurrencyResponseStatus? Type1207 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponse2? Type1208 { get; set; } + public global::RetellAI.GetConcurrencyResponse3? Type1208 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponseStatus2? Type1209 { get; set; } + public global::RetellAI.GetConcurrencyResponseStatus2? Type1209 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponse3? Type1210 { get; set; } + public global::RetellAI.GetApiKeyInfoResponse? Type1210 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponseStatus3? Type1211 { get; set; } + public global::RetellAI.GetApiKeyInfoResponse2? Type1211 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponse4? Type1212 { get; set; } + public global::RetellAI.GetApiKeyInfoResponseStatus? Type1212 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponseStatus4? Type1213 { get; set; } + public global::RetellAI.GetApiKeyInfoResponse3? Type1213 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponse5? Type1214 { get; set; } + public global::RetellAI.GetApiKeyInfoResponseStatus2? Type1214 { get; set; } /// /// /// - public global::RetellAI.CloneVoiceResponseStatus5? Type1215 { get; set; } + public global::RetellAI.GetConversationFlowComponentResponse? Type1215 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceResponse? Type1216 { get; set; } + public global::RetellAI.GetConversationFlowComponentResponseStatus? Type1216 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceResponseStatus? Type1217 { get; set; } + public global::RetellAI.GetConversationFlowComponentResponse2? Type1217 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceResponse2? Type1218 { get; set; } + public global::RetellAI.GetConversationFlowComponentResponseStatus2? Type1218 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceResponseStatus2? Type1219 { get; set; } + public global::RetellAI.GetConversationFlowComponentResponse3? Type1219 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceResponse3? Type1220 { get; set; } + public global::RetellAI.GetConversationFlowComponentResponseStatus3? Type1220 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceResponseStatus3? Type1221 { get; set; } + public global::RetellAI.GetConversationFlowComponentResponse4? Type1221 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceResponse4? Type1222 { get; set; } + public global::RetellAI.GetConversationFlowComponentResponseStatus4? Type1222 { get; set; } /// /// /// - public global::RetellAI.AddCommunityVoiceResponseStatus4? Type1223 { get; set; } + public global::RetellAI.GetConversationFlowResponse? Type1223 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponse? Type1224 { get; set; } + public global::RetellAI.GetConversationFlowResponseStatus? Type1224 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1225 { get; set; } + public global::RetellAI.GetConversationFlowResponse2? Type1225 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponseVoice? Type1226 { get; set; } + public global::RetellAI.GetConversationFlowResponseStatus2? Type1226 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponse2? Type1227 { get; set; } + public global::RetellAI.GetConversationFlowResponse3? Type1227 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponseStatus? Type1228 { get; set; } + public global::RetellAI.GetConversationFlowResponseStatus3? Type1228 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponse3? Type1229 { get; set; } + public global::RetellAI.GetConversationFlowResponse4? Type1229 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponseStatus2? Type1230 { get; set; } + public global::RetellAI.GetConversationFlowResponseStatus4? Type1230 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponse4? Type1231 { get; set; } + public global::RetellAI.GetConversationFlowResponse5? Type1231 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponseStatus3? Type1232 { get; set; } + public global::RetellAI.GetConversationFlowResponseStatus5? Type1232 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponse5? Type1233 { get; set; } + public global::RetellAI.GetKnowledgeBaseResponse? Type1233 { get; set; } /// /// /// - public global::RetellAI.SearchCommunityVoiceResponseStatus4? Type1234 { get; set; } + public global::RetellAI.GetKnowledgeBaseResponseStatus? Type1234 { get; set; } /// /// /// - public global::RetellAI.ImportPhoneNumberResponse? Type1235 { get; set; } + public global::RetellAI.GetKnowledgeBaseResponse2? Type1235 { get; set; } /// /// /// - public global::RetellAI.ImportPhoneNumberResponseStatus? Type1236 { get; set; } + public global::RetellAI.GetKnowledgeBaseResponseStatus2? Type1236 { get; set; } /// /// /// - public global::RetellAI.ImportPhoneNumberResponse2? Type1237 { get; set; } + public global::RetellAI.GetKnowledgeBaseResponse3? Type1237 { get; set; } /// /// /// - public global::RetellAI.ImportPhoneNumberResponseStatus2? Type1238 { get; set; } + public global::RetellAI.GetKnowledgeBaseResponseStatus3? Type1238 { get; set; } /// /// /// - public global::RetellAI.ImportPhoneNumberResponse3? Type1239 { get; set; } + public global::RetellAI.GetKnowledgeBaseResponse4? Type1239 { get; set; } /// /// /// - public global::RetellAI.ImportPhoneNumberResponseStatus3? Type1240 { get; set; } + public global::RetellAI.GetKnowledgeBaseResponseStatus4? Type1240 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type1241 { get; set; } + public global::System.Collections.Generic.IList? Type1241 { get; set; } /// /// /// - public global::RetellAI.ListAgentsResponse2? Type1242 { get; set; } + public global::RetellAI.GetMCPToolsResponse? Type1242 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1243 { get; set; } + public global::RetellAI.GetMCPToolsResponseStatus? Type1243 { get; set; } /// /// /// - public global::RetellAI.ListAgentsResponse3? Type1244 { get; set; } + public global::RetellAI.GetMCPToolsResponse2? Type1244 { get; set; } /// /// /// - public global::RetellAI.ListAgentsResponseStatus? Type1245 { get; set; } + public global::RetellAI.GetMCPToolsResponseStatus2? Type1245 { get; set; } /// /// /// - public global::RetellAI.ListAgentsResponse4? Type1246 { get; set; } + public global::RetellAI.GetMCPToolsResponse3? Type1246 { get; set; } /// /// /// - public global::RetellAI.ListAgentsResponseStatus2? Type1247 { get; set; } + public global::RetellAI.GetMCPToolsResponseStatus3? Type1247 { get; set; } /// /// /// - public global::RetellAI.ListAgentsResponse5? Type1248 { get; set; } + public global::RetellAI.GetMCPToolsResponse4? Type1248 { get; set; } /// /// /// - public global::RetellAI.ListAgentsResponseStatus3? Type1249 { get; set; } + public global::RetellAI.GetMCPToolsResponseStatus4? Type1249 { get; set; } /// /// /// - public global::RetellAI.ListAgentsResponse6? Type1250 { get; set; } + public global::RetellAI.GetPhoneNumberResponse? Type1250 { get; set; } /// /// /// - public global::RetellAI.ListAgentsResponseStatus4? Type1251 { get; set; } + public global::RetellAI.GetPhoneNumberResponseStatus? Type1251 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type1252 { get; set; } + public global::RetellAI.GetPhoneNumberResponse2? Type1252 { get; set; } /// /// /// - public global::RetellAI.ListChatsResponse2? Type1253 { get; set; } + public global::RetellAI.GetPhoneNumberResponseStatus2? Type1253 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1254 { get; set; } + public global::RetellAI.GetPhoneNumberResponse3? Type1254 { get; set; } /// /// /// - public global::RetellAI.ListChatsResponse3? Type1255 { get; set; } + public global::RetellAI.GetPhoneNumberResponseStatus3? Type1255 { get; set; } /// /// /// - public global::RetellAI.ListChatsResponseStatus? Type1256 { get; set; } + public global::RetellAI.GetPhoneNumberResponse4? Type1256 { get; set; } /// /// /// - public global::RetellAI.ListChatsResponse4? Type1257 { get; set; } + public global::RetellAI.GetPhoneNumberResponseStatus4? Type1257 { get; set; } /// /// /// - public global::RetellAI.ListChatsResponseStatus2? Type1258 { get; set; } + public global::RetellAI.GetRetellLLMResponse? Type1258 { get; set; } /// /// /// - public global::RetellAI.ListChatsResponse5? Type1259 { get; set; } + public global::RetellAI.GetRetellLLMResponseStatus? Type1259 { get; set; } /// /// /// - public global::RetellAI.ListChatsResponseStatus3? Type1260 { get; set; } + public global::RetellAI.GetRetellLLMResponse2? Type1260 { get; set; } /// /// /// - public global::RetellAI.ListChatsResponse6? Type1261 { get; set; } + public global::RetellAI.GetRetellLLMResponseStatus2? Type1261 { get; set; } /// /// /// - public global::RetellAI.ListChatsResponseStatus4? Type1262 { get; set; } + public global::RetellAI.GetRetellLLMResponse3? Type1262 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type1263 { get; set; } + public global::RetellAI.GetRetellLLMResponseStatus3? Type1263 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsResponse2? Type1264 { get; set; } + public global::RetellAI.GetRetellLLMResponse4? Type1264 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1265 { get; set; } + public global::RetellAI.GetRetellLLMResponseStatus4? Type1265 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsResponse3? Type1266 { get; set; } + public global::RetellAI.GetVoiceResponse? Type1266 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsResponseStatus? Type1267 { get; set; } + public global::RetellAI.GetVoiceResponseStatus? Type1267 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsResponse4? Type1268 { get; set; } + public global::RetellAI.GetVoiceResponse2? Type1268 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsResponseStatus2? Type1269 { get; set; } + public global::RetellAI.GetVoiceResponseStatus2? Type1269 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsResponse5? Type1270 { get; set; } + public global::RetellAI.GetVoiceResponse3? Type1270 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsResponseStatus3? Type1271 { get; set; } + public global::RetellAI.GetVoiceResponseStatus3? Type1271 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsResponse6? Type1272 { get; set; } + public global::RetellAI.GetVoiceResponse4? Type1272 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowComponentsResponseStatus4? Type1273 { get; set; } + public global::RetellAI.GetVoiceResponseStatus4? Type1273 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type1274 { get; set; } + public global::RetellAI.CloneVoiceResponse? Type1274 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsResponse2? Type1275 { get; set; } + public global::RetellAI.CloneVoiceResponseStatus? Type1275 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1276 { get; set; } + public global::RetellAI.CloneVoiceResponse2? Type1276 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsResponse3? Type1277 { get; set; } + public global::RetellAI.CloneVoiceResponseStatus2? Type1277 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsResponseStatus? Type1278 { get; set; } + public global::RetellAI.CloneVoiceResponse3? Type1278 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsResponse4? Type1279 { get; set; } + public global::RetellAI.CloneVoiceResponseStatus3? Type1279 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsResponseStatus2? Type1280 { get; set; } + public global::RetellAI.CloneVoiceResponse4? Type1280 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsResponse5? Type1281 { get; set; } + public global::RetellAI.CloneVoiceResponseStatus4? Type1281 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsResponseStatus3? Type1282 { get; set; } + public global::RetellAI.CloneVoiceResponse5? Type1282 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsResponse6? Type1283 { get; set; } + public global::RetellAI.CloneVoiceResponseStatus5? Type1283 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsResponseStatus4? Type1284 { get; set; } + public global::RetellAI.AddCommunityVoiceResponse? Type1284 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsResponse7? Type1285 { get; set; } + public global::RetellAI.AddCommunityVoiceResponseStatus? Type1285 { get; set; } /// /// /// - public global::RetellAI.ListConversationFlowsResponseStatus5? Type1286 { get; set; } + public global::RetellAI.AddCommunityVoiceResponse2? Type1286 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1287 { get; set; } + public global::RetellAI.AddCommunityVoiceResponseStatus2? Type1287 { get; set; } /// /// /// - public global::RetellAI.ListKnowledgeBasesResponse? Type1288 { get; set; } + public global::RetellAI.AddCommunityVoiceResponse3? Type1288 { get; set; } /// /// /// - public global::RetellAI.ListKnowledgeBasesResponseStatus? Type1289 { get; set; } + public global::RetellAI.AddCommunityVoiceResponseStatus3? Type1289 { get; set; } /// /// /// - public global::RetellAI.ListKnowledgeBasesResponse2? Type1290 { get; set; } + public global::RetellAI.AddCommunityVoiceResponse4? Type1290 { get; set; } /// /// /// - public global::RetellAI.ListKnowledgeBasesResponseStatus2? Type1291 { get; set; } + public global::RetellAI.AddCommunityVoiceResponseStatus4? Type1291 { get; set; } /// /// /// - public global::RetellAI.ListKnowledgeBasesResponse3? Type1292 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponse? Type1292 { get; set; } /// /// /// - public global::RetellAI.ListKnowledgeBasesResponseStatus3? Type1293 { get; set; } + public global::System.Collections.Generic.IList? Type1293 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type1294 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponseVoice? Type1294 { get; set; } /// /// /// - public global::RetellAI.ListPhoneNumbersResponse2? Type1295 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponse2? Type1295 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1296 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponseStatus? Type1296 { get; set; } /// /// /// - public global::RetellAI.ListPhoneNumbersResponse3? Type1297 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponse3? Type1297 { get; set; } /// /// /// - public global::RetellAI.ListPhoneNumbersResponseStatus? Type1298 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponseStatus2? Type1298 { get; set; } /// /// /// - public global::RetellAI.ListPhoneNumbersResponse4? Type1299 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponse4? Type1299 { get; set; } /// /// /// - public global::RetellAI.ListPhoneNumbersResponseStatus2? Type1300 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponseStatus3? Type1300 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type1301 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponse5? Type1301 { get; set; } /// /// /// - public global::RetellAI.ListRetellLLMResponse2? Type1302 { get; set; } + public global::RetellAI.SearchCommunityVoiceResponseStatus4? Type1302 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1303 { get; set; } + public global::RetellAI.ImportPhoneNumberResponse? Type1303 { get; set; } /// /// /// - public global::RetellAI.ListRetellLLMResponse3? Type1304 { get; set; } + public global::RetellAI.ImportPhoneNumberResponseStatus? Type1304 { get; set; } /// /// /// - public global::RetellAI.ListRetellLLMResponseStatus? Type1305 { get; set; } + public global::RetellAI.ImportPhoneNumberResponse2? Type1305 { get; set; } /// /// /// - public global::RetellAI.ListRetellLLMResponse4? Type1306 { get; set; } + public global::RetellAI.ImportPhoneNumberResponseStatus2? Type1306 { get; set; } /// /// /// - public global::RetellAI.ListRetellLLMResponseStatus2? Type1307 { get; set; } + public global::RetellAI.ImportPhoneNumberResponse3? Type1307 { get; set; } /// /// /// - public global::RetellAI.ListRetellLLMResponse5? Type1308 { get; set; } + public global::RetellAI.ImportPhoneNumberResponseStatus3? Type1308 { get; set; } /// /// /// - public global::RetellAI.ListRetellLLMResponseStatus3? Type1309 { get; set; } + public global::RetellAI.AllOf? Type1309 { get; set; } /// /// /// - public global::RetellAI.ListRetellLLMResponse6? Type1310 { get; set; } + public global::RetellAI.ListAgentsResponse2? Type1310 { get; set; } /// /// /// - public global::RetellAI.ListRetellLLMResponseStatus4? Type1311 { get; set; } + public global::System.Collections.Generic.IList? Type1311 { get; set; } /// /// /// - public global::RetellAI.ListRetellLLMResponse7? Type1312 { get; set; } + public global::RetellAI.ListAgentsResponse3? Type1312 { get; set; } /// /// /// - public global::RetellAI.ListRetellLLMResponseStatus5? Type1313 { get; set; } + public global::RetellAI.ListAgentsResponseStatus? Type1313 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1314 { get; set; } + public global::RetellAI.ListAgentsResponse4? Type1314 { get; set; } /// /// /// - public global::RetellAI.ListVoicesResponse? Type1315 { get; set; } + public global::RetellAI.ListAgentsResponseStatus2? Type1315 { get; set; } /// /// /// - public global::RetellAI.ListVoicesResponseStatus? Type1316 { get; set; } + public global::RetellAI.ListAgentsResponse5? Type1316 { get; set; } /// /// /// - public global::RetellAI.ListVoicesResponse2? Type1317 { get; set; } + public global::RetellAI.ListAgentsResponseStatus3? Type1317 { get; set; } /// /// /// - public global::RetellAI.ListVoicesResponseStatus2? Type1318 { get; set; } + public global::RetellAI.ListAgentsResponse6? Type1318 { get; set; } /// /// /// - public global::RetellAI.OneOf? Type1319 { get; set; } + public global::RetellAI.ListAgentsResponseStatus4? Type1319 { get; set; } /// /// /// - public global::RetellAI.CreateAgentVersionResponse2? Type1320 { get; set; } + public global::RetellAI.AllOf? Type1320 { get; set; } /// /// /// - public global::RetellAI.CreateAgentVersionResponseStatus? Type1321 { get; set; } + public global::RetellAI.ListChatsResponse2? Type1321 { get; set; } /// /// /// - public global::RetellAI.CreateAgentVersionResponse3? Type1322 { get; set; } + public global::System.Collections.Generic.IList? Type1322 { get; set; } /// /// /// - public global::RetellAI.CreateAgentVersionResponseStatus2? Type1323 { get; set; } + public global::RetellAI.ListChatsResponse3? Type1323 { get; set; } /// /// /// - public global::RetellAI.CreateAgentVersionResponse4? Type1324 { get; set; } + public global::RetellAI.ListChatsResponseStatus? Type1324 { get; set; } /// /// /// - public global::RetellAI.CreateAgentVersionResponseStatus3? Type1325 { get; set; } + public global::RetellAI.ListChatsResponse4? Type1325 { get; set; } /// /// /// - public global::RetellAI.CreateAgentVersionResponse5? Type1326 { get; set; } + public global::RetellAI.ListChatsResponseStatus2? Type1326 { get; set; } /// /// /// - public global::RetellAI.CreateAgentVersionResponseStatus4? Type1327 { get; set; } + public global::RetellAI.ListChatsResponse5? Type1327 { get; set; } /// /// /// - public global::RetellAI.CreateAgentVersionResponse6? Type1328 { get; set; } + public global::RetellAI.ListChatsResponseStatus3? Type1328 { get; set; } /// /// /// - public global::RetellAI.CreateAgentVersionResponseStatus5? Type1329 { get; set; } + public global::RetellAI.ListChatsResponse6? Type1329 { get; set; } /// /// /// - public global::RetellAI.PublishAgentVersionResponse? Type1330 { get; set; } + public global::RetellAI.ListChatsResponseStatus4? Type1330 { get; set; } /// /// /// - public global::RetellAI.PublishAgentVersionResponseStatus? Type1331 { get; set; } + public global::RetellAI.AllOf? Type1331 { get; set; } /// /// /// - public global::RetellAI.PublishAgentVersionResponse2? Type1332 { get; set; } + public global::RetellAI.ListConversationFlowComponentsResponse2? Type1332 { get; set; } /// /// /// - public global::RetellAI.PublishAgentVersionResponseStatus2? Type1333 { get; set; } + public global::System.Collections.Generic.IList? Type1333 { get; set; } /// /// /// - public global::RetellAI.PublishAgentVersionResponse3? Type1334 { get; set; } + public global::RetellAI.ListConversationFlowComponentsResponse3? Type1334 { get; set; } /// /// /// - public global::RetellAI.PublishAgentVersionResponseStatus3? Type1335 { get; set; } + public global::RetellAI.ListConversationFlowComponentsResponseStatus? Type1335 { get; set; } /// /// /// - public global::RetellAI.PublishAgentVersionResponse4? Type1336 { get; set; } + public global::RetellAI.ListConversationFlowComponentsResponse4? Type1336 { get; set; } /// /// /// - public global::RetellAI.PublishAgentVersionResponseStatus4? Type1337 { get; set; } + public global::RetellAI.ListConversationFlowComponentsResponseStatus2? Type1337 { get; set; } /// /// /// - public global::RetellAI.PublishAgentVersionResponse5? Type1338 { get; set; } + public global::RetellAI.ListConversationFlowComponentsResponse5? Type1338 { get; set; } /// /// /// - public global::RetellAI.PublishAgentVersionResponseStatus5? Type1339 { get; set; } + public global::RetellAI.ListConversationFlowComponentsResponseStatus3? Type1339 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentVersionResponse? Type1340 { get; set; } + public global::RetellAI.ListConversationFlowComponentsResponse6? Type1340 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentVersionResponseStatus? Type1341 { get; set; } + public global::RetellAI.ListConversationFlowComponentsResponseStatus4? Type1341 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentVersionResponse2? Type1342 { get; set; } + public global::RetellAI.AllOf? Type1342 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentVersionResponseStatus2? Type1343 { get; set; } + public global::RetellAI.ListConversationFlowsResponse2? Type1343 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentVersionResponse3? Type1344 { get; set; } + public global::System.Collections.Generic.IList? Type1344 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentVersionResponseStatus3? Type1345 { get; set; } + public global::RetellAI.ListConversationFlowsResponse3? Type1345 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentVersionResponse4? Type1346 { get; set; } + public global::RetellAI.ListConversationFlowsResponseStatus? Type1346 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentVersionResponseStatus4? Type1347 { get; set; } + public global::RetellAI.ListConversationFlowsResponse4? Type1347 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentVersionResponse5? Type1348 { get; set; } + public global::RetellAI.ListConversationFlowsResponseStatus2? Type1348 { get; set; } /// /// /// - public global::RetellAI.DeleteAgentVersionResponseStatus5? Type1349 { get; set; } + public global::RetellAI.ListConversationFlowsResponse5? Type1349 { get; set; } /// /// /// - public global::RetellAI.RerunCallAnalysisResponse? Type1350 { get; set; } + public global::RetellAI.ListConversationFlowsResponseStatus3? Type1350 { get; set; } /// /// /// - public global::RetellAI.RerunCallAnalysisResponseStatus? Type1351 { get; set; } + public global::RetellAI.ListConversationFlowsResponse6? Type1351 { get; set; } /// /// /// - public global::RetellAI.RerunCallAnalysisResponse2? Type1352 { get; set; } + public global::RetellAI.ListConversationFlowsResponseStatus4? Type1352 { get; set; } /// /// /// - public global::RetellAI.RerunCallAnalysisResponseStatus2? Type1353 { get; set; } + public global::RetellAI.ListConversationFlowsResponse7? Type1353 { get; set; } /// /// /// - public global::RetellAI.RerunCallAnalysisResponse3? Type1354 { get; set; } + public global::RetellAI.ListConversationFlowsResponseStatus5? Type1354 { get; set; } /// /// /// - public global::RetellAI.RerunCallAnalysisResponseStatus3? Type1355 { get; set; } + public global::System.Collections.Generic.IList? Type1355 { get; set; } /// /// /// - public global::RetellAI.RerunCallAnalysisResponse4? Type1356 { get; set; } + public global::RetellAI.ListKnowledgeBasesResponse? Type1356 { get; set; } /// /// /// - public global::RetellAI.RerunCallAnalysisResponseStatus4? Type1357 { get; set; } + public global::RetellAI.ListKnowledgeBasesResponseStatus? Type1357 { get; set; } /// /// /// - public global::RetellAI.RerunCallAnalysisResponse5? Type1358 { get; set; } + public global::RetellAI.ListKnowledgeBasesResponse2? Type1358 { get; set; } /// /// /// - public global::RetellAI.RerunCallAnalysisResponseStatus5? Type1359 { get; set; } + public global::RetellAI.ListKnowledgeBasesResponseStatus2? Type1359 { get; set; } /// /// /// - public global::RetellAI.RerunCallAnalysisResponse6? Type1360 { get; set; } + public global::RetellAI.ListKnowledgeBasesResponse3? Type1360 { get; set; } /// /// /// - public global::RetellAI.RerunCallAnalysisResponseStatus6? Type1361 { get; set; } + public global::RetellAI.ListKnowledgeBasesResponseStatus3? Type1361 { get; set; } /// /// /// - public global::RetellAI.RerunCallAnalysisResponse7? Type1362 { get; set; } + public global::RetellAI.AllOf? Type1362 { get; set; } /// /// /// - public global::RetellAI.RerunCallAnalysisResponseStatus7? Type1363 { get; set; } + public global::RetellAI.ListPhoneNumbersResponse2? Type1363 { get; set; } /// /// /// - public global::RetellAI.RerunChatAnalysisResponse? Type1364 { get; set; } + public global::System.Collections.Generic.IList? Type1364 { get; set; } /// /// /// - public global::RetellAI.RerunChatAnalysisResponseStatus? Type1365 { get; set; } + public global::RetellAI.ListPhoneNumbersResponse3? Type1365 { get; set; } /// /// /// - public global::RetellAI.RerunChatAnalysisResponse2? Type1366 { get; set; } + public global::RetellAI.ListPhoneNumbersResponseStatus? Type1366 { get; set; } /// /// /// - public global::RetellAI.RerunChatAnalysisResponseStatus2? Type1367 { get; set; } + public global::RetellAI.ListPhoneNumbersResponse4? Type1367 { get; set; } /// /// /// - public global::RetellAI.RerunChatAnalysisResponse3? Type1368 { get; set; } + public global::RetellAI.ListPhoneNumbersResponseStatus2? Type1368 { get; set; } /// /// /// - public global::RetellAI.RerunChatAnalysisResponseStatus3? Type1369 { get; set; } + public global::RetellAI.AllOf? Type1369 { get; set; } /// /// /// - public global::RetellAI.RerunChatAnalysisResponse4? Type1370 { get; set; } + public global::RetellAI.ListRetellLLMResponse2? Type1370 { get; set; } /// /// /// - public global::RetellAI.RerunChatAnalysisResponseStatus4? Type1371 { get; set; } + public global::System.Collections.Generic.IList? Type1371 { get; set; } /// /// /// - public global::RetellAI.RerunChatAnalysisResponse5? Type1372 { get; set; } + public global::RetellAI.ListRetellLLMResponse3? Type1372 { get; set; } /// /// /// - public global::RetellAI.RerunChatAnalysisResponseStatus5? Type1373 { get; set; } + public global::RetellAI.ListRetellLLMResponseStatus? Type1373 { get; set; } /// /// /// - public global::RetellAI.RerunChatAnalysisResponse6? Type1374 { get; set; } + public global::RetellAI.ListRetellLLMResponse4? Type1374 { get; set; } /// /// /// - public global::RetellAI.RerunChatAnalysisResponseStatus6? Type1375 { get; set; } + public global::RetellAI.ListRetellLLMResponseStatus2? Type1375 { get; set; } /// /// /// - public global::RetellAI.RerunChatAnalysisResponse7? Type1376 { get; set; } + public global::RetellAI.ListRetellLLMResponse5? Type1376 { get; set; } /// /// /// - public global::RetellAI.RerunChatAnalysisResponseStatus7? Type1377 { get; set; } + public global::RetellAI.ListRetellLLMResponseStatus3? Type1377 { get; set; } /// /// /// - public global::RetellAI.UpdateAgentResponse? Type1378 { get; set; } + public global::RetellAI.ListRetellLLMResponse6? Type1378 { get; set; } /// /// /// - public global::RetellAI.UpdateAgentResponseStatus? Type1379 { get; set; } + public global::RetellAI.ListRetellLLMResponseStatus4? Type1379 { get; set; } /// /// /// - public global::RetellAI.UpdateAgentResponse2? Type1380 { get; set; } + public global::RetellAI.ListRetellLLMResponse7? Type1380 { get; set; } /// /// /// - public global::RetellAI.UpdateAgentResponseStatus2? Type1381 { get; set; } + public global::RetellAI.ListRetellLLMResponseStatus5? Type1381 { get; set; } /// /// /// - public global::RetellAI.UpdateAgentResponse3? Type1382 { get; set; } + public global::System.Collections.Generic.IList? Type1382 { get; set; } /// /// /// - public global::RetellAI.UpdateAgentResponseStatus3? Type1383 { get; set; } + public global::RetellAI.ListVoicesResponse? Type1383 { get; set; } /// /// /// - public global::RetellAI.UpdateAgentResponse4? Type1384 { get; set; } + public global::RetellAI.ListVoicesResponseStatus? Type1384 { get; set; } /// /// /// - public global::RetellAI.UpdateAgentResponseStatus4? Type1385 { get; set; } + public global::RetellAI.ListVoicesResponse2? Type1385 { get; set; } /// /// /// - public global::RetellAI.UpdateAgentResponse5? Type1386 { get; set; } + public global::RetellAI.ListVoicesResponseStatus2? Type1386 { get; set; } /// /// /// - public global::RetellAI.UpdateAgentResponseStatus5? Type1387 { get; set; } + public global::RetellAI.OneOf? Type1387 { get; set; } /// /// /// - public global::RetellAI.UpdateChatAgentResponse? Type1388 { get; set; } + public global::RetellAI.CreateAgentVersionResponse2? Type1388 { get; set; } /// /// /// - public global::RetellAI.UpdateChatAgentResponseStatus? Type1389 { get; set; } + public global::RetellAI.CreateAgentVersionResponseStatus? Type1389 { get; set; } /// /// /// - public global::RetellAI.UpdateChatAgentResponse2? Type1390 { get; set; } + public global::RetellAI.CreateAgentVersionResponse3? Type1390 { get; set; } /// /// /// - public global::RetellAI.UpdateChatAgentResponseStatus2? Type1391 { get; set; } + public global::RetellAI.CreateAgentVersionResponseStatus2? Type1391 { get; set; } /// /// /// - public global::RetellAI.UpdateChatAgentResponse3? Type1392 { get; set; } + public global::RetellAI.CreateAgentVersionResponse4? Type1392 { get; set; } /// /// /// - public global::RetellAI.UpdateChatAgentResponseStatus3? Type1393 { get; set; } + public global::RetellAI.CreateAgentVersionResponseStatus3? Type1393 { get; set; } /// /// /// - public global::RetellAI.UpdateChatAgentResponse4? Type1394 { get; set; } + public global::RetellAI.CreateAgentVersionResponse5? Type1394 { get; set; } /// /// /// - public global::RetellAI.UpdateChatAgentResponseStatus4? Type1395 { get; set; } + public global::RetellAI.CreateAgentVersionResponseStatus4? Type1395 { get; set; } /// /// /// - public global::RetellAI.UpdateChatAgentResponse5? Type1396 { get; set; } + public global::RetellAI.CreateAgentVersionResponse6? Type1396 { get; set; } /// /// /// - public global::RetellAI.UpdateChatAgentResponseStatus5? Type1397 { get; set; } + public global::RetellAI.CreateAgentVersionResponseStatus5? Type1397 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataResponse? Type1398 { get; set; } + public global::RetellAI.PublishAgentVersionResponse? Type1398 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataResponseStatus? Type1399 { get; set; } + public global::RetellAI.PublishAgentVersionResponseStatus? Type1399 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataResponse2? Type1400 { get; set; } + public global::RetellAI.PublishAgentVersionResponse2? Type1400 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataResponseStatus2? Type1401 { get; set; } + public global::RetellAI.PublishAgentVersionResponseStatus2? Type1401 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataResponse3? Type1402 { get; set; } + public global::RetellAI.PublishAgentVersionResponse3? Type1402 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataResponseStatus3? Type1403 { get; set; } + public global::RetellAI.PublishAgentVersionResponseStatus3? Type1403 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataResponse4? Type1404 { get; set; } + public global::RetellAI.PublishAgentVersionResponse4? Type1404 { get; set; } /// /// /// - public global::RetellAI.UpdateChatMetadataResponseStatus4? Type1405 { get; set; } + public global::RetellAI.PublishAgentVersionResponseStatus4? Type1405 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponse? Type1406 { get; set; } + public global::RetellAI.PublishAgentVersionResponse5? Type1406 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponseStatus? Type1407 { get; set; } + public global::RetellAI.PublishAgentVersionResponseStatus5? Type1407 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponse2? Type1408 { get; set; } + public global::RetellAI.DeleteAgentVersionResponse? Type1408 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponseStatus2? Type1409 { get; set; } + public global::RetellAI.DeleteAgentVersionResponseStatus? Type1409 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponse3? Type1410 { get; set; } + public global::RetellAI.DeleteAgentVersionResponse2? Type1410 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponseStatus3? Type1411 { get; set; } + public global::RetellAI.DeleteAgentVersionResponseStatus2? Type1411 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponse4? Type1412 { get; set; } + public global::RetellAI.DeleteAgentVersionResponse3? Type1412 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponseStatus4? Type1413 { get; set; } + public global::RetellAI.DeleteAgentVersionResponseStatus3? Type1413 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponse5? Type1414 { get; set; } + public global::RetellAI.DeleteAgentVersionResponse4? Type1414 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponseStatus5? Type1415 { get; set; } + public global::RetellAI.DeleteAgentVersionResponseStatus4? Type1415 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponse6? Type1416 { get; set; } + public global::RetellAI.DeleteAgentVersionResponse5? Type1416 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowComponentResponseStatus6? Type1417 { get; set; } + public global::RetellAI.DeleteAgentVersionResponseStatus5? Type1417 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponse? Type1418 { get; set; } + public global::RetellAI.RerunCallAnalysisResponse? Type1418 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponseStatus? Type1419 { get; set; } + public global::RetellAI.RerunCallAnalysisResponseStatus? Type1419 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponse2? Type1420 { get; set; } + public global::RetellAI.RerunCallAnalysisResponse2? Type1420 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponseStatus2? Type1421 { get; set; } + public global::RetellAI.RerunCallAnalysisResponseStatus2? Type1421 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponse3? Type1422 { get; set; } + public global::RetellAI.RerunCallAnalysisResponse3? Type1422 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponseStatus3? Type1423 { get; set; } + public global::RetellAI.RerunCallAnalysisResponseStatus3? Type1423 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponse4? Type1424 { get; set; } + public global::RetellAI.RerunCallAnalysisResponse4? Type1424 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponseStatus4? Type1425 { get; set; } + public global::RetellAI.RerunCallAnalysisResponseStatus4? Type1425 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponse5? Type1426 { get; set; } + public global::RetellAI.RerunCallAnalysisResponse5? Type1426 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponseStatus5? Type1427 { get; set; } + public global::RetellAI.RerunCallAnalysisResponseStatus5? Type1427 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponse6? Type1428 { get; set; } + public global::RetellAI.RerunCallAnalysisResponse6? Type1428 { get; set; } /// /// /// - public global::RetellAI.UpdateConversationFlowResponseStatus6? Type1429 { get; set; } + public global::RetellAI.RerunCallAnalysisResponseStatus6? Type1429 { get; set; } /// /// /// - public global::RetellAI.UpdatePhoneNumberResponse? Type1430 { get; set; } + public global::RetellAI.RerunCallAnalysisResponse7? Type1430 { get; set; } /// /// /// - public global::RetellAI.UpdatePhoneNumberResponseStatus? Type1431 { get; set; } + public global::RetellAI.RerunCallAnalysisResponseStatus7? Type1431 { get; set; } /// /// /// - public global::RetellAI.UpdatePhoneNumberResponse2? Type1432 { get; set; } + public global::RetellAI.RerunChatAnalysisResponse? Type1432 { get; set; } /// /// /// - public global::RetellAI.UpdatePhoneNumberResponseStatus2? Type1433 { get; set; } + public global::RetellAI.RerunChatAnalysisResponseStatus? Type1433 { get; set; } /// /// /// - public global::RetellAI.UpdatePhoneNumberResponse3? Type1434 { get; set; } + public global::RetellAI.RerunChatAnalysisResponse2? Type1434 { get; set; } /// /// /// - public global::RetellAI.UpdatePhoneNumberResponseStatus3? Type1435 { get; set; } + public global::RetellAI.RerunChatAnalysisResponseStatus2? Type1435 { get; set; } /// /// /// - public global::RetellAI.UpdatePhoneNumberResponse4? Type1436 { get; set; } + public global::RetellAI.RerunChatAnalysisResponse3? Type1436 { get; set; } /// /// /// - public global::RetellAI.UpdatePhoneNumberResponseStatus4? Type1437 { get; set; } + public global::RetellAI.RerunChatAnalysisResponseStatus3? Type1437 { get; set; } /// /// /// - public global::RetellAI.UpdateRetellLLMResponse? Type1438 { get; set; } + public global::RetellAI.RerunChatAnalysisResponse4? Type1438 { get; set; } /// /// /// - public global::RetellAI.UpdateRetellLLMResponseStatus? Type1439 { get; set; } + public global::RetellAI.RerunChatAnalysisResponseStatus4? Type1439 { get; set; } /// /// /// - public global::RetellAI.UpdateRetellLLMResponse2? Type1440 { get; set; } + public global::RetellAI.RerunChatAnalysisResponse5? Type1440 { get; set; } /// /// /// - public global::RetellAI.UpdateRetellLLMResponseStatus2? Type1441 { get; set; } + public global::RetellAI.RerunChatAnalysisResponseStatus5? Type1441 { get; set; } /// /// /// - public global::RetellAI.UpdateRetellLLMResponse3? Type1442 { get; set; } + public global::RetellAI.RerunChatAnalysisResponse6? Type1442 { get; set; } /// /// /// - public global::RetellAI.UpdateRetellLLMResponseStatus3? Type1443 { get; set; } + public global::RetellAI.RerunChatAnalysisResponseStatus6? Type1443 { get; set; } /// /// /// - public global::RetellAI.UpdateRetellLLMResponse4? Type1444 { get; set; } + public global::RetellAI.RerunChatAnalysisResponse7? Type1444 { get; set; } /// /// /// - public global::RetellAI.UpdateRetellLLMResponseStatus4? Type1445 { get; set; } + public global::RetellAI.RerunChatAnalysisResponseStatus7? Type1445 { get; set; } /// /// /// - public global::RetellAI.UpdateRetellLLMResponse5? Type1446 { get; set; } + public global::RetellAI.UpdateAgentResponse? Type1446 { get; set; } /// /// /// - public global::RetellAI.UpdateRetellLLMResponseStatus5? Type1447 { get; set; } + public global::RetellAI.UpdateAgentResponseStatus? Type1447 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponse? Type1448 { get; set; } + public global::RetellAI.UpdateAgentResponse2? Type1448 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponseStatus? Type1449 { get; set; } + public global::RetellAI.UpdateAgentResponseStatus2? Type1449 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponse2? Type1450 { get; set; } + public global::RetellAI.UpdateAgentResponse3? Type1450 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponseStatus2? Type1451 { get; set; } + public global::RetellAI.UpdateAgentResponseStatus3? Type1451 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponse3? Type1452 { get; set; } + public global::RetellAI.UpdateAgentResponse4? Type1452 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponseStatus3? Type1453 { get; set; } + public global::RetellAI.UpdateAgentResponseStatus4? Type1453 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponse4? Type1454 { get; set; } + public global::RetellAI.UpdateAgentResponse5? Type1454 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponseStatus4? Type1455 { get; set; } + public global::RetellAI.UpdateAgentResponseStatus5? Type1455 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponse5? Type1456 { get; set; } + public global::RetellAI.UpdateChatAgentResponse? Type1456 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponseStatus5? Type1457 { get; set; } + public global::RetellAI.UpdateChatAgentResponseStatus? Type1457 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponse6? Type1458 { get; set; } + public global::RetellAI.UpdateChatAgentResponse2? Type1458 { get; set; } /// /// /// - public global::RetellAI.CreatePhoneCallResponseStatus6? Type1459 { get; set; } + public global::RetellAI.UpdateChatAgentResponseStatus2? Type1459 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponse? Type1460 { get; set; } + public global::RetellAI.UpdateChatAgentResponse3? Type1460 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponseStatus? Type1461 { get; set; } + public global::RetellAI.UpdateChatAgentResponseStatus3? Type1461 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponse2? Type1462 { get; set; } + public global::RetellAI.UpdateChatAgentResponse4? Type1462 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponseStatus2? Type1463 { get; set; } + public global::RetellAI.UpdateChatAgentResponseStatus4? Type1463 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponse3? Type1464 { get; set; } + public global::RetellAI.UpdateChatAgentResponse5? Type1464 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponseStatus3? Type1465 { get; set; } + public global::RetellAI.UpdateChatAgentResponseStatus5? Type1465 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponse4? Type1466 { get; set; } + public global::RetellAI.UpdateChatMetadataResponse? Type1466 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponseStatus4? Type1467 { get; set; } + public global::RetellAI.UpdateChatMetadataResponseStatus? Type1467 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponse5? Type1468 { get; set; } + public global::RetellAI.UpdateChatMetadataResponse2? Type1468 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponseStatus5? Type1469 { get; set; } + public global::RetellAI.UpdateChatMetadataResponseStatus2? Type1469 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponse6? Type1470 { get; set; } + public global::RetellAI.UpdateChatMetadataResponse3? Type1470 { get; set; } /// /// /// - public global::RetellAI.CreateWebCallResponseStatus6? Type1471 { get; set; } + public global::RetellAI.UpdateChatMetadataResponseStatus3? Type1471 { get; set; } /// /// /// - public global::RetellAI.DeleteCallResponse? Type1472 { get; set; } + public global::RetellAI.UpdateChatMetadataResponse4? Type1472 { get; set; } /// /// /// - public global::RetellAI.DeleteCallResponseStatus? Type1473 { get; set; } + public global::RetellAI.UpdateChatMetadataResponseStatus4? Type1473 { get; set; } /// /// /// - public global::RetellAI.DeleteCallResponse2? Type1474 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponse? Type1474 { get; set; } /// /// /// - public global::RetellAI.DeleteCallResponseStatus2? Type1475 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponseStatus? Type1475 { get; set; } /// /// /// - public global::RetellAI.DeleteCallResponse3? Type1476 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponse2? Type1476 { get; set; } /// /// /// - public global::RetellAI.DeleteCallResponseStatus3? Type1477 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponseStatus2? Type1477 { get; set; } /// /// /// - public global::RetellAI.DeleteCallResponse4? Type1478 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponse3? Type1478 { get; set; } /// /// /// - public global::RetellAI.DeleteCallResponseStatus4? Type1479 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponseStatus3? Type1479 { get; set; } /// /// /// - public global::RetellAI.GetCallResponse? Type1480 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponse4? Type1480 { get; set; } /// /// /// - public global::RetellAI.GetCallResponseStatus? Type1481 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponseStatus4? Type1481 { get; set; } /// /// /// - public global::RetellAI.GetCallResponse2? Type1482 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponse5? Type1482 { get; set; } /// /// /// - public global::RetellAI.GetCallResponseStatus2? Type1483 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponseStatus5? Type1483 { get; set; } /// /// /// - public global::RetellAI.GetCallResponse3? Type1484 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponse6? Type1484 { get; set; } /// /// /// - public global::RetellAI.GetCallResponseStatus3? Type1485 { get; set; } + public global::RetellAI.UpdateConversationFlowComponentResponseStatus6? Type1485 { get; set; } /// /// /// - public global::RetellAI.GetCallResponse4? Type1486 { get; set; } + public global::RetellAI.UpdateConversationFlowResponse? Type1486 { get; set; } /// /// /// - public global::RetellAI.GetCallResponseStatus4? Type1487 { get; set; } + public global::RetellAI.UpdateConversationFlowResponseStatus? Type1487 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type1488 { get; set; } + public global::RetellAI.UpdateConversationFlowResponse2? Type1488 { get; set; } /// /// /// - public global::RetellAI.ListCallsResponse2? Type1489 { get; set; } + public global::RetellAI.UpdateConversationFlowResponseStatus2? Type1489 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1490 { get; set; } + public global::RetellAI.UpdateConversationFlowResponse3? Type1490 { get; set; } /// /// /// - public global::RetellAI.ListCallsResponse3? Type1491 { get; set; } + public global::RetellAI.UpdateConversationFlowResponseStatus3? Type1491 { get; set; } /// /// /// - public global::RetellAI.ListCallsResponseStatus? Type1492 { get; set; } + public global::RetellAI.UpdateConversationFlowResponse4? Type1492 { get; set; } /// /// /// - public global::RetellAI.ListCallsResponse4? Type1493 { get; set; } + public global::RetellAI.UpdateConversationFlowResponseStatus4? Type1493 { get; set; } /// /// /// - public global::RetellAI.ListCallsResponseStatus2? Type1494 { get; set; } + public global::RetellAI.UpdateConversationFlowResponse5? Type1494 { get; set; } /// /// /// - public global::RetellAI.ListCallsResponse5? Type1495 { get; set; } + public global::RetellAI.UpdateConversationFlowResponseStatus5? Type1495 { get; set; } /// /// /// - public global::RetellAI.ListCallsResponseStatus3? Type1496 { get; set; } + public global::RetellAI.UpdateConversationFlowResponse6? Type1496 { get; set; } /// /// /// - public global::RetellAI.ListCallsResponse6? Type1497 { get; set; } + public global::RetellAI.UpdateConversationFlowResponseStatus6? Type1497 { get; set; } /// /// /// - public global::RetellAI.ListCallsResponseStatus4? Type1498 { get; set; } + public global::RetellAI.UpdatePhoneNumberResponse? Type1498 { get; set; } /// /// /// - public global::RetellAI.AllOf? Type1499 { get; set; } + public global::RetellAI.UpdatePhoneNumberResponseStatus? Type1499 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsResponse2? Type1500 { get; set; } + public global::RetellAI.UpdatePhoneNumberResponse2? Type1500 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1501 { get; set; } + public global::RetellAI.UpdatePhoneNumberResponseStatus2? Type1501 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsResponseItem? Type1502 { get; set; } + public global::RetellAI.UpdatePhoneNumberResponse3? Type1502 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsResponseItemChannel? Type1503 { get; set; } + public global::RetellAI.UpdatePhoneNumberResponseStatus3? Type1503 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsResponseItemStatus? Type1504 { get; set; } + public global::RetellAI.UpdatePhoneNumberResponse4? Type1504 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsResponse3? Type1505 { get; set; } + public global::RetellAI.UpdatePhoneNumberResponseStatus4? Type1505 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsResponseStatus? Type1506 { get; set; } + public global::RetellAI.UpdateRetellLLMResponse? Type1506 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsResponse4? Type1507 { get; set; } + public global::RetellAI.UpdateRetellLLMResponseStatus? Type1507 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsResponseStatus2? Type1508 { get; set; } + public global::RetellAI.UpdateRetellLLMResponse2? Type1508 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsResponse5? Type1509 { get; set; } + public global::RetellAI.UpdateRetellLLMResponseStatus2? Type1509 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsResponseStatus3? Type1510 { get; set; } + public global::RetellAI.UpdateRetellLLMResponse3? Type1510 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsResponse6? Type1511 { get; set; } + public global::RetellAI.UpdateRetellLLMResponseStatus3? Type1511 { get; set; } /// /// /// - public global::RetellAI.ListExportRequestsResponseStatus4? Type1512 { get; set; } + public global::RetellAI.UpdateRetellLLMResponse4? Type1512 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponse? Type1513 { get; set; } + public global::RetellAI.UpdateRetellLLMResponseStatus4? Type1513 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponseStatus? Type1514 { get; set; } + public global::RetellAI.UpdateRetellLLMResponse5? Type1514 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponse2? Type1515 { get; set; } + public global::RetellAI.UpdateRetellLLMResponseStatus5? Type1515 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponseStatus2? Type1516 { get; set; } + public global::RetellAI.CreatePhoneCallResponse? Type1516 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponse3? Type1517 { get; set; } + public global::RetellAI.CreatePhoneCallResponseStatus? Type1517 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponseStatus3? Type1518 { get; set; } + public global::RetellAI.CreatePhoneCallResponse2? Type1518 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponse4? Type1519 { get; set; } + public global::RetellAI.CreatePhoneCallResponseStatus2? Type1519 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponseStatus4? Type1520 { get; set; } + public global::RetellAI.CreatePhoneCallResponse3? Type1520 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponse5? Type1521 { get; set; } + public global::RetellAI.CreatePhoneCallResponseStatus3? Type1521 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponseStatus5? Type1522 { get; set; } + public global::RetellAI.CreatePhoneCallResponse4? Type1522 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponse6? Type1523 { get; set; } + public global::RetellAI.CreatePhoneCallResponseStatus4? Type1523 { get; set; } /// /// /// - public global::RetellAI.RegisterPhoneCallResponseStatus6? Type1524 { get; set; } + public global::RetellAI.CreatePhoneCallResponse5? Type1524 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataResponse? Type1525 { get; set; } + public global::RetellAI.CreatePhoneCallResponseStatus5? Type1525 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataResponseStatus? Type1526 { get; set; } + public global::RetellAI.CreatePhoneCallResponse6? Type1526 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataResponse2? Type1527 { get; set; } + public global::RetellAI.CreatePhoneCallResponseStatus6? Type1527 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataResponseStatus2? Type1528 { get; set; } + public global::RetellAI.CreateWebCallResponse? Type1528 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataResponse3? Type1529 { get; set; } + public global::RetellAI.CreateWebCallResponseStatus? Type1529 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataResponseStatus3? Type1530 { get; set; } + public global::RetellAI.CreateWebCallResponse2? Type1530 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataResponse4? Type1531 { get; set; } + public global::RetellAI.CreateWebCallResponseStatus2? Type1531 { get; set; } /// /// /// - public global::RetellAI.UpdateCallMetadataResponseStatus4? Type1532 { get; set; } + public global::RetellAI.CreateWebCallResponse3? Type1532 { get; set; } /// /// /// - public global::RetellAI.UpdateLiveCallResponse? Type1533 { get; set; } + public global::RetellAI.CreateWebCallResponseStatus3? Type1533 { get; set; } /// /// /// - public global::RetellAI.UpdateLiveCallResponse2? Type1534 { get; set; } + public global::RetellAI.CreateWebCallResponse4? Type1534 { get; set; } /// /// /// - public global::RetellAI.UpdateLiveCallResponseStatus? Type1535 { get; set; } + public global::RetellAI.CreateWebCallResponseStatus4? Type1535 { get; set; } /// /// /// - public global::RetellAI.UpdateLiveCallResponse3? Type1536 { get; set; } + public global::RetellAI.CreateWebCallResponse5? Type1536 { get; set; } /// /// /// - public global::RetellAI.UpdateLiveCallResponseStatus2? Type1537 { get; set; } + public global::RetellAI.CreateWebCallResponseStatus5? Type1537 { get; set; } /// /// /// - public global::RetellAI.UpdateLiveCallResponse4? Type1538 { get; set; } + public global::RetellAI.CreateWebCallResponse6? Type1538 { get; set; } /// /// /// - public global::RetellAI.UpdateLiveCallResponseStatus3? Type1539 { get; set; } + public global::RetellAI.CreateWebCallResponseStatus6? Type1539 { get; set; } /// /// /// - public global::RetellAI.UpdateLiveCallResponse5? Type1540 { get; set; } + public global::RetellAI.DeleteCallResponse? Type1540 { get; set; } /// /// /// - public global::RetellAI.UpdateLiveCallResponseStatus4? Type1541 { get; set; } + public global::RetellAI.DeleteCallResponseStatus? Type1541 { get; set; } /// /// /// - public global::RetellAI.UpdateLiveCallResponse6? Type1542 { get; set; } + public global::RetellAI.DeleteCallResponse2? Type1542 { get; set; } /// /// /// - public global::RetellAI.UpdateLiveCallResponseStatus5? Type1543 { get; set; } + public global::RetellAI.DeleteCallResponseStatus2? Type1543 { get; set; } /// /// /// - public global::RetellAI.StopCallResponse? Type1544 { get; set; } + public global::RetellAI.DeleteCallResponse3? Type1544 { get; set; } /// /// /// - public global::RetellAI.StopCallResponseStatus? Type1545 { get; set; } + public global::RetellAI.DeleteCallResponseStatus3? Type1545 { get; set; } /// /// /// - public global::RetellAI.StopCallResponse2? Type1546 { get; set; } + public global::RetellAI.DeleteCallResponse4? Type1546 { get; set; } /// /// /// - public global::RetellAI.StopCallResponseStatus2? Type1547 { get; set; } + public global::RetellAI.DeleteCallResponseStatus4? Type1547 { get; set; } /// /// /// - public global::RetellAI.StopCallResponse3? Type1548 { get; set; } + public global::RetellAI.GetCallResponse? Type1548 { get; set; } /// /// /// - public global::RetellAI.StopCallResponseStatus3? Type1549 { get; set; } + public global::RetellAI.GetCallResponseStatus? Type1549 { get; set; } /// /// /// - public global::RetellAI.StopCallResponse4? Type1550 { get; set; } + public global::RetellAI.GetCallResponse2? Type1550 { get; set; } /// /// /// - public global::RetellAI.StopCallResponseStatus4? Type1551 { get; set; } + public global::RetellAI.GetCallResponseStatus2? Type1551 { get; set; } + /// + /// + /// + public global::RetellAI.GetCallResponse3? Type1552 { get; set; } + /// + /// + /// + public global::RetellAI.GetCallResponseStatus3? Type1553 { get; set; } + /// + /// + /// + public global::RetellAI.GetCallResponse4? Type1554 { get; set; } + /// + /// + /// + public global::RetellAI.GetCallResponseStatus4? Type1555 { get; set; } + /// + /// + /// + public global::RetellAI.AllOf? Type1556 { get; set; } + /// + /// + /// + public global::RetellAI.ListCallsResponse2? Type1557 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1558 { get; set; } + /// + /// + /// + public global::RetellAI.ListCallsResponse3? Type1559 { get; set; } + /// + /// + /// + public global::RetellAI.ListCallsResponseStatus? Type1560 { get; set; } + /// + /// + /// + public global::RetellAI.ListCallsResponse4? Type1561 { get; set; } + /// + /// + /// + public global::RetellAI.ListCallsResponseStatus2? Type1562 { get; set; } + /// + /// + /// + public global::RetellAI.ListCallsResponse5? Type1563 { get; set; } + /// + /// + /// + public global::RetellAI.ListCallsResponseStatus3? Type1564 { get; set; } + /// + /// + /// + public global::RetellAI.ListCallsResponse6? Type1565 { get; set; } + /// + /// + /// + public global::RetellAI.ListCallsResponseStatus4? Type1566 { get; set; } + /// + /// + /// + public global::RetellAI.AllOf? Type1567 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsResponse2? Type1568 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1569 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsResponseItem? Type1570 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsResponseItemChannel? Type1571 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsResponseItemStatus? Type1572 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsResponse3? Type1573 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsResponseStatus? Type1574 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsResponse4? Type1575 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsResponseStatus2? Type1576 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsResponse5? Type1577 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsResponseStatus3? Type1578 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsResponse6? Type1579 { get; set; } + /// + /// + /// + public global::RetellAI.ListExportRequestsResponseStatus4? Type1580 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponse? Type1581 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponseStatus? Type1582 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponse2? Type1583 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponseStatus2? Type1584 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponse3? Type1585 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponseStatus3? Type1586 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponse4? Type1587 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponseStatus4? Type1588 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponse5? Type1589 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponseStatus5? Type1590 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponse6? Type1591 { get; set; } + /// + /// + /// + public global::RetellAI.RegisterPhoneCallResponseStatus6? Type1592 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCallMetadataResponse? Type1593 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCallMetadataResponseStatus? Type1594 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCallMetadataResponse2? Type1595 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCallMetadataResponseStatus2? Type1596 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCallMetadataResponse3? Type1597 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCallMetadataResponseStatus3? Type1598 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCallMetadataResponse4? Type1599 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCallMetadataResponseStatus4? Type1600 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateLiveCallResponse? Type1601 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateLiveCallResponse2? Type1602 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateLiveCallResponseStatus? Type1603 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateLiveCallResponse3? Type1604 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateLiveCallResponseStatus2? Type1605 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateLiveCallResponse4? Type1606 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateLiveCallResponseStatus3? Type1607 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateLiveCallResponse5? Type1608 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateLiveCallResponseStatus4? Type1609 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateLiveCallResponse6? Type1610 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateLiveCallResponseStatus5? Type1611 { get; set; } + /// + /// + /// + public global::RetellAI.StopCallResponse? Type1612 { get; set; } + /// + /// + /// + public global::RetellAI.StopCallResponseStatus? Type1613 { get; set; } + /// + /// + /// + public global::RetellAI.StopCallResponse2? Type1614 { get; set; } + /// + /// + /// + public global::RetellAI.StopCallResponseStatus2? Type1615 { get; set; } + /// + /// + /// + public global::RetellAI.StopCallResponse3? Type1616 { get; set; } + /// + /// + /// + public global::RetellAI.StopCallResponseStatus3? Type1617 { get; set; } + /// + /// + /// + public global::RetellAI.StopCallResponse4? Type1618 { get; set; } + /// + /// + /// + public global::RetellAI.StopCallResponseStatus4? Type1619 { get; set; } + /// + /// + /// + public global::RetellAI.CreateContactResponse? Type1620 { get; set; } + /// + /// + /// + public global::RetellAI.CreateContactResponseStatus? Type1621 { get; set; } + /// + /// + /// + public global::RetellAI.CreateContactResponse2? Type1622 { get; set; } + /// + /// + /// + public global::RetellAI.CreateContactResponseStatus2? Type1623 { get; set; } + /// + /// + /// + public global::RetellAI.CreateContactResponse3? Type1624 { get; set; } + /// + /// + /// + public global::RetellAI.CreateContactResponseStatus3? Type1625 { get; set; } + /// + /// + /// + public global::RetellAI.CreateContactResponse4? Type1626 { get; set; } + /// + /// + /// + public global::RetellAI.CreateContactResponseStatus4? Type1627 { get; set; } + /// + /// + /// + public global::RetellAI.GetContactResponse? Type1628 { get; set; } + /// + /// + /// + public global::RetellAI.GetContactResponseStatus? Type1629 { get; set; } + /// + /// + /// + public global::RetellAI.GetContactResponse2? Type1630 { get; set; } + /// + /// + /// + public global::RetellAI.GetContactResponseStatus2? Type1631 { get; set; } + /// + /// + /// + public global::RetellAI.GetContactResponse3? Type1632 { get; set; } + /// + /// + /// + public global::RetellAI.GetContactResponseStatus3? Type1633 { get; set; } + /// + /// + /// + public global::RetellAI.GetContactResponse4? Type1634 { get; set; } + /// + /// + /// + public global::RetellAI.GetContactResponseStatus4? Type1635 { get; set; } + /// + /// + /// + public global::RetellAI.GetContactByPhoneResponse? Type1636 { get; set; } + /// + /// + /// + public global::RetellAI.GetContactByPhoneResponseStatus? Type1637 { get; set; } + /// + /// + /// + public global::RetellAI.GetContactByPhoneResponse2? Type1638 { get; set; } + /// + /// + /// + public global::RetellAI.GetContactByPhoneResponseStatus2? Type1639 { get; set; } + /// + /// + /// + public global::RetellAI.GetContactByPhoneResponse3? Type1640 { get; set; } + /// + /// + /// + public global::RetellAI.GetContactByPhoneResponseStatus3? Type1641 { get; set; } + /// + /// + /// + public global::RetellAI.GetContactByPhoneResponse4? Type1642 { get; set; } + /// + /// + /// + public global::RetellAI.GetContactByPhoneResponseStatus4? Type1643 { get; set; } + /// + /// + /// + public global::RetellAI.GetContactByPhoneResponse5? Type1644 { get; set; } + /// + /// + /// + public global::RetellAI.GetContactByPhoneResponseStatus5? Type1645 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateContactResponse? Type1646 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateContactResponseStatus? Type1647 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateContactResponse2? Type1648 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateContactResponseStatus2? Type1649 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateContactResponse3? Type1650 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateContactResponseStatus3? Type1651 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateContactResponse4? Type1652 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateContactResponseStatus4? Type1653 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateContactResponse5? Type1654 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateContactResponseStatus5? Type1655 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteContactResponse? Type1656 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteContactResponseStatus? Type1657 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteContactResponse2? Type1658 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteContactResponseStatus2? Type1659 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteContactResponse3? Type1660 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteContactResponseStatus3? Type1661 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteContactResponse4? Type1662 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteContactResponseStatus4? Type1663 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteContactResponse5? Type1664 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteContactResponseStatus5? Type1665 { get; set; } + /// + /// + /// + public global::RetellAI.ListContactsResponse? Type1666 { get; set; } + /// + /// + /// + public global::RetellAI.ListContactsResponseStatus? Type1667 { get; set; } + /// + /// + /// + public global::RetellAI.ListContactsResponse2? Type1668 { get; set; } + /// + /// + /// + public global::RetellAI.ListContactsResponseStatus2? Type1669 { get; set; } + /// + /// + /// + public global::RetellAI.ListContactsResponse3? Type1670 { get; set; } + /// + /// + /// + public global::RetellAI.ListContactsResponseStatus3? Type1671 { get; set; } + /// + /// + /// + public global::RetellAI.ListContactsResponse4? Type1672 { get; set; } + /// + /// + /// + public global::RetellAI.ListContactsResponseStatus4? Type1673 { get; set; } + /// + /// + /// + public global::RetellAI.ListContactConversationsResponse? Type1674 { get; set; } + /// + /// + /// + public global::RetellAI.ListContactConversationsResponseStatus? Type1675 { get; set; } + /// + /// + /// + public global::RetellAI.ListContactConversationsResponse2? Type1676 { get; set; } + /// + /// + /// + public global::RetellAI.ListContactConversationsResponseStatus2? Type1677 { get; set; } + /// + /// + /// + public global::RetellAI.ListContactConversationsResponse3? Type1678 { get; set; } + /// + /// + /// + public global::RetellAI.ListContactConversationsResponseStatus3? Type1679 { get; set; } + /// + /// + /// + public global::RetellAI.ListContactConversationsResponse4? Type1680 { get; set; } + /// + /// + /// + public global::RetellAI.ListContactConversationsResponseStatus4? Type1681 { get; set; } + /// + /// + /// + public global::RetellAI.CreateAppResponse? Type1682 { get; set; } + /// + /// + /// + public global::RetellAI.CreateAppResponseStatus? Type1683 { get; set; } + /// + /// + /// + public global::RetellAI.CreateAppResponse2? Type1684 { get; set; } + /// + /// + /// + public global::RetellAI.CreateAppResponseStatus2? Type1685 { get; set; } + /// + /// + /// + public global::RetellAI.CreateAppResponse3? Type1686 { get; set; } + /// + /// + /// + public global::RetellAI.CreateAppResponseStatus3? Type1687 { get; set; } + /// + /// + /// + public global::RetellAI.CreateAppResponse4? Type1688 { get; set; } + /// + /// + /// + public global::RetellAI.CreateAppResponseStatus4? Type1689 { get; set; } + /// + /// + /// + public global::RetellAI.GetAppResponse? Type1690 { get; set; } + /// + /// + /// + public global::RetellAI.GetAppResponseStatus? Type1691 { get; set; } + /// + /// + /// + public global::RetellAI.GetAppResponse2? Type1692 { get; set; } + /// + /// + /// + public global::RetellAI.GetAppResponseStatus2? Type1693 { get; set; } + /// + /// + /// + public global::RetellAI.GetAppResponse3? Type1694 { get; set; } + /// + /// + /// + public global::RetellAI.GetAppResponseStatus3? Type1695 { get; set; } + /// + /// + /// + public global::RetellAI.GetAppResponse4? Type1696 { get; set; } + /// + /// + /// + public global::RetellAI.GetAppResponseStatus4? Type1697 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateAppResponse? Type1698 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateAppResponseStatus? Type1699 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateAppResponse2? Type1700 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateAppResponseStatus2? Type1701 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateAppResponse3? Type1702 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateAppResponseStatus3? Type1703 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateAppResponse4? Type1704 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateAppResponseStatus4? Type1705 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateAppResponse5? Type1706 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateAppResponseStatus5? Type1707 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteAppResponse? Type1708 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteAppResponseStatus? Type1709 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteAppResponse2? Type1710 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteAppResponseStatus2? Type1711 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteAppResponse3? Type1712 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteAppResponseStatus3? Type1713 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteAppResponse4? Type1714 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteAppResponseStatus4? Type1715 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteAppResponse5? Type1716 { get; set; } + /// + /// + /// + public global::RetellAI.DeleteAppResponseStatus5? Type1717 { get; set; } + /// + /// + /// + public global::RetellAI.AllOf? Type1718 { get; set; } + /// + /// + /// + public global::RetellAI.ListAppsResponse2? Type1719 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1720 { get; set; } + /// + /// + /// + public global::RetellAI.ListAppsResponse3? Type1721 { get; set; } + /// + /// + /// + public global::RetellAI.ListAppsResponseStatus? Type1722 { get; set; } + /// + /// + /// + public global::RetellAI.ListAppsResponse4? Type1723 { get; set; } + /// + /// + /// + public global::RetellAI.ListAppsResponseStatus2? Type1724 { get; set; } + /// + /// + /// + public global::RetellAI.ListAppsResponse5? Type1725 { get; set; } + /// + /// + /// + public global::RetellAI.ListAppsResponseStatus3? Type1726 { get; set; } + /// + /// + /// + public global::RetellAI.AllOf? Type1727 { get; set; } + /// + /// + /// + public global::RetellAI.ListAppUsagesResponse2? Type1728 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1729 { get; set; } + /// + /// + /// + public global::RetellAI.ListAppUsagesResponse3? Type1730 { get; set; } + /// + /// + /// + public global::RetellAI.ListAppUsagesResponseStatus? Type1731 { get; set; } + /// + /// + /// + public global::RetellAI.ListAppUsagesResponse4? Type1732 { get; set; } + /// + /// + /// + public global::RetellAI.ListAppUsagesResponseStatus2? Type1733 { get; set; } + /// + /// + /// + public global::RetellAI.ListAppUsagesResponse5? Type1734 { get; set; } + /// + /// + /// + public global::RetellAI.ListAppUsagesResponseStatus3? Type1735 { get; set; } + /// + /// + /// + public global::RetellAI.ListAppUsagesResponse6? Type1736 { get; set; } + /// + /// + /// + public global::RetellAI.ListAppUsagesResponseStatus4? Type1737 { get; set; } + /// + /// + /// + public global::RetellAI.TestAppAuthResponse? Type1738 { get; set; } + /// + /// + /// + public global::RetellAI.TestAppAuthResponse2? Type1739 { get; set; } + /// + /// + /// + public global::RetellAI.TestAppAuthResponseStatus? Type1740 { get; set; } + /// + /// + /// + public global::RetellAI.TestAppAuthResponse3? Type1741 { get; set; } + /// + /// + /// + public global::RetellAI.TestAppAuthResponseStatus2? Type1742 { get; set; } + /// + /// + /// + public global::RetellAI.TestAppAuthResponse4? Type1743 { get; set; } + /// + /// + /// + public global::RetellAI.TestAppAuthResponseStatus3? Type1744 { get; set; } + /// + /// + /// + public global::RetellAI.TestAppAuthResponse5? Type1745 { get; set; } + /// + /// + /// + public global::RetellAI.TestAppAuthResponseStatus4? Type1746 { get; set; } + /// + /// + /// + public global::RetellAI.GetCrmConfigResponse? Type1747 { get; set; } + /// + /// + /// + public global::RetellAI.GetCrmConfigResponseStatus? Type1748 { get; set; } + /// + /// + /// + public global::RetellAI.GetCrmConfigResponse2? Type1749 { get; set; } + /// + /// + /// + public global::RetellAI.GetCrmConfigResponseStatus2? Type1750 { get; set; } + /// + /// + /// + public global::RetellAI.GetCrmConfigResponse3? Type1751 { get; set; } + /// + /// + /// + public global::RetellAI.GetCrmConfigResponseStatus3? Type1752 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCrmConfigResponse? Type1753 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCrmConfigResponseStatus? Type1754 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCrmConfigResponse2? Type1755 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCrmConfigResponseStatus2? Type1756 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCrmConfigResponse3? Type1757 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCrmConfigResponseStatus3? Type1758 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCrmConfigResponse4? Type1759 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCrmConfigResponseStatus4? Type1760 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCrmConfigResponse5? Type1761 { get; set; } + /// + /// + /// + public global::RetellAI.UpdateCrmConfigResponseStatus5? Type1762 { get; set; } + /// + /// + /// + public global::RetellAI.RunSyncJobResponse? Type1763 { get; set; } + /// + /// + /// + public global::RetellAI.RunSyncJobResponseStatus? Type1764 { get; set; } + /// + /// + /// + public global::RetellAI.RunSyncJobResponse2? Type1765 { get; set; } + /// + /// + /// + public global::RetellAI.RunSyncJobResponseStatus2? Type1766 { get; set; } + /// + /// + /// + public global::RetellAI.RunSyncJobResponse3? Type1767 { get; set; } + /// + /// + /// + public global::RetellAI.RunSyncJobResponseStatus3? Type1768 { get; set; } + /// + /// + /// + public global::RetellAI.RunSyncJobResponse4? Type1769 { get; set; } + /// + /// + /// + public global::RetellAI.RunSyncJobResponseStatus4? Type1770 { get; set; } + /// + /// + /// + public global::RetellAI.GetSyncJobStatusResponse? Type1771 { get; set; } + /// + /// + /// + public global::RetellAI.GetSyncJobStatusResponseStatus? Type1772 { get; set; } + /// + /// + /// + public global::RetellAI.GetSyncJobStatusResponse2? Type1773 { get; set; } + /// + /// + /// + public global::RetellAI.GetSyncJobStatusResponseStatus2? Type1774 { get; set; } + /// + /// + /// + public global::RetellAI.GetSyncJobStatusResponse3? Type1775 { get; set; } + /// + /// + /// + public global::RetellAI.GetSyncJobStatusResponseStatus3? Type1776 { get; set; } + /// + /// + /// + public global::RetellAI.BackfillContactAnalysisDataResponse? Type1777 { get; set; } + /// + /// + /// + public global::RetellAI.BackfillContactAnalysisDataResponseStatus? Type1778 { get; set; } + /// + /// + /// + public global::RetellAI.BackfillContactAnalysisDataResponse2? Type1779 { get; set; } + /// + /// + /// + public global::RetellAI.BackfillContactAnalysisDataResponseStatus2? Type1780 { get; set; } + /// + /// + /// + public global::RetellAI.BackfillContactAnalysisDataResponse3? Type1781 { get; set; } + /// + /// + /// + public global::RetellAI.BackfillContactAnalysisDataResponseStatus3? Type1782 { get; set; } + /// + /// + /// + public global::RetellAI.BackfillContactAnalysisDataResponse4? Type1783 { get; set; } + /// + /// + /// + public global::RetellAI.BackfillContactAnalysisDataResponseStatus4? Type1784 { get; set; } + /// + /// + /// + public global::RetellAI.GetBackfillContactJobStatusResponse? Type1785 { get; set; } + /// + /// + /// + public global::RetellAI.GetBackfillContactJobStatusResponseStatus? Type1786 { get; set; } + /// + /// + /// + public global::RetellAI.GetBackfillContactJobStatusResponse2? Type1787 { get; set; } + /// + /// + /// + public global::RetellAI.GetBackfillContactJobStatusResponseStatus2? Type1788 { get; set; } + /// + /// + /// + public global::RetellAI.GetBackfillContactJobStatusResponse3? Type1789 { get; set; } + /// + /// + /// + public global::RetellAI.GetBackfillContactJobStatusResponseStatus3? Type1790 { get; set; } + /// + /// + /// + public global::RetellAI.GetCrmSchemaResponse? Type1791 { get; set; } + /// + /// + /// + public global::RetellAI.GetCrmSchemaResponse2? Type1792 { get; set; } + /// + /// + /// + public global::RetellAI.GetCrmSchemaResponseStatus? Type1793 { get; set; } + /// + /// + /// + public global::RetellAI.GetCrmSchemaResponse3? Type1794 { get; set; } + /// + /// + /// + public global::RetellAI.GetCrmSchemaResponseStatus2? Type1795 { get; set; } + /// + /// + /// + public global::RetellAI.GetCrmSchemaResponse4? Type1796 { get; set; } + /// + /// + /// + public global::RetellAI.GetCrmSchemaResponseStatus3? Type1797 { get; set; } + /// + /// + /// + public global::RetellAI.GetCrmSchemaResponse5? Type1798 { get; set; } + /// + /// + /// + public global::RetellAI.GetCrmSchemaResponseStatus4? Type1799 { get; set; } + /// + /// + /// + public global::RetellAI.GetCrmSchemaResponse6? Type1800 { get; set; } + /// + /// + /// + public global::RetellAI.GetCrmSchemaResponseStatus5? Type1801 { get; set; } + /// + /// + /// + public global::RetellAI.GetCrmSchemaResponse7? Type1802 { get; set; } + /// + /// + /// + public global::RetellAI.GetCrmSchemaResponseStatus6? Type1803 { get; set; } /// /// @@ -6409,226 +7417,246 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List>? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType44 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType45 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType46 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType47 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType48 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType49 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType50 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType51 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType52 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType53 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List>? ListType54 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType55 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType51 { get; set; } + public global::System.Collections.Generic.List? ListType56 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType52 { get; set; } + public global::System.Collections.Generic.List? ListType57 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType53 { get; set; } + public global::System.Collections.Generic.List? ListType58 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType54 { get; set; } + public global::System.Collections.Generic.List? ListType59 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType55 { get; set; } + public global::System.Collections.Generic.List? ListType60 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType56 { get; set; } + public global::System.Collections.Generic.List? ListType61 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType57 { get; set; } + public global::System.Collections.Generic.List? ListType62 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType58 { get; set; } + public global::System.Collections.Generic.List? ListType63 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType59 { get; set; } + public global::System.Collections.Generic.List? ListType64 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType60 { get; set; } + public global::System.Collections.Generic.List? ListType65 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType61 { get; set; } + public global::System.Collections.Generic.List? ListType66 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType62 { get; set; } + public global::System.Collections.Generic.List? ListType67 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType63 { get; set; } + public global::System.Collections.Generic.List>? ListType68 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType64 { get; set; } + public global::System.Collections.Generic.List? ListType69 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType65 { get; set; } + public global::System.Collections.Generic.List? ListType70 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType66 { get; set; } + public global::System.Collections.Generic.List? ListType71 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType67 { get; set; } + public global::System.Collections.Generic.List? ListType72 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType68 { get; set; } + public global::System.Collections.Generic.List? ListType73 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType69 { get; set; } + public global::System.Collections.Generic.List? ListType74 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType70 { get; set; } + public global::System.Collections.Generic.List? ListType75 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType71 { get; set; } + public global::System.Collections.Generic.List? ListType76 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType72 { get; set; } + public global::System.Collections.Generic.List? ListType77 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType73 { get; set; } + public global::System.Collections.Generic.List? ListType78 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType74 { get; set; } + public global::System.Collections.Generic.List? ListType79 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType75 { get; set; } + public global::System.Collections.Generic.List? ListType80 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType76 { get; set; } + public global::System.Collections.Generic.List? ListType81 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType77 { get; set; } + public global::System.Collections.Generic.List? ListType82 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType78 { get; set; } + public global::System.Collections.Generic.List? ListType83 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType84 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType80 { get; set; } + public global::System.Collections.Generic.List? ListType85 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType81 { get; set; } + public global::System.Collections.Generic.List? ListType86 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType82 { get; set; } + public global::System.Collections.Generic.List? ListType87 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType83 { get; set; } + public global::System.Collections.Generic.List? ListType88 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType84 { get; set; } + public global::System.Collections.Generic.List? ListType89 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType85 { get; set; } + public global::System.Collections.Generic.List? ListType90 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType86 { get; set; } + public global::System.Collections.Generic.List? ListType91 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType87 { get; set; } + public global::System.Collections.Generic.List? ListType92 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType88 { get; set; } + public global::System.Collections.Generic.List? ListType93 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType89 { get; set; } + public global::System.Collections.Generic.List? ListType94 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType90 { get; set; } + public global::System.Collections.Generic.List? ListType95 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType91 { get; set; } + public global::System.Collections.Generic.List? ListType96 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType92 { get; set; } + public global::System.Collections.Generic.List? ListType97 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType93 { get; set; } + public global::System.Collections.Generic.List? ListType98 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType94 { get; set; } + public global::System.Collections.Generic.List? ListType99 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType95 { get; set; } + public global::System.Collections.Generic.List? ListType100 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType96 { get; set; } + public global::System.Collections.Generic.List? ListType101 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType97 { get; set; } + public global::System.Collections.Generic.List? ListType102 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType98 { get; set; } + public global::System.Collections.Generic.List? ListType103 { get; set; } } } \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AccessTokenAuthConfigRequest.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AccessTokenAuthConfigRequest.Json.g.cs new file mode 100644 index 00000000..7ea08863 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AccessTokenAuthConfigRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class AccessTokenAuthConfigRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.AccessTokenAuthConfigRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.AccessTokenAuthConfigRequest), + jsonSerializerContext) as global::RetellAI.AccessTokenAuthConfigRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.AccessTokenAuthConfigRequest? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.AccessTokenAuthConfigRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.AccessTokenAuthConfigRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.AccessTokenAuthConfigRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AccessTokenAuthConfigRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AccessTokenAuthConfigRequest.g.cs new file mode 100644 index 00000000..3905da3f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AccessTokenAuthConfigRequest.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class AccessTokenAuthConfigRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.AccessTokenAuthConfigRequestTypeJsonConverter))] + public global::RetellAI.AccessTokenAuthConfigRequestType Type { get; set; } + + /// + /// OAuth-obtained access token used directly as a static bearer secret; stored encrypted at rest. An alternative to the OAuth connect flow, which persists the same config. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("access_token")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AccessToken { 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. + /// + /// + /// OAuth-obtained access token used directly as a static bearer secret; stored encrypted at rest. An alternative to the OAuth connect flow, which persists the same config. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AccessTokenAuthConfigRequest( + string accessToken, + global::RetellAI.AccessTokenAuthConfigRequestType type) + { + this.Type = type; + this.AccessToken = accessToken ?? throw new global::System.ArgumentNullException(nameof(accessToken)); + } + + /// + /// Initializes a new instance of the class. + /// + public AccessTokenAuthConfigRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AccessTokenAuthConfigRequestType.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AccessTokenAuthConfigRequestType.g.cs new file mode 100644 index 00000000..c4661e47 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AccessTokenAuthConfigRequestType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum AccessTokenAuthConfigRequestType + { + /// + /// + /// + AccessToken, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AccessTokenAuthConfigRequestTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AccessTokenAuthConfigRequestType value) + { + return value switch + { + AccessTokenAuthConfigRequestType.AccessToken => "access_token", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AccessTokenAuthConfigRequestType? ToEnum(string value) + { + return value switch + { + "access_token" => AccessTokenAuthConfigRequestType.AccessToken, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AccessTokenAuthConfigResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AccessTokenAuthConfigResponse.Json.g.cs new file mode 100644 index 00000000..3d1a3a94 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AccessTokenAuthConfigResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class AccessTokenAuthConfigResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.AccessTokenAuthConfigResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.AccessTokenAuthConfigResponse), + jsonSerializerContext) as global::RetellAI.AccessTokenAuthConfigResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.AccessTokenAuthConfigResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.AccessTokenAuthConfigResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.AccessTokenAuthConfigResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.AccessTokenAuthConfigResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AccessTokenAuthConfigResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AccessTokenAuthConfigResponse.g.cs new file mode 100644 index 00000000..0a9cdafb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AccessTokenAuthConfigResponse.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class AccessTokenAuthConfigResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.AccessTokenAuthConfigResponseTypeJsonConverter))] + public global::RetellAI.AccessTokenAuthConfigResponseType Type { 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 AccessTokenAuthConfigResponse( + global::RetellAI.AccessTokenAuthConfigResponseType type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public AccessTokenAuthConfigResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AccessTokenAuthConfigResponseType.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AccessTokenAuthConfigResponseType.g.cs new file mode 100644 index 00000000..66ba4b3e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AccessTokenAuthConfigResponseType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum AccessTokenAuthConfigResponseType + { + /// + /// + /// + AccessToken, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AccessTokenAuthConfigResponseTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AccessTokenAuthConfigResponseType value) + { + return value switch + { + AccessTokenAuthConfigResponseType.AccessToken => "access_token", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AccessTokenAuthConfigResponseType? ToEnum(string value) + { + return value switch + { + "access_token" => AccessTokenAuthConfigResponseType.AccessToken, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AgentAppUsage.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AgentAppUsage.Json.g.cs new file mode 100644 index 00000000..cd9f788c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AgentAppUsage.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class AgentAppUsage + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.AgentAppUsage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.AgentAppUsage), + jsonSerializerContext) as global::RetellAI.AgentAppUsage; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.AgentAppUsage? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.AgentAppUsage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.AgentAppUsage), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.AgentAppUsage; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AgentAppUsage.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AgentAppUsage.g.cs new file mode 100644 index 00000000..398cebfe --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AgentAppUsage.g.cs @@ -0,0 +1,90 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class AgentAppUsage + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.AgentAppUsageTypeJsonConverter))] + public global::RetellAI.AgentAppUsageType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("agent_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AgentId { get; set; } + + /// + /// Current agent name; omitted if the agent was deleted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("agent_name")] + public string? AgentName { get; set; } + + /// + /// Agent versions referencing this app, largest first. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("agent_versions")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList AgentVersions { get; set; } + + /// + /// When this reference was last recorded, in milliseconds. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("configured_timestamp")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double ConfiguredTimestamp { 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. + /// + /// + /// + /// Agent versions referencing this app, largest first. + /// + /// + /// When this reference was last recorded, in milliseconds. + /// + /// + /// + /// Current agent name; omitted if the agent was deleted. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AgentAppUsage( + string agentId, + global::System.Collections.Generic.IList agentVersions, + double configuredTimestamp, + global::RetellAI.AgentAppUsageType type, + string? agentName) + { + this.Type = type; + this.AgentId = agentId ?? throw new global::System.ArgumentNullException(nameof(agentId)); + this.AgentName = agentName; + this.AgentVersions = agentVersions ?? throw new global::System.ArgumentNullException(nameof(agentVersions)); + this.ConfiguredTimestamp = configuredTimestamp; + } + + /// + /// Initializes a new instance of the class. + /// + public AgentAppUsage() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AgentAppUsageType.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AgentAppUsageType.g.cs new file mode 100644 index 00000000..1a59b80d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AgentAppUsageType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum AgentAppUsageType + { + /// + /// + /// + Agent, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AgentAppUsageTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AgentAppUsageType value) + { + return value switch + { + AgentAppUsageType.Agent => "agent", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AgentAppUsageType? ToEnum(string value) + { + return value switch + { + "agent" => AgentAppUsageType.Agent, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AgentSwapNodeVariant2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AgentSwapNodeVariant2.g.cs index 78f82363..ee6df903 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.AgentSwapNodeVariant2.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AgentSwapNodeVariant2.g.cs @@ -45,7 +45,7 @@ public sealed partial class AgentSwapNodeVariant2 public global::RetellAI.AgentSwapWebhookSetting? WebhookSetting { get; set; } /// - /// If true, keep the current voice when swapping agents. Defaults to false. + /// If true, keep the current voice and ambient sound settings when swapping agents. Otherwise, use the destination agent's voice and ambient sound settings. Defaults to false. /// [global::System.Text.Json.Serialization.JsonPropertyName("keep_current_voice")] public bool? KeepCurrentVoice { get; set; } @@ -99,7 +99,7 @@ public sealed partial class AgentSwapNodeVariant2 /// /// /// - /// If true, keep the current voice when swapping agents. Defaults to false. + /// If true, keep the current voice and ambient sound settings when swapping agents. Otherwise, use the destination agent's voice and ambient sound settings. Defaults to false. /// /// /// If true, keep the current language when swapping agents. Defaults to false. diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AgentSwapTool.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AgentSwapTool.g.cs index 5568a4df..b5e03068 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.AgentSwapTool.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AgentSwapTool.g.cs @@ -77,7 +77,7 @@ public sealed partial class AgentSwapTool public global::RetellAI.AgentSwapWebhookSetting? WebhookSetting { get; set; } /// - /// If true, keep the current voice when swapping agents. Defaults to false. + /// If true, keep the current voice and ambient sound settings when swapping agents. Otherwise, use the destination agent's voice and ambient sound settings. Defaults to false. /// [global::System.Text.Json.Serialization.JsonPropertyName("keep_current_voice")] public bool? KeepCurrentVoice { get; set; } @@ -120,7 +120,7 @@ public sealed partial class AgentSwapTool /// /// /// - /// If true, keep the current voice when swapping agents. Defaults to false. + /// If true, keep the current voice and ambient sound settings when swapping agents. Otherwise, use the destination agent's voice and ambient sound settings. Defaults to false. /// /// /// If true, keep the current language when swapping agents. Defaults to false. diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AgentVersionSummary.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AgentVersionSummary.Json.g.cs new file mode 100644 index 00000000..408ba0bc --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AgentVersionSummary.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class AgentVersionSummary + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.AgentVersionSummary? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.AgentVersionSummary), + jsonSerializerContext) as global::RetellAI.AgentVersionSummary; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.AgentVersionSummary? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.AgentVersionSummary? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.AgentVersionSummary), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.AgentVersionSummary; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AgentVersionSummary.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AgentVersionSummary.g.cs new file mode 100644 index 00000000..10d01a82 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AgentVersionSummary.g.cs @@ -0,0 +1,116 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class AgentVersionSummary + { + /// + /// Version number of the agent.
+ /// Example: 3 + ///
+ /// 3 + [global::System.Text.Json.Serialization.JsonPropertyName("version")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Version { get; set; } + + /// + /// Whether the agent version is published.
+ /// Example: false + ///
+ /// false + [global::System.Text.Json.Serialization.JsonPropertyName("is_published")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool IsPublished { get; set; } + + /// + /// Optional title of the agent version. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("version_title")] + public string? VersionTitle { get; set; } + + /// + /// Optional description of the agent version. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("version_description")] + public string? VersionDescription { get; set; } + + /// + /// Version that this agent version was based on.
+ /// Example: 2 + ///
+ /// 2 + [global::System.Text.Json.Serialization.JsonPropertyName("base_version")] + public int? BaseVersion { get; set; } + + /// + /// Last modification timestamp in milliseconds since epoch.
+ /// Example: 1703413636133 + ///
+ /// 1703413636133 + [global::System.Text.Json.Serialization.JsonPropertyName("last_modification_timestamp")] + [global::System.Text.Json.Serialization.JsonRequired] + public required long LastModificationTimestamp { 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. + /// + /// + /// Version number of the agent.
+ /// Example: 3 + /// + /// + /// Whether the agent version is published.
+ /// Example: false + /// + /// + /// Last modification timestamp in milliseconds since epoch.
+ /// Example: 1703413636133 + /// + /// + /// Optional title of the agent version. + /// + /// + /// Optional description of the agent version. + /// + /// + /// Version that this agent version was based on.
+ /// Example: 2 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AgentVersionSummary( + int version, + bool isPublished, + long lastModificationTimestamp, + string? versionTitle, + string? versionDescription, + int? baseVersion) + { + this.Version = version; + this.IsPublished = isPublished; + this.VersionTitle = versionTitle; + this.VersionDescription = versionDescription; + this.BaseVersion = baseVersion; + this.LastModificationTimestamp = lastModificationTimestamp; + } + + /// + /// Initializes a new instance of the class. + /// + public AgentVersionSummary() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ApiKeyAuthConfigRequest.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ApiKeyAuthConfigRequest.Json.g.cs new file mode 100644 index 00000000..6721d915 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ApiKeyAuthConfigRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ApiKeyAuthConfigRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ApiKeyAuthConfigRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ApiKeyAuthConfigRequest), + jsonSerializerContext) as global::RetellAI.ApiKeyAuthConfigRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ApiKeyAuthConfigRequest? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ApiKeyAuthConfigRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ApiKeyAuthConfigRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ApiKeyAuthConfigRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ApiKeyAuthConfigRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ApiKeyAuthConfigRequest.g.cs new file mode 100644 index 00000000..9ce0af24 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ApiKeyAuthConfigRequest.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ApiKeyAuthConfigRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ApiKeyAuthConfigRequestTypeJsonConverter))] + public global::RetellAI.ApiKeyAuthConfigRequestType Type { get; set; } + + /// + /// API key credential; stored encrypted at rest. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ApiKey { 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. + /// + /// + /// API key credential; stored encrypted at rest. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ApiKeyAuthConfigRequest( + string apiKey, + global::RetellAI.ApiKeyAuthConfigRequestType type) + { + this.Type = type; + this.ApiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); + } + + /// + /// Initializes a new instance of the class. + /// + public ApiKeyAuthConfigRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ApiKeyAuthConfigRequestType.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ApiKeyAuthConfigRequestType.g.cs new file mode 100644 index 00000000..1bf1587f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ApiKeyAuthConfigRequestType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ApiKeyAuthConfigRequestType + { + /// + /// + /// + ApiKey, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ApiKeyAuthConfigRequestTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ApiKeyAuthConfigRequestType value) + { + return value switch + { + ApiKeyAuthConfigRequestType.ApiKey => "api_key", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ApiKeyAuthConfigRequestType? ToEnum(string value) + { + return value switch + { + "api_key" => ApiKeyAuthConfigRequestType.ApiKey, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ApiKeyAuthConfigResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ApiKeyAuthConfigResponse.Json.g.cs new file mode 100644 index 00000000..ebb5638b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ApiKeyAuthConfigResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ApiKeyAuthConfigResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ApiKeyAuthConfigResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ApiKeyAuthConfigResponse), + jsonSerializerContext) as global::RetellAI.ApiKeyAuthConfigResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ApiKeyAuthConfigResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ApiKeyAuthConfigResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ApiKeyAuthConfigResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ApiKeyAuthConfigResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ApiKeyAuthConfigResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ApiKeyAuthConfigResponse.g.cs new file mode 100644 index 00000000..19f84865 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ApiKeyAuthConfigResponse.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ApiKeyAuthConfigResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ApiKeyAuthConfigResponseTypeJsonConverter))] + public global::RetellAI.ApiKeyAuthConfigResponseType Type { 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 ApiKeyAuthConfigResponse( + global::RetellAI.ApiKeyAuthConfigResponseType type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ApiKeyAuthConfigResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ApiKeyAuthConfigResponseType.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ApiKeyAuthConfigResponseType.g.cs new file mode 100644 index 00000000..f2370ee4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ApiKeyAuthConfigResponseType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ApiKeyAuthConfigResponseType + { + /// + /// + /// + ApiKey, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ApiKeyAuthConfigResponseTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ApiKeyAuthConfigResponseType value) + { + return value switch + { + ApiKeyAuthConfigResponseType.ApiKey => "api_key", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ApiKeyAuthConfigResponseType? ToEnum(string value) + { + return value switch + { + "api_key" => ApiKeyAuthConfigResponseType.ApiKey, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AppAuthConfigResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AppAuthConfigResponse.Json.g.cs new file mode 100644 index 00000000..fb86d841 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AppAuthConfigResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public readonly partial struct AppAuthConfigResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.AppAuthConfigResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.AppAuthConfigResponse), + jsonSerializerContext) as global::RetellAI.AppAuthConfigResponse?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.AppAuthConfigResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.AppAuthConfigResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.AppAuthConfigResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.AppAuthConfigResponse?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AppAuthConfigResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AppAuthConfigResponse.g.cs new file mode 100644 index 00000000..d1dcf94b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AppAuthConfigResponse.g.cs @@ -0,0 +1,544 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace RetellAI +{ + /// + /// Non-secret auth metadata. Encrypted secret fields are never returned by the API. + /// + public readonly partial struct AppAuthConfigResponse : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.OAuthConfigResponse? O { get; init; } +#else + public global::RetellAI.OAuthConfigResponse? O { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(O))] +#endif + public bool IsO => O != null; + + /// + /// + /// + public bool TryPickO( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::RetellAI.OAuthConfigResponse? value) + { + value = O; + return IsO; + } + + /// + /// + /// + public global::RetellAI.OAuthConfigResponse PickO() => IsO + ? O! + : throw new global::System.InvalidOperationException($"Expected union variant 'O' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.ApiKeyAuthConfigResponse? ApiKey { get; init; } +#else + public global::RetellAI.ApiKeyAuthConfigResponse? ApiKey { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApiKey))] +#endif + public bool IsApiKey => ApiKey != null; + + /// + /// + /// + public bool TryPickApiKey( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::RetellAI.ApiKeyAuthConfigResponse? value) + { + value = ApiKey; + return IsApiKey; + } + + /// + /// + /// + public global::RetellAI.ApiKeyAuthConfigResponse PickApiKey() => IsApiKey + ? ApiKey! + : throw new global::System.InvalidOperationException($"Expected union variant 'ApiKey' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.AccessTokenAuthConfigResponse? AccessToken { get; init; } +#else + public global::RetellAI.AccessTokenAuthConfigResponse? AccessToken { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AccessToken))] +#endif + public bool IsAccessToken => AccessToken != null; + + /// + /// + /// + public bool TryPickAccessToken( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::RetellAI.AccessTokenAuthConfigResponse? value) + { + value = AccessToken; + return IsAccessToken; + } + + /// + /// + /// + public global::RetellAI.AccessTokenAuthConfigResponse PickAccessToken() => IsAccessToken + ? AccessToken! + : throw new global::System.InvalidOperationException($"Expected union variant 'AccessToken' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.BasicAuthConfigResponse? Basic { get; init; } +#else + public global::RetellAI.BasicAuthConfigResponse? Basic { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Basic))] +#endif + public bool IsBasic => Basic != null; + + /// + /// + /// + public bool TryPickBasic( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::RetellAI.BasicAuthConfigResponse? value) + { + value = Basic; + return IsBasic; + } + + /// + /// + /// + public global::RetellAI.BasicAuthConfigResponse PickBasic() => IsBasic + ? Basic! + : throw new global::System.InvalidOperationException($"Expected union variant 'Basic' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.RefreshTokenAuthConfigResponse? RefreshToken { get; init; } +#else + public global::RetellAI.RefreshTokenAuthConfigResponse? RefreshToken { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RefreshToken))] +#endif + public bool IsRefreshToken => RefreshToken != null; + + /// + /// + /// + public bool TryPickRefreshToken( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::RetellAI.RefreshTokenAuthConfigResponse? value) + { + value = RefreshToken; + return IsRefreshToken; + } + + /// + /// + /// + public global::RetellAI.RefreshTokenAuthConfigResponse PickRefreshToken() => IsRefreshToken + ? RefreshToken! + : throw new global::System.InvalidOperationException($"Expected union variant 'RefreshToken' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator AppAuthConfigResponse(global::RetellAI.OAuthConfigResponse value) => new AppAuthConfigResponse((global::RetellAI.OAuthConfigResponse?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.OAuthConfigResponse?(AppAuthConfigResponse @this) => @this.O; + + /// + /// + /// + public AppAuthConfigResponse(global::RetellAI.OAuthConfigResponse? value) + { + O = value; + } + + /// + /// + /// + public static AppAuthConfigResponse FromO(global::RetellAI.OAuthConfigResponse? value) => new AppAuthConfigResponse(value); + + /// + /// + /// + public static implicit operator AppAuthConfigResponse(global::RetellAI.ApiKeyAuthConfigResponse value) => new AppAuthConfigResponse((global::RetellAI.ApiKeyAuthConfigResponse?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.ApiKeyAuthConfigResponse?(AppAuthConfigResponse @this) => @this.ApiKey; + + /// + /// + /// + public AppAuthConfigResponse(global::RetellAI.ApiKeyAuthConfigResponse? value) + { + ApiKey = value; + } + + /// + /// + /// + public static AppAuthConfigResponse FromApiKey(global::RetellAI.ApiKeyAuthConfigResponse? value) => new AppAuthConfigResponse(value); + + /// + /// + /// + public static implicit operator AppAuthConfigResponse(global::RetellAI.AccessTokenAuthConfigResponse value) => new AppAuthConfigResponse((global::RetellAI.AccessTokenAuthConfigResponse?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.AccessTokenAuthConfigResponse?(AppAuthConfigResponse @this) => @this.AccessToken; + + /// + /// + /// + public AppAuthConfigResponse(global::RetellAI.AccessTokenAuthConfigResponse? value) + { + AccessToken = value; + } + + /// + /// + /// + public static AppAuthConfigResponse FromAccessToken(global::RetellAI.AccessTokenAuthConfigResponse? value) => new AppAuthConfigResponse(value); + + /// + /// + /// + public static implicit operator AppAuthConfigResponse(global::RetellAI.BasicAuthConfigResponse value) => new AppAuthConfigResponse((global::RetellAI.BasicAuthConfigResponse?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.BasicAuthConfigResponse?(AppAuthConfigResponse @this) => @this.Basic; + + /// + /// + /// + public AppAuthConfigResponse(global::RetellAI.BasicAuthConfigResponse? value) + { + Basic = value; + } + + /// + /// + /// + public static AppAuthConfigResponse FromBasic(global::RetellAI.BasicAuthConfigResponse? value) => new AppAuthConfigResponse(value); + + /// + /// + /// + public static implicit operator AppAuthConfigResponse(global::RetellAI.RefreshTokenAuthConfigResponse value) => new AppAuthConfigResponse((global::RetellAI.RefreshTokenAuthConfigResponse?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.RefreshTokenAuthConfigResponse?(AppAuthConfigResponse @this) => @this.RefreshToken; + + /// + /// + /// + public AppAuthConfigResponse(global::RetellAI.RefreshTokenAuthConfigResponse? value) + { + RefreshToken = value; + } + + /// + /// + /// + public static AppAuthConfigResponse FromRefreshToken(global::RetellAI.RefreshTokenAuthConfigResponse? value) => new AppAuthConfigResponse(value); + + /// + /// + /// + public AppAuthConfigResponse( + global::RetellAI.OAuthConfigResponse? o, + global::RetellAI.ApiKeyAuthConfigResponse? apiKey, + global::RetellAI.AccessTokenAuthConfigResponse? accessToken, + global::RetellAI.BasicAuthConfigResponse? basic, + global::RetellAI.RefreshTokenAuthConfigResponse? refreshToken + ) + { + O = o; + ApiKey = apiKey; + AccessToken = accessToken; + Basic = basic; + RefreshToken = refreshToken; + } + + /// + /// + /// + public object? Object => + RefreshToken as object ?? + Basic as object ?? + AccessToken as object ?? + ApiKey as object ?? + O as object + ; + + /// + /// + /// + public override string? ToString() => + O?.ToString() ?? + ApiKey?.ToString() ?? + AccessToken?.ToString() ?? + Basic?.ToString() ?? + RefreshToken?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsO && !IsApiKey && !IsAccessToken && !IsBasic && !IsRefreshToken || !IsO && IsApiKey && !IsAccessToken && !IsBasic && !IsRefreshToken || !IsO && !IsApiKey && IsAccessToken && !IsBasic && !IsRefreshToken || !IsO && !IsApiKey && !IsAccessToken && IsBasic && !IsRefreshToken || !IsO && !IsApiKey && !IsAccessToken && !IsBasic && IsRefreshToken; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? o = null, + global::System.Func? apiKey = null, + global::System.Func? accessToken = null, + global::System.Func? basic = null, + global::System.Func? refreshToken = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsO && o != null) + { + return o(O!); + } + else if (IsApiKey && apiKey != null) + { + return apiKey(ApiKey!); + } + else if (IsAccessToken && accessToken != null) + { + return accessToken(AccessToken!); + } + else if (IsBasic && basic != null) + { + return basic(Basic!); + } + else if (IsRefreshToken && refreshToken != null) + { + return refreshToken(RefreshToken!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? o = null, + + global::System.Action? apiKey = null, + + global::System.Action? accessToken = null, + + global::System.Action? basic = null, + + global::System.Action? refreshToken = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsO) + { + o?.Invoke(O!); + } + else if (IsApiKey) + { + apiKey?.Invoke(ApiKey!); + } + else if (IsAccessToken) + { + accessToken?.Invoke(AccessToken!); + } + else if (IsBasic) + { + basic?.Invoke(Basic!); + } + else if (IsRefreshToken) + { + refreshToken?.Invoke(RefreshToken!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? o = null, + global::System.Action? apiKey = null, + global::System.Action? accessToken = null, + global::System.Action? basic = null, + global::System.Action? refreshToken = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsO) + { + o?.Invoke(O!); + } + else if (IsApiKey) + { + apiKey?.Invoke(ApiKey!); + } + else if (IsAccessToken) + { + accessToken?.Invoke(AccessToken!); + } + else if (IsBasic) + { + basic?.Invoke(Basic!); + } + else if (IsRefreshToken) + { + refreshToken?.Invoke(RefreshToken!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + O, + typeof(global::RetellAI.OAuthConfigResponse), + ApiKey, + typeof(global::RetellAI.ApiKeyAuthConfigResponse), + AccessToken, + typeof(global::RetellAI.AccessTokenAuthConfigResponse), + Basic, + typeof(global::RetellAI.BasicAuthConfigResponse), + RefreshToken, + typeof(global::RetellAI.RefreshTokenAuthConfigResponse), + }; + 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(AppAuthConfigResponse other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(O, other.O) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ApiKey, other.ApiKey) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AccessToken, other.AccessToken) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Basic, other.Basic) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RefreshToken, other.RefreshToken) + ; + } + + /// + /// + /// + public static bool operator ==(AppAuthConfigResponse obj1, AppAuthConfigResponse obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(AppAuthConfigResponse obj1, AppAuthConfigResponse obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is AppAuthConfigResponse o && Equals(o); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AppCRMConfig.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AppCRMConfig.Json.g.cs new file mode 100644 index 00000000..6d0aea47 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AppCRMConfig.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class AppCRMConfig + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.AppCRMConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.AppCRMConfig), + jsonSerializerContext) as global::RetellAI.AppCRMConfig; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.AppCRMConfig? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.AppCRMConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.AppCRMConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.AppCRMConfig; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AppCRMConfig.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AppCRMConfig.g.cs new file mode 100644 index 00000000..c04297b5 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AppCRMConfig.g.cs @@ -0,0 +1,79 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class AppCRMConfig + { + /// + /// Field mappings applied when syncing CRM records into Retell contacts. Must include phone_number, which is the field the two systems are matched on. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inbound_sync_mappings")] + public global::System.Collections.Generic.IList? InboundSyncMappings { get; set; } + + /// + /// Field mappings applied when writing Retell contact changes back to the CRM. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("outbound_sync_mappings")] + public global::System.Collections.Generic.IList? OutboundSyncMappings { get; set; } + + /// + /// Whether to push call/chat activity to the external CRM. Opt-in — defaults to false when unset. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sync_conversation_activity")] + public bool? SyncConversationActivity { get; set; } + + /// + /// Whether to create a CRM record after a conversation when the contact is not yet linked to one. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sync_new_contacts")] + public bool? SyncNewContacts { 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. + /// + /// + /// Field mappings applied when syncing CRM records into Retell contacts. Must include phone_number, which is the field the two systems are matched on. + /// + /// + /// Field mappings applied when writing Retell contact changes back to the CRM. + /// + /// + /// Whether to push call/chat activity to the external CRM. Opt-in — defaults to false when unset. + /// + /// + /// Whether to create a CRM record after a conversation when the contact is not yet linked to one. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AppCRMConfig( + global::System.Collections.Generic.IList? inboundSyncMappings, + global::System.Collections.Generic.IList? outboundSyncMappings, + bool? syncConversationActivity, + bool? syncNewContacts) + { + this.InboundSyncMappings = inboundSyncMappings; + this.OutboundSyncMappings = outboundSyncMappings; + this.SyncConversationActivity = syncConversationActivity; + this.SyncNewContacts = syncNewContacts; + } + + /// + /// Initializes a new instance of the class. + /// + public AppCRMConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AppConnectionStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AppConnectionStatus.g.cs new file mode 100644 index 00000000..6b9e75c3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AppConnectionStatus.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// Connection health of the App, server-managed. `not_connected` after create or a credential / tenant URL change; `connected` once verified via OAuth connect, an auth test, or a successful live tool call; `error` when the provider rejects the credentials (on connect, an auth test, or a live tool call). + /// + public enum AppConnectionStatus + { + /// + /// + /// + Connected, + /// + /// + /// + Error, + /// + /// + /// + NotConnected, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AppConnectionStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AppConnectionStatus value) + { + return value switch + { + AppConnectionStatus.Connected => "connected", + AppConnectionStatus.Error => "error", + AppConnectionStatus.NotConnected => "not_connected", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AppConnectionStatus? ToEnum(string value) + { + return value switch + { + "connected" => AppConnectionStatus.Connected, + "error" => AppConnectionStatus.Error, + "not_connected" => AppConnectionStatus.NotConnected, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AppResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AppResponse.Json.g.cs new file mode 100644 index 00000000..47db390c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AppResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class AppResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.AppResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.AppResponse), + jsonSerializerContext) as global::RetellAI.AppResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.AppResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.AppResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.AppResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.AppResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AppResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AppResponse.g.cs new file mode 100644 index 00000000..30bad6a3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AppResponse.g.cs @@ -0,0 +1,164 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class AppResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("app_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AppId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("org_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string OrgId { get; set; } + + /// + /// App integration category. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.AppTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::RetellAI.AppType Type { get; set; } + + /// + /// Provider name. Must be valid for the App's type; the supported providers per type are listed by list-app-templates. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Provider { get; set; } + + /// + /// Connection health of the App, server-managed. `not_connected` after create or a credential / tenant URL change; `connected` once verified via OAuth connect, an auth test, or a successful live tool call; `error` when the provider rejects the credentials (on connect, an auth test, or a live tool call). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("connection_status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.AppConnectionStatusJsonConverter))] + public global::RetellAI.AppConnectionStatus? ConnectionStatus { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// Per-tenant API base URL. Set by providers with per-org hosts; omitted by providers on a single global host. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tenant_url")] + public string? TenantUrl { get; set; } + + /// + /// Sub-account id, for providers that scope requests by a sub-account id on a shared host. Omitted by every other provider. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tenant_id")] + public string? TenantId { get; set; } + + /// + /// Non-secret auth metadata. Encrypted secret fields are never returned by the API. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("auth_config")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.AppAuthConfigResponseJsonConverter))] + public global::RetellAI.AppAuthConfigResponse? AuthConfig { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("crm_config")] + public global::RetellAI.AppCRMConfig? CrmConfig { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_timestamp")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double CreatedTimestamp { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("user_modified_timestamp")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double UserModifiedTimestamp { 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. + /// + /// + /// + /// + /// App integration category. + /// + /// + /// Provider name. Must be valid for the App's type; the supported providers per type are listed by list-app-templates. + /// + /// + /// + /// + /// Connection health of the App, server-managed. `not_connected` after create or a credential / tenant URL change; `connected` once verified via OAuth connect, an auth test, or a successful live tool call; `error` when the provider rejects the credentials (on connect, an auth test, or a live tool call). + /// + /// + /// + /// Per-tenant API base URL. Set by providers with per-org hosts; omitted by providers on a single global host. + /// + /// + /// Sub-account id, for providers that scope requests by a sub-account id on a shared host. Omitted by every other provider. + /// + /// + /// Non-secret auth metadata. Encrypted secret fields are never returned by the API. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public AppResponse( + string appId, + string orgId, + global::RetellAI.AppType type, + string provider, + double createdTimestamp, + double userModifiedTimestamp, + global::RetellAI.AppConnectionStatus? connectionStatus, + string? name, + string? tenantUrl, + string? tenantId, + global::RetellAI.AppAuthConfigResponse? authConfig, + global::RetellAI.AppCRMConfig? crmConfig) + { + this.AppId = appId ?? throw new global::System.ArgumentNullException(nameof(appId)); + this.OrgId = orgId ?? throw new global::System.ArgumentNullException(nameof(orgId)); + this.Type = type; + this.Provider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); + this.ConnectionStatus = connectionStatus; + this.Name = name; + this.TenantUrl = tenantUrl; + this.TenantId = tenantId; + this.AuthConfig = authConfig; + this.CrmConfig = crmConfig; + this.CreatedTimestamp = createdTimestamp; + this.UserModifiedTimestamp = userModifiedTimestamp; + } + + /// + /// Initializes a new instance of the class. + /// + public AppResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AppType.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AppType.g.cs new file mode 100644 index 00000000..6b372309 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AppType.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// App integration category. + /// + public enum AppType + { + /// + /// + /// + Calendar, + /// + /// + /// + Communication, + /// + /// + /// + Crm, + /// + /// + /// + KnowledgeBase, + /// + /// + /// + Support, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AppTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AppType value) + { + return value switch + { + AppType.Calendar => "calendar", + AppType.Communication => "communication", + AppType.Crm => "crm", + AppType.KnowledgeBase => "knowledge_base", + AppType.Support => "support", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AppType? ToEnum(string value) + { + return value switch + { + "calendar" => AppType.Calendar, + "communication" => AppType.Communication, + "crm" => AppType.Crm, + "knowledge_base" => AppType.KnowledgeBase, + "support" => AppType.Support, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AppUsageResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AppUsageResponse.Json.g.cs new file mode 100644 index 00000000..baae959b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AppUsageResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public readonly partial struct AppUsageResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.AppUsageResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.AppUsageResponse), + jsonSerializerContext) as global::RetellAI.AppUsageResponse?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.AppUsageResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.AppUsageResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.AppUsageResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.AppUsageResponse?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AppUsageResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AppUsageResponse.g.cs new file mode 100644 index 00000000..e3a05de2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AppUsageResponse.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace RetellAI +{ + /// + /// One agent or knowledge base referencing an app. + /// + public readonly partial struct AppUsageResponse : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.AgentAppUsage? Agent { get; init; } +#else + public global::RetellAI.AgentAppUsage? Agent { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Agent))] +#endif + public bool IsAgent => Agent != null; + + /// + /// + /// + public bool TryPickAgent( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::RetellAI.AgentAppUsage? value) + { + value = Agent; + return IsAgent; + } + + /// + /// + /// + public global::RetellAI.AgentAppUsage PickAgent() => IsAgent + ? Agent! + : throw new global::System.InvalidOperationException($"Expected union variant 'Agent' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.KnowledgeBaseAppUsage? KnowledgeBase { get; init; } +#else + public global::RetellAI.KnowledgeBaseAppUsage? KnowledgeBase { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(KnowledgeBase))] +#endif + public bool IsKnowledgeBase => KnowledgeBase != null; + + /// + /// + /// + public bool TryPickKnowledgeBase( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::RetellAI.KnowledgeBaseAppUsage? value) + { + value = KnowledgeBase; + return IsKnowledgeBase; + } + + /// + /// + /// + public global::RetellAI.KnowledgeBaseAppUsage PickKnowledgeBase() => IsKnowledgeBase + ? KnowledgeBase! + : throw new global::System.InvalidOperationException($"Expected union variant 'KnowledgeBase' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator AppUsageResponse(global::RetellAI.AgentAppUsage value) => new AppUsageResponse((global::RetellAI.AgentAppUsage?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.AgentAppUsage?(AppUsageResponse @this) => @this.Agent; + + /// + /// + /// + public AppUsageResponse(global::RetellAI.AgentAppUsage? value) + { + Agent = value; + } + + /// + /// + /// + public static AppUsageResponse FromAgent(global::RetellAI.AgentAppUsage? value) => new AppUsageResponse(value); + + /// + /// + /// + public static implicit operator AppUsageResponse(global::RetellAI.KnowledgeBaseAppUsage value) => new AppUsageResponse((global::RetellAI.KnowledgeBaseAppUsage?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.KnowledgeBaseAppUsage?(AppUsageResponse @this) => @this.KnowledgeBase; + + /// + /// + /// + public AppUsageResponse(global::RetellAI.KnowledgeBaseAppUsage? value) + { + KnowledgeBase = value; + } + + /// + /// + /// + public static AppUsageResponse FromKnowledgeBase(global::RetellAI.KnowledgeBaseAppUsage? value) => new AppUsageResponse(value); + + /// + /// + /// + public AppUsageResponse( + global::RetellAI.AgentAppUsage? agent, + global::RetellAI.KnowledgeBaseAppUsage? knowledgeBase + ) + { + Agent = agent; + KnowledgeBase = knowledgeBase; + } + + /// + /// + /// + public object? Object => + KnowledgeBase as object ?? + Agent as object + ; + + /// + /// + /// + public override string? ToString() => + Agent?.ToString() ?? + KnowledgeBase?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsAgent && !IsKnowledgeBase || !IsAgent && IsKnowledgeBase; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? agent = null, + global::System.Func? knowledgeBase = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAgent && agent != null) + { + return agent(Agent!); + } + else if (IsKnowledgeBase && knowledgeBase != null) + { + return knowledgeBase(KnowledgeBase!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? agent = null, + + global::System.Action? knowledgeBase = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAgent) + { + agent?.Invoke(Agent!); + } + else if (IsKnowledgeBase) + { + knowledgeBase?.Invoke(KnowledgeBase!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? agent = null, + global::System.Action? knowledgeBase = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsAgent) + { + agent?.Invoke(Agent!); + } + else if (IsKnowledgeBase) + { + knowledgeBase?.Invoke(KnowledgeBase!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Agent, + typeof(global::RetellAI.AgentAppUsage), + KnowledgeBase, + typeof(global::RetellAI.KnowledgeBaseAppUsage), + }; + 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(AppUsageResponse other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Agent, other.Agent) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(KnowledgeBase, other.KnowledgeBase) + ; + } + + /// + /// + /// + public static bool operator ==(AppUsageResponse obj1, AppUsageResponse obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(AppUsageResponse obj1, AppUsageResponse obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is AppUsageResponse o && Equals(o); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AuthConfigRequest.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AuthConfigRequest.Json.g.cs new file mode 100644 index 00000000..7614ba70 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AuthConfigRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public readonly partial struct AuthConfigRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.AuthConfigRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.AuthConfigRequest), + jsonSerializerContext) as global::RetellAI.AuthConfigRequest?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.AuthConfigRequest? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.AuthConfigRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.AuthConfigRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.AuthConfigRequest?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AuthConfigRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AuthConfigRequest.g.cs new file mode 100644 index 00000000..19815737 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AuthConfigRequest.g.cs @@ -0,0 +1,544 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public readonly partial struct AuthConfigRequest : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.OAuthConfigRequest? O { get; init; } +#else + public global::RetellAI.OAuthConfigRequest? O { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(O))] +#endif + public bool IsO => O != null; + + /// + /// + /// + public bool TryPickO( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::RetellAI.OAuthConfigRequest? value) + { + value = O; + return IsO; + } + + /// + /// + /// + public global::RetellAI.OAuthConfigRequest PickO() => IsO + ? O! + : throw new global::System.InvalidOperationException($"Expected union variant 'O' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.ApiKeyAuthConfigRequest? ApiKey { get; init; } +#else + public global::RetellAI.ApiKeyAuthConfigRequest? ApiKey { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ApiKey))] +#endif + public bool IsApiKey => ApiKey != null; + + /// + /// + /// + public bool TryPickApiKey( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::RetellAI.ApiKeyAuthConfigRequest? value) + { + value = ApiKey; + return IsApiKey; + } + + /// + /// + /// + public global::RetellAI.ApiKeyAuthConfigRequest PickApiKey() => IsApiKey + ? ApiKey! + : throw new global::System.InvalidOperationException($"Expected union variant 'ApiKey' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.AccessTokenAuthConfigRequest? AccessToken { get; init; } +#else + public global::RetellAI.AccessTokenAuthConfigRequest? AccessToken { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AccessToken))] +#endif + public bool IsAccessToken => AccessToken != null; + + /// + /// + /// + public bool TryPickAccessToken( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::RetellAI.AccessTokenAuthConfigRequest? value) + { + value = AccessToken; + return IsAccessToken; + } + + /// + /// + /// + public global::RetellAI.AccessTokenAuthConfigRequest PickAccessToken() => IsAccessToken + ? AccessToken! + : throw new global::System.InvalidOperationException($"Expected union variant 'AccessToken' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.BasicAuthConfigRequest? Basic { get; init; } +#else + public global::RetellAI.BasicAuthConfigRequest? Basic { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Basic))] +#endif + public bool IsBasic => Basic != null; + + /// + /// + /// + public bool TryPickBasic( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::RetellAI.BasicAuthConfigRequest? value) + { + value = Basic; + return IsBasic; + } + + /// + /// + /// + public global::RetellAI.BasicAuthConfigRequest PickBasic() => IsBasic + ? Basic! + : throw new global::System.InvalidOperationException($"Expected union variant 'Basic' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.RefreshTokenAuthConfigRequest? RefreshToken { get; init; } +#else + public global::RetellAI.RefreshTokenAuthConfigRequest? RefreshToken { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RefreshToken))] +#endif + public bool IsRefreshToken => RefreshToken != null; + + /// + /// + /// + public bool TryPickRefreshToken( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::RetellAI.RefreshTokenAuthConfigRequest? value) + { + value = RefreshToken; + return IsRefreshToken; + } + + /// + /// + /// + public global::RetellAI.RefreshTokenAuthConfigRequest PickRefreshToken() => IsRefreshToken + ? RefreshToken! + : throw new global::System.InvalidOperationException($"Expected union variant 'RefreshToken' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator AuthConfigRequest(global::RetellAI.OAuthConfigRequest value) => new AuthConfigRequest((global::RetellAI.OAuthConfigRequest?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.OAuthConfigRequest?(AuthConfigRequest @this) => @this.O; + + /// + /// + /// + public AuthConfigRequest(global::RetellAI.OAuthConfigRequest? value) + { + O = value; + } + + /// + /// + /// + public static AuthConfigRequest FromO(global::RetellAI.OAuthConfigRequest? value) => new AuthConfigRequest(value); + + /// + /// + /// + public static implicit operator AuthConfigRequest(global::RetellAI.ApiKeyAuthConfigRequest value) => new AuthConfigRequest((global::RetellAI.ApiKeyAuthConfigRequest?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.ApiKeyAuthConfigRequest?(AuthConfigRequest @this) => @this.ApiKey; + + /// + /// + /// + public AuthConfigRequest(global::RetellAI.ApiKeyAuthConfigRequest? value) + { + ApiKey = value; + } + + /// + /// + /// + public static AuthConfigRequest FromApiKey(global::RetellAI.ApiKeyAuthConfigRequest? value) => new AuthConfigRequest(value); + + /// + /// + /// + public static implicit operator AuthConfigRequest(global::RetellAI.AccessTokenAuthConfigRequest value) => new AuthConfigRequest((global::RetellAI.AccessTokenAuthConfigRequest?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.AccessTokenAuthConfigRequest?(AuthConfigRequest @this) => @this.AccessToken; + + /// + /// + /// + public AuthConfigRequest(global::RetellAI.AccessTokenAuthConfigRequest? value) + { + AccessToken = value; + } + + /// + /// + /// + public static AuthConfigRequest FromAccessToken(global::RetellAI.AccessTokenAuthConfigRequest? value) => new AuthConfigRequest(value); + + /// + /// + /// + public static implicit operator AuthConfigRequest(global::RetellAI.BasicAuthConfigRequest value) => new AuthConfigRequest((global::RetellAI.BasicAuthConfigRequest?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.BasicAuthConfigRequest?(AuthConfigRequest @this) => @this.Basic; + + /// + /// + /// + public AuthConfigRequest(global::RetellAI.BasicAuthConfigRequest? value) + { + Basic = value; + } + + /// + /// + /// + public static AuthConfigRequest FromBasic(global::RetellAI.BasicAuthConfigRequest? value) => new AuthConfigRequest(value); + + /// + /// + /// + public static implicit operator AuthConfigRequest(global::RetellAI.RefreshTokenAuthConfigRequest value) => new AuthConfigRequest((global::RetellAI.RefreshTokenAuthConfigRequest?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.RefreshTokenAuthConfigRequest?(AuthConfigRequest @this) => @this.RefreshToken; + + /// + /// + /// + public AuthConfigRequest(global::RetellAI.RefreshTokenAuthConfigRequest? value) + { + RefreshToken = value; + } + + /// + /// + /// + public static AuthConfigRequest FromRefreshToken(global::RetellAI.RefreshTokenAuthConfigRequest? value) => new AuthConfigRequest(value); + + /// + /// + /// + public AuthConfigRequest( + global::RetellAI.OAuthConfigRequest? o, + global::RetellAI.ApiKeyAuthConfigRequest? apiKey, + global::RetellAI.AccessTokenAuthConfigRequest? accessToken, + global::RetellAI.BasicAuthConfigRequest? basic, + global::RetellAI.RefreshTokenAuthConfigRequest? refreshToken + ) + { + O = o; + ApiKey = apiKey; + AccessToken = accessToken; + Basic = basic; + RefreshToken = refreshToken; + } + + /// + /// + /// + public object? Object => + RefreshToken as object ?? + Basic as object ?? + AccessToken as object ?? + ApiKey as object ?? + O as object + ; + + /// + /// + /// + public override string? ToString() => + O?.ToString() ?? + ApiKey?.ToString() ?? + AccessToken?.ToString() ?? + Basic?.ToString() ?? + RefreshToken?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsO && !IsApiKey && !IsAccessToken && !IsBasic && !IsRefreshToken || !IsO && IsApiKey && !IsAccessToken && !IsBasic && !IsRefreshToken || !IsO && !IsApiKey && IsAccessToken && !IsBasic && !IsRefreshToken || !IsO && !IsApiKey && !IsAccessToken && IsBasic && !IsRefreshToken || !IsO && !IsApiKey && !IsAccessToken && !IsBasic && IsRefreshToken; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? o = null, + global::System.Func? apiKey = null, + global::System.Func? accessToken = null, + global::System.Func? basic = null, + global::System.Func? refreshToken = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsO && o != null) + { + return o(O!); + } + else if (IsApiKey && apiKey != null) + { + return apiKey(ApiKey!); + } + else if (IsAccessToken && accessToken != null) + { + return accessToken(AccessToken!); + } + else if (IsBasic && basic != null) + { + return basic(Basic!); + } + else if (IsRefreshToken && refreshToken != null) + { + return refreshToken(RefreshToken!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? o = null, + + global::System.Action? apiKey = null, + + global::System.Action? accessToken = null, + + global::System.Action? basic = null, + + global::System.Action? refreshToken = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsO) + { + o?.Invoke(O!); + } + else if (IsApiKey) + { + apiKey?.Invoke(ApiKey!); + } + else if (IsAccessToken) + { + accessToken?.Invoke(AccessToken!); + } + else if (IsBasic) + { + basic?.Invoke(Basic!); + } + else if (IsRefreshToken) + { + refreshToken?.Invoke(RefreshToken!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? o = null, + global::System.Action? apiKey = null, + global::System.Action? accessToken = null, + global::System.Action? basic = null, + global::System.Action? refreshToken = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsO) + { + o?.Invoke(O!); + } + else if (IsApiKey) + { + apiKey?.Invoke(ApiKey!); + } + else if (IsAccessToken) + { + accessToken?.Invoke(AccessToken!); + } + else if (IsBasic) + { + basic?.Invoke(Basic!); + } + else if (IsRefreshToken) + { + refreshToken?.Invoke(RefreshToken!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + O, + typeof(global::RetellAI.OAuthConfigRequest), + ApiKey, + typeof(global::RetellAI.ApiKeyAuthConfigRequest), + AccessToken, + typeof(global::RetellAI.AccessTokenAuthConfigRequest), + Basic, + typeof(global::RetellAI.BasicAuthConfigRequest), + RefreshToken, + typeof(global::RetellAI.RefreshTokenAuthConfigRequest), + }; + 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(AuthConfigRequest other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(O, other.O) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ApiKey, other.ApiKey) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AccessToken, other.AccessToken) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Basic, other.Basic) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RefreshToken, other.RefreshToken) + ; + } + + /// + /// + /// + public static bool operator ==(AuthConfigRequest obj1, AuthConfigRequest obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(AuthConfigRequest obj1, AuthConfigRequest obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is AuthConfigRequest o && Equals(o); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataRequest.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataRequest.Json.g.cs new file mode 100644 index 00000000..f5acef16 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class BackfillContactAnalysisDataRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.BackfillContactAnalysisDataRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.BackfillContactAnalysisDataRequest), + jsonSerializerContext) as global::RetellAI.BackfillContactAnalysisDataRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.BackfillContactAnalysisDataRequest? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.BackfillContactAnalysisDataRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.BackfillContactAnalysisDataRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.BackfillContactAnalysisDataRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataRequest.g.cs new file mode 100644 index 00000000..208142ed --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataRequest.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class BackfillContactAnalysisDataRequest + { + /// + /// Optional call filter to scope which calls are processed. Supports agent and start_timestamp from the standard call filter. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("backfill_call_filter")] + public global::RetellAI.BackfillContactAnalysisDataRequestBackfillCallFilter? BackfillCallFilter { get; set; } + + /// + /// Contact fields to recompute. Each one must still exist as a contact field and have an analysis data mapping configured, otherwise the request is rejected rather than running a job that writes nothing. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("backfill_attributes")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList BackfillAttributes { 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. + /// + /// + /// Contact fields to recompute. Each one must still exist as a contact field and have an analysis data mapping configured, otherwise the request is rejected rather than running a job that writes nothing. + /// + /// + /// Optional call filter to scope which calls are processed. Supports agent and start_timestamp from the standard call filter. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BackfillContactAnalysisDataRequest( + global::System.Collections.Generic.IList backfillAttributes, + global::RetellAI.BackfillContactAnalysisDataRequestBackfillCallFilter? backfillCallFilter) + { + this.BackfillCallFilter = backfillCallFilter; + this.BackfillAttributes = backfillAttributes ?? throw new global::System.ArgumentNullException(nameof(backfillAttributes)); + } + + /// + /// Initializes a new instance of the class. + /// + public BackfillContactAnalysisDataRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataRequestBackfillCallFilter.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataRequestBackfillCallFilter.Json.g.cs new file mode 100644 index 00000000..4178fb2f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataRequestBackfillCallFilter.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class BackfillContactAnalysisDataRequestBackfillCallFilter + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.BackfillContactAnalysisDataRequestBackfillCallFilter? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.BackfillContactAnalysisDataRequestBackfillCallFilter), + jsonSerializerContext) as global::RetellAI.BackfillContactAnalysisDataRequestBackfillCallFilter; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.BackfillContactAnalysisDataRequestBackfillCallFilter? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.BackfillContactAnalysisDataRequestBackfillCallFilter? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.BackfillContactAnalysisDataRequestBackfillCallFilter), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.BackfillContactAnalysisDataRequestBackfillCallFilter; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataRequestBackfillCallFilter.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataRequestBackfillCallFilter.g.cs new file mode 100644 index 00000000..ebacb071 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataRequestBackfillCallFilter.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// Optional call filter to scope which calls are processed. Supports agent and start_timestamp from the standard call filter. + /// + public sealed partial class BackfillContactAnalysisDataRequestBackfillCallFilter + { + /// + /// Filter calls by agent. Agents are OR-connected. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("agent")] + public global::System.Collections.Generic.IList? Agent { get; set; } + + /// + /// Filter calls by start timestamp (epoch ms). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("start_timestamp")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.OneOfJsonConverter))] + public global::RetellAI.OneOf? StartTimestamp { 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 calls by agent. Agents are OR-connected. + /// + /// + /// Filter calls by start timestamp (epoch ms). + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BackfillContactAnalysisDataRequestBackfillCallFilter( + global::System.Collections.Generic.IList? agent, + global::RetellAI.OneOf? startTimestamp) + { + this.Agent = agent; + this.StartTimestamp = startTimestamp; + } + + /// + /// Initializes a new instance of the class. + /// + public BackfillContactAnalysisDataRequestBackfillCallFilter() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse.Json.g.cs new file mode 100644 index 00000000..507d724a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class BackfillContactAnalysisDataResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.BackfillContactAnalysisDataResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.BackfillContactAnalysisDataResponse), + jsonSerializerContext) as global::RetellAI.BackfillContactAnalysisDataResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.BackfillContactAnalysisDataResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.BackfillContactAnalysisDataResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.BackfillContactAnalysisDataResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.BackfillContactAnalysisDataResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse.g.cs new file mode 100644 index 00000000..844684d2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class BackfillContactAnalysisDataResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatusJsonConverter))] + public global::RetellAI.BackfillContactAnalysisDataResponseStatus? 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 BackfillContactAnalysisDataResponse( + global::RetellAI.BackfillContactAnalysisDataResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public BackfillContactAnalysisDataResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse2.Json.g.cs new file mode 100644 index 00000000..22e378a8 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class BackfillContactAnalysisDataResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.BackfillContactAnalysisDataResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.BackfillContactAnalysisDataResponse2), + jsonSerializerContext) as global::RetellAI.BackfillContactAnalysisDataResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.BackfillContactAnalysisDataResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.BackfillContactAnalysisDataResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.BackfillContactAnalysisDataResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.BackfillContactAnalysisDataResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse2.g.cs new file mode 100644 index 00000000..b4bb6838 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class BackfillContactAnalysisDataResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus2JsonConverter))] + public global::RetellAI.BackfillContactAnalysisDataResponseStatus2? 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 BackfillContactAnalysisDataResponse2( + global::RetellAI.BackfillContactAnalysisDataResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public BackfillContactAnalysisDataResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse3.Json.g.cs new file mode 100644 index 00000000..ecca69b7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class BackfillContactAnalysisDataResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.BackfillContactAnalysisDataResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.BackfillContactAnalysisDataResponse3), + jsonSerializerContext) as global::RetellAI.BackfillContactAnalysisDataResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.BackfillContactAnalysisDataResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.BackfillContactAnalysisDataResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.BackfillContactAnalysisDataResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.BackfillContactAnalysisDataResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse3.g.cs new file mode 100644 index 00000000..3670abfb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class BackfillContactAnalysisDataResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus3JsonConverter))] + public global::RetellAI.BackfillContactAnalysisDataResponseStatus3? 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 BackfillContactAnalysisDataResponse3( + global::RetellAI.BackfillContactAnalysisDataResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public BackfillContactAnalysisDataResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse4.Json.g.cs new file mode 100644 index 00000000..d60dab80 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class BackfillContactAnalysisDataResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.BackfillContactAnalysisDataResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.BackfillContactAnalysisDataResponse4), + jsonSerializerContext) as global::RetellAI.BackfillContactAnalysisDataResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.BackfillContactAnalysisDataResponse4? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.BackfillContactAnalysisDataResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.BackfillContactAnalysisDataResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.BackfillContactAnalysisDataResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse4.g.cs new file mode 100644 index 00000000..9d596618 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponse4.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class BackfillContactAnalysisDataResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.BackfillContactAnalysisDataResponseStatus4JsonConverter))] + public global::RetellAI.BackfillContactAnalysisDataResponseStatus4? 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 BackfillContactAnalysisDataResponse4( + global::RetellAI.BackfillContactAnalysisDataResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public BackfillContactAnalysisDataResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponseStatus.g.cs new file mode 100644 index 00000000..8e0aec76 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum BackfillContactAnalysisDataResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class BackfillContactAnalysisDataResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this BackfillContactAnalysisDataResponseStatus value) + { + return value switch + { + BackfillContactAnalysisDataResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static BackfillContactAnalysisDataResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => BackfillContactAnalysisDataResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponseStatus2.g.cs new file mode 100644 index 00000000..103896d6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum BackfillContactAnalysisDataResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class BackfillContactAnalysisDataResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this BackfillContactAnalysisDataResponseStatus2 value) + { + return value switch + { + BackfillContactAnalysisDataResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static BackfillContactAnalysisDataResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => BackfillContactAnalysisDataResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponseStatus3.g.cs new file mode 100644 index 00000000..8e5d8e53 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum BackfillContactAnalysisDataResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class BackfillContactAnalysisDataResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this BackfillContactAnalysisDataResponseStatus3 value) + { + return value switch + { + BackfillContactAnalysisDataResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static BackfillContactAnalysisDataResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => BackfillContactAnalysisDataResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponseStatus4.g.cs new file mode 100644 index 00000000..09a95d7e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BackfillContactAnalysisDataResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum BackfillContactAnalysisDataResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class BackfillContactAnalysisDataResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this BackfillContactAnalysisDataResponseStatus4 value) + { + return value switch + { + BackfillContactAnalysisDataResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static BackfillContactAnalysisDataResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => BackfillContactAnalysisDataResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BasicAuthConfigRequest.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BasicAuthConfigRequest.Json.g.cs new file mode 100644 index 00000000..dfcbd2c7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BasicAuthConfigRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class BasicAuthConfigRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.BasicAuthConfigRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.BasicAuthConfigRequest), + jsonSerializerContext) as global::RetellAI.BasicAuthConfigRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.BasicAuthConfigRequest? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.BasicAuthConfigRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.BasicAuthConfigRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.BasicAuthConfigRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BasicAuthConfigRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BasicAuthConfigRequest.g.cs new file mode 100644 index 00000000..25695698 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BasicAuthConfigRequest.g.cs @@ -0,0 +1,67 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class BasicAuthConfigRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.BasicAuthConfigRequestTypeJsonConverter))] + public global::RetellAI.BasicAuthConfigRequestType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("username")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Username { get; set; } + + /// + /// Password credential; stored encrypted at rest. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("password")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Password { 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. + /// + /// + /// + /// Password credential; stored encrypted at rest. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BasicAuthConfigRequest( + string username, + string password, + global::RetellAI.BasicAuthConfigRequestType type) + { + this.Type = type; + this.Username = username ?? throw new global::System.ArgumentNullException(nameof(username)); + this.Password = password ?? throw new global::System.ArgumentNullException(nameof(password)); + } + + /// + /// Initializes a new instance of the class. + /// + public BasicAuthConfigRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BasicAuthConfigRequestType.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BasicAuthConfigRequestType.g.cs new file mode 100644 index 00000000..8b9136a9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BasicAuthConfigRequestType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum BasicAuthConfigRequestType + { + /// + /// + /// + Basic, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class BasicAuthConfigRequestTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this BasicAuthConfigRequestType value) + { + return value switch + { + BasicAuthConfigRequestType.Basic => "basic", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static BasicAuthConfigRequestType? ToEnum(string value) + { + return value switch + { + "basic" => BasicAuthConfigRequestType.Basic, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BasicAuthConfigResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BasicAuthConfigResponse.Json.g.cs new file mode 100644 index 00000000..7493bcc3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BasicAuthConfigResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class BasicAuthConfigResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.BasicAuthConfigResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.BasicAuthConfigResponse), + jsonSerializerContext) as global::RetellAI.BasicAuthConfigResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.BasicAuthConfigResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.BasicAuthConfigResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.BasicAuthConfigResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.BasicAuthConfigResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BasicAuthConfigResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BasicAuthConfigResponse.g.cs new file mode 100644 index 00000000..4d721fed --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BasicAuthConfigResponse.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class BasicAuthConfigResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.BasicAuthConfigResponseTypeJsonConverter))] + public global::RetellAI.BasicAuthConfigResponseType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("username")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Username { 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 BasicAuthConfigResponse( + string username, + global::RetellAI.BasicAuthConfigResponseType type) + { + this.Type = type; + this.Username = username ?? throw new global::System.ArgumentNullException(nameof(username)); + } + + /// + /// Initializes a new instance of the class. + /// + public BasicAuthConfigResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BasicAuthConfigResponseType.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BasicAuthConfigResponseType.g.cs new file mode 100644 index 00000000..07c4f409 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BasicAuthConfigResponseType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum BasicAuthConfigResponseType + { + /// + /// + /// + Basic, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class BasicAuthConfigResponseTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this BasicAuthConfigResponseType value) + { + return value switch + { + BasicAuthConfigResponseType.Basic => "basic", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static BasicAuthConfigResponseType? ToEnum(string value) + { + return value switch + { + "basic" => BasicAuthConfigResponseType.Basic, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CRMAnalysisDataMapping.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CRMAnalysisDataMapping.Json.g.cs new file mode 100644 index 00000000..818a9e0e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CRMAnalysisDataMapping.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class CRMAnalysisDataMapping + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.CRMAnalysisDataMapping? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.CRMAnalysisDataMapping), + jsonSerializerContext) as global::RetellAI.CRMAnalysisDataMapping; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.CRMAnalysisDataMapping? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.CRMAnalysisDataMapping? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.CRMAnalysisDataMapping), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.CRMAnalysisDataMapping; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CRMAnalysisDataMapping.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CRMAnalysisDataMapping.g.cs new file mode 100644 index 00000000..0b58a592 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CRMAnalysisDataMapping.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class CRMAnalysisDataMapping + { + /// + /// Contact field to write to. Must be an existing built-in or custom contact field, and cannot be phone_number, which identifies the contact. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("field_name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string FieldName { get; set; } + + /// + /// Name of the post-call analysis field to read the value from. A value that does not match the contact field's type is skipped rather than failing the conversation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("analysis_data_name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AnalysisDataName { get; set; } + + /// + /// How to reconcile the new value with what the contact already holds. `overwrite` always replaces it, `fill_if_empty` writes only when the field is empty, and `merge` combines the existing text with the new value. `merge` is available on string fields only. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("update_mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.CRMAnalysisDataMappingUpdateModeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::RetellAI.CRMAnalysisDataMappingUpdateMode UpdateMode { 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. + /// + /// + /// Contact field to write to. Must be an existing built-in or custom contact field, and cannot be phone_number, which identifies the contact. + /// + /// + /// Name of the post-call analysis field to read the value from. A value that does not match the contact field's type is skipped rather than failing the conversation. + /// + /// + /// How to reconcile the new value with what the contact already holds. `overwrite` always replaces it, `fill_if_empty` writes only when the field is empty, and `merge` combines the existing text with the new value. `merge` is available on string fields only. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CRMAnalysisDataMapping( + string fieldName, + string analysisDataName, + global::RetellAI.CRMAnalysisDataMappingUpdateMode updateMode) + { + this.FieldName = fieldName ?? throw new global::System.ArgumentNullException(nameof(fieldName)); + this.AnalysisDataName = analysisDataName ?? throw new global::System.ArgumentNullException(nameof(analysisDataName)); + this.UpdateMode = updateMode; + } + + /// + /// Initializes a new instance of the class. + /// + public CRMAnalysisDataMapping() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CRMAnalysisDataMappingUpdateMode.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CRMAnalysisDataMappingUpdateMode.g.cs new file mode 100644 index 00000000..4b9990b1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CRMAnalysisDataMappingUpdateMode.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// How to reconcile the new value with what the contact already holds. `overwrite` always replaces it, `fill_if_empty` writes only when the field is empty, and `merge` combines the existing text with the new value. `merge` is available on string fields only. + /// + public enum CRMAnalysisDataMappingUpdateMode + { + /// + /// + /// + FillIfEmpty, + /// + /// + /// + Merge, + /// + /// + /// + Overwrite, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CRMAnalysisDataMappingUpdateModeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CRMAnalysisDataMappingUpdateMode value) + { + return value switch + { + CRMAnalysisDataMappingUpdateMode.FillIfEmpty => "fill_if_empty", + CRMAnalysisDataMappingUpdateMode.Merge => "merge", + CRMAnalysisDataMappingUpdateMode.Overwrite => "overwrite", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CRMAnalysisDataMappingUpdateMode? ToEnum(string value) + { + return value switch + { + "fill_if_empty" => CRMAnalysisDataMappingUpdateMode.FillIfEmpty, + "merge" => CRMAnalysisDataMappingUpdateMode.Merge, + "overwrite" => CRMAnalysisDataMappingUpdateMode.Overwrite, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CRMConfig.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CRMConfig.Json.g.cs new file mode 100644 index 00000000..b01fe650 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CRMConfig.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class CRMConfig + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.CRMConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.CRMConfig), + jsonSerializerContext) as global::RetellAI.CRMConfig; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.CRMConfig? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.CRMConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.CRMConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.CRMConfig; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CRMConfig.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CRMConfig.g.cs new file mode 100644 index 00000000..94d4223d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CRMConfig.g.cs @@ -0,0 +1,96 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class CRMConfig + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("org_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string OrgId { get; set; } + + /// + /// The connected CRM integration app ID. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string? AppId { get; set; } + + /// + /// Epoch milliseconds of the last successful sync. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_timestamp")] + public double? LastSyncTimestamp { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_fields")] + public global::System.Collections.Generic.IList? CustomFields { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("crm_analysis_data_mappings")] + public global::System.Collections.Generic.IList? CrmAnalysisDataMappings { get; set; } + + /// + /// Preferred display order of contact fields, for clients that render contacts as a table. Not used by the API itself. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("contact_columns_order")] + public global::System.Collections.Generic.IList? ContactColumnsOrder { 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 connected CRM integration app ID. + /// + /// + /// Epoch milliseconds of the last successful sync. + /// + /// + /// + /// + /// Preferred display order of contact fields, for clients that render contacts as a table. Not used by the API itself. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CRMConfig( + string orgId, + string? appId, + double? lastSyncTimestamp, + global::System.Collections.Generic.IList? customFields, + global::System.Collections.Generic.IList? crmAnalysisDataMappings, + global::System.Collections.Generic.IList? contactColumnsOrder) + { + this.OrgId = orgId ?? throw new global::System.ArgumentNullException(nameof(orgId)); + this.AppId = appId; + this.LastSyncTimestamp = lastSyncTimestamp; + this.CustomFields = customFields; + this.CrmAnalysisDataMappings = crmAnalysisDataMappings; + this.ContactColumnsOrder = contactColumnsOrder; + } + + /// + /// Initializes a new instance of the class. + /// + public CRMConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CRMCustomFieldSchema.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CRMCustomFieldSchema.Json.g.cs new file mode 100644 index 00000000..d20a4954 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CRMCustomFieldSchema.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class CRMCustomFieldSchema + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.CRMCustomFieldSchema? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.CRMCustomFieldSchema), + jsonSerializerContext) as global::RetellAI.CRMCustomFieldSchema; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.CRMCustomFieldSchema? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.CRMCustomFieldSchema? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.CRMCustomFieldSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.CRMCustomFieldSchema; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CRMCustomFieldSchema.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CRMCustomFieldSchema.g.cs new file mode 100644 index 00000000..626888ac --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CRMCustomFieldSchema.g.cs @@ -0,0 +1,87 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class CRMCustomFieldSchema + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// Display label for the field. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("label")] + public string? Label { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.CRMCustomFieldSchemaTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::RetellAI.CRMCustomFieldSchemaType Type { get; set; } + + /// + /// Allowed values. Required when `type` is `enum`, where a value is rejected unless it appears here; ignored for every other type. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("options")] + public global::System.Collections.Generic.IList? Options { 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. + /// + /// + /// + /// + /// Display label for the field. + /// + /// + /// + /// Allowed values. Required when `type` is `enum`, where a value is rejected unless it appears here; ignored for every other type. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CRMCustomFieldSchema( + string name, + global::RetellAI.CRMCustomFieldSchemaType type, + string? label, + string? description, + global::System.Collections.Generic.IList? options) + { + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Label = label; + this.Description = description; + this.Type = type; + this.Options = options; + } + + /// + /// Initializes a new instance of the class. + /// + public CRMCustomFieldSchema() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CRMCustomFieldSchemaType.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CRMCustomFieldSchemaType.g.cs new file mode 100644 index 00000000..ee7c7ad6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CRMCustomFieldSchemaType.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum CRMCustomFieldSchemaType + { + /// + /// + /// + Boolean, + /// + /// + /// + Date, + /// + /// + /// + Datetime, + /// + /// + /// + Enum, + /// + /// + /// + Number, + /// + /// + /// + String, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CRMCustomFieldSchemaTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CRMCustomFieldSchemaType value) + { + return value switch + { + CRMCustomFieldSchemaType.Boolean => "boolean", + CRMCustomFieldSchemaType.Date => "date", + CRMCustomFieldSchemaType.Datetime => "datetime", + CRMCustomFieldSchemaType.Enum => "enum", + CRMCustomFieldSchemaType.Number => "number", + CRMCustomFieldSchemaType.String => "string", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CRMCustomFieldSchemaType? ToEnum(string value) + { + return value switch + { + "boolean" => CRMCustomFieldSchemaType.Boolean, + "date" => CRMCustomFieldSchemaType.Date, + "datetime" => CRMCustomFieldSchemaType.Datetime, + "enum" => CRMCustomFieldSchemaType.Enum, + "number" => CRMCustomFieldSchemaType.Number, + "string" => CRMCustomFieldSchemaType.String, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CRMSyncMapping.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CRMSyncMapping.Json.g.cs new file mode 100644 index 00000000..a99607e7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CRMSyncMapping.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class CRMSyncMapping + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.CRMSyncMapping? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.CRMSyncMapping), + jsonSerializerContext) as global::RetellAI.CRMSyncMapping; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.CRMSyncMapping? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.CRMSyncMapping? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.CRMSyncMapping), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.CRMSyncMapping; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CRMSyncMapping.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CRMSyncMapping.g.cs new file mode 100644 index 00000000..71668d8c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CRMSyncMapping.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class CRMSyncMapping + { + /// + /// Retell contact field, built-in or custom, to map. Types must be compatible with the CRM field on both sides of the sync. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("field_name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string FieldName { get; set; } + + /// + /// Field on the CRM's contact object to map to. A name that does not exist there surfaces as an error on the sync job rather than at configuration time. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("external_field_name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ExternalFieldName { 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. + /// + /// + /// Retell contact field, built-in or custom, to map. Types must be compatible with the CRM field on both sides of the sync. + /// + /// + /// Field on the CRM's contact object to map to. A name that does not exist there surfaces as an error on the sync job rather than at configuration time. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CRMSyncMapping( + string fieldName, + string externalFieldName) + { + this.FieldName = fieldName ?? throw new global::System.ArgumentNullException(nameof(fieldName)); + this.ExternalFieldName = externalFieldName ?? throw new global::System.ArgumentNullException(nameof(externalFieldName)); + } + + /// + /// Initializes a new instance of the class. + /// + public CRMSyncMapping() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CallFilter.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CallFilter.g.cs index ab7d81c8..7215d2dd 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.CallFilter.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CallFilter.g.cs @@ -163,7 +163,7 @@ public sealed partial class CallFilter /// Filter by dynamic variables. ///
[global::System.Text.Json.Serialization.JsonPropertyName("dynamic_variables")] - public global::System.Collections.Generic.IList>? DynamicVariables { get; set; } + public global::System.Collections.Generic.IList? DynamicVariables { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -249,7 +249,7 @@ public CallFilter( global::System.Collections.Generic.IList? customAnalysisData, global::System.Collections.Generic.IList? customAttributes, global::System.Collections.Generic.IList? metadata, - global::System.Collections.Generic.IList>? dynamicVariables) + global::System.Collections.Generic.IList? dynamicVariables) { this.Agent = agent; this.AgentTag = agentTag; diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppRequest.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppRequest.Json.g.cs new file mode 100644 index 00000000..4804d649 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class CreateAppRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.CreateAppRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.CreateAppRequest), + jsonSerializerContext) as global::RetellAI.CreateAppRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.CreateAppRequest? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.CreateAppRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.CreateAppRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.CreateAppRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppRequest.g.cs new file mode 100644 index 00000000..e6775629 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppRequest.g.cs @@ -0,0 +1,112 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class CreateAppRequest + { + /// + /// App integration category. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.AppTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::RetellAI.AppType Type { get; set; } + + /// + /// Provider name. Must be valid for the App's type; the supported providers per type are listed by list-app-templates. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Provider { get; set; } + + /// + /// Display name. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// Per-tenant API base URL. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tenant_url")] + public string? TenantUrl { get; set; } + + /// + /// Sub-account id, for providers that scope requests by a sub-account id on a shared host. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tenant_id")] + public string? TenantId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("auth_config")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.AuthConfigRequestJsonConverter))] + public global::RetellAI.AuthConfigRequest? AuthConfig { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("crm_config")] + public global::RetellAI.AppCRMConfig? CrmConfig { 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. + /// + /// + /// App integration category. + /// + /// + /// Provider name. Must be valid for the App's type; the supported providers per type are listed by list-app-templates. + /// + /// + /// Display name. + /// + /// + /// Per-tenant API base URL. + /// + /// + /// Sub-account id, for providers that scope requests by a sub-account id on a shared host. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateAppRequest( + global::RetellAI.AppType type, + string provider, + string? name, + string? tenantUrl, + string? tenantId, + global::RetellAI.AuthConfigRequest? authConfig, + global::RetellAI.AppCRMConfig? crmConfig) + { + this.Type = type; + this.Provider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); + this.Name = name; + this.TenantUrl = tenantUrl; + this.TenantId = tenantId; + this.AuthConfig = authConfig; + this.CrmConfig = crmConfig; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateAppRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse.Json.g.cs new file mode 100644 index 00000000..1771d00d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class CreateAppResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.CreateAppResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.CreateAppResponse), + jsonSerializerContext) as global::RetellAI.CreateAppResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.CreateAppResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.CreateAppResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.CreateAppResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.CreateAppResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse.g.cs new file mode 100644 index 00000000..14a6260c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class CreateAppResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.CreateAppResponseStatusJsonConverter))] + public global::RetellAI.CreateAppResponseStatus? 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 CreateAppResponse( + global::RetellAI.CreateAppResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateAppResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse2.Json.g.cs new file mode 100644 index 00000000..7be786d1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class CreateAppResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.CreateAppResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.CreateAppResponse2), + jsonSerializerContext) as global::RetellAI.CreateAppResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.CreateAppResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.CreateAppResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.CreateAppResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.CreateAppResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse2.g.cs new file mode 100644 index 00000000..ecb9c1ac --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class CreateAppResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.CreateAppResponseStatus2JsonConverter))] + public global::RetellAI.CreateAppResponseStatus2? 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 CreateAppResponse2( + global::RetellAI.CreateAppResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateAppResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse3.Json.g.cs new file mode 100644 index 00000000..00c7c8de --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class CreateAppResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.CreateAppResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.CreateAppResponse3), + jsonSerializerContext) as global::RetellAI.CreateAppResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.CreateAppResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.CreateAppResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.CreateAppResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.CreateAppResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse3.g.cs new file mode 100644 index 00000000..ae4229a4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class CreateAppResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.CreateAppResponseStatus3JsonConverter))] + public global::RetellAI.CreateAppResponseStatus3? 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 CreateAppResponse3( + global::RetellAI.CreateAppResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateAppResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse4.Json.g.cs new file mode 100644 index 00000000..a22ee4ea --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class CreateAppResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.CreateAppResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.CreateAppResponse4), + jsonSerializerContext) as global::RetellAI.CreateAppResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.CreateAppResponse4? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.CreateAppResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.CreateAppResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.CreateAppResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse4.g.cs new file mode 100644 index 00000000..6cd566af --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponse4.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class CreateAppResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.CreateAppResponseStatus4JsonConverter))] + public global::RetellAI.CreateAppResponseStatus4? 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 CreateAppResponse4( + global::RetellAI.CreateAppResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateAppResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponseStatus.g.cs new file mode 100644 index 00000000..fcc70e54 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum CreateAppResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateAppResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateAppResponseStatus value) + { + return value switch + { + CreateAppResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateAppResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => CreateAppResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponseStatus2.g.cs new file mode 100644 index 00000000..aa62f8d6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum CreateAppResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateAppResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateAppResponseStatus2 value) + { + return value switch + { + CreateAppResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateAppResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => CreateAppResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponseStatus3.g.cs new file mode 100644 index 00000000..35c0c8cb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum CreateAppResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateAppResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateAppResponseStatus3 value) + { + return value switch + { + CreateAppResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateAppResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => CreateAppResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponseStatus4.g.cs new file mode 100644 index 00000000..f135c459 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateAppResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum CreateAppResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateAppResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateAppResponseStatus4 value) + { + return value switch + { + CreateAppResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateAppResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => CreateAppResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactRequest.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactRequest.Json.g.cs new file mode 100644 index 00000000..b3afc053 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class CreateContactRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.CreateContactRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.CreateContactRequest), + jsonSerializerContext) as global::RetellAI.CreateContactRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.CreateContactRequest? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.CreateContactRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.CreateContactRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.CreateContactRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactRequest.g.cs new file mode 100644 index 00000000..22fcdfc1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactRequest.g.cs @@ -0,0 +1,89 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class CreateContactRequest + { + /// + /// Phone number of the contact. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("phone_number")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string PhoneNumber { get; set; } + + /// + /// First name of the contact. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("first_name")] + public string? FirstName { get; set; } + + /// + /// Last name of the contact. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_name")] + public string? LastName { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("do_not_call")] + public bool? DoNotCall { get; set; } + + /// + /// Values must match the types defined in CRM config custom fields. Set a value to null to clear it. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_fields")] + public object? CustomFields { 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. + /// + /// + /// Phone number of the contact. + /// + /// + /// First name of the contact. + /// + /// + /// Last name of the contact. + /// + /// + /// + /// Values must match the types defined in CRM config custom fields. Set a value to null to clear it. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateContactRequest( + string phoneNumber, + string? firstName, + string? lastName, + bool? doNotCall, + object? customFields) + { + this.PhoneNumber = phoneNumber ?? throw new global::System.ArgumentNullException(nameof(phoneNumber)); + this.FirstName = firstName; + this.LastName = lastName; + this.DoNotCall = doNotCall; + this.CustomFields = customFields; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateContactRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactRequestCustomFields.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactRequestCustomFields.Json.g.cs new file mode 100644 index 00000000..6f1e5afd --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactRequestCustomFields.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class CreateContactRequestCustomFields + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.CreateContactRequestCustomFields? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.CreateContactRequestCustomFields), + jsonSerializerContext) as global::RetellAI.CreateContactRequestCustomFields; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.CreateContactRequestCustomFields? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.CreateContactRequestCustomFields? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.CreateContactRequestCustomFields), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.CreateContactRequestCustomFields; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactRequestCustomFields.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactRequestCustomFields.g.cs new file mode 100644 index 00000000..a0306114 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactRequestCustomFields.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// Values must match the types defined in CRM config custom fields. Set a value to null to clear it. + /// + public sealed partial class CreateContactRequestCustomFields + { + + /// + /// 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.CreateContactResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse.Json.g.cs new file mode 100644 index 00000000..ae3032d4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class CreateContactResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.CreateContactResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.CreateContactResponse), + jsonSerializerContext) as global::RetellAI.CreateContactResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.CreateContactResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.CreateContactResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.CreateContactResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.CreateContactResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse.g.cs new file mode 100644 index 00000000..9ea1ae58 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class CreateContactResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.CreateContactResponseStatusJsonConverter))] + public global::RetellAI.CreateContactResponseStatus? 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 CreateContactResponse( + global::RetellAI.CreateContactResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateContactResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse2.Json.g.cs new file mode 100644 index 00000000..6755dc81 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class CreateContactResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.CreateContactResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.CreateContactResponse2), + jsonSerializerContext) as global::RetellAI.CreateContactResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.CreateContactResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.CreateContactResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.CreateContactResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.CreateContactResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse2.g.cs new file mode 100644 index 00000000..e6791500 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class CreateContactResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.CreateContactResponseStatus2JsonConverter))] + public global::RetellAI.CreateContactResponseStatus2? 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 CreateContactResponse2( + global::RetellAI.CreateContactResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateContactResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse3.Json.g.cs new file mode 100644 index 00000000..e864bf23 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class CreateContactResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.CreateContactResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.CreateContactResponse3), + jsonSerializerContext) as global::RetellAI.CreateContactResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.CreateContactResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.CreateContactResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.CreateContactResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.CreateContactResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse3.g.cs new file mode 100644 index 00000000..b78ea909 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class CreateContactResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.CreateContactResponseStatus3JsonConverter))] + public global::RetellAI.CreateContactResponseStatus3? 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 CreateContactResponse3( + global::RetellAI.CreateContactResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateContactResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse4.Json.g.cs new file mode 100644 index 00000000..059512bc --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class CreateContactResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.CreateContactResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.CreateContactResponse4), + jsonSerializerContext) as global::RetellAI.CreateContactResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.CreateContactResponse4? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.CreateContactResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.CreateContactResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.CreateContactResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse4.g.cs new file mode 100644 index 00000000..3e7a981b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponse4.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class CreateContactResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.CreateContactResponseStatus4JsonConverter))] + public global::RetellAI.CreateContactResponseStatus4? 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 CreateContactResponse4( + global::RetellAI.CreateContactResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateContactResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponseStatus.g.cs new file mode 100644 index 00000000..163caaaa --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum CreateContactResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateContactResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateContactResponseStatus value) + { + return value switch + { + CreateContactResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateContactResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => CreateContactResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponseStatus2.g.cs new file mode 100644 index 00000000..fc779ee1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum CreateContactResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateContactResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateContactResponseStatus2 value) + { + return value switch + { + CreateContactResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateContactResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => CreateContactResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponseStatus3.g.cs new file mode 100644 index 00000000..1f3688fb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum CreateContactResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateContactResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateContactResponseStatus3 value) + { + return value switch + { + CreateContactResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateContactResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => CreateContactResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponseStatus4.g.cs new file mode 100644 index 00000000..b63670dd --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateContactResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum CreateContactResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateContactResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateContactResponseStatus4 value) + { + return value switch + { + CreateContactResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateContactResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => CreateContactResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse.Json.g.cs new file mode 100644 index 00000000..0394a772 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class DeleteAppResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.DeleteAppResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.DeleteAppResponse), + jsonSerializerContext) as global::RetellAI.DeleteAppResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.DeleteAppResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.DeleteAppResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.DeleteAppResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.DeleteAppResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse.g.cs new file mode 100644 index 00000000..d9d38063 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class DeleteAppResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.DeleteAppResponseStatusJsonConverter))] + public global::RetellAI.DeleteAppResponseStatus? 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 DeleteAppResponse( + global::RetellAI.DeleteAppResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteAppResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse2.Json.g.cs new file mode 100644 index 00000000..15f86a2a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class DeleteAppResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.DeleteAppResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.DeleteAppResponse2), + jsonSerializerContext) as global::RetellAI.DeleteAppResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.DeleteAppResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.DeleteAppResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.DeleteAppResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.DeleteAppResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse2.g.cs new file mode 100644 index 00000000..91ed5807 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class DeleteAppResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.DeleteAppResponseStatus2JsonConverter))] + public global::RetellAI.DeleteAppResponseStatus2? 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 DeleteAppResponse2( + global::RetellAI.DeleteAppResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteAppResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse3.Json.g.cs new file mode 100644 index 00000000..f2cee3d8 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class DeleteAppResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.DeleteAppResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.DeleteAppResponse3), + jsonSerializerContext) as global::RetellAI.DeleteAppResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.DeleteAppResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.DeleteAppResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.DeleteAppResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.DeleteAppResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse3.g.cs new file mode 100644 index 00000000..5bcac6df --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class DeleteAppResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.DeleteAppResponseStatus3JsonConverter))] + public global::RetellAI.DeleteAppResponseStatus3? Status { get; set; } + + /// + /// Example: The requested resource was not found. + /// + /// The requested resource was not found. + [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: The requested resource was not found. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DeleteAppResponse3( + global::RetellAI.DeleteAppResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteAppResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse4.Json.g.cs new file mode 100644 index 00000000..08c83879 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class DeleteAppResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.DeleteAppResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.DeleteAppResponse4), + jsonSerializerContext) as global::RetellAI.DeleteAppResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.DeleteAppResponse4? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.DeleteAppResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.DeleteAppResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.DeleteAppResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse4.g.cs new file mode 100644 index 00000000..a641b31e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse4.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class DeleteAppResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.DeleteAppResponseStatus4JsonConverter))] + public global::RetellAI.DeleteAppResponseStatus4? 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 DeleteAppResponse4( + global::RetellAI.DeleteAppResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteAppResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse5.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse5.Json.g.cs new file mode 100644 index 00000000..5da897b9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class DeleteAppResponse5 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.DeleteAppResponse5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.DeleteAppResponse5), + jsonSerializerContext) as global::RetellAI.DeleteAppResponse5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.DeleteAppResponse5? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.DeleteAppResponse5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.DeleteAppResponse5), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.DeleteAppResponse5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse5.g.cs new file mode 100644 index 00000000..387562a0 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponse5.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class DeleteAppResponse5 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.DeleteAppResponseStatus5JsonConverter))] + public global::RetellAI.DeleteAppResponseStatus5? 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 DeleteAppResponse5( + global::RetellAI.DeleteAppResponseStatus5? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteAppResponse5() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponseStatus.g.cs new file mode 100644 index 00000000..3fcdef5b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum DeleteAppResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DeleteAppResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DeleteAppResponseStatus value) + { + return value switch + { + DeleteAppResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DeleteAppResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => DeleteAppResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponseStatus2.g.cs new file mode 100644 index 00000000..face62d6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum DeleteAppResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DeleteAppResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DeleteAppResponseStatus2 value) + { + return value switch + { + DeleteAppResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DeleteAppResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => DeleteAppResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponseStatus3.g.cs new file mode 100644 index 00000000..2612ea4b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum DeleteAppResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DeleteAppResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DeleteAppResponseStatus3 value) + { + return value switch + { + DeleteAppResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DeleteAppResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => DeleteAppResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponseStatus4.g.cs new file mode 100644 index 00000000..de603c49 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum DeleteAppResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DeleteAppResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DeleteAppResponseStatus4 value) + { + return value switch + { + DeleteAppResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DeleteAppResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => DeleteAppResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponseStatus5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponseStatus5.g.cs new file mode 100644 index 00000000..0be6df25 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteAppResponseStatus5.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum DeleteAppResponseStatus5 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DeleteAppResponseStatus5Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DeleteAppResponseStatus5 value) + { + return value switch + { + DeleteAppResponseStatus5.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DeleteAppResponseStatus5? ToEnum(string value) + { + return value switch + { + "error" => DeleteAppResponseStatus5.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse.Json.g.cs new file mode 100644 index 00000000..177577ce --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class DeleteContactResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.DeleteContactResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.DeleteContactResponse), + jsonSerializerContext) as global::RetellAI.DeleteContactResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.DeleteContactResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.DeleteContactResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.DeleteContactResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.DeleteContactResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse.g.cs new file mode 100644 index 00000000..caaf98cc --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class DeleteContactResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.DeleteContactResponseStatusJsonConverter))] + public global::RetellAI.DeleteContactResponseStatus? 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 DeleteContactResponse( + global::RetellAI.DeleteContactResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteContactResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse2.Json.g.cs new file mode 100644 index 00000000..5f8287eb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class DeleteContactResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.DeleteContactResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.DeleteContactResponse2), + jsonSerializerContext) as global::RetellAI.DeleteContactResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.DeleteContactResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.DeleteContactResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.DeleteContactResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.DeleteContactResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse2.g.cs new file mode 100644 index 00000000..8653346d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class DeleteContactResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.DeleteContactResponseStatus2JsonConverter))] + public global::RetellAI.DeleteContactResponseStatus2? 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 DeleteContactResponse2( + global::RetellAI.DeleteContactResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteContactResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse3.Json.g.cs new file mode 100644 index 00000000..00dfe766 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class DeleteContactResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.DeleteContactResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.DeleteContactResponse3), + jsonSerializerContext) as global::RetellAI.DeleteContactResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.DeleteContactResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.DeleteContactResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.DeleteContactResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.DeleteContactResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse3.g.cs new file mode 100644 index 00000000..041f3f0d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class DeleteContactResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.DeleteContactResponseStatus3JsonConverter))] + public global::RetellAI.DeleteContactResponseStatus3? Status { get; set; } + + /// + /// Example: The requested resource was not found. + /// + /// The requested resource was not found. + [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: The requested resource was not found. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DeleteContactResponse3( + global::RetellAI.DeleteContactResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteContactResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse4.Json.g.cs new file mode 100644 index 00000000..6549fcbe --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class DeleteContactResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.DeleteContactResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.DeleteContactResponse4), + jsonSerializerContext) as global::RetellAI.DeleteContactResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.DeleteContactResponse4? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.DeleteContactResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.DeleteContactResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.DeleteContactResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse4.g.cs new file mode 100644 index 00000000..05e0017d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse4.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class DeleteContactResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.DeleteContactResponseStatus4JsonConverter))] + public global::RetellAI.DeleteContactResponseStatus4? 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 DeleteContactResponse4( + global::RetellAI.DeleteContactResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteContactResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse5.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse5.Json.g.cs new file mode 100644 index 00000000..ebe8c670 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class DeleteContactResponse5 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.DeleteContactResponse5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.DeleteContactResponse5), + jsonSerializerContext) as global::RetellAI.DeleteContactResponse5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.DeleteContactResponse5? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.DeleteContactResponse5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.DeleteContactResponse5), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.DeleteContactResponse5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse5.g.cs new file mode 100644 index 00000000..f3ca62c4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponse5.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class DeleteContactResponse5 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.DeleteContactResponseStatus5JsonConverter))] + public global::RetellAI.DeleteContactResponseStatus5? 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 DeleteContactResponse5( + global::RetellAI.DeleteContactResponseStatus5? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteContactResponse5() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponseStatus.g.cs new file mode 100644 index 00000000..8b17ecfb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum DeleteContactResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DeleteContactResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DeleteContactResponseStatus value) + { + return value switch + { + DeleteContactResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DeleteContactResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => DeleteContactResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponseStatus2.g.cs new file mode 100644 index 00000000..194b3922 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum DeleteContactResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DeleteContactResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DeleteContactResponseStatus2 value) + { + return value switch + { + DeleteContactResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DeleteContactResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => DeleteContactResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponseStatus3.g.cs new file mode 100644 index 00000000..7db0f03e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum DeleteContactResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DeleteContactResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DeleteContactResponseStatus3 value) + { + return value switch + { + DeleteContactResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DeleteContactResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => DeleteContactResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponseStatus4.g.cs new file mode 100644 index 00000000..7c9d87bc --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum DeleteContactResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DeleteContactResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DeleteContactResponseStatus4 value) + { + return value switch + { + DeleteContactResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DeleteContactResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => DeleteContactResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponseStatus5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponseStatus5.g.cs new file mode 100644 index 00000000..2b81b2c2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.DeleteContactResponseStatus5.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum DeleteContactResponseStatus5 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DeleteContactResponseStatus5Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DeleteContactResponseStatus5 value) + { + return value switch + { + DeleteContactResponseStatus5.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DeleteContactResponseStatus5? ToEnum(string value) + { + return value switch + { + "error" => DeleteContactResponseStatus5.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse.Json.g.cs new file mode 100644 index 00000000..d2c2b30f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetAppResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetAppResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetAppResponse), + jsonSerializerContext) as global::RetellAI.GetAppResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetAppResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetAppResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetAppResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetAppResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse.g.cs new file mode 100644 index 00000000..cc287b40 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetAppResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetAppResponseStatusJsonConverter))] + public global::RetellAI.GetAppResponseStatus? 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 GetAppResponse( + global::RetellAI.GetAppResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetAppResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse2.Json.g.cs new file mode 100644 index 00000000..e73016e5 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetAppResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetAppResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetAppResponse2), + jsonSerializerContext) as global::RetellAI.GetAppResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetAppResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetAppResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetAppResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetAppResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse2.g.cs new file mode 100644 index 00000000..5f03f2d7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetAppResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetAppResponseStatus2JsonConverter))] + public global::RetellAI.GetAppResponseStatus2? Status { get; set; } + + /// + /// Example: The requested resource was not found. + /// + /// The requested resource was not found. + [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: The requested resource was not found. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetAppResponse2( + global::RetellAI.GetAppResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetAppResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse3.Json.g.cs new file mode 100644 index 00000000..13973b78 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetAppResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetAppResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetAppResponse3), + jsonSerializerContext) as global::RetellAI.GetAppResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetAppResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetAppResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetAppResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetAppResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse3.g.cs new file mode 100644 index 00000000..b61b4acf --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetAppResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetAppResponseStatus3JsonConverter))] + public global::RetellAI.GetAppResponseStatus3? 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 GetAppResponse3( + global::RetellAI.GetAppResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetAppResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse4.Json.g.cs new file mode 100644 index 00000000..20a0a5eb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetAppResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetAppResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetAppResponse4), + jsonSerializerContext) as global::RetellAI.GetAppResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetAppResponse4? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetAppResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetAppResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetAppResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse4.g.cs new file mode 100644 index 00000000..13739c1f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponse4.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetAppResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetAppResponseStatus4JsonConverter))] + public global::RetellAI.GetAppResponseStatus4? 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 GetAppResponse4( + global::RetellAI.GetAppResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetAppResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponseStatus.g.cs new file mode 100644 index 00000000..2762d9c1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetAppResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetAppResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetAppResponseStatus value) + { + return value switch + { + GetAppResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetAppResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => GetAppResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponseStatus2.g.cs new file mode 100644 index 00000000..a6ac735d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetAppResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetAppResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetAppResponseStatus2 value) + { + return value switch + { + GetAppResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetAppResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => GetAppResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponseStatus3.g.cs new file mode 100644 index 00000000..989d498c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetAppResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetAppResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetAppResponseStatus3 value) + { + return value switch + { + GetAppResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetAppResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => GetAppResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponseStatus4.g.cs new file mode 100644 index 00000000..95f16cc3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetAppResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetAppResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetAppResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetAppResponseStatus4 value) + { + return value switch + { + GetAppResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetAppResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => GetAppResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponse.Json.g.cs new file mode 100644 index 00000000..6b0472fa --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetBackfillContactJobStatusResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetBackfillContactJobStatusResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetBackfillContactJobStatusResponse), + jsonSerializerContext) as global::RetellAI.GetBackfillContactJobStatusResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetBackfillContactJobStatusResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetBackfillContactJobStatusResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetBackfillContactJobStatusResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetBackfillContactJobStatusResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponse.g.cs new file mode 100644 index 00000000..e154d249 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetBackfillContactJobStatusResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatusJsonConverter))] + public global::RetellAI.GetBackfillContactJobStatusResponseStatus? 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 GetBackfillContactJobStatusResponse( + global::RetellAI.GetBackfillContactJobStatusResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetBackfillContactJobStatusResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponse2.Json.g.cs new file mode 100644 index 00000000..d4bacc67 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetBackfillContactJobStatusResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetBackfillContactJobStatusResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetBackfillContactJobStatusResponse2), + jsonSerializerContext) as global::RetellAI.GetBackfillContactJobStatusResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetBackfillContactJobStatusResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetBackfillContactJobStatusResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetBackfillContactJobStatusResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetBackfillContactJobStatusResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponse2.g.cs new file mode 100644 index 00000000..bb239d6e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponse2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetBackfillContactJobStatusResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus2JsonConverter))] + public global::RetellAI.GetBackfillContactJobStatusResponseStatus2? 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 GetBackfillContactJobStatusResponse2( + global::RetellAI.GetBackfillContactJobStatusResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetBackfillContactJobStatusResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponse3.Json.g.cs new file mode 100644 index 00000000..85924345 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetBackfillContactJobStatusResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetBackfillContactJobStatusResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetBackfillContactJobStatusResponse3), + jsonSerializerContext) as global::RetellAI.GetBackfillContactJobStatusResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetBackfillContactJobStatusResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetBackfillContactJobStatusResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetBackfillContactJobStatusResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetBackfillContactJobStatusResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponse3.g.cs new file mode 100644 index 00000000..845e2634 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetBackfillContactJobStatusResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetBackfillContactJobStatusResponseStatus3JsonConverter))] + public global::RetellAI.GetBackfillContactJobStatusResponseStatus3? 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 GetBackfillContactJobStatusResponse3( + global::RetellAI.GetBackfillContactJobStatusResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetBackfillContactJobStatusResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponseStatus.g.cs new file mode 100644 index 00000000..0dffe86d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetBackfillContactJobStatusResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetBackfillContactJobStatusResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetBackfillContactJobStatusResponseStatus value) + { + return value switch + { + GetBackfillContactJobStatusResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetBackfillContactJobStatusResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => GetBackfillContactJobStatusResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponseStatus2.g.cs new file mode 100644 index 00000000..a05483ad --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetBackfillContactJobStatusResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetBackfillContactJobStatusResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetBackfillContactJobStatusResponseStatus2 value) + { + return value switch + { + GetBackfillContactJobStatusResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetBackfillContactJobStatusResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => GetBackfillContactJobStatusResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponseStatus3.g.cs new file mode 100644 index 00000000..ff8977dd --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetBackfillContactJobStatusResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetBackfillContactJobStatusResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetBackfillContactJobStatusResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetBackfillContactJobStatusResponseStatus3 value) + { + return value switch + { + GetBackfillContactJobStatusResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetBackfillContactJobStatusResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => GetBackfillContactJobStatusResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CallFilterDynamicVariable.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse.Json.g.cs similarity index 88% rename from src/libs/RetellAI/Generated/RetellAI.Models.CallFilterDynamicVariable.Json.g.cs rename to src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse.Json.g.cs index ddacf54b..b07f6d35 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.CallFilterDynamicVariable.Json.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace RetellAI { - public sealed partial class CallFilterDynamicVariable + public sealed partial class GetContactByPhoneResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::RetellAI.CallFilterDynamicVariable? FromJson( + public static global::RetellAI.GetContactByPhoneResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::RetellAI.CallFilterDynamicVariable), - jsonSerializerContext) as global::RetellAI.CallFilterDynamicVariable; + typeof(global::RetellAI.GetContactByPhoneResponse), + jsonSerializerContext) as global::RetellAI.GetContactByPhoneResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::RetellAI.CallFilterDynamicVariable? FromJson( + public static global::RetellAI.GetContactByPhoneResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [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.CallFilterDynamicVariable? FromJson( + public static global::RetellAI.GetContactByPhoneResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::RetellAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.CallFilterDynamicVariable), - jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.CallFilterDynamicVariable; + typeof(global::RetellAI.GetContactByPhoneResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetContactByPhoneResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::RetellAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse.g.cs new file mode 100644 index 00000000..fbf94f1f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetContactByPhoneResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetContactByPhoneResponseStatusJsonConverter))] + public global::RetellAI.GetContactByPhoneResponseStatus? 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 GetContactByPhoneResponse( + global::RetellAI.GetContactByPhoneResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetContactByPhoneResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse2.Json.g.cs new file mode 100644 index 00000000..9b9d7600 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetContactByPhoneResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetContactByPhoneResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetContactByPhoneResponse2), + jsonSerializerContext) as global::RetellAI.GetContactByPhoneResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetContactByPhoneResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetContactByPhoneResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetContactByPhoneResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetContactByPhoneResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse2.g.cs new file mode 100644 index 00000000..8a15f8cb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetContactByPhoneResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetContactByPhoneResponseStatus2JsonConverter))] + public global::RetellAI.GetContactByPhoneResponseStatus2? 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 GetContactByPhoneResponse2( + global::RetellAI.GetContactByPhoneResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetContactByPhoneResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse3.Json.g.cs new file mode 100644 index 00000000..4a58a247 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetContactByPhoneResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetContactByPhoneResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetContactByPhoneResponse3), + jsonSerializerContext) as global::RetellAI.GetContactByPhoneResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetContactByPhoneResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetContactByPhoneResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetContactByPhoneResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetContactByPhoneResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse3.g.cs new file mode 100644 index 00000000..eacf53c3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetContactByPhoneResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetContactByPhoneResponseStatus3JsonConverter))] + public global::RetellAI.GetContactByPhoneResponseStatus3? Status { get; set; } + + /// + /// Example: The requested resource was not found. + /// + /// The requested resource was not found. + [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: The requested resource was not found. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetContactByPhoneResponse3( + global::RetellAI.GetContactByPhoneResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetContactByPhoneResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse4.Json.g.cs new file mode 100644 index 00000000..a23c4973 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetContactByPhoneResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetContactByPhoneResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetContactByPhoneResponse4), + jsonSerializerContext) as global::RetellAI.GetContactByPhoneResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetContactByPhoneResponse4? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetContactByPhoneResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetContactByPhoneResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetContactByPhoneResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse4.g.cs new file mode 100644 index 00000000..81644e6d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse4.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetContactByPhoneResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetContactByPhoneResponseStatus4JsonConverter))] + public global::RetellAI.GetContactByPhoneResponseStatus4? 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 GetContactByPhoneResponse4( + global::RetellAI.GetContactByPhoneResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetContactByPhoneResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse5.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse5.Json.g.cs new file mode 100644 index 00000000..a4ee1b69 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetContactByPhoneResponse5 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetContactByPhoneResponse5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetContactByPhoneResponse5), + jsonSerializerContext) as global::RetellAI.GetContactByPhoneResponse5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetContactByPhoneResponse5? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetContactByPhoneResponse5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetContactByPhoneResponse5), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetContactByPhoneResponse5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse5.g.cs new file mode 100644 index 00000000..7283af48 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponse5.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetContactByPhoneResponse5 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetContactByPhoneResponseStatus5JsonConverter))] + public global::RetellAI.GetContactByPhoneResponseStatus5? 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 GetContactByPhoneResponse5( + global::RetellAI.GetContactByPhoneResponseStatus5? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetContactByPhoneResponse5() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponseStatus.g.cs new file mode 100644 index 00000000..75b46187 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetContactByPhoneResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetContactByPhoneResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetContactByPhoneResponseStatus value) + { + return value switch + { + GetContactByPhoneResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetContactByPhoneResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => GetContactByPhoneResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponseStatus2.g.cs new file mode 100644 index 00000000..0a888660 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetContactByPhoneResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetContactByPhoneResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetContactByPhoneResponseStatus2 value) + { + return value switch + { + GetContactByPhoneResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetContactByPhoneResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => GetContactByPhoneResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponseStatus3.g.cs new file mode 100644 index 00000000..9358c2a4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetContactByPhoneResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetContactByPhoneResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetContactByPhoneResponseStatus3 value) + { + return value switch + { + GetContactByPhoneResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetContactByPhoneResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => GetContactByPhoneResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponseStatus4.g.cs new file mode 100644 index 00000000..7e84d26b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetContactByPhoneResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetContactByPhoneResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetContactByPhoneResponseStatus4 value) + { + return value switch + { + GetContactByPhoneResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetContactByPhoneResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => GetContactByPhoneResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponseStatus5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponseStatus5.g.cs new file mode 100644 index 00000000..21c684e6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactByPhoneResponseStatus5.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetContactByPhoneResponseStatus5 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetContactByPhoneResponseStatus5Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetContactByPhoneResponseStatus5 value) + { + return value switch + { + GetContactByPhoneResponseStatus5.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetContactByPhoneResponseStatus5? ToEnum(string value) + { + return value switch + { + "error" => GetContactByPhoneResponseStatus5.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse.Json.g.cs new file mode 100644 index 00000000..5693e4a9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetContactResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetContactResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetContactResponse), + jsonSerializerContext) as global::RetellAI.GetContactResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetContactResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetContactResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetContactResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetContactResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse.g.cs new file mode 100644 index 00000000..1080fd76 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetContactResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetContactResponseStatusJsonConverter))] + public global::RetellAI.GetContactResponseStatus? 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 GetContactResponse( + global::RetellAI.GetContactResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetContactResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse2.Json.g.cs new file mode 100644 index 00000000..80e93801 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetContactResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetContactResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetContactResponse2), + jsonSerializerContext) as global::RetellAI.GetContactResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetContactResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetContactResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetContactResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetContactResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse2.g.cs new file mode 100644 index 00000000..5f74489c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetContactResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetContactResponseStatus2JsonConverter))] + public global::RetellAI.GetContactResponseStatus2? Status { get; set; } + + /// + /// Example: The requested resource was not found. + /// + /// The requested resource was not found. + [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: The requested resource was not found. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetContactResponse2( + global::RetellAI.GetContactResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetContactResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse3.Json.g.cs new file mode 100644 index 00000000..4e95d373 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetContactResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetContactResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetContactResponse3), + jsonSerializerContext) as global::RetellAI.GetContactResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetContactResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetContactResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetContactResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetContactResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse3.g.cs new file mode 100644 index 00000000..845a91f6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetContactResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetContactResponseStatus3JsonConverter))] + public global::RetellAI.GetContactResponseStatus3? 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 GetContactResponse3( + global::RetellAI.GetContactResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetContactResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse4.Json.g.cs new file mode 100644 index 00000000..3e572627 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetContactResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetContactResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetContactResponse4), + jsonSerializerContext) as global::RetellAI.GetContactResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetContactResponse4? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetContactResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetContactResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetContactResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse4.g.cs new file mode 100644 index 00000000..da5a0fa5 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponse4.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetContactResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetContactResponseStatus4JsonConverter))] + public global::RetellAI.GetContactResponseStatus4? 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 GetContactResponse4( + global::RetellAI.GetContactResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetContactResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponseStatus.g.cs new file mode 100644 index 00000000..49d47750 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetContactResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetContactResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetContactResponseStatus value) + { + return value switch + { + GetContactResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetContactResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => GetContactResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponseStatus2.g.cs new file mode 100644 index 00000000..a2231579 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetContactResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetContactResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetContactResponseStatus2 value) + { + return value switch + { + GetContactResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetContactResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => GetContactResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponseStatus3.g.cs new file mode 100644 index 00000000..0f084a4c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetContactResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetContactResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetContactResponseStatus3 value) + { + return value switch + { + GetContactResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetContactResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => GetContactResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponseStatus4.g.cs new file mode 100644 index 00000000..61756a38 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetContactResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetContactResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetContactResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetContactResponseStatus4 value) + { + return value switch + { + GetContactResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetContactResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => GetContactResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponse.Json.g.cs new file mode 100644 index 00000000..59fefadd --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetCrmConfigResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetCrmConfigResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetCrmConfigResponse), + jsonSerializerContext) as global::RetellAI.GetCrmConfigResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetCrmConfigResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetCrmConfigResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetCrmConfigResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetCrmConfigResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponse.g.cs new file mode 100644 index 00000000..5fd777d0 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetCrmConfigResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetCrmConfigResponseStatusJsonConverter))] + public global::RetellAI.GetCrmConfigResponseStatus? 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 GetCrmConfigResponse( + global::RetellAI.GetCrmConfigResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetCrmConfigResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponse2.Json.g.cs new file mode 100644 index 00000000..bba4bf2a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetCrmConfigResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetCrmConfigResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetCrmConfigResponse2), + jsonSerializerContext) as global::RetellAI.GetCrmConfigResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetCrmConfigResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetCrmConfigResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetCrmConfigResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetCrmConfigResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponse2.g.cs new file mode 100644 index 00000000..b1e2bf2d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponse2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetCrmConfigResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetCrmConfigResponseStatus2JsonConverter))] + public global::RetellAI.GetCrmConfigResponseStatus2? 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 GetCrmConfigResponse2( + global::RetellAI.GetCrmConfigResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetCrmConfigResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponse3.Json.g.cs new file mode 100644 index 00000000..6aed2267 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetCrmConfigResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetCrmConfigResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetCrmConfigResponse3), + jsonSerializerContext) as global::RetellAI.GetCrmConfigResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetCrmConfigResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetCrmConfigResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetCrmConfigResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetCrmConfigResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponse3.g.cs new file mode 100644 index 00000000..e492e8db --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetCrmConfigResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetCrmConfigResponseStatus3JsonConverter))] + public global::RetellAI.GetCrmConfigResponseStatus3? 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 GetCrmConfigResponse3( + global::RetellAI.GetCrmConfigResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetCrmConfigResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponseStatus.g.cs new file mode 100644 index 00000000..88992147 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetCrmConfigResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetCrmConfigResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetCrmConfigResponseStatus value) + { + return value switch + { + GetCrmConfigResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetCrmConfigResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => GetCrmConfigResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponseStatus2.g.cs new file mode 100644 index 00000000..64671059 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetCrmConfigResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetCrmConfigResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetCrmConfigResponseStatus2 value) + { + return value switch + { + GetCrmConfigResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetCrmConfigResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => GetCrmConfigResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponseStatus3.g.cs new file mode 100644 index 00000000..8b69b5be --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmConfigResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetCrmConfigResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetCrmConfigResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetCrmConfigResponseStatus3 value) + { + return value switch + { + GetCrmConfigResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetCrmConfigResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => GetCrmConfigResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse.Json.g.cs new file mode 100644 index 00000000..2ef6dcff --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetCrmSchemaResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetCrmSchemaResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetCrmSchemaResponse), + jsonSerializerContext) as global::RetellAI.GetCrmSchemaResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetCrmSchemaResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetCrmSchemaResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetCrmSchemaResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetCrmSchemaResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse.g.cs new file mode 100644 index 00000000..99efd541 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetCrmSchemaResponse + { + /// + /// CRM provider name. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Provider { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fields")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Fields { 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. + /// + /// + /// CRM provider name. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetCrmSchemaResponse( + string provider, + global::System.Collections.Generic.IList fields) + { + this.Provider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); + this.Fields = fields ?? throw new global::System.ArgumentNullException(nameof(fields)); + } + + /// + /// Initializes a new instance of the class. + /// + public GetCrmSchemaResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse2.Json.g.cs new file mode 100644 index 00000000..736c0599 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetCrmSchemaResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetCrmSchemaResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetCrmSchemaResponse2), + jsonSerializerContext) as global::RetellAI.GetCrmSchemaResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetCrmSchemaResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetCrmSchemaResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetCrmSchemaResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetCrmSchemaResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse2.g.cs new file mode 100644 index 00000000..540063f6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetCrmSchemaResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetCrmSchemaResponseStatusJsonConverter))] + public global::RetellAI.GetCrmSchemaResponseStatus? 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 GetCrmSchemaResponse2( + global::RetellAI.GetCrmSchemaResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetCrmSchemaResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse3.Json.g.cs new file mode 100644 index 00000000..6eb38737 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetCrmSchemaResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetCrmSchemaResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetCrmSchemaResponse3), + jsonSerializerContext) as global::RetellAI.GetCrmSchemaResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetCrmSchemaResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetCrmSchemaResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetCrmSchemaResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetCrmSchemaResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse3.g.cs new file mode 100644 index 00000000..a3aa35b4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetCrmSchemaResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetCrmSchemaResponseStatus2JsonConverter))] + public global::RetellAI.GetCrmSchemaResponseStatus2? 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 GetCrmSchemaResponse3( + global::RetellAI.GetCrmSchemaResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetCrmSchemaResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse4.Json.g.cs new file mode 100644 index 00000000..809e29ab --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetCrmSchemaResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetCrmSchemaResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetCrmSchemaResponse4), + jsonSerializerContext) as global::RetellAI.GetCrmSchemaResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetCrmSchemaResponse4? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetCrmSchemaResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetCrmSchemaResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetCrmSchemaResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse4.g.cs new file mode 100644 index 00000000..d175f295 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse4.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetCrmSchemaResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetCrmSchemaResponseStatus3JsonConverter))] + public global::RetellAI.GetCrmSchemaResponseStatus3? Status { get; set; } + + /// + /// Example: Forbidden + /// + /// Forbidden + [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: Forbidden + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetCrmSchemaResponse4( + global::RetellAI.GetCrmSchemaResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetCrmSchemaResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse5.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse5.Json.g.cs new file mode 100644 index 00000000..a731aa9b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetCrmSchemaResponse5 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetCrmSchemaResponse5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetCrmSchemaResponse5), + jsonSerializerContext) as global::RetellAI.GetCrmSchemaResponse5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetCrmSchemaResponse5? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetCrmSchemaResponse5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetCrmSchemaResponse5), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetCrmSchemaResponse5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse5.g.cs new file mode 100644 index 00000000..026551af --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse5.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetCrmSchemaResponse5 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetCrmSchemaResponseStatus4JsonConverter))] + public global::RetellAI.GetCrmSchemaResponseStatus4? Status { get; set; } + + /// + /// Example: The requested resource was not found. + /// + /// The requested resource was not found. + [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: The requested resource was not found. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetCrmSchemaResponse5( + global::RetellAI.GetCrmSchemaResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetCrmSchemaResponse5() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse6.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse6.Json.g.cs new file mode 100644 index 00000000..ede79c21 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse6.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetCrmSchemaResponse6 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetCrmSchemaResponse6? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetCrmSchemaResponse6), + jsonSerializerContext) as global::RetellAI.GetCrmSchemaResponse6; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetCrmSchemaResponse6? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetCrmSchemaResponse6? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetCrmSchemaResponse6), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetCrmSchemaResponse6; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse6.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse6.g.cs new file mode 100644 index 00000000..c5630964 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse6.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetCrmSchemaResponse6 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetCrmSchemaResponseStatus5JsonConverter))] + public global::RetellAI.GetCrmSchemaResponseStatus5? 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 GetCrmSchemaResponse6( + global::RetellAI.GetCrmSchemaResponseStatus5? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetCrmSchemaResponse6() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse7.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse7.Json.g.cs new file mode 100644 index 00000000..0826241e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse7.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetCrmSchemaResponse7 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetCrmSchemaResponse7? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetCrmSchemaResponse7), + jsonSerializerContext) as global::RetellAI.GetCrmSchemaResponse7; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetCrmSchemaResponse7? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetCrmSchemaResponse7? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetCrmSchemaResponse7), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetCrmSchemaResponse7; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse7.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse7.g.cs new file mode 100644 index 00000000..def72f92 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponse7.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetCrmSchemaResponse7 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetCrmSchemaResponseStatus6JsonConverter))] + public global::RetellAI.GetCrmSchemaResponseStatus6? 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 GetCrmSchemaResponse7( + global::RetellAI.GetCrmSchemaResponseStatus6? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetCrmSchemaResponse7() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponseStatus.g.cs new file mode 100644 index 00000000..c3cd842f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetCrmSchemaResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetCrmSchemaResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetCrmSchemaResponseStatus value) + { + return value switch + { + GetCrmSchemaResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetCrmSchemaResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => GetCrmSchemaResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponseStatus2.g.cs new file mode 100644 index 00000000..95d9dd3e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetCrmSchemaResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetCrmSchemaResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetCrmSchemaResponseStatus2 value) + { + return value switch + { + GetCrmSchemaResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetCrmSchemaResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => GetCrmSchemaResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponseStatus3.g.cs new file mode 100644 index 00000000..7ac17312 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetCrmSchemaResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetCrmSchemaResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetCrmSchemaResponseStatus3 value) + { + return value switch + { + GetCrmSchemaResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetCrmSchemaResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => GetCrmSchemaResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponseStatus4.g.cs new file mode 100644 index 00000000..ce79a7de --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetCrmSchemaResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetCrmSchemaResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetCrmSchemaResponseStatus4 value) + { + return value switch + { + GetCrmSchemaResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetCrmSchemaResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => GetCrmSchemaResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponseStatus5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponseStatus5.g.cs new file mode 100644 index 00000000..00592699 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponseStatus5.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetCrmSchemaResponseStatus5 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetCrmSchemaResponseStatus5Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetCrmSchemaResponseStatus5 value) + { + return value switch + { + GetCrmSchemaResponseStatus5.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetCrmSchemaResponseStatus5? ToEnum(string value) + { + return value switch + { + "error" => GetCrmSchemaResponseStatus5.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponseStatus6.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponseStatus6.g.cs new file mode 100644 index 00000000..6a74d9eb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetCrmSchemaResponseStatus6.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetCrmSchemaResponseStatus6 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetCrmSchemaResponseStatus6Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetCrmSchemaResponseStatus6 value) + { + return value switch + { + GetCrmSchemaResponseStatus6.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetCrmSchemaResponseStatus6? ToEnum(string value) + { + return value switch + { + "error" => GetCrmSchemaResponseStatus6.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponse.Json.g.cs new file mode 100644 index 00000000..23b42fc8 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetSyncJobStatusResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetSyncJobStatusResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetSyncJobStatusResponse), + jsonSerializerContext) as global::RetellAI.GetSyncJobStatusResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetSyncJobStatusResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetSyncJobStatusResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetSyncJobStatusResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetSyncJobStatusResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponse.g.cs new file mode 100644 index 00000000..6255d7c8 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetSyncJobStatusResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetSyncJobStatusResponseStatusJsonConverter))] + public global::RetellAI.GetSyncJobStatusResponseStatus? 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 GetSyncJobStatusResponse( + global::RetellAI.GetSyncJobStatusResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetSyncJobStatusResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponse2.Json.g.cs new file mode 100644 index 00000000..de8f6d41 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetSyncJobStatusResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetSyncJobStatusResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetSyncJobStatusResponse2), + jsonSerializerContext) as global::RetellAI.GetSyncJobStatusResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetSyncJobStatusResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetSyncJobStatusResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetSyncJobStatusResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetSyncJobStatusResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponse2.g.cs new file mode 100644 index 00000000..7d77c118 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponse2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetSyncJobStatusResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetSyncJobStatusResponseStatus2JsonConverter))] + public global::RetellAI.GetSyncJobStatusResponseStatus2? 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 GetSyncJobStatusResponse2( + global::RetellAI.GetSyncJobStatusResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetSyncJobStatusResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponse3.Json.g.cs new file mode 100644 index 00000000..be373840 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class GetSyncJobStatusResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.GetSyncJobStatusResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.GetSyncJobStatusResponse3), + jsonSerializerContext) as global::RetellAI.GetSyncJobStatusResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.GetSyncJobStatusResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.GetSyncJobStatusResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.GetSyncJobStatusResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.GetSyncJobStatusResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponse3.g.cs new file mode 100644 index 00000000..b1e835ed --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class GetSyncJobStatusResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.GetSyncJobStatusResponseStatus3JsonConverter))] + public global::RetellAI.GetSyncJobStatusResponseStatus3? 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 GetSyncJobStatusResponse3( + global::RetellAI.GetSyncJobStatusResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public GetSyncJobStatusResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponseStatus.g.cs new file mode 100644 index 00000000..9727c03d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetSyncJobStatusResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetSyncJobStatusResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetSyncJobStatusResponseStatus value) + { + return value switch + { + GetSyncJobStatusResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetSyncJobStatusResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => GetSyncJobStatusResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponseStatus2.g.cs new file mode 100644 index 00000000..49eb7df7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetSyncJobStatusResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetSyncJobStatusResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetSyncJobStatusResponseStatus2 value) + { + return value switch + { + GetSyncJobStatusResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetSyncJobStatusResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => GetSyncJobStatusResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponseStatus3.g.cs new file mode 100644 index 00000000..ffe3ce91 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.GetSyncJobStatusResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum GetSyncJobStatusResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetSyncJobStatusResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetSyncJobStatusResponseStatus3 value) + { + return value switch + { + GetSyncJobStatusResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetSyncJobStatusResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => GetSyncJobStatusResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.JobStatus.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.JobStatus.Json.g.cs new file mode 100644 index 00000000..33165d16 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.JobStatus.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class JobStatus + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.JobStatus? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.JobStatus), + jsonSerializerContext) as global::RetellAI.JobStatus; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.JobStatus? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.JobStatus? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.JobStatus), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.JobStatus; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.JobStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.JobStatus.g.cs new file mode 100644 index 00000000..0faca73b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.JobStatus.g.cs @@ -0,0 +1,91 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class JobStatus + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.JobStatusStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::RetellAI.JobStatusStatus Status { get; set; } + + /// + /// Epoch milliseconds when the job started. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("start_timestamp")] + public double? StartTimestamp { get; set; } + + /// + /// Number of items processed successfully so far. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("succeeded")] + public double? Succeeded { get; set; } + + /// + /// Number of items that errored so far. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("failed")] + public double? Failed { get; set; } + + /// + /// Whether the job was started by an explicit API call (`manual`) or by the scheduled sync (`cron`). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("triggered_by")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.JobStatusTriggeredByJsonConverter))] + public global::RetellAI.JobStatusTriggeredBy? TriggeredBy { 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. + /// + /// + /// + /// Epoch milliseconds when the job started. + /// + /// + /// Number of items processed successfully so far. + /// + /// + /// Number of items that errored so far. + /// + /// + /// Whether the job was started by an explicit API call (`manual`) or by the scheduled sync (`cron`). + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public JobStatus( + global::RetellAI.JobStatusStatus status, + double? startTimestamp, + double? succeeded, + double? failed, + global::RetellAI.JobStatusTriggeredBy? triggeredBy) + { + this.Status = status; + this.StartTimestamp = startTimestamp; + this.Succeeded = succeeded; + this.Failed = failed; + this.TriggeredBy = triggeredBy; + } + + /// + /// Initializes a new instance of the class. + /// + public JobStatus() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.JobStatusStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.JobStatusStatus.g.cs new file mode 100644 index 00000000..3b4a8d0c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.JobStatusStatus.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum JobStatusStatus + { + /// + /// + /// + Idle, + /// + /// + /// + Queued, + /// + /// + /// + Running, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class JobStatusStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this JobStatusStatus value) + { + return value switch + { + JobStatusStatus.Idle => "idle", + JobStatusStatus.Queued => "queued", + JobStatusStatus.Running => "running", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static JobStatusStatus? ToEnum(string value) + { + return value switch + { + "idle" => JobStatusStatus.Idle, + "queued" => JobStatusStatus.Queued, + "running" => JobStatusStatus.Running, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.JobStatusTriggeredBy.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.JobStatusTriggeredBy.g.cs new file mode 100644 index 00000000..2e433117 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.JobStatusTriggeredBy.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// Whether the job was started by an explicit API call (`manual`) or by the scheduled sync (`cron`). + /// + public enum JobStatusTriggeredBy + { + /// + /// + /// + Cron, + /// + /// + /// + Manual, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class JobStatusTriggeredByExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this JobStatusTriggeredBy value) + { + return value switch + { + JobStatusTriggeredBy.Cron => "cron", + JobStatusTriggeredBy.Manual => "manual", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static JobStatusTriggeredBy? ToEnum(string value) + { + return value switch + { + "cron" => JobStatusTriggeredBy.Cron, + "manual" => JobStatusTriggeredBy.Manual, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.KnowledgeBaseAppUsage.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.KnowledgeBaseAppUsage.Json.g.cs new file mode 100644 index 00000000..a94a2ee8 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.KnowledgeBaseAppUsage.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class KnowledgeBaseAppUsage + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.KnowledgeBaseAppUsage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.KnowledgeBaseAppUsage), + jsonSerializerContext) as global::RetellAI.KnowledgeBaseAppUsage; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.KnowledgeBaseAppUsage? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.KnowledgeBaseAppUsage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.KnowledgeBaseAppUsage), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.KnowledgeBaseAppUsage; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.KnowledgeBaseAppUsage.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.KnowledgeBaseAppUsage.g.cs new file mode 100644 index 00000000..5270e6b2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.KnowledgeBaseAppUsage.g.cs @@ -0,0 +1,78 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class KnowledgeBaseAppUsage + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.KnowledgeBaseAppUsageTypeJsonConverter))] + public global::RetellAI.KnowledgeBaseAppUsageType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("knowledge_base_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string KnowledgeBaseId { get; set; } + + /// + /// Current knowledge base name; omitted if it was deleted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("knowledge_base_name")] + public string? KnowledgeBaseName { get; set; } + + /// + /// When this reference was last recorded, in milliseconds. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("configured_timestamp")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double ConfiguredTimestamp { 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. + /// + /// + /// + /// When this reference was last recorded, in milliseconds. + /// + /// + /// + /// Current knowledge base name; omitted if it was deleted. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public KnowledgeBaseAppUsage( + string knowledgeBaseId, + double configuredTimestamp, + global::RetellAI.KnowledgeBaseAppUsageType type, + string? knowledgeBaseName) + { + this.Type = type; + this.KnowledgeBaseId = knowledgeBaseId ?? throw new global::System.ArgumentNullException(nameof(knowledgeBaseId)); + this.KnowledgeBaseName = knowledgeBaseName; + this.ConfiguredTimestamp = configuredTimestamp; + } + + /// + /// Initializes a new instance of the class. + /// + public KnowledgeBaseAppUsage() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.KnowledgeBaseAppUsageType.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.KnowledgeBaseAppUsageType.g.cs new file mode 100644 index 00000000..54ae3c1f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.KnowledgeBaseAppUsageType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum KnowledgeBaseAppUsageType + { + /// + /// + /// + KnowledgeBase, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class KnowledgeBaseAppUsageTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this KnowledgeBaseAppUsageType value) + { + return value switch + { + KnowledgeBaseAppUsageType.KnowledgeBase => "knowledge_base", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static KnowledgeBaseAppUsageType? ToEnum(string value) + { + return value switch + { + "knowledge_base" => KnowledgeBaseAppUsageType.KnowledgeBase, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.KnowledgeBaseResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.KnowledgeBaseResponse.g.cs index 7e0f538a..3414e83f 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.KnowledgeBaseResponse.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.KnowledgeBaseResponse.g.cs @@ -27,7 +27,19 @@ public sealed partial class KnowledgeBaseResponse public required string KnowledgeBaseName { get; set; } /// - /// Status of the knowledge base. When it's created and being processed, it's "in_progress". When the processing is done, it's "complete". When there's an error in processing, it's "error". When it is during kb updating, it's "refreshing_in_progress".
+ /// Current processing state of the knowledge base:
+ /// - `in_progress`: Initial indexing is running. Source metadata may be
+ /// incomplete until indexing finishes.
+ /// - `complete`: Initial indexing or the latest update or refresh
+ /// finished. Individual source failures may still be reported in
+ /// `error_messages`.
+ /// - `error`: Initial indexing failed. Source metadata may be incomplete.
+ /// - `refreshing_in_progress`: An existing knowledge base is being
+ /// updated. This includes indexing newly added sources or running a
+ /// manual or automatic refresh that re-indexes URLs, Google Drive
+ /// files, and pages from auto-crawling paths. Previously indexed
+ /// sources remain available during the update, and the source list
+ /// may change when it finishes.
/// Example: in_progress ///
/// in_progress @@ -92,7 +104,19 @@ public sealed partial class KnowledgeBaseResponse /// Example: Sample KB /// /// - /// Status of the knowledge base. When it's created and being processed, it's "in_progress". When the processing is done, it's "complete". When there's an error in processing, it's "error". When it is during kb updating, it's "refreshing_in_progress".
+ /// Current processing state of the knowledge base:
+ /// - `in_progress`: Initial indexing is running. Source metadata may be
+ /// incomplete until indexing finishes.
+ /// - `complete`: Initial indexing or the latest update or refresh
+ /// finished. Individual source failures may still be reported in
+ /// `error_messages`.
+ /// - `error`: Initial indexing failed. Source metadata may be incomplete.
+ /// - `refreshing_in_progress`: An existing knowledge base is being
+ /// updated. This includes indexing newly added sources or running a
+ /// manual or automatic refresh that re-indexes URLs, Google Drive
+ /// files, and pages from auto-crawling paths. Previously indexed
+ /// sources remain available during the update, and the source list
+ /// may change when it finishes.
/// Example: in_progress /// /// diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.KnowledgeBaseResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.KnowledgeBaseResponseStatus.g.cs index e1554df6..8e991853 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.KnowledgeBaseResponseStatus.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.KnowledgeBaseResponseStatus.g.cs @@ -4,25 +4,37 @@ namespace RetellAI { /// - /// Status of the knowledge base. When it's created and being processed, it's "in_progress". When the processing is done, it's "complete". When there's an error in processing, it's "error". When it is during kb updating, it's "refreshing_in_progress".
+ /// Current processing state of the knowledge base:
+ /// - `in_progress`: Initial indexing is running. Source metadata may be
+ /// incomplete until indexing finishes.
+ /// - `complete`: Initial indexing or the latest update or refresh
+ /// finished. Individual source failures may still be reported in
+ /// `error_messages`.
+ /// - `error`: Initial indexing failed. Source metadata may be incomplete.
+ /// - `refreshing_in_progress`: An existing knowledge base is being
+ /// updated. This includes indexing newly added sources or running a
+ /// manual or automatic refresh that re-indexes URLs, Google Drive
+ /// files, and pages from auto-crawling paths. Previously indexed
+ /// sources remain available during the update, and the source list
+ /// may change when it finishes.
/// Example: in_progress ///
public enum KnowledgeBaseResponseStatus { /// - /// + /// Initial indexing or the latest update or refresh /// Complete, /// - /// + /// Initial indexing failed. Source metadata may be incomplete. /// Error, /// - /// + /// Initial indexing is running. Source metadata may be /// InProgress, /// - /// + /// An existing knowledge base is being /// RefreshingInProgress, } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse2.Json.g.cs new file mode 100644 index 00000000..32e22858 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListAgentVersionsResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListAgentVersionsResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListAgentVersionsResponse2), + jsonSerializerContext) as global::RetellAI.ListAgentVersionsResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListAgentVersionsResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListAgentVersionsResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListAgentVersionsResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListAgentVersionsResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse2.g.cs new file mode 100644 index 00000000..3a81e914 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse2.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListAgentVersionsResponse2 + { + /// + /// + /// + [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 ListAgentVersionsResponse2( + global::System.Collections.Generic.IList? items) + { + this.Items = items; + } + + /// + /// Initializes a new instance of the class. + /// + public ListAgentVersionsResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse3.Json.g.cs new file mode 100644 index 00000000..ccca325b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListAgentVersionsResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListAgentVersionsResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListAgentVersionsResponse3), + jsonSerializerContext) as global::RetellAI.ListAgentVersionsResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListAgentVersionsResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListAgentVersionsResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListAgentVersionsResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListAgentVersionsResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse3.g.cs new file mode 100644 index 00000000..beed7f38 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListAgentVersionsResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListAgentVersionsResponseStatusJsonConverter))] + public global::RetellAI.ListAgentVersionsResponseStatus? 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 ListAgentVersionsResponse3( + global::RetellAI.ListAgentVersionsResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListAgentVersionsResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse4.Json.g.cs new file mode 100644 index 00000000..17e1beb4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListAgentVersionsResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListAgentVersionsResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListAgentVersionsResponse4), + jsonSerializerContext) as global::RetellAI.ListAgentVersionsResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListAgentVersionsResponse4? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListAgentVersionsResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListAgentVersionsResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListAgentVersionsResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse4.g.cs new file mode 100644 index 00000000..56940658 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse4.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListAgentVersionsResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListAgentVersionsResponseStatus2JsonConverter))] + public global::RetellAI.ListAgentVersionsResponseStatus2? 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 ListAgentVersionsResponse4( + global::RetellAI.ListAgentVersionsResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListAgentVersionsResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse5.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse5.Json.g.cs new file mode 100644 index 00000000..b5550ac7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListAgentVersionsResponse5 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListAgentVersionsResponse5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListAgentVersionsResponse5), + jsonSerializerContext) as global::RetellAI.ListAgentVersionsResponse5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListAgentVersionsResponse5? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListAgentVersionsResponse5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListAgentVersionsResponse5), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListAgentVersionsResponse5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse5.g.cs new file mode 100644 index 00000000..a917bd2d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse5.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListAgentVersionsResponse5 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListAgentVersionsResponseStatus3JsonConverter))] + public global::RetellAI.ListAgentVersionsResponseStatus3? Status { get; set; } + + /// + /// Example: The requested resource was not found. + /// + /// The requested resource was not found. + [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: The requested resource was not found. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListAgentVersionsResponse5( + global::RetellAI.ListAgentVersionsResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListAgentVersionsResponse5() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse6.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse6.Json.g.cs new file mode 100644 index 00000000..b962bfc3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse6.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListAgentVersionsResponse6 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListAgentVersionsResponse6? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListAgentVersionsResponse6), + jsonSerializerContext) as global::RetellAI.ListAgentVersionsResponse6; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListAgentVersionsResponse6? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListAgentVersionsResponse6? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListAgentVersionsResponse6), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListAgentVersionsResponse6; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse6.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse6.g.cs new file mode 100644 index 00000000..ed722cc7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse6.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListAgentVersionsResponse6 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListAgentVersionsResponseStatus4JsonConverter))] + public global::RetellAI.ListAgentVersionsResponseStatus4? Status { get; set; } + + /// + /// Example: Cannot find requested asset under given api key. + /// + /// Cannot find requested asset under given api key. + [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: Cannot find requested asset under given api key. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListAgentVersionsResponse6( + global::RetellAI.ListAgentVersionsResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListAgentVersionsResponse6() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse7.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse7.Json.g.cs new file mode 100644 index 00000000..d13887f5 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse7.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListAgentVersionsResponse7 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListAgentVersionsResponse7? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListAgentVersionsResponse7), + jsonSerializerContext) as global::RetellAI.ListAgentVersionsResponse7; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListAgentVersionsResponse7? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListAgentVersionsResponse7? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListAgentVersionsResponse7), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListAgentVersionsResponse7; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse7.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse7.g.cs new file mode 100644 index 00000000..69889e35 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse7.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListAgentVersionsResponse7 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListAgentVersionsResponseStatus5JsonConverter))] + public global::RetellAI.ListAgentVersionsResponseStatus5? 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 ListAgentVersionsResponse7( + global::RetellAI.ListAgentVersionsResponseStatus5? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListAgentVersionsResponse7() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse8.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse8.Json.g.cs new file mode 100644 index 00000000..81f3cee8 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse8.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListAgentVersionsResponse8 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListAgentVersionsResponse8? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListAgentVersionsResponse8), + jsonSerializerContext) as global::RetellAI.ListAgentVersionsResponse8; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListAgentVersionsResponse8? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListAgentVersionsResponse8? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListAgentVersionsResponse8), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListAgentVersionsResponse8; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse8.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse8.g.cs new file mode 100644 index 00000000..46072feb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponse8.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListAgentVersionsResponse8 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListAgentVersionsResponseStatus6JsonConverter))] + public global::RetellAI.ListAgentVersionsResponseStatus6? 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 ListAgentVersionsResponse8( + global::RetellAI.ListAgentVersionsResponseStatus6? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListAgentVersionsResponse8() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponseStatus.g.cs new file mode 100644 index 00000000..40d11878 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListAgentVersionsResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListAgentVersionsResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListAgentVersionsResponseStatus value) + { + return value switch + { + ListAgentVersionsResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListAgentVersionsResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => ListAgentVersionsResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponseStatus2.g.cs new file mode 100644 index 00000000..31e60d31 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListAgentVersionsResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListAgentVersionsResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListAgentVersionsResponseStatus2 value) + { + return value switch + { + ListAgentVersionsResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListAgentVersionsResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => ListAgentVersionsResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponseStatus3.g.cs new file mode 100644 index 00000000..14c45674 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListAgentVersionsResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListAgentVersionsResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListAgentVersionsResponseStatus3 value) + { + return value switch + { + ListAgentVersionsResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListAgentVersionsResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => ListAgentVersionsResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponseStatus4.g.cs new file mode 100644 index 00000000..04d70272 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListAgentVersionsResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListAgentVersionsResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListAgentVersionsResponseStatus4 value) + { + return value switch + { + ListAgentVersionsResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListAgentVersionsResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => ListAgentVersionsResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponseStatus5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponseStatus5.g.cs new file mode 100644 index 00000000..cd6d614f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponseStatus5.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListAgentVersionsResponseStatus5 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListAgentVersionsResponseStatus5Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListAgentVersionsResponseStatus5 value) + { + return value switch + { + ListAgentVersionsResponseStatus5.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListAgentVersionsResponseStatus5? ToEnum(string value) + { + return value switch + { + "error" => ListAgentVersionsResponseStatus5.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponseStatus6.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponseStatus6.g.cs new file mode 100644 index 00000000..2387fd7a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsResponseStatus6.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListAgentVersionsResponseStatus6 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListAgentVersionsResponseStatus6Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListAgentVersionsResponseStatus6 value) + { + return value switch + { + ListAgentVersionsResponseStatus6.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListAgentVersionsResponseStatus6? ToEnum(string value) + { + return value switch + { + "error" => ListAgentVersionsResponseStatus6.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsSortOrder.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsSortOrder.g.cs new file mode 100644 index 00000000..8cf6813b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAgentVersionsSortOrder.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// Default Value: descending + /// + public enum ListAgentVersionsSortOrder + { + /// + /// + /// + Ascending, + /// + /// + /// + Descending, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListAgentVersionsSortOrderExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListAgentVersionsSortOrder value) + { + return value switch + { + ListAgentVersionsSortOrder.Ascending => "ascending", + ListAgentVersionsSortOrder.Descending => "descending", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListAgentVersionsSortOrder? ToEnum(string value) + { + return value switch + { + "ascending" => ListAgentVersionsSortOrder.Ascending, + "descending" => ListAgentVersionsSortOrder.Descending, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse2.Json.g.cs new file mode 100644 index 00000000..8183cef6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListAppUsagesResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListAppUsagesResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListAppUsagesResponse2), + jsonSerializerContext) as global::RetellAI.ListAppUsagesResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListAppUsagesResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListAppUsagesResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListAppUsagesResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListAppUsagesResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse2.g.cs new file mode 100644 index 00000000..2e1a19bb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse2.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListAppUsagesResponse2 + { + /// + /// + /// + [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 ListAppUsagesResponse2( + global::System.Collections.Generic.IList? items) + { + this.Items = items; + } + + /// + /// Initializes a new instance of the class. + /// + public ListAppUsagesResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse3.Json.g.cs new file mode 100644 index 00000000..d332572d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListAppUsagesResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListAppUsagesResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListAppUsagesResponse3), + jsonSerializerContext) as global::RetellAI.ListAppUsagesResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListAppUsagesResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListAppUsagesResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListAppUsagesResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListAppUsagesResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse3.g.cs new file mode 100644 index 00000000..f34df631 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListAppUsagesResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListAppUsagesResponseStatusJsonConverter))] + public global::RetellAI.ListAppUsagesResponseStatus? 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 ListAppUsagesResponse3( + global::RetellAI.ListAppUsagesResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListAppUsagesResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse4.Json.g.cs new file mode 100644 index 00000000..3ec378cf --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListAppUsagesResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListAppUsagesResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListAppUsagesResponse4), + jsonSerializerContext) as global::RetellAI.ListAppUsagesResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListAppUsagesResponse4? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListAppUsagesResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListAppUsagesResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListAppUsagesResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse4.g.cs new file mode 100644 index 00000000..f4f705b7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse4.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListAppUsagesResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListAppUsagesResponseStatus2JsonConverter))] + public global::RetellAI.ListAppUsagesResponseStatus2? Status { get; set; } + + /// + /// Example: The requested resource was not found. + /// + /// The requested resource was not found. + [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: The requested resource was not found. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListAppUsagesResponse4( + global::RetellAI.ListAppUsagesResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListAppUsagesResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse5.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse5.Json.g.cs new file mode 100644 index 00000000..83a2ca3a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListAppUsagesResponse5 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListAppUsagesResponse5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListAppUsagesResponse5), + jsonSerializerContext) as global::RetellAI.ListAppUsagesResponse5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListAppUsagesResponse5? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListAppUsagesResponse5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListAppUsagesResponse5), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListAppUsagesResponse5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse5.g.cs new file mode 100644 index 00000000..bdafe8e2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse5.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListAppUsagesResponse5 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListAppUsagesResponseStatus3JsonConverter))] + public global::RetellAI.ListAppUsagesResponseStatus3? 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 ListAppUsagesResponse5( + global::RetellAI.ListAppUsagesResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListAppUsagesResponse5() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse6.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse6.Json.g.cs new file mode 100644 index 00000000..3d9f3471 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse6.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListAppUsagesResponse6 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListAppUsagesResponse6? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListAppUsagesResponse6), + jsonSerializerContext) as global::RetellAI.ListAppUsagesResponse6; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListAppUsagesResponse6? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListAppUsagesResponse6? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListAppUsagesResponse6), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListAppUsagesResponse6; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse6.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse6.g.cs new file mode 100644 index 00000000..778847b9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponse6.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListAppUsagesResponse6 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListAppUsagesResponseStatus4JsonConverter))] + public global::RetellAI.ListAppUsagesResponseStatus4? 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 ListAppUsagesResponse6( + global::RetellAI.ListAppUsagesResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListAppUsagesResponse6() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponseStatus.g.cs new file mode 100644 index 00000000..c50d64c4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListAppUsagesResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListAppUsagesResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListAppUsagesResponseStatus value) + { + return value switch + { + ListAppUsagesResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListAppUsagesResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => ListAppUsagesResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponseStatus2.g.cs new file mode 100644 index 00000000..4b7fef2f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListAppUsagesResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListAppUsagesResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListAppUsagesResponseStatus2 value) + { + return value switch + { + ListAppUsagesResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListAppUsagesResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => ListAppUsagesResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponseStatus3.g.cs new file mode 100644 index 00000000..14d8dbd1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListAppUsagesResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListAppUsagesResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListAppUsagesResponseStatus3 value) + { + return value switch + { + ListAppUsagesResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListAppUsagesResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => ListAppUsagesResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponseStatus4.g.cs new file mode 100644 index 00000000..5408a0e4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListAppUsagesResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListAppUsagesResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListAppUsagesResponseStatus4 value) + { + return value switch + { + ListAppUsagesResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListAppUsagesResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => ListAppUsagesResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesSortOrder.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesSortOrder.g.cs new file mode 100644 index 00000000..b8773960 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppUsagesSortOrder.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// Default Value: descending + /// + public enum ListAppUsagesSortOrder + { + /// + /// + /// + Ascending, + /// + /// + /// + Descending, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListAppUsagesSortOrderExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListAppUsagesSortOrder value) + { + return value switch + { + ListAppUsagesSortOrder.Ascending => "ascending", + ListAppUsagesSortOrder.Descending => "descending", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListAppUsagesSortOrder? ToEnum(string value) + { + return value switch + { + "ascending" => ListAppUsagesSortOrder.Ascending, + "descending" => ListAppUsagesSortOrder.Descending, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse2.Json.g.cs new file mode 100644 index 00000000..8add83ea --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListAppsResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListAppsResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListAppsResponse2), + jsonSerializerContext) as global::RetellAI.ListAppsResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListAppsResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListAppsResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListAppsResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListAppsResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse2.g.cs new file mode 100644 index 00000000..c7cbf718 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse2.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListAppsResponse2 + { + /// + /// + /// + [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 ListAppsResponse2( + global::System.Collections.Generic.IList? items) + { + this.Items = items; + } + + /// + /// Initializes a new instance of the class. + /// + public ListAppsResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse3.Json.g.cs new file mode 100644 index 00000000..893a217a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListAppsResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListAppsResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListAppsResponse3), + jsonSerializerContext) as global::RetellAI.ListAppsResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListAppsResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListAppsResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListAppsResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListAppsResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse3.g.cs new file mode 100644 index 00000000..c7339031 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListAppsResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListAppsResponseStatusJsonConverter))] + public global::RetellAI.ListAppsResponseStatus? 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 ListAppsResponse3( + global::RetellAI.ListAppsResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListAppsResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse4.Json.g.cs new file mode 100644 index 00000000..f7b2d10a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListAppsResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListAppsResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListAppsResponse4), + jsonSerializerContext) as global::RetellAI.ListAppsResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListAppsResponse4? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListAppsResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListAppsResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListAppsResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse4.g.cs new file mode 100644 index 00000000..5cfeacaf --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse4.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListAppsResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListAppsResponseStatus2JsonConverter))] + public global::RetellAI.ListAppsResponseStatus2? 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 ListAppsResponse4( + global::RetellAI.ListAppsResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListAppsResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse5.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse5.Json.g.cs new file mode 100644 index 00000000..a722e2aa --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListAppsResponse5 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListAppsResponse5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListAppsResponse5), + jsonSerializerContext) as global::RetellAI.ListAppsResponse5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListAppsResponse5? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListAppsResponse5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListAppsResponse5), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListAppsResponse5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse5.g.cs new file mode 100644 index 00000000..4211fc5e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponse5.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListAppsResponse5 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListAppsResponseStatus3JsonConverter))] + public global::RetellAI.ListAppsResponseStatus3? 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 ListAppsResponse5( + global::RetellAI.ListAppsResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListAppsResponse5() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponseStatus.g.cs new file mode 100644 index 00000000..ae2ee422 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListAppsResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListAppsResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListAppsResponseStatus value) + { + return value switch + { + ListAppsResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListAppsResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => ListAppsResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponseStatus2.g.cs new file mode 100644 index 00000000..780f6d94 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListAppsResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListAppsResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListAppsResponseStatus2 value) + { + return value switch + { + ListAppsResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListAppsResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => ListAppsResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponseStatus3.g.cs new file mode 100644 index 00000000..6c57b8b2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListAppsResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListAppsResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListAppsResponseStatus3 value) + { + return value switch + { + ListAppsResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListAppsResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => ListAppsResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsSortOrder.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsSortOrder.g.cs new file mode 100644 index 00000000..e3dc39e4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListAppsSortOrder.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// Default Value: descending + /// + public enum ListAppsSortOrder + { + /// + /// + /// + Ascending, + /// + /// + /// + Descending, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListAppsSortOrderExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListAppsSortOrder value) + { + return value switch + { + ListAppsSortOrder.Ascending => "ascending", + ListAppsSortOrder.Descending => "descending", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListAppsSortOrder? ToEnum(string value) + { + return value switch + { + "ascending" => ListAppsSortOrder.Ascending, + "descending" => ListAppsSortOrder.Descending, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse.Json.g.cs new file mode 100644 index 00000000..ed3e0ae5 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListContactConversationsResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListContactConversationsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListContactConversationsResponse), + jsonSerializerContext) as global::RetellAI.ListContactConversationsResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListContactConversationsResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListContactConversationsResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListContactConversationsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListContactConversationsResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse.g.cs new file mode 100644 index 00000000..d0cbc26b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListContactConversationsResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListContactConversationsResponseStatusJsonConverter))] + public global::RetellAI.ListContactConversationsResponseStatus? 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 ListContactConversationsResponse( + global::RetellAI.ListContactConversationsResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListContactConversationsResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse2.Json.g.cs new file mode 100644 index 00000000..4bad7990 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListContactConversationsResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListContactConversationsResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListContactConversationsResponse2), + jsonSerializerContext) as global::RetellAI.ListContactConversationsResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListContactConversationsResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListContactConversationsResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListContactConversationsResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListContactConversationsResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse2.g.cs new file mode 100644 index 00000000..40950673 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListContactConversationsResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListContactConversationsResponseStatus2JsonConverter))] + public global::RetellAI.ListContactConversationsResponseStatus2? Status { get; set; } + + /// + /// Example: The requested resource was not found. + /// + /// The requested resource was not found. + [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: The requested resource was not found. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListContactConversationsResponse2( + global::RetellAI.ListContactConversationsResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListContactConversationsResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse3.Json.g.cs new file mode 100644 index 00000000..854bafe6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListContactConversationsResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListContactConversationsResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListContactConversationsResponse3), + jsonSerializerContext) as global::RetellAI.ListContactConversationsResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListContactConversationsResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListContactConversationsResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListContactConversationsResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListContactConversationsResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse3.g.cs new file mode 100644 index 00000000..e467d78e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListContactConversationsResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListContactConversationsResponseStatus3JsonConverter))] + public global::RetellAI.ListContactConversationsResponseStatus3? 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 ListContactConversationsResponse3( + global::RetellAI.ListContactConversationsResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListContactConversationsResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse4.Json.g.cs new file mode 100644 index 00000000..cbde4536 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListContactConversationsResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListContactConversationsResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListContactConversationsResponse4), + jsonSerializerContext) as global::RetellAI.ListContactConversationsResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListContactConversationsResponse4? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListContactConversationsResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListContactConversationsResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListContactConversationsResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse4.g.cs new file mode 100644 index 00000000..a53d082a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponse4.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListContactConversationsResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListContactConversationsResponseStatus4JsonConverter))] + public global::RetellAI.ListContactConversationsResponseStatus4? 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 ListContactConversationsResponse4( + global::RetellAI.ListContactConversationsResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListContactConversationsResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponseStatus.g.cs new file mode 100644 index 00000000..350a8ca6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListContactConversationsResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListContactConversationsResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListContactConversationsResponseStatus value) + { + return value switch + { + ListContactConversationsResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListContactConversationsResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => ListContactConversationsResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponseStatus2.g.cs new file mode 100644 index 00000000..a7cc4803 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListContactConversationsResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListContactConversationsResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListContactConversationsResponseStatus2 value) + { + return value switch + { + ListContactConversationsResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListContactConversationsResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => ListContactConversationsResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponseStatus3.g.cs new file mode 100644 index 00000000..ad9931c9 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListContactConversationsResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListContactConversationsResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListContactConversationsResponseStatus3 value) + { + return value switch + { + ListContactConversationsResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListContactConversationsResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => ListContactConversationsResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponseStatus4.g.cs new file mode 100644 index 00000000..8bedfba1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactConversationsResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListContactConversationsResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListContactConversationsResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListContactConversationsResponseStatus4 value) + { + return value switch + { + ListContactConversationsResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListContactConversationsResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => ListContactConversationsResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse.Json.g.cs new file mode 100644 index 00000000..34d4cba1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListContactsResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListContactsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListContactsResponse), + jsonSerializerContext) as global::RetellAI.ListContactsResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListContactsResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListContactsResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListContactsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListContactsResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse.g.cs new file mode 100644 index 00000000..fc58e107 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListContactsResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListContactsResponseStatusJsonConverter))] + public global::RetellAI.ListContactsResponseStatus? 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 ListContactsResponse( + global::RetellAI.ListContactsResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListContactsResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse2.Json.g.cs new file mode 100644 index 00000000..9e8ac129 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListContactsResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListContactsResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListContactsResponse2), + jsonSerializerContext) as global::RetellAI.ListContactsResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListContactsResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListContactsResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListContactsResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListContactsResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse2.g.cs new file mode 100644 index 00000000..56573e75 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListContactsResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListContactsResponseStatus2JsonConverter))] + public global::RetellAI.ListContactsResponseStatus2? 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 ListContactsResponse2( + global::RetellAI.ListContactsResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListContactsResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse3.Json.g.cs new file mode 100644 index 00000000..b1e765c2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListContactsResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListContactsResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListContactsResponse3), + jsonSerializerContext) as global::RetellAI.ListContactsResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListContactsResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListContactsResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListContactsResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListContactsResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse3.g.cs new file mode 100644 index 00000000..4ef7aecb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListContactsResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListContactsResponseStatus3JsonConverter))] + public global::RetellAI.ListContactsResponseStatus3? 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 ListContactsResponse3( + global::RetellAI.ListContactsResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListContactsResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse4.Json.g.cs new file mode 100644 index 00000000..5a42b13f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class ListContactsResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.ListContactsResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.ListContactsResponse4), + jsonSerializerContext) as global::RetellAI.ListContactsResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.ListContactsResponse4? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.ListContactsResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.ListContactsResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.ListContactsResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse4.g.cs new file mode 100644 index 00000000..bd43ebea --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponse4.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class ListContactsResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.ListContactsResponseStatus4JsonConverter))] + public global::RetellAI.ListContactsResponseStatus4? 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 ListContactsResponse4( + global::RetellAI.ListContactsResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ListContactsResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponseStatus.g.cs new file mode 100644 index 00000000..e62e66ea --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListContactsResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListContactsResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListContactsResponseStatus value) + { + return value switch + { + ListContactsResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListContactsResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => ListContactsResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponseStatus2.g.cs new file mode 100644 index 00000000..d117dc16 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListContactsResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListContactsResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListContactsResponseStatus2 value) + { + return value switch + { + ListContactsResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListContactsResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => ListContactsResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponseStatus3.g.cs new file mode 100644 index 00000000..28f2f2ad --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListContactsResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListContactsResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListContactsResponseStatus3 value) + { + return value switch + { + ListContactsResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListContactsResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => ListContactsResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponseStatus4.g.cs new file mode 100644 index 00000000..8daf06b1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ListContactsResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum ListContactsResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ListContactsResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ListContactsResponseStatus4 value) + { + return value switch + { + ListContactsResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ListContactsResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => ListContactsResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.OAuthConfigRequest.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.OAuthConfigRequest.Json.g.cs new file mode 100644 index 00000000..4116c1b7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.OAuthConfigRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class OAuthConfigRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.OAuthConfigRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.OAuthConfigRequest), + jsonSerializerContext) as global::RetellAI.OAuthConfigRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.OAuthConfigRequest? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.OAuthConfigRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.OAuthConfigRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.OAuthConfigRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.OAuthConfigRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.OAuthConfigRequest.g.cs new file mode 100644 index 00000000..fb6daeba --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.OAuthConfigRequest.g.cs @@ -0,0 +1,67 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class OAuthConfigRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.OAuthConfigRequestTypeJsonConverter))] + public global::RetellAI.OAuthConfigRequestType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("client_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ClientId { get; set; } + + /// + /// Secret credential; stored encrypted at rest. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("client_secret")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ClientSecret { 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. + /// + /// + /// + /// Secret credential; stored encrypted at rest. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public OAuthConfigRequest( + string clientId, + string clientSecret, + global::RetellAI.OAuthConfigRequestType type) + { + this.Type = type; + this.ClientId = clientId ?? throw new global::System.ArgumentNullException(nameof(clientId)); + this.ClientSecret = clientSecret ?? throw new global::System.ArgumentNullException(nameof(clientSecret)); + } + + /// + /// Initializes a new instance of the class. + /// + public OAuthConfigRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.OAuthConfigRequestType.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.OAuthConfigRequestType.g.cs new file mode 100644 index 00000000..b6bbf46f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.OAuthConfigRequestType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum OAuthConfigRequestType + { + /// + /// + /// + Oauth2, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OAuthConfigRequestTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OAuthConfigRequestType value) + { + return value switch + { + OAuthConfigRequestType.Oauth2 => "oauth2", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OAuthConfigRequestType? ToEnum(string value) + { + return value switch + { + "oauth2" => OAuthConfigRequestType.Oauth2, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.OAuthConfigResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.OAuthConfigResponse.Json.g.cs new file mode 100644 index 00000000..e35a4690 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.OAuthConfigResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class OAuthConfigResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.OAuthConfigResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.OAuthConfigResponse), + jsonSerializerContext) as global::RetellAI.OAuthConfigResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.OAuthConfigResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.OAuthConfigResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.OAuthConfigResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.OAuthConfigResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.OAuthConfigResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.OAuthConfigResponse.g.cs new file mode 100644 index 00000000..b0db048c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.OAuthConfigResponse.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class OAuthConfigResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.OAuthConfigResponseTypeJsonConverter))] + public global::RetellAI.OAuthConfigResponseType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("client_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ClientId { 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 OAuthConfigResponse( + string clientId, + global::RetellAI.OAuthConfigResponseType type) + { + this.Type = type; + this.ClientId = clientId ?? throw new global::System.ArgumentNullException(nameof(clientId)); + } + + /// + /// Initializes a new instance of the class. + /// + public OAuthConfigResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.OAuthConfigResponseType.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.OAuthConfigResponseType.g.cs new file mode 100644 index 00000000..7dd5f26b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.OAuthConfigResponseType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum OAuthConfigResponseType + { + /// + /// + /// + Oauth2, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OAuthConfigResponseTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OAuthConfigResponseType value) + { + return value switch + { + OAuthConfigResponseType.Oauth2 => "oauth2", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OAuthConfigResponseType? ToEnum(string value) + { + return value switch + { + "oauth2" => OAuthConfigResponseType.Oauth2, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RefreshTokenAuthConfigRequest.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RefreshTokenAuthConfigRequest.Json.g.cs new file mode 100644 index 00000000..f7f80253 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RefreshTokenAuthConfigRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class RefreshTokenAuthConfigRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.RefreshTokenAuthConfigRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.RefreshTokenAuthConfigRequest), + jsonSerializerContext) as global::RetellAI.RefreshTokenAuthConfigRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.RefreshTokenAuthConfigRequest? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.RefreshTokenAuthConfigRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.RefreshTokenAuthConfigRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.RefreshTokenAuthConfigRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RefreshTokenAuthConfigRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RefreshTokenAuthConfigRequest.g.cs new file mode 100644 index 00000000..09c689b5 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RefreshTokenAuthConfigRequest.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class RefreshTokenAuthConfigRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.RefreshTokenAuthConfigRequestTypeJsonConverter))] + public global::RetellAI.RefreshTokenAuthConfigRequestType Type { get; set; } + + /// + /// OAuth refresh token; stored encrypted at rest. An alternative to the OAuth connect flow, which persists the same config. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("refresh_token")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string RefreshToken { 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. + /// + /// + /// OAuth refresh token; stored encrypted at rest. An alternative to the OAuth connect flow, which persists the same config. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RefreshTokenAuthConfigRequest( + string refreshToken, + global::RetellAI.RefreshTokenAuthConfigRequestType type) + { + this.Type = type; + this.RefreshToken = refreshToken ?? throw new global::System.ArgumentNullException(nameof(refreshToken)); + } + + /// + /// Initializes a new instance of the class. + /// + public RefreshTokenAuthConfigRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RefreshTokenAuthConfigRequestType.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RefreshTokenAuthConfigRequestType.g.cs new file mode 100644 index 00000000..37227a9e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RefreshTokenAuthConfigRequestType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum RefreshTokenAuthConfigRequestType + { + /// + /// + /// + RefreshToken, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RefreshTokenAuthConfigRequestTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RefreshTokenAuthConfigRequestType value) + { + return value switch + { + RefreshTokenAuthConfigRequestType.RefreshToken => "refresh_token", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RefreshTokenAuthConfigRequestType? ToEnum(string value) + { + return value switch + { + "refresh_token" => RefreshTokenAuthConfigRequestType.RefreshToken, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RefreshTokenAuthConfigResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RefreshTokenAuthConfigResponse.Json.g.cs new file mode 100644 index 00000000..f3198000 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RefreshTokenAuthConfigResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class RefreshTokenAuthConfigResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.RefreshTokenAuthConfigResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.RefreshTokenAuthConfigResponse), + jsonSerializerContext) as global::RetellAI.RefreshTokenAuthConfigResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.RefreshTokenAuthConfigResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.RefreshTokenAuthConfigResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.RefreshTokenAuthConfigResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.RefreshTokenAuthConfigResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RefreshTokenAuthConfigResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RefreshTokenAuthConfigResponse.g.cs new file mode 100644 index 00000000..b0d64f2a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RefreshTokenAuthConfigResponse.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class RefreshTokenAuthConfigResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.RefreshTokenAuthConfigResponseTypeJsonConverter))] + public global::RetellAI.RefreshTokenAuthConfigResponseType Type { 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 RefreshTokenAuthConfigResponse( + global::RetellAI.RefreshTokenAuthConfigResponseType type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public RefreshTokenAuthConfigResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RefreshTokenAuthConfigResponseType.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RefreshTokenAuthConfigResponseType.g.cs new file mode 100644 index 00000000..3ca68607 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RefreshTokenAuthConfigResponseType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum RefreshTokenAuthConfigResponseType + { + /// + /// + /// + RefreshToken, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RefreshTokenAuthConfigResponseTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RefreshTokenAuthConfigResponseType value) + { + return value switch + { + RefreshTokenAuthConfigResponseType.RefreshToken => "refresh_token", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RefreshTokenAuthConfigResponseType? ToEnum(string value) + { + return value switch + { + "refresh_token" => RefreshTokenAuthConfigResponseType.RefreshToken, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse.Json.g.cs new file mode 100644 index 00000000..0fc66d8d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class RunSyncJobResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.RunSyncJobResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.RunSyncJobResponse), + jsonSerializerContext) as global::RetellAI.RunSyncJobResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.RunSyncJobResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.RunSyncJobResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.RunSyncJobResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.RunSyncJobResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse.g.cs new file mode 100644 index 00000000..91de3efc --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class RunSyncJobResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.RunSyncJobResponseStatusJsonConverter))] + public global::RetellAI.RunSyncJobResponseStatus? 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 RunSyncJobResponse( + global::RetellAI.RunSyncJobResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public RunSyncJobResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse2.Json.g.cs new file mode 100644 index 00000000..578430ba --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class RunSyncJobResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.RunSyncJobResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.RunSyncJobResponse2), + jsonSerializerContext) as global::RetellAI.RunSyncJobResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.RunSyncJobResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.RunSyncJobResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.RunSyncJobResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.RunSyncJobResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse2.g.cs new file mode 100644 index 00000000..be9fa6ab --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class RunSyncJobResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.RunSyncJobResponseStatus2JsonConverter))] + public global::RetellAI.RunSyncJobResponseStatus2? 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 RunSyncJobResponse2( + global::RetellAI.RunSyncJobResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public RunSyncJobResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse3.Json.g.cs new file mode 100644 index 00000000..de83b826 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class RunSyncJobResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.RunSyncJobResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.RunSyncJobResponse3), + jsonSerializerContext) as global::RetellAI.RunSyncJobResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.RunSyncJobResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.RunSyncJobResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.RunSyncJobResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.RunSyncJobResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse3.g.cs new file mode 100644 index 00000000..cb747301 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class RunSyncJobResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.RunSyncJobResponseStatus3JsonConverter))] + public global::RetellAI.RunSyncJobResponseStatus3? 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 RunSyncJobResponse3( + global::RetellAI.RunSyncJobResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public RunSyncJobResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse4.Json.g.cs new file mode 100644 index 00000000..87d00163 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class RunSyncJobResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.RunSyncJobResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.RunSyncJobResponse4), + jsonSerializerContext) as global::RetellAI.RunSyncJobResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.RunSyncJobResponse4? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.RunSyncJobResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.RunSyncJobResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.RunSyncJobResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse4.g.cs new file mode 100644 index 00000000..0e807872 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponse4.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class RunSyncJobResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.RunSyncJobResponseStatus4JsonConverter))] + public global::RetellAI.RunSyncJobResponseStatus4? 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 RunSyncJobResponse4( + global::RetellAI.RunSyncJobResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public RunSyncJobResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponseStatus.g.cs new file mode 100644 index 00000000..6d1d1c72 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum RunSyncJobResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RunSyncJobResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RunSyncJobResponseStatus value) + { + return value switch + { + RunSyncJobResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RunSyncJobResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => RunSyncJobResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponseStatus2.g.cs new file mode 100644 index 00000000..5aa8740d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum RunSyncJobResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RunSyncJobResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RunSyncJobResponseStatus2 value) + { + return value switch + { + RunSyncJobResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RunSyncJobResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => RunSyncJobResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponseStatus3.g.cs new file mode 100644 index 00000000..ace619a0 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum RunSyncJobResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RunSyncJobResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RunSyncJobResponseStatus3 value) + { + return value switch + { + RunSyncJobResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RunSyncJobResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => RunSyncJobResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponseStatus4.g.cs new file mode 100644 index 00000000..9871bf74 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RunSyncJobResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum RunSyncJobResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RunSyncJobResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RunSyncJobResponseStatus4 value) + { + return value switch + { + RunSyncJobResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RunSyncJobResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => RunSyncJobResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.StoredCallFilter.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.StoredCallFilter.Json.g.cs new file mode 100644 index 00000000..641ee3eb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.StoredCallFilter.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public readonly partial struct StoredCallFilter + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.StoredCallFilter? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.StoredCallFilter), + jsonSerializerContext) as global::RetellAI.StoredCallFilter?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.StoredCallFilter? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.StoredCallFilter? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.StoredCallFilter), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.StoredCallFilter?; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.StoredCallFilter.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.StoredCallFilter.g.cs new file mode 100644 index 00000000..a85c39ca --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.StoredCallFilter.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace RetellAI +{ + /// + /// A `CallFilter` as *persisted* on a dashboard or chart. Identical to `CallFilter` for querying purposes — the extra field records how the selection was made, not what to match. Used only by the dashboard configuration endpoints; query endpoints take a plain `CallFilter`. + /// + public readonly partial struct StoredCallFilter : global::System.IEquatable + { + /// + /// Filter criteria for calls. All conditions are implicitly connected with AND. + /// +#if NET6_0_OR_GREATER + public global::RetellAI.CallFilter? CallFilter { get; init; } +#else + public global::RetellAI.CallFilter? CallFilter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CallFilter))] +#endif + public bool IsCallFilter => CallFilter != null; + + /// + /// + /// + public bool TryPickCallFilter( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::RetellAI.CallFilter? value) + { + value = CallFilter; + return IsCallFilter; + } + + /// + /// + /// + public global::RetellAI.CallFilter PickCallFilter() => IsCallFilter + ? CallFilter! + : throw new global::System.InvalidOperationException($"Expected union variant 'CallFilter' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::RetellAI.StoredCallFilterVariant2? StoredCallFilterVariant2 { get; init; } +#else + public global::RetellAI.StoredCallFilterVariant2? StoredCallFilterVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(StoredCallFilterVariant2))] +#endif + public bool IsStoredCallFilterVariant2 => StoredCallFilterVariant2 != null; + + /// + /// + /// + public bool TryPickStoredCallFilterVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::RetellAI.StoredCallFilterVariant2? value) + { + value = StoredCallFilterVariant2; + return IsStoredCallFilterVariant2; + } + + /// + /// + /// + public global::RetellAI.StoredCallFilterVariant2 PickStoredCallFilterVariant2() => IsStoredCallFilterVariant2 + ? StoredCallFilterVariant2! + : throw new global::System.InvalidOperationException($"Expected union variant 'StoredCallFilterVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator StoredCallFilter(global::RetellAI.CallFilter value) => new StoredCallFilter((global::RetellAI.CallFilter?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.CallFilter?(StoredCallFilter @this) => @this.CallFilter; + + /// + /// + /// + public StoredCallFilter(global::RetellAI.CallFilter? value) + { + CallFilter = value; + } + + /// + /// + /// + public static StoredCallFilter FromCallFilter(global::RetellAI.CallFilter? value) => new StoredCallFilter(value); + + /// + /// + /// + public static implicit operator StoredCallFilter(global::RetellAI.StoredCallFilterVariant2 value) => new StoredCallFilter((global::RetellAI.StoredCallFilterVariant2?)value); + + /// + /// + /// + public static implicit operator global::RetellAI.StoredCallFilterVariant2?(StoredCallFilter @this) => @this.StoredCallFilterVariant2; + + /// + /// + /// + public StoredCallFilter(global::RetellAI.StoredCallFilterVariant2? value) + { + StoredCallFilterVariant2 = value; + } + + /// + /// + /// + public static StoredCallFilter FromStoredCallFilterVariant2(global::RetellAI.StoredCallFilterVariant2? value) => new StoredCallFilter(value); + + /// + /// + /// + public StoredCallFilter( + global::RetellAI.CallFilter? callFilter, + global::RetellAI.StoredCallFilterVariant2? storedCallFilterVariant2 + ) + { + CallFilter = callFilter; + StoredCallFilterVariant2 = storedCallFilterVariant2; + } + + /// + /// + /// + public object? Object => + StoredCallFilterVariant2 as object ?? + CallFilter as object + ; + + /// + /// + /// + public override string? ToString() => + CallFilter?.ToString() ?? + StoredCallFilterVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsCallFilter && IsStoredCallFilterVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? callFilter = null, + global::System.Func? storedCallFilterVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCallFilter && callFilter != null) + { + return callFilter(CallFilter!); + } + else if (IsStoredCallFilterVariant2 && storedCallFilterVariant2 != null) + { + return storedCallFilterVariant2(StoredCallFilterVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? callFilter = null, + + global::System.Action? storedCallFilterVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCallFilter) + { + callFilter?.Invoke(CallFilter!); + } + else if (IsStoredCallFilterVariant2) + { + storedCallFilterVariant2?.Invoke(StoredCallFilterVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? callFilter = null, + global::System.Action? storedCallFilterVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCallFilter) + { + callFilter?.Invoke(CallFilter!); + } + else if (IsStoredCallFilterVariant2) + { + storedCallFilterVariant2?.Invoke(StoredCallFilterVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + CallFilter, + typeof(global::RetellAI.CallFilter), + StoredCallFilterVariant2, + typeof(global::RetellAI.StoredCallFilterVariant2), + }; + 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(StoredCallFilter other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(CallFilter, other.CallFilter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(StoredCallFilterVariant2, other.StoredCallFilterVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(StoredCallFilter obj1, StoredCallFilter obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(StoredCallFilter obj1, StoredCallFilter obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is StoredCallFilter o && Equals(o); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.StoredCallFilterVariant2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.StoredCallFilterVariant2.Json.g.cs new file mode 100644 index 00000000..bfe34f81 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.StoredCallFilterVariant2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class StoredCallFilterVariant2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.StoredCallFilterVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.StoredCallFilterVariant2), + jsonSerializerContext) as global::RetellAI.StoredCallFilterVariant2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.StoredCallFilterVariant2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.StoredCallFilterVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.StoredCallFilterVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.StoredCallFilterVariant2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.StoredCallFilterVariant2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.StoredCallFilterVariant2.g.cs new file mode 100644 index 00000000..66c1ed07 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.StoredCallFilterVariant2.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class StoredCallFilterVariant2 + { + /// + /// The subset of `agent` that was selected as transfer agents. Stored and returned verbatim; it is NOT applied when querying — the dashboard merges its transfer-agent selection into `agent`, which is what filtering resolves on. It exists only so that a saved filter, on being read back, can tell which entries of `agent` belong to the transfer-agent picker; without it they all come back as regular agent selections. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("transfer_agent")] + public global::System.Collections.Generic.IList? TransferAgent { 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 subset of `agent` that was selected as transfer agents. Stored and returned verbatim; it is NOT applied when querying — the dashboard merges its transfer-agent selection into `agent`, which is what filtering resolves on. It exists only so that a saved filter, on being read back, can tell which entries of `agent` belong to the transfer-agent picker; without it they all come back as regular agent selections. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public StoredCallFilterVariant2( + global::System.Collections.Generic.IList? transferAgent) + { + this.TransferAgent = transferAgent; + } + + /// + /// Initializes a new instance of the class. + /// + public StoredCallFilterVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse.Json.g.cs new file mode 100644 index 00000000..673f5470 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class TestAppAuthResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.TestAppAuthResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.TestAppAuthResponse), + jsonSerializerContext) as global::RetellAI.TestAppAuthResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.TestAppAuthResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.TestAppAuthResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.TestAppAuthResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.TestAppAuthResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CallFilterDynamicVariable.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse.g.cs similarity index 57% rename from src/libs/RetellAI/Generated/RetellAI.Models.CallFilterDynamicVariable.g.cs rename to src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse.g.cs index 9ba97120..73beaa52 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.CallFilterDynamicVariable.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse.g.cs @@ -6,14 +6,14 @@ namespace RetellAI /// /// /// - public sealed partial class CallFilterDynamicVariable + public sealed partial class TestAppAuthResponse { /// - /// The dynamic variable name to filter on. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("key")] + [global::System.Text.Json.Serialization.JsonPropertyName("success")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Key { get; set; } + public required bool Success { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -22,24 +22,22 @@ public sealed partial class CallFilterDynamicVariable public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// - /// The dynamic variable name to filter on. - /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CallFilterDynamicVariable( - string key) + public TestAppAuthResponse( + bool success) { - this.Key = key ?? throw new global::System.ArgumentNullException(nameof(key)); + this.Success = success; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CallFilterDynamicVariable() + public TestAppAuthResponse() { } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse2.Json.g.cs new file mode 100644 index 00000000..48c3ba26 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class TestAppAuthResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.TestAppAuthResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.TestAppAuthResponse2), + jsonSerializerContext) as global::RetellAI.TestAppAuthResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.TestAppAuthResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.TestAppAuthResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.TestAppAuthResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.TestAppAuthResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse2.g.cs new file mode 100644 index 00000000..8390486e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class TestAppAuthResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.TestAppAuthResponseStatusJsonConverter))] + public global::RetellAI.TestAppAuthResponseStatus? 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 TestAppAuthResponse2( + global::RetellAI.TestAppAuthResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public TestAppAuthResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse3.Json.g.cs new file mode 100644 index 00000000..8ea61aa2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class TestAppAuthResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.TestAppAuthResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.TestAppAuthResponse3), + jsonSerializerContext) as global::RetellAI.TestAppAuthResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.TestAppAuthResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.TestAppAuthResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.TestAppAuthResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.TestAppAuthResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse3.g.cs new file mode 100644 index 00000000..019657a1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class TestAppAuthResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.TestAppAuthResponseStatus2JsonConverter))] + public global::RetellAI.TestAppAuthResponseStatus2? Status { get; set; } + + /// + /// Example: The requested resource was not found. + /// + /// The requested resource was not found. + [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: The requested resource was not found. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TestAppAuthResponse3( + global::RetellAI.TestAppAuthResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public TestAppAuthResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse4.Json.g.cs new file mode 100644 index 00000000..9757dbe3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class TestAppAuthResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.TestAppAuthResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.TestAppAuthResponse4), + jsonSerializerContext) as global::RetellAI.TestAppAuthResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.TestAppAuthResponse4? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.TestAppAuthResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.TestAppAuthResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.TestAppAuthResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse4.g.cs new file mode 100644 index 00000000..e0bba23c --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse4.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class TestAppAuthResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.TestAppAuthResponseStatus3JsonConverter))] + public global::RetellAI.TestAppAuthResponseStatus3? 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 TestAppAuthResponse4( + global::RetellAI.TestAppAuthResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public TestAppAuthResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse5.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse5.Json.g.cs new file mode 100644 index 00000000..45863da7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class TestAppAuthResponse5 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.TestAppAuthResponse5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.TestAppAuthResponse5), + jsonSerializerContext) as global::RetellAI.TestAppAuthResponse5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.TestAppAuthResponse5? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.TestAppAuthResponse5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.TestAppAuthResponse5), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.TestAppAuthResponse5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse5.g.cs new file mode 100644 index 00000000..f0860e04 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponse5.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class TestAppAuthResponse5 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.TestAppAuthResponseStatus4JsonConverter))] + public global::RetellAI.TestAppAuthResponseStatus4? 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 TestAppAuthResponse5( + global::RetellAI.TestAppAuthResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public TestAppAuthResponse5() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponseStatus.g.cs new file mode 100644 index 00000000..44bdd015 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum TestAppAuthResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TestAppAuthResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TestAppAuthResponseStatus value) + { + return value switch + { + TestAppAuthResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TestAppAuthResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => TestAppAuthResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponseStatus2.g.cs new file mode 100644 index 00000000..520dd8ef --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum TestAppAuthResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TestAppAuthResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TestAppAuthResponseStatus2 value) + { + return value switch + { + TestAppAuthResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TestAppAuthResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => TestAppAuthResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponseStatus3.g.cs new file mode 100644 index 00000000..cf0183cb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum TestAppAuthResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TestAppAuthResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TestAppAuthResponseStatus3 value) + { + return value switch + { + TestAppAuthResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TestAppAuthResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => TestAppAuthResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponseStatus4.g.cs new file mode 100644 index 00000000..841d9454 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.TestAppAuthResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum TestAppAuthResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TestAppAuthResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TestAppAuthResponseStatus4 value) + { + return value switch + { + TestAppAuthResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TestAppAuthResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => TestAppAuthResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppRequest.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppRequest.Json.g.cs new file mode 100644 index 00000000..6e07cdbc --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class UpdateAppRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.UpdateAppRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.UpdateAppRequest), + jsonSerializerContext) as global::RetellAI.UpdateAppRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.UpdateAppRequest? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.UpdateAppRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.UpdateAppRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.UpdateAppRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppRequest.g.cs new file mode 100644 index 00000000..8753da68 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppRequest.g.cs @@ -0,0 +1,85 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class UpdateAppRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// Per-tenant API base URL. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tenant_url")] + public string? TenantUrl { get; set; } + + /// + /// Sub-account id, for providers that scope requests by a sub-account id on a shared host. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tenant_id")] + public string? TenantId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("auth_config")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.AuthConfigRequestJsonConverter))] + public global::RetellAI.AuthConfigRequest? AuthConfig { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("crm_config")] + public global::RetellAI.AppCRMConfig? CrmConfig { 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. + /// + /// + /// + /// Per-tenant API base URL. + /// + /// + /// Sub-account id, for providers that scope requests by a sub-account id on a shared host. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateAppRequest( + string? name, + string? tenantUrl, + string? tenantId, + global::RetellAI.AuthConfigRequest? authConfig, + global::RetellAI.AppCRMConfig? crmConfig) + { + this.Name = name; + this.TenantUrl = tenantUrl; + this.TenantId = tenantId; + this.AuthConfig = authConfig; + this.CrmConfig = crmConfig; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateAppRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse.Json.g.cs new file mode 100644 index 00000000..62e37ad6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class UpdateAppResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.UpdateAppResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.UpdateAppResponse), + jsonSerializerContext) as global::RetellAI.UpdateAppResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.UpdateAppResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.UpdateAppResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.UpdateAppResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.UpdateAppResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse.g.cs new file mode 100644 index 00000000..eceac75f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class UpdateAppResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.UpdateAppResponseStatusJsonConverter))] + public global::RetellAI.UpdateAppResponseStatus? 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 UpdateAppResponse( + global::RetellAI.UpdateAppResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateAppResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse2.Json.g.cs new file mode 100644 index 00000000..031796d8 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class UpdateAppResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.UpdateAppResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.UpdateAppResponse2), + jsonSerializerContext) as global::RetellAI.UpdateAppResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.UpdateAppResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.UpdateAppResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.UpdateAppResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.UpdateAppResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse2.g.cs new file mode 100644 index 00000000..90734fa6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class UpdateAppResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.UpdateAppResponseStatus2JsonConverter))] + public global::RetellAI.UpdateAppResponseStatus2? 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 UpdateAppResponse2( + global::RetellAI.UpdateAppResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateAppResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse3.Json.g.cs new file mode 100644 index 00000000..ad8fb118 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class UpdateAppResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.UpdateAppResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.UpdateAppResponse3), + jsonSerializerContext) as global::RetellAI.UpdateAppResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.UpdateAppResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.UpdateAppResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.UpdateAppResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.UpdateAppResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse3.g.cs new file mode 100644 index 00000000..2641a43b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class UpdateAppResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.UpdateAppResponseStatus3JsonConverter))] + public global::RetellAI.UpdateAppResponseStatus3? Status { get; set; } + + /// + /// Example: The requested resource was not found. + /// + /// The requested resource was not found. + [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: The requested resource was not found. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateAppResponse3( + global::RetellAI.UpdateAppResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateAppResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse4.Json.g.cs new file mode 100644 index 00000000..3829be97 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class UpdateAppResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.UpdateAppResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.UpdateAppResponse4), + jsonSerializerContext) as global::RetellAI.UpdateAppResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.UpdateAppResponse4? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.UpdateAppResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.UpdateAppResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.UpdateAppResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse4.g.cs new file mode 100644 index 00000000..8f545988 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse4.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class UpdateAppResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.UpdateAppResponseStatus4JsonConverter))] + public global::RetellAI.UpdateAppResponseStatus4? 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 UpdateAppResponse4( + global::RetellAI.UpdateAppResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateAppResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse5.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse5.Json.g.cs new file mode 100644 index 00000000..a5290293 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class UpdateAppResponse5 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.UpdateAppResponse5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.UpdateAppResponse5), + jsonSerializerContext) as global::RetellAI.UpdateAppResponse5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.UpdateAppResponse5? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.UpdateAppResponse5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.UpdateAppResponse5), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.UpdateAppResponse5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse5.g.cs new file mode 100644 index 00000000..4cf01d18 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponse5.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class UpdateAppResponse5 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.UpdateAppResponseStatus5JsonConverter))] + public global::RetellAI.UpdateAppResponseStatus5? 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 UpdateAppResponse5( + global::RetellAI.UpdateAppResponseStatus5? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateAppResponse5() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponseStatus.g.cs new file mode 100644 index 00000000..713514bc --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum UpdateAppResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateAppResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateAppResponseStatus value) + { + return value switch + { + UpdateAppResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateAppResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => UpdateAppResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponseStatus2.g.cs new file mode 100644 index 00000000..05c5b310 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum UpdateAppResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateAppResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateAppResponseStatus2 value) + { + return value switch + { + UpdateAppResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateAppResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => UpdateAppResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponseStatus3.g.cs new file mode 100644 index 00000000..0113e217 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum UpdateAppResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateAppResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateAppResponseStatus3 value) + { + return value switch + { + UpdateAppResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateAppResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => UpdateAppResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponseStatus4.g.cs new file mode 100644 index 00000000..970d4e45 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum UpdateAppResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateAppResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateAppResponseStatus4 value) + { + return value switch + { + UpdateAppResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateAppResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => UpdateAppResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponseStatus5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponseStatus5.g.cs new file mode 100644 index 00000000..78c615a5 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateAppResponseStatus5.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum UpdateAppResponseStatus5 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateAppResponseStatus5Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateAppResponseStatus5 value) + { + return value switch + { + UpdateAppResponseStatus5.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateAppResponseStatus5? ToEnum(string value) + { + return value switch + { + "error" => UpdateAppResponseStatus5.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactRequest.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactRequest.Json.g.cs new file mode 100644 index 00000000..4165e56f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class UpdateContactRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.UpdateContactRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.UpdateContactRequest), + jsonSerializerContext) as global::RetellAI.UpdateContactRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.UpdateContactRequest? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.UpdateContactRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.UpdateContactRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.UpdateContactRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactRequest.g.cs new file mode 100644 index 00000000..ac334697 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactRequest.g.cs @@ -0,0 +1,77 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class UpdateContactRequest + { + /// + /// First name of the contact. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("first_name")] + public string? FirstName { get; set; } + + /// + /// Last name of the contact. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_name")] + public string? LastName { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("do_not_call")] + public bool? DoNotCall { get; set; } + + /// + /// Values must match the types defined in CRM config custom fields. Set a value to null to clear it. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_fields")] + public object? CustomFields { 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. + /// + /// + /// First name of the contact. + /// + /// + /// Last name of the contact. + /// + /// + /// + /// Values must match the types defined in CRM config custom fields. Set a value to null to clear it. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateContactRequest( + string? firstName, + string? lastName, + bool? doNotCall, + object? customFields) + { + this.FirstName = firstName; + this.LastName = lastName; + this.DoNotCall = doNotCall; + this.CustomFields = customFields; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateContactRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactRequestCustomFields.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactRequestCustomFields.Json.g.cs new file mode 100644 index 00000000..78780207 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactRequestCustomFields.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class UpdateContactRequestCustomFields + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.UpdateContactRequestCustomFields? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.UpdateContactRequestCustomFields), + jsonSerializerContext) as global::RetellAI.UpdateContactRequestCustomFields; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.UpdateContactRequestCustomFields? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.UpdateContactRequestCustomFields? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.UpdateContactRequestCustomFields), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.UpdateContactRequestCustomFields; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactRequestCustomFields.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactRequestCustomFields.g.cs new file mode 100644 index 00000000..a1406a34 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactRequestCustomFields.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// Values must match the types defined in CRM config custom fields. Set a value to null to clear it. + /// + public sealed partial class UpdateContactRequestCustomFields + { + + /// + /// 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.UpdateContactResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse.Json.g.cs new file mode 100644 index 00000000..987d9b83 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class UpdateContactResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.UpdateContactResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.UpdateContactResponse), + jsonSerializerContext) as global::RetellAI.UpdateContactResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.UpdateContactResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.UpdateContactResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.UpdateContactResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.UpdateContactResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse.g.cs new file mode 100644 index 00000000..2d0b4c19 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class UpdateContactResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.UpdateContactResponseStatusJsonConverter))] + public global::RetellAI.UpdateContactResponseStatus? 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 UpdateContactResponse( + global::RetellAI.UpdateContactResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateContactResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse2.Json.g.cs new file mode 100644 index 00000000..1a5106d8 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class UpdateContactResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.UpdateContactResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.UpdateContactResponse2), + jsonSerializerContext) as global::RetellAI.UpdateContactResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.UpdateContactResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.UpdateContactResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.UpdateContactResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.UpdateContactResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse2.g.cs new file mode 100644 index 00000000..5c1f1e00 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class UpdateContactResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.UpdateContactResponseStatus2JsonConverter))] + public global::RetellAI.UpdateContactResponseStatus2? 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 UpdateContactResponse2( + global::RetellAI.UpdateContactResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateContactResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse3.Json.g.cs new file mode 100644 index 00000000..b1fc0157 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class UpdateContactResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.UpdateContactResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.UpdateContactResponse3), + jsonSerializerContext) as global::RetellAI.UpdateContactResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.UpdateContactResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.UpdateContactResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.UpdateContactResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.UpdateContactResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse3.g.cs new file mode 100644 index 00000000..cef62d62 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class UpdateContactResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.UpdateContactResponseStatus3JsonConverter))] + public global::RetellAI.UpdateContactResponseStatus3? Status { get; set; } + + /// + /// Example: The requested resource was not found. + /// + /// The requested resource was not found. + [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: The requested resource was not found. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateContactResponse3( + global::RetellAI.UpdateContactResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateContactResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse4.Json.g.cs new file mode 100644 index 00000000..f580f652 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class UpdateContactResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.UpdateContactResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.UpdateContactResponse4), + jsonSerializerContext) as global::RetellAI.UpdateContactResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.UpdateContactResponse4? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.UpdateContactResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.UpdateContactResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.UpdateContactResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse4.g.cs new file mode 100644 index 00000000..84edb408 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse4.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class UpdateContactResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.UpdateContactResponseStatus4JsonConverter))] + public global::RetellAI.UpdateContactResponseStatus4? 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 UpdateContactResponse4( + global::RetellAI.UpdateContactResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateContactResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse5.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse5.Json.g.cs new file mode 100644 index 00000000..2f1caaf6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class UpdateContactResponse5 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.UpdateContactResponse5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.UpdateContactResponse5), + jsonSerializerContext) as global::RetellAI.UpdateContactResponse5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.UpdateContactResponse5? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.UpdateContactResponse5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.UpdateContactResponse5), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.UpdateContactResponse5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse5.g.cs new file mode 100644 index 00000000..6c4e6882 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponse5.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class UpdateContactResponse5 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.UpdateContactResponseStatus5JsonConverter))] + public global::RetellAI.UpdateContactResponseStatus5? 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 UpdateContactResponse5( + global::RetellAI.UpdateContactResponseStatus5? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateContactResponse5() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponseStatus.g.cs new file mode 100644 index 00000000..176ce2f0 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum UpdateContactResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateContactResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateContactResponseStatus value) + { + return value switch + { + UpdateContactResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateContactResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => UpdateContactResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponseStatus2.g.cs new file mode 100644 index 00000000..d0b6dea7 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum UpdateContactResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateContactResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateContactResponseStatus2 value) + { + return value switch + { + UpdateContactResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateContactResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => UpdateContactResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponseStatus3.g.cs new file mode 100644 index 00000000..4eed0d3a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum UpdateContactResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateContactResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateContactResponseStatus3 value) + { + return value switch + { + UpdateContactResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateContactResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => UpdateContactResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponseStatus4.g.cs new file mode 100644 index 00000000..da41539f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum UpdateContactResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateContactResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateContactResponseStatus4 value) + { + return value switch + { + UpdateContactResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateContactResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => UpdateContactResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponseStatus5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponseStatus5.g.cs new file mode 100644 index 00000000..2de068b4 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateContactResponseStatus5.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum UpdateContactResponseStatus5 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateContactResponseStatus5Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateContactResponseStatus5 value) + { + return value switch + { + UpdateContactResponseStatus5.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateContactResponseStatus5? ToEnum(string value) + { + return value switch + { + "error" => UpdateContactResponseStatus5.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigRequest.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigRequest.Json.g.cs new file mode 100644 index 00000000..20150792 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class UpdateCrmConfigRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.UpdateCrmConfigRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.UpdateCrmConfigRequest), + jsonSerializerContext) as global::RetellAI.UpdateCrmConfigRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.UpdateCrmConfigRequest? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.UpdateCrmConfigRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.UpdateCrmConfigRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.UpdateCrmConfigRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigRequest.g.cs new file mode 100644 index 00000000..f8263f2b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigRequest.g.cs @@ -0,0 +1,79 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class UpdateCrmConfigRequest + { + /// + /// ID of the CRM app to link. Pass null to unlink, which stops syncing. Changing it resets the sync cursor, so the next sync re-reads every contact from the new CRM. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string? AppId { get; set; } + + /// + /// Replaces the stored list. Names must be snake_case and cannot collide with a built-in contact field or start with `contact`/`external`. Removing a field that an analysis data mapping still targets is rejected — send crm_analysis_data_mappings in the same request to retarget or drop those mappings. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_fields")] + public global::System.Collections.Generic.IList? CustomFields { get; set; } + + /// + /// Replaces the stored list. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("crm_analysis_data_mappings")] + public global::System.Collections.Generic.IList? CrmAnalysisDataMappings { get; set; } + + /// + /// Preferred display order of contact fields, for clients that render contacts as a table. Not used by the API itself. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("contact_columns_order")] + public global::System.Collections.Generic.IList? ContactColumnsOrder { 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. + /// + /// + /// ID of the CRM app to link. Pass null to unlink, which stops syncing. Changing it resets the sync cursor, so the next sync re-reads every contact from the new CRM. + /// + /// + /// Replaces the stored list. Names must be snake_case and cannot collide with a built-in contact field or start with `contact`/`external`. Removing a field that an analysis data mapping still targets is rejected — send crm_analysis_data_mappings in the same request to retarget or drop those mappings. + /// + /// + /// Replaces the stored list. + /// + /// + /// Preferred display order of contact fields, for clients that render contacts as a table. Not used by the API itself. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateCrmConfigRequest( + string? appId, + global::System.Collections.Generic.IList? customFields, + global::System.Collections.Generic.IList? crmAnalysisDataMappings, + global::System.Collections.Generic.IList? contactColumnsOrder) + { + this.AppId = appId; + this.CustomFields = customFields; + this.CrmAnalysisDataMappings = crmAnalysisDataMappings; + this.ContactColumnsOrder = contactColumnsOrder; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateCrmConfigRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse.Json.g.cs new file mode 100644 index 00000000..0f03a9b8 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class UpdateCrmConfigResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.UpdateCrmConfigResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.UpdateCrmConfigResponse), + jsonSerializerContext) as global::RetellAI.UpdateCrmConfigResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.UpdateCrmConfigResponse? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.UpdateCrmConfigResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.UpdateCrmConfigResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.UpdateCrmConfigResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse.g.cs new file mode 100644 index 00000000..e6e39d91 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class UpdateCrmConfigResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.UpdateCrmConfigResponseStatusJsonConverter))] + public global::RetellAI.UpdateCrmConfigResponseStatus? 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 UpdateCrmConfigResponse( + global::RetellAI.UpdateCrmConfigResponseStatus? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateCrmConfigResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse2.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse2.Json.g.cs new file mode 100644 index 00000000..2c98ae86 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class UpdateCrmConfigResponse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.UpdateCrmConfigResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.UpdateCrmConfigResponse2), + jsonSerializerContext) as global::RetellAI.UpdateCrmConfigResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.UpdateCrmConfigResponse2? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.UpdateCrmConfigResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.UpdateCrmConfigResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.UpdateCrmConfigResponse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse2.g.cs new file mode 100644 index 00000000..35c818c1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse2.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class UpdateCrmConfigResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.UpdateCrmConfigResponseStatus2JsonConverter))] + public global::RetellAI.UpdateCrmConfigResponseStatus2? 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 UpdateCrmConfigResponse2( + global::RetellAI.UpdateCrmConfigResponseStatus2? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateCrmConfigResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse3.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse3.Json.g.cs new file mode 100644 index 00000000..dcfdc29a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class UpdateCrmConfigResponse3 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.UpdateCrmConfigResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.UpdateCrmConfigResponse3), + jsonSerializerContext) as global::RetellAI.UpdateCrmConfigResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.UpdateCrmConfigResponse3? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.UpdateCrmConfigResponse3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.UpdateCrmConfigResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.UpdateCrmConfigResponse3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse3.g.cs new file mode 100644 index 00000000..80f0fcb1 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse3.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class UpdateCrmConfigResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.UpdateCrmConfigResponseStatus3JsonConverter))] + public global::RetellAI.UpdateCrmConfigResponseStatus3? Status { get; set; } + + /// + /// Example: The requested resource was not found. + /// + /// The requested resource was not found. + [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: The requested resource was not found. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateCrmConfigResponse3( + global::RetellAI.UpdateCrmConfigResponseStatus3? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateCrmConfigResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse4.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse4.Json.g.cs new file mode 100644 index 00000000..71d62726 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse4.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class UpdateCrmConfigResponse4 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.UpdateCrmConfigResponse4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.UpdateCrmConfigResponse4), + jsonSerializerContext) as global::RetellAI.UpdateCrmConfigResponse4; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.UpdateCrmConfigResponse4? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.UpdateCrmConfigResponse4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.UpdateCrmConfigResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.UpdateCrmConfigResponse4; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse4.g.cs new file mode 100644 index 00000000..bb1080eb --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse4.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class UpdateCrmConfigResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.UpdateCrmConfigResponseStatus4JsonConverter))] + public global::RetellAI.UpdateCrmConfigResponseStatus4? 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 UpdateCrmConfigResponse4( + global::RetellAI.UpdateCrmConfigResponseStatus4? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateCrmConfigResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse5.Json.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse5.Json.g.cs new file mode 100644 index 00000000..0dd1f701 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse5.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace RetellAI +{ + public sealed partial class UpdateCrmConfigResponse5 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::RetellAI.UpdateCrmConfigResponse5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::RetellAI.UpdateCrmConfigResponse5), + jsonSerializerContext) as global::RetellAI.UpdateCrmConfigResponse5; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::RetellAI.UpdateCrmConfigResponse5? FromJson( + string json) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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.UpdateCrmConfigResponse5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::RetellAI.SourceGenerationContext.Default); + } + + 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.UpdateCrmConfigResponse5), + jsonSerializerContext).ConfigureAwait(false)) as global::RetellAI.UpdateCrmConfigResponse5; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::RetellAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse5.g.cs new file mode 100644 index 00000000..d5e8a6f5 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponse5.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public sealed partial class UpdateCrmConfigResponse5 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::RetellAI.JsonConverters.UpdateCrmConfigResponseStatus5JsonConverter))] + public global::RetellAI.UpdateCrmConfigResponseStatus5? 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 UpdateCrmConfigResponse5( + global::RetellAI.UpdateCrmConfigResponseStatus5? status, + string? message) + { + this.Status = status; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateCrmConfigResponse5() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponseStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponseStatus.g.cs new file mode 100644 index 00000000..d50854dc --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponseStatus.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum UpdateCrmConfigResponseStatus + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateCrmConfigResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateCrmConfigResponseStatus value) + { + return value switch + { + UpdateCrmConfigResponseStatus.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateCrmConfigResponseStatus? ToEnum(string value) + { + return value switch + { + "error" => UpdateCrmConfigResponseStatus.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponseStatus2.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponseStatus2.g.cs new file mode 100644 index 00000000..edef1dd3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponseStatus2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum UpdateCrmConfigResponseStatus2 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateCrmConfigResponseStatus2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateCrmConfigResponseStatus2 value) + { + return value switch + { + UpdateCrmConfigResponseStatus2.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateCrmConfigResponseStatus2? ToEnum(string value) + { + return value switch + { + "error" => UpdateCrmConfigResponseStatus2.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponseStatus3.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponseStatus3.g.cs new file mode 100644 index 00000000..2c3f924b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponseStatus3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum UpdateCrmConfigResponseStatus3 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateCrmConfigResponseStatus3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateCrmConfigResponseStatus3 value) + { + return value switch + { + UpdateCrmConfigResponseStatus3.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateCrmConfigResponseStatus3? ToEnum(string value) + { + return value switch + { + "error" => UpdateCrmConfigResponseStatus3.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponseStatus4.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponseStatus4.g.cs new file mode 100644 index 00000000..156d982b --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponseStatus4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum UpdateCrmConfigResponseStatus4 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateCrmConfigResponseStatus4Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateCrmConfigResponseStatus4 value) + { + return value switch + { + UpdateCrmConfigResponseStatus4.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateCrmConfigResponseStatus4? ToEnum(string value) + { + return value switch + { + "error" => UpdateCrmConfigResponseStatus4.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponseStatus5.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponseStatus5.g.cs new file mode 100644 index 00000000..04556c74 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateCrmConfigResponseStatus5.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace RetellAI +{ + /// + /// + /// + public enum UpdateCrmConfigResponseStatus5 + { + /// + /// + /// + Error, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateCrmConfigResponseStatus5Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateCrmConfigResponseStatus5 value) + { + return value switch + { + UpdateCrmConfigResponseStatus5.Error => "error", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateCrmConfigResponseStatus5? ToEnum(string value) + { + return value switch + { + "error" => UpdateCrmConfigResponseStatus5.Error, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.BackfillContactAnalysisData.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.BackfillContactAnalysisData.g.cs new file mode 100644 index 00000000..4049faf0 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.BackfillContactAnalysisData.g.cs @@ -0,0 +1,612 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_BackfillContactAnalysisDataSecurityRequirement0 = + 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_BackfillContactAnalysisDataSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_BackfillContactAnalysisDataSecurityRequirement0, + }; + partial void PrepareBackfillContactAnalysisDataArguments( + global::System.Net.Http.HttpClient httpClient, + global::RetellAI.BackfillContactAnalysisDataRequest request); + partial void PrepareBackfillContactAnalysisDataRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::RetellAI.BackfillContactAnalysisDataRequest request); + partial void ProcessBackfillContactAnalysisDataResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessBackfillContactAnalysisDataResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Trigger a backfill job that re-applies analysis data mappings to contacts using historical call data. Only one backfill job can run per organization at a time. + /// + /// + /// 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 BackfillContactAnalysisDataAsync( + + global::RetellAI.BackfillContactAnalysisDataRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await BackfillContactAnalysisDataAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Trigger a backfill job that re-applies analysis data mappings to contacts using historical call data. Only one backfill job can run per organization at a time. + /// + /// + /// 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> BackfillContactAnalysisDataAsResponseAsync( + + global::RetellAI.BackfillContactAnalysisDataRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareBackfillContactAnalysisDataArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_BackfillContactAnalysisDataSecurityRequirements, + operationName: "BackfillContactAnalysisDataAsync"); + + 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: "/backfill-contact-analysis-data", + 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); + PrepareBackfillContactAnalysisDataRequest( + 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: "BackfillContactAnalysisData", + methodName: "BackfillContactAnalysisDataAsync", + pathTemplate: "\"/backfill-contact-analysis-data\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "BackfillContactAnalysisData", + methodName: "BackfillContactAnalysisDataAsync", + pathTemplate: "\"/backfill-contact-analysis-data\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "BackfillContactAnalysisData", + methodName: "BackfillContactAnalysisDataAsync", + pathTemplate: "\"/backfill-contact-analysis-data\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessBackfillContactAnalysisDataResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "BackfillContactAnalysisData", + methodName: "BackfillContactAnalysisDataAsync", + pathTemplate: "\"/backfill-contact-analysis-data\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "BackfillContactAnalysisData", + methodName: "BackfillContactAnalysisDataAsync", + pathTemplate: "\"/backfill-contact-analysis-data\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::RetellAI.BackfillContactAnalysisDataResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::RetellAI.BackfillContactAnalysisDataResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::RetellAI.BackfillContactAnalysisDataResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + 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.BackfillContactAnalysisDataResponse2? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.BackfillContactAnalysisDataResponse2.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.BackfillContactAnalysisDataResponse2.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + 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.BackfillContactAnalysisDataResponse3? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.BackfillContactAnalysisDataResponse3.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.BackfillContactAnalysisDataResponse3.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.BackfillContactAnalysisDataResponse4? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.BackfillContactAnalysisDataResponse4.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.BackfillContactAnalysisDataResponse4.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + ProcessBackfillContactAnalysisDataResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::RetellAI.JobStatus.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::RetellAI.JobStatus.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Trigger a backfill job that re-applies analysis data mappings to contacts using historical call data. Only one backfill job can run per organization at a time. + /// + /// + /// Optional call filter to scope which calls are processed. Supports agent and start_timestamp from the standard call filter. + /// + /// + /// Contact fields to recompute. Each one must still exist as a contact field and have an analysis data mapping configured, otherwise the request is rejected rather than running a job that writes nothing. + /// + /// 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 BackfillContactAnalysisDataAsync( + global::System.Collections.Generic.IList backfillAttributes, + global::RetellAI.BackfillContactAnalysisDataRequestBackfillCallFilter? backfillCallFilter = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::RetellAI.BackfillContactAnalysisDataRequest + { + BackfillCallFilter = backfillCallFilter, + BackfillAttributes = backfillAttributes, + }; + + return await BackfillContactAnalysisDataAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.CreateApp.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.CreateApp.g.cs new file mode 100644 index 00000000..ce56c661 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.CreateApp.g.cs @@ -0,0 +1,633 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_CreateAppSecurityRequirement0 = + 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_CreateAppSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_CreateAppSecurityRequirement0, + }; + partial void PrepareCreateAppArguments( + global::System.Net.Http.HttpClient httpClient, + global::RetellAI.CreateAppRequest request); + partial void PrepareCreateAppRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::RetellAI.CreateAppRequest request); + partial void ProcessCreateAppResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateAppResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Create an App: the connection to one external system (a CRM, calendar, support desk, and so on), holding its credentials and settings. Providers that authenticate with a key, token, or refresh token can be connected in this one call by passing auth_config; the credential is stored encrypted and never returned. Up to 20 apps per provider. + /// + /// + /// 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 CreateAppAsync( + + global::RetellAI.CreateAppRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateAppAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Create an App: the connection to one external system (a CRM, calendar, support desk, and so on), holding its credentials and settings. Providers that authenticate with a key, token, or refresh token can be connected in this one call by passing auth_config; the credential is stored encrypted and never returned. Up to 20 apps per provider. + /// + /// + /// 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> CreateAppAsResponseAsync( + + global::RetellAI.CreateAppRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateAppArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateAppSecurityRequirements, + operationName: "CreateAppAsync"); + + 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: "/create-app", + 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); + PrepareCreateAppRequest( + 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: "CreateApp", + methodName: "CreateAppAsync", + pathTemplate: "\"/create-app\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateApp", + methodName: "CreateAppAsync", + pathTemplate: "\"/create-app\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateApp", + methodName: "CreateAppAsync", + pathTemplate: "\"/create-app\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateAppResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateApp", + methodName: "CreateAppAsync", + pathTemplate: "\"/create-app\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateApp", + methodName: "CreateAppAsync", + pathTemplate: "\"/create-app\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::RetellAI.CreateAppResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::RetellAI.CreateAppResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::RetellAI.CreateAppResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + 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.CreateAppResponse2? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.CreateAppResponse2.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.CreateAppResponse2.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + 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.CreateAppResponse3? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.CreateAppResponse3.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.CreateAppResponse3.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.CreateAppResponse4? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.CreateAppResponse4.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.CreateAppResponse4.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + ProcessCreateAppResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::RetellAI.AppResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::RetellAI.AppResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Create an App: the connection to one external system (a CRM, calendar, support desk, and so on), holding its credentials and settings. Providers that authenticate with a key, token, or refresh token can be connected in this one call by passing auth_config; the credential is stored encrypted and never returned. Up to 20 apps per provider. + /// + /// + /// App integration category. + /// + /// + /// Provider name. Must be valid for the App's type; the supported providers per type are listed by list-app-templates. + /// + /// + /// Display name. + /// + /// + /// Per-tenant API base URL. + /// + /// + /// Sub-account id, for providers that scope requests by a sub-account id on a shared host. + /// + /// + /// + /// 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 CreateAppAsync( + global::RetellAI.AppType type, + string provider, + string? name = default, + string? tenantUrl = default, + string? tenantId = default, + global::RetellAI.AuthConfigRequest? authConfig = default, + global::RetellAI.AppCRMConfig? crmConfig = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::RetellAI.CreateAppRequest + { + Type = type, + Provider = provider, + Name = name, + TenantUrl = tenantUrl, + TenantId = tenantId, + AuthConfig = authConfig, + CrmConfig = crmConfig, + }; + + return await CreateAppAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.CreateContact.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.CreateContact.g.cs new file mode 100644 index 00000000..0aed0f7a --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.CreateContact.g.cs @@ -0,0 +1,625 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_CreateContactSecurityRequirement0 = + 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_CreateContactSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_CreateContactSecurityRequirement0, + }; + partial void PrepareCreateContactArguments( + global::System.Net.Http.HttpClient httpClient, + global::RetellAI.CreateContactRequest request); + partial void PrepareCreateContactRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::RetellAI.CreateContactRequest request); + partial void ProcessCreateContactResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateContactResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Create a new contact. + /// + /// + /// 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 CreateContactAsync( + + global::RetellAI.CreateContactRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateContactAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Create a new contact. + /// + /// + /// 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> CreateContactAsResponseAsync( + + global::RetellAI.CreateContactRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateContactArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateContactSecurityRequirements, + operationName: "CreateContactAsync"); + + 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: "/create-contact", + 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); + PrepareCreateContactRequest( + 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: "CreateContact", + methodName: "CreateContactAsync", + pathTemplate: "\"/create-contact\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateContact", + methodName: "CreateContactAsync", + pathTemplate: "\"/create-contact\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateContact", + methodName: "CreateContactAsync", + pathTemplate: "\"/create-contact\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateContactResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateContact", + methodName: "CreateContactAsync", + pathTemplate: "\"/create-contact\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateContact", + methodName: "CreateContactAsync", + pathTemplate: "\"/create-contact\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::RetellAI.CreateContactResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::RetellAI.CreateContactResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::RetellAI.CreateContactResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + 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.CreateContactResponse2? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.CreateContactResponse2.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.CreateContactResponse2.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + 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.CreateContactResponse3? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.CreateContactResponse3.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.CreateContactResponse3.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.CreateContactResponse4? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.CreateContactResponse4.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.CreateContactResponse4.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + ProcessCreateContactResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::RetellAI.Contact.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::RetellAI.Contact.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Create a new contact. + /// + /// + /// Phone number of the contact. + /// + /// + /// First name of the contact. + /// + /// + /// Last name of the contact. + /// + /// + /// + /// Values must match the types defined in CRM config custom fields. Set a value to null to clear it. + /// + /// 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 CreateContactAsync( + string phoneNumber, + string? firstName = default, + string? lastName = default, + bool? doNotCall = default, + object? customFields = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::RetellAI.CreateContactRequest + { + PhoneNumber = phoneNumber, + FirstName = firstName, + LastName = lastName, + DoNotCall = doNotCall, + CustomFields = customFields, + }; + + return await CreateContactAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.DeleteApp.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.DeleteApp.g.cs new file mode 100644 index 00000000..a4287d8e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.DeleteApp.g.cs @@ -0,0 +1,598 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_DeleteAppSecurityRequirement0 = + 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_DeleteAppSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_DeleteAppSecurityRequirement0, + }; + partial void PrepareDeleteAppArguments( + global::System.Net.Http.HttpClient httpClient, + ref string appId, + ref bool? forceDelete); + partial void PrepareDeleteAppRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string appId, + bool? forceDelete); + partial void ProcessDeleteAppResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// Delete an App. Fails when agents or knowledge bases still reference it, unless force_delete is set. If a CRM config is linked to this App, the link is cleared. + /// + /// + /// + /// 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 DeleteAppAsync( + string appId, + bool? forceDelete = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + await DeleteAppAsResponseAsync( + appId: appId, + forceDelete: forceDelete, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + /// + /// Delete an App. Fails when agents or knowledge bases still reference it, unless force_delete is set. If a CRM config is linked to this App, the link is cleared. + /// + /// + /// + /// 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 DeleteAppAsResponseAsync( + string appId, + bool? forceDelete = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareDeleteAppArguments( + httpClient: HttpClient, + appId: ref appId, + forceDelete: ref forceDelete); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteAppSecurityRequirements, + operationName: "DeleteAppAsync"); + + 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: $"/delete-app/{appId}", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("force_delete", forceDelete?.ToString().ToLowerInvariant()) + ; + 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.Delete, + 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); + } + } + global::RetellAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareDeleteAppRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + appId: appId!, + forceDelete: forceDelete); + + 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: "DeleteApp", + methodName: "DeleteAppAsync", + pathTemplate: "$\"/delete-app/{appId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteApp", + methodName: "DeleteAppAsync", + pathTemplate: "$\"/delete-app/{appId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteApp", + methodName: "DeleteAppAsync", + pathTemplate: "$\"/delete-app/{appId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessDeleteAppResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteApp", + methodName: "DeleteAppAsync", + pathTemplate: "$\"/delete-app/{appId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteApp", + methodName: "DeleteAppAsync", + pathTemplate: "$\"/delete-app/{appId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::RetellAI.DeleteAppResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::RetellAI.DeleteAppResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::RetellAI.DeleteAppResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + 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.DeleteAppResponse2? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.DeleteAppResponse2.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.DeleteAppResponse2.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::RetellAI.DeleteAppResponse3? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::RetellAI.DeleteAppResponse3.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::RetellAI.DeleteAppResponse3.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + 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.DeleteAppResponse4? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.DeleteAppResponse4.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.DeleteAppResponse4.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.DeleteAppResponse5? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.DeleteAppResponse5.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.DeleteAppResponse5.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + + try + { + __response.EnsureSuccessStatusCode(); + + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.DeleteContact.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.DeleteContact.g.cs new file mode 100644 index 00000000..d6ef958d --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.DeleteContact.g.cs @@ -0,0 +1,586 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_DeleteContactSecurityRequirement0 = + 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_DeleteContactSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_DeleteContactSecurityRequirement0, + }; + partial void PrepareDeleteContactArguments( + global::System.Net.Http.HttpClient httpClient, + ref string contactId); + partial void PrepareDeleteContactRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string contactId); + partial void ProcessDeleteContactResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// Delete a contact. A contact linked to a record in a connected CRM cannot be deleted while two-way sync is active — unlink the CRM app first, otherwise the next sync would recreate it. + /// + /// + /// 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 DeleteContactAsync( + string contactId, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + await DeleteContactAsResponseAsync( + contactId: contactId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + /// + /// Delete a contact. A contact linked to a record in a connected CRM cannot be deleted while two-way sync is active — unlink the CRM app first, otherwise the next sync would recreate it. + /// + /// + /// 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 DeleteContactAsResponseAsync( + string contactId, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareDeleteContactArguments( + httpClient: HttpClient, + contactId: ref contactId); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteContactSecurityRequirements, + operationName: "DeleteContactAsync"); + + 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: $"/delete-contact/{contactId}", + 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.Delete, + 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); + } + } + global::RetellAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareDeleteContactRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + contactId: contactId!); + + 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: "DeleteContact", + methodName: "DeleteContactAsync", + pathTemplate: "$\"/delete-contact/{contactId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteContact", + methodName: "DeleteContactAsync", + pathTemplate: "$\"/delete-contact/{contactId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteContact", + methodName: "DeleteContactAsync", + pathTemplate: "$\"/delete-contact/{contactId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessDeleteContactResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteContact", + methodName: "DeleteContactAsync", + pathTemplate: "$\"/delete-contact/{contactId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteContact", + methodName: "DeleteContactAsync", + pathTemplate: "$\"/delete-contact/{contactId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::RetellAI.DeleteContactResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::RetellAI.DeleteContactResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::RetellAI.DeleteContactResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + 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.DeleteContactResponse2? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.DeleteContactResponse2.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.DeleteContactResponse2.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::RetellAI.DeleteContactResponse3? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::RetellAI.DeleteContactResponse3.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::RetellAI.DeleteContactResponse3.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + 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.DeleteContactResponse4? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.DeleteContactResponse4.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.DeleteContactResponse4.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.DeleteContactResponse5? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.DeleteContactResponse5.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.DeleteContactResponse5.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + + try + { + __response.EnsureSuccessStatusCode(); + + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.DeleteConversationFlow.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.DeleteConversationFlow.g.cs index 07eae6ac..be28aa7d 100644 --- a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.DeleteConversationFlow.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.DeleteConversationFlow.g.cs @@ -27,11 +27,13 @@ public partial class RetellAiClient }; partial void PrepareDeleteConversationFlowArguments( global::System.Net.Http.HttpClient httpClient, - ref string conversationFlowId); + ref string conversationFlowId, + ref bool? forceDelete); partial void PrepareDeleteConversationFlowRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string conversationFlowId); + string conversationFlowId, + bool? forceDelete); partial void ProcessDeleteConversationFlowResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -40,16 +42,19 @@ partial void ProcessDeleteConversationFlowResponse( /// Delete a conversation flow and all its versions /// /// + /// /// 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 DeleteConversationFlowAsync( string conversationFlowId, + bool? forceDelete = default, global::RetellAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { await DeleteConversationFlowAsResponseAsync( conversationFlowId: conversationFlowId, + forceDelete: forceDelete, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -58,11 +63,13 @@ await DeleteConversationFlowAsResponseAsync( /// Delete a conversation flow and all its versions ///
/// + /// /// 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 DeleteConversationFlowAsResponseAsync( string conversationFlowId, + bool? forceDelete = default, global::RetellAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -70,7 +77,8 @@ await DeleteConversationFlowAsResponseAsync( client: HttpClient); PrepareDeleteConversationFlowArguments( httpClient: HttpClient, - conversationFlowId: ref conversationFlowId); + conversationFlowId: ref conversationFlowId, + forceDelete: ref forceDelete); var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( @@ -98,6 +106,9 @@ await DeleteConversationFlowAsResponseAsync( var __pathBuilder = new global::RetellAI.PathBuilder( path: $"/delete-conversation-flow/{conversationFlowId}", baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("force_delete", forceDelete?.ToString().ToLowerInvariant()) + ; var __path = __pathBuilder.ToString(); __path = global::RetellAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -138,7 +149,8 @@ await DeleteConversationFlowAsResponseAsync( PrepareDeleteConversationFlowRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - conversationFlowId: conversationFlowId!); + conversationFlowId: conversationFlowId!, + forceDelete: forceDelete); return __httpRequest; } diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.DeleteRetellLLM.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.DeleteRetellLLM.g.cs index e8788ef0..08750379 100644 --- a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.DeleteRetellLLM.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.DeleteRetellLLM.g.cs @@ -27,11 +27,13 @@ public partial class RetellAiClient }; partial void PrepareDeleteRetellLLMArguments( global::System.Net.Http.HttpClient httpClient, - ref string llmId); + ref string llmId, + ref bool? forceDelete); partial void PrepareDeleteRetellLLMRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string llmId); + string llmId, + bool? forceDelete); partial void ProcessDeleteRetellLLMResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -42,16 +44,19 @@ partial void ProcessDeleteRetellLLMResponse( /// /// Example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD /// + /// /// 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 DeleteRetellLLMAsync( string llmId, + bool? forceDelete = default, global::RetellAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { await DeleteRetellLLMAsResponseAsync( llmId: llmId, + forceDelete: forceDelete, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -62,11 +67,13 @@ await DeleteRetellLLMAsResponseAsync( /// /// Example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD /// + /// /// 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 DeleteRetellLLMAsResponseAsync( string llmId, + bool? forceDelete = default, global::RetellAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -74,7 +81,8 @@ await DeleteRetellLLMAsResponseAsync( client: HttpClient); PrepareDeleteRetellLLMArguments( httpClient: HttpClient, - llmId: ref llmId); + llmId: ref llmId, + forceDelete: ref forceDelete); var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( @@ -102,6 +110,9 @@ await DeleteRetellLLMAsResponseAsync( var __pathBuilder = new global::RetellAI.PathBuilder( path: $"/delete-retell-llm/{llmId}", baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("force_delete", forceDelete?.ToString().ToLowerInvariant()) + ; var __path = __pathBuilder.ToString(); __path = global::RetellAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -142,7 +153,8 @@ await DeleteRetellLLMAsResponseAsync( PrepareDeleteRetellLLMRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - llmId: llmId!); + llmId: llmId!, + forceDelete: forceDelete); return __httpRequest; } diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetApp.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetApp.g.cs new file mode 100644 index 00000000..a53a5794 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetApp.g.cs @@ -0,0 +1,572 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_GetAppSecurityRequirement0 = + 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_GetAppSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_GetAppSecurityRequirement0, + }; + partial void PrepareGetAppArguments( + global::System.Net.Http.HttpClient httpClient, + ref string appId); + partial void PrepareGetAppRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string appId); + partial void ProcessGetAppResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetAppResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get an App by id. + /// + /// + /// 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 GetAppAsync( + string appId, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetAppAsResponseAsync( + appId: appId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get an App by id. + /// + /// + /// 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> GetAppAsResponseAsync( + string appId, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetAppArguments( + httpClient: HttpClient, + appId: ref appId); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetAppSecurityRequirements, + operationName: "GetAppAsync"); + + 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: $"/get-app/{appId}", + 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.Get, + 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); + } + } + global::RetellAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetAppRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + appId: appId!); + + 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: "GetApp", + methodName: "GetAppAsync", + pathTemplate: "$\"/get-app/{appId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetApp", + methodName: "GetAppAsync", + pathTemplate: "$\"/get-app/{appId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetApp", + methodName: "GetAppAsync", + pathTemplate: "$\"/get-app/{appId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetAppResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetApp", + methodName: "GetAppAsync", + pathTemplate: "$\"/get-app/{appId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetApp", + methodName: "GetAppAsync", + pathTemplate: "$\"/get-app/{appId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Unauthorized + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::RetellAI.GetAppResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.GetAppResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.GetAppResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::RetellAI.GetAppResponse2? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::RetellAI.GetAppResponse2.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::RetellAI.GetAppResponse2.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + 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.GetAppResponse3? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.GetAppResponse3.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.GetAppResponse3.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.GetAppResponse4? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.GetAppResponse4.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.GetAppResponse4.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + ProcessGetAppResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::RetellAI.AppResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::RetellAI.AppResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetBackfillContactJobStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetBackfillContactJobStatus.g.cs new file mode 100644 index 00000000..39bdc705 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetBackfillContactJobStatus.g.cs @@ -0,0 +1,526 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_GetBackfillContactJobStatusSecurityRequirement0 = + 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_GetBackfillContactJobStatusSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_GetBackfillContactJobStatusSecurityRequirement0, + }; + partial void PrepareGetBackfillContactJobStatusArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareGetBackfillContactJobStatusRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessGetBackfillContactJobStatusResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetBackfillContactJobStatusResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get the status of the contact analysis data backfill job. + /// + /// 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 GetBackfillContactJobStatusAsync( + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetBackfillContactJobStatusAsResponseAsync( + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get the status of the contact analysis data backfill job. + /// + /// 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> GetBackfillContactJobStatusAsResponseAsync( + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetBackfillContactJobStatusArguments( + httpClient: HttpClient); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetBackfillContactJobStatusSecurityRequirements, + operationName: "GetBackfillContactJobStatusAsync"); + + 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: "/get-backfill-contact-job-status", + 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.Get, + 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); + } + } + global::RetellAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetBackfillContactJobStatusRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + 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: "GetBackfillContactJobStatus", + methodName: "GetBackfillContactJobStatusAsync", + pathTemplate: "\"/get-backfill-contact-job-status\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetBackfillContactJobStatus", + methodName: "GetBackfillContactJobStatusAsync", + pathTemplate: "\"/get-backfill-contact-job-status\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetBackfillContactJobStatus", + methodName: "GetBackfillContactJobStatusAsync", + pathTemplate: "\"/get-backfill-contact-job-status\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetBackfillContactJobStatusResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetBackfillContactJobStatus", + methodName: "GetBackfillContactJobStatusAsync", + pathTemplate: "\"/get-backfill-contact-job-status\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetBackfillContactJobStatus", + methodName: "GetBackfillContactJobStatusAsync", + pathTemplate: "\"/get-backfill-contact-job-status\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Unauthorized + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::RetellAI.GetBackfillContactJobStatusResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.GetBackfillContactJobStatusResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.GetBackfillContactJobStatusResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + 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.GetBackfillContactJobStatusResponse2? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.GetBackfillContactJobStatusResponse2.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.GetBackfillContactJobStatusResponse2.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.GetBackfillContactJobStatusResponse3? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.GetBackfillContactJobStatusResponse3.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.GetBackfillContactJobStatusResponse3.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + ProcessGetBackfillContactJobStatusResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::RetellAI.JobStatus.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::RetellAI.JobStatus.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetContact.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetContact.g.cs new file mode 100644 index 00000000..c6e44832 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetContact.g.cs @@ -0,0 +1,572 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_GetContactSecurityRequirement0 = + 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_GetContactSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_GetContactSecurityRequirement0, + }; + partial void PrepareGetContactArguments( + global::System.Net.Http.HttpClient httpClient, + ref string contactId); + partial void PrepareGetContactRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string contactId); + partial void ProcessGetContactResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetContactResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Retrieve a contact by ID. + /// + /// + /// 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 GetContactAsync( + string contactId, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetContactAsResponseAsync( + contactId: contactId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Retrieve a contact by ID. + /// + /// + /// 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> GetContactAsResponseAsync( + string contactId, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetContactArguments( + httpClient: HttpClient, + contactId: ref contactId); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetContactSecurityRequirements, + operationName: "GetContactAsync"); + + 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: $"/get-contact/{contactId}", + 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.Get, + 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); + } + } + global::RetellAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetContactRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + contactId: contactId!); + + 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: "GetContact", + methodName: "GetContactAsync", + pathTemplate: "$\"/get-contact/{contactId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetContact", + methodName: "GetContactAsync", + pathTemplate: "$\"/get-contact/{contactId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetContact", + methodName: "GetContactAsync", + pathTemplate: "$\"/get-contact/{contactId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetContactResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetContact", + methodName: "GetContactAsync", + pathTemplate: "$\"/get-contact/{contactId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetContact", + methodName: "GetContactAsync", + pathTemplate: "$\"/get-contact/{contactId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Unauthorized + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::RetellAI.GetContactResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.GetContactResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.GetContactResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::RetellAI.GetContactResponse2? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::RetellAI.GetContactResponse2.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::RetellAI.GetContactResponse2.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + 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.GetContactResponse3? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.GetContactResponse3.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.GetContactResponse3.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.GetContactResponse4? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.GetContactResponse4.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.GetContactResponse4.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + ProcessGetContactResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::RetellAI.Contact.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::RetellAI.Contact.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetContactByPhone.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetContactByPhone.g.cs new file mode 100644 index 00000000..9cbc3080 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetContactByPhone.g.cs @@ -0,0 +1,609 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_GetContactByPhoneSecurityRequirement0 = + 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_GetContactByPhoneSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_GetContactByPhoneSecurityRequirement0, + }; + partial void PrepareGetContactByPhoneArguments( + global::System.Net.Http.HttpClient httpClient, + ref string phoneNumber); + partial void PrepareGetContactByPhoneRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string phoneNumber); + partial void ProcessGetContactByPhoneResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetContactByPhoneResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Retrieve a contact by phone number. At most one contact exists per phone number in an organization. + /// + /// + /// 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 GetContactByPhoneAsync( + string phoneNumber, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetContactByPhoneAsResponseAsync( + phoneNumber: phoneNumber, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Retrieve a contact by phone number. At most one contact exists per phone number in an organization. + /// + /// + /// 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> GetContactByPhoneAsResponseAsync( + string phoneNumber, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetContactByPhoneArguments( + httpClient: HttpClient, + phoneNumber: ref phoneNumber); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetContactByPhoneSecurityRequirements, + operationName: "GetContactByPhoneAsync"); + + 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: $"/get-contact-by-phone/{phoneNumber}", + 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.Get, + 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); + } + } + global::RetellAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetContactByPhoneRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + phoneNumber: phoneNumber!); + + 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: "GetContactByPhone", + methodName: "GetContactByPhoneAsync", + pathTemplate: "$\"/get-contact-by-phone/{phoneNumber}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetContactByPhone", + methodName: "GetContactByPhoneAsync", + pathTemplate: "$\"/get-contact-by-phone/{phoneNumber}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetContactByPhone", + methodName: "GetContactByPhoneAsync", + pathTemplate: "$\"/get-contact-by-phone/{phoneNumber}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetContactByPhoneResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetContactByPhone", + methodName: "GetContactByPhoneAsync", + pathTemplate: "$\"/get-contact-by-phone/{phoneNumber}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetContactByPhone", + methodName: "GetContactByPhoneAsync", + pathTemplate: "$\"/get-contact-by-phone/{phoneNumber}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::RetellAI.GetContactByPhoneResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::RetellAI.GetContactByPhoneResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::RetellAI.GetContactByPhoneResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + 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.GetContactByPhoneResponse2? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.GetContactByPhoneResponse2.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.GetContactByPhoneResponse2.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::RetellAI.GetContactByPhoneResponse3? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::RetellAI.GetContactByPhoneResponse3.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::RetellAI.GetContactByPhoneResponse3.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + 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.GetContactByPhoneResponse4? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.GetContactByPhoneResponse4.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.GetContactByPhoneResponse4.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.GetContactByPhoneResponse5? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.GetContactByPhoneResponse5.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.GetContactByPhoneResponse5.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + ProcessGetContactByPhoneResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::RetellAI.Contact.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::RetellAI.Contact.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetChatAgentVersions.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetCrmConfig.g.cs similarity index 82% rename from src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetChatAgentVersions.g.cs rename to src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetCrmConfig.g.cs index 48861fc3..89db5087 100644 --- a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetChatAgentVersions.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetCrmConfig.g.cs @@ -7,7 +7,7 @@ public partial class RetellAiClient { - private static readonly global::RetellAI.EndPointSecurityRequirement s_GetChatAgentVersionsSecurityRequirement0 = + private static readonly global::RetellAI.EndPointSecurityRequirement s_GetCrmConfigSecurityRequirement0 = new global::RetellAI.EndPointSecurityRequirement { Authorizations = new global::RetellAI.EndPointAuthorizationRequirement[] @@ -21,42 +21,35 @@ public partial class RetellAiClient }, }, }; - private static readonly global::RetellAI.EndPointSecurityRequirement[] s_GetChatAgentVersionsSecurityRequirements = + private static readonly global::RetellAI.EndPointSecurityRequirement[] s_GetCrmConfigSecurityRequirements = new global::RetellAI.EndPointSecurityRequirement[] - { s_GetChatAgentVersionsSecurityRequirement0, + { s_GetCrmConfigSecurityRequirement0, }; - partial void PrepareGetChatAgentVersionsArguments( + partial void PrepareGetCrmConfigArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareGetCrmConfigRequest( global::System.Net.Http.HttpClient httpClient, - ref string agentId); - partial void PrepareGetChatAgentVersionsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string agentId); - partial void ProcessGetChatAgentVersionsResponse( + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessGetCrmConfigResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetChatAgentVersionsResponseContent( + partial void ProcessGetCrmConfigResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Get all versions of a chat agent + /// Get the organization's CRM configuration: which CRM app is linked, the custom contact fields defined for it, and how post-call analysis data is written back to contacts. Returns an empty configuration when nothing has been set up yet. /// - /// - /// Example: 16b980523634a6dc504898cda492e939 - /// /// 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> GetChatAgentVersionsAsync( - string agentId, + public async global::System.Threading.Tasks.Task GetCrmConfigAsync( global::RetellAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetChatAgentVersionsAsResponseAsync( - agentId: agentId, + var __response = await GetCrmConfigAsResponseAsync( requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -64,30 +57,25 @@ partial void ProcessGetChatAgentVersionsResponseContent( return __response.Body; } /// - /// Get all versions of a chat agent + /// Get the organization's CRM configuration: which CRM app is linked, the custom contact fields defined for it, and how post-call analysis data is written back to contacts. Returns an empty configuration when nothing has been set up yet. /// - /// - /// Example: 16b980523634a6dc504898cda492e939 - /// /// 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>> GetChatAgentVersionsAsResponseAsync( - string agentId, + public async global::System.Threading.Tasks.Task> GetCrmConfigAsResponseAsync( global::RetellAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareGetChatAgentVersionsArguments( - httpClient: HttpClient, - agentId: ref agentId); + PrepareGetCrmConfigArguments( + httpClient: HttpClient); var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetChatAgentVersionsSecurityRequirements, - operationName: "GetChatAgentVersionsAsync"); + securityRequirements: s_GetCrmConfigSecurityRequirements, + operationName: "GetCrmConfigAsync"); using var __timeoutCancellationTokenSource = global::RetellAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -107,7 +95,7 @@ partial void ProcessGetChatAgentVersionsResponseContent( { var __pathBuilder = new global::RetellAI.PathBuilder( - path: $"/get-chat-agent-versions/{agentId}", + path: "/get-crm-config", baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); __path = global::RetellAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -146,10 +134,9 @@ partial void ProcessGetChatAgentVersionsResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetChatAgentVersionsRequest( + PrepareGetCrmConfigRequest( httpClient: HttpClient, - httpRequestMessage: __httpRequest, - agentId: agentId!); + httpRequestMessage: __httpRequest); return __httpRequest; } @@ -166,9 +153,9 @@ partial void ProcessGetChatAgentVersionsResponseContent( await global::RetellAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetChatAgentVersions", - methodName: "GetChatAgentVersionsAsync", - pathTemplate: "$\"/get-chat-agent-versions/{agentId}\"", + operationId: "GetCrmConfig", + methodName: "GetCrmConfigAsync", + pathTemplate: "\"/get-crm-config\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -200,9 +187,9 @@ partial void ProcessGetChatAgentVersionsResponseContent( await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetChatAgentVersions", - methodName: "GetChatAgentVersionsAsync", - pathTemplate: "$\"/get-chat-agent-versions/{agentId}\"", + operationId: "GetCrmConfig", + methodName: "GetCrmConfigAsync", + pathTemplate: "\"/get-crm-config\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -241,9 +228,9 @@ partial void ProcessGetChatAgentVersionsResponseContent( await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetChatAgentVersions", - methodName: "GetChatAgentVersionsAsync", - pathTemplate: "$\"/get-chat-agent-versions/{agentId}\"", + operationId: "GetCrmConfig", + methodName: "GetCrmConfigAsync", + pathTemplate: "\"/get-crm-config\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -281,7 +268,7 @@ partial void ProcessGetChatAgentVersionsResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessGetChatAgentVersionsResponse( + ProcessGetCrmConfigResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -289,9 +276,9 @@ partial void ProcessGetChatAgentVersionsResponseContent( await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetChatAgentVersions", - methodName: "GetChatAgentVersionsAsync", - pathTemplate: "$\"/get-chat-agent-versions/{agentId}\"", + operationId: "GetCrmConfig", + methodName: "GetCrmConfigAsync", + pathTemplate: "\"/get-crm-config\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -311,9 +298,9 @@ partial void ProcessGetChatAgentVersionsResponseContent( await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetChatAgentVersions", - methodName: "GetChatAgentVersionsAsync", - pathTemplate: "$\"/get-chat-agent-versions/{agentId}\"", + operationId: "GetCrmConfig", + methodName: "GetCrmConfigAsync", + pathTemplate: "\"/get-crm-config\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest!, @@ -333,19 +320,19 @@ partial void ProcessGetChatAgentVersionsResponseContent( { string? __content_401 = null; global::System.Exception? __exception_401 = null; - global::RetellAI.GetChatAgentVersionsResponse? __value_401 = null; + global::RetellAI.GetCrmConfigResponse? __value_401 = null; try { if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::RetellAI.GetChatAgentVersionsResponse.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::RetellAI.GetCrmConfigResponse.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::RetellAI.GetChatAgentVersionsResponse.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::RetellAI.GetCrmConfigResponse.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -354,7 +341,7 @@ partial void ProcessGetChatAgentVersionsResponseContent( } - throw global::RetellAI.ApiException.Create( + throw global::RetellAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, @@ -365,38 +352,38 @@ partial void ProcessGetChatAgentVersionsResponseContent( h => h.Key, h => h.Value)); } - // Unprocessable Content - if ((int)__response.StatusCode == 422) + // Too Many Requests + if ((int)__response.StatusCode == 429) { - string? __content_422 = null; - global::System.Exception? __exception_422 = null; - global::RetellAI.GetChatAgentVersionsResponse2? __value_422 = null; + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::RetellAI.GetCrmConfigResponse2? __value_429 = null; try { if (__effectiveReadResponseAsString) { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::RetellAI.GetChatAgentVersionsResponse2.FromJson(__content_422, JsonSerializerContext); + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.GetCrmConfigResponse2.FromJson(__content_429, JsonSerializerContext); } else { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::RetellAI.GetChatAgentVersionsResponse2.FromJson(__content_422, JsonSerializerContext); + __value_429 = global::RetellAI.GetCrmConfigResponse2.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) { - __exception_422 = __ex; + __exception_429 = __ex; } - throw global::RetellAI.ApiException.Create( + throw global::RetellAI.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_422, - responseBody: __content_422, - responseObject: __value_422, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, @@ -407,19 +394,19 @@ partial void ProcessGetChatAgentVersionsResponseContent( { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::RetellAI.GetChatAgentVersionsResponse3? __value_500 = null; + global::RetellAI.GetCrmConfigResponse3? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::RetellAI.GetChatAgentVersionsResponse3.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::RetellAI.GetCrmConfigResponse3.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::RetellAI.GetChatAgentVersionsResponse3.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::RetellAI.GetCrmConfigResponse3.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -428,7 +415,7 @@ partial void ProcessGetChatAgentVersionsResponseContent( } - throw global::RetellAI.ApiException.Create( + throw global::RetellAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -452,7 +439,7 @@ partial void ProcessGetChatAgentVersionsResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessGetChatAgentVersionsResponseContent( + ProcessGetCrmConfigResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -461,9 +448,9 @@ partial void ProcessGetChatAgentVersionsResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + var __value = global::RetellAI.CRMConfig.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::RetellAI.AutoSDKHttpResponse>( + return new global::RetellAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -493,9 +480,9 @@ partial void ProcessGetChatAgentVersionsResponseContent( #endif ).ConfigureAwait(false); - var __value = (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::RetellAI.CRMConfig.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::RetellAI.AutoSDKHttpResponse>( + return new global::RetellAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetCrmSchema.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetCrmSchema.g.cs new file mode 100644 index 00000000..49d95f29 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetCrmSchema.g.cs @@ -0,0 +1,649 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_GetCrmSchemaSecurityRequirement0 = + 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_GetCrmSchemaSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_GetCrmSchemaSecurityRequirement0, + }; + partial void PrepareGetCrmSchemaArguments( + global::System.Net.Http.HttpClient httpClient, + ref string? appId); + partial void PrepareGetCrmSchemaRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string? appId); + partial void ProcessGetCrmSchemaResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetCrmSchemaResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get the contact schema of the connected CRM: the fields available on its contact object, which are the values that sync mappings can reference. + /// + /// + /// 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 GetCrmSchemaAsync( + string? appId = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetCrmSchemaAsResponseAsync( + appId: appId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get the contact schema of the connected CRM: the fields available on its contact object, which are the values that sync mappings can reference. + /// + /// + /// 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> GetCrmSchemaAsResponseAsync( + string? appId = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetCrmSchemaArguments( + httpClient: HttpClient, + appId: ref appId); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetCrmSchemaSecurityRequirements, + operationName: "GetCrmSchemaAsync"); + + 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: "/get-crm-schema", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("app_id", appId) + ; + 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.Get, + 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); + } + } + global::RetellAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetCrmSchemaRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + appId: appId); + + 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: "GetCrmSchema", + methodName: "GetCrmSchemaAsync", + pathTemplate: "\"/get-crm-schema\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetCrmSchema", + methodName: "GetCrmSchemaAsync", + pathTemplate: "\"/get-crm-schema\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetCrmSchema", + methodName: "GetCrmSchemaAsync", + pathTemplate: "\"/get-crm-schema\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetCrmSchemaResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetCrmSchema", + methodName: "GetCrmSchemaAsync", + pathTemplate: "\"/get-crm-schema\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetCrmSchema", + methodName: "GetCrmSchemaAsync", + pathTemplate: "\"/get-crm-schema\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::RetellAI.GetCrmSchemaResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::RetellAI.GetCrmSchemaResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::RetellAI.GetCrmSchemaResponse2.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + 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.GetCrmSchemaResponse3? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.GetCrmSchemaResponse3.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.GetCrmSchemaResponse3.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Forbidden + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::RetellAI.GetCrmSchemaResponse4? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::RetellAI.GetCrmSchemaResponse4.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::RetellAI.GetCrmSchemaResponse4.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::RetellAI.GetCrmSchemaResponse5? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::RetellAI.GetCrmSchemaResponse5.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::RetellAI.GetCrmSchemaResponse5.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + 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.GetCrmSchemaResponse6? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.GetCrmSchemaResponse6.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.GetCrmSchemaResponse6.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.GetCrmSchemaResponse7? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.GetCrmSchemaResponse7.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.GetCrmSchemaResponse7.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + ProcessGetCrmSchemaResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::RetellAI.GetCrmSchemaResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::RetellAI.GetCrmSchemaResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetSyncJobStatus.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetSyncJobStatus.g.cs new file mode 100644 index 00000000..624d2a64 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetSyncJobStatus.g.cs @@ -0,0 +1,526 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_GetSyncJobStatusSecurityRequirement0 = + 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_GetSyncJobStatusSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_GetSyncJobStatusSecurityRequirement0, + }; + partial void PrepareGetSyncJobStatusArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareGetSyncJobStatusRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessGetSyncJobStatusResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetSyncJobStatusResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get the status of the organization's contact sync, whether it was started manually or by the schedule. Returns status `idle` when no sync is running. + /// + /// 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 GetSyncJobStatusAsync( + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetSyncJobStatusAsResponseAsync( + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get the status of the organization's contact sync, whether it was started manually or by the schedule. Returns status `idle` when no sync is running. + /// + /// 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> GetSyncJobStatusAsResponseAsync( + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetSyncJobStatusArguments( + httpClient: HttpClient); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSyncJobStatusSecurityRequirements, + operationName: "GetSyncJobStatusAsync"); + + 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: "/get-sync-job-status", + 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.Get, + 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); + } + } + global::RetellAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetSyncJobStatusRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + 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: "GetSyncJobStatus", + methodName: "GetSyncJobStatusAsync", + pathTemplate: "\"/get-sync-job-status\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSyncJobStatus", + methodName: "GetSyncJobStatusAsync", + pathTemplate: "\"/get-sync-job-status\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSyncJobStatus", + methodName: "GetSyncJobStatusAsync", + pathTemplate: "\"/get-sync-job-status\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetSyncJobStatusResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSyncJobStatus", + methodName: "GetSyncJobStatusAsync", + pathTemplate: "\"/get-sync-job-status\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetSyncJobStatus", + methodName: "GetSyncJobStatusAsync", + pathTemplate: "\"/get-sync-job-status\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Unauthorized + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::RetellAI.GetSyncJobStatusResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.GetSyncJobStatusResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.GetSyncJobStatusResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + 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.GetSyncJobStatusResponse2? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.GetSyncJobStatusResponse2.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.GetSyncJobStatusResponse2.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.GetSyncJobStatusResponse3? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.GetSyncJobStatusResponse3.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.GetSyncJobStatusResponse3.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + ProcessGetSyncJobStatusResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::RetellAI.JobStatus.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::RetellAI.JobStatus.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListAgentVersions.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListAgentVersions.g.cs new file mode 100644 index 00000000..09f2fdda --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListAgentVersions.g.cs @@ -0,0 +1,690 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_ListAgentVersionsSecurityRequirement0 = + 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_ListAgentVersionsSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_ListAgentVersionsSecurityRequirement0, + }; + partial void PrepareListAgentVersionsArguments( + global::System.Net.Http.HttpClient httpClient, + ref string agentId, + ref int? limit, + ref global::RetellAI.ListAgentVersionsSortOrder? sortOrder, + ref string? paginationKey); + partial void PrepareListAgentVersionsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string agentId, + int? limit, + global::RetellAI.ListAgentVersionsSortOrder? sortOrder, + string? paginationKey); + partial void ProcessListAgentVersionsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListAgentVersionsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List stored versions of a voice or chat agent with pagination. Root-level data such as assigned tags is not included. + /// + /// + /// Example: 16b980523634a6dc504898cda492e939 + /// + /// + /// Default Value: 50 + /// + /// + /// Default Value: descending + /// + /// + /// 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> ListAgentVersionsAsync( + string agentId, + int? limit = default, + global::RetellAI.ListAgentVersionsSortOrder? sortOrder = default, + string? paginationKey = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListAgentVersionsAsResponseAsync( + agentId: agentId, + limit: limit, + sortOrder: sortOrder, + paginationKey: paginationKey, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List stored versions of a voice or chat agent with pagination. Root-level data such as assigned tags is not included. + /// + /// + /// Example: 16b980523634a6dc504898cda492e939 + /// + /// + /// Default Value: 50 + /// + /// + /// Default Value: descending + /// + /// + /// 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>> ListAgentVersionsAsResponseAsync( + string agentId, + int? limit = default, + global::RetellAI.ListAgentVersionsSortOrder? sortOrder = default, + string? paginationKey = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListAgentVersionsArguments( + httpClient: HttpClient, + agentId: ref agentId, + limit: ref limit, + sortOrder: ref sortOrder, + paginationKey: ref paginationKey); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListAgentVersionsSecurityRequirements, + operationName: "ListAgentVersionsAsync"); + + 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: $"/list-agent-versions/{agentId}", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("limit", limit?.ToString()) + .AddOptionalParameter("sort_order", sortOrder?.ToValueString()) + .AddOptionalParameter("pagination_key", paginationKey) + ; + 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.Get, + 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); + } + } + global::RetellAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListAgentVersionsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + agentId: agentId!, + limit: limit, + sortOrder: sortOrder, + paginationKey: paginationKey); + + 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: "ListAgentVersions", + methodName: "ListAgentVersionsAsync", + pathTemplate: "$\"/list-agent-versions/{agentId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListAgentVersions", + methodName: "ListAgentVersionsAsync", + pathTemplate: "$\"/list-agent-versions/{agentId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListAgentVersions", + methodName: "ListAgentVersionsAsync", + pathTemplate: "$\"/list-agent-versions/{agentId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListAgentVersionsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListAgentVersions", + methodName: "ListAgentVersionsAsync", + pathTemplate: "$\"/list-agent-versions/{agentId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListAgentVersions", + methodName: "ListAgentVersionsAsync", + pathTemplate: "$\"/list-agent-versions/{agentId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::RetellAI.ListAgentVersionsResponse3? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::RetellAI.ListAgentVersionsResponse3.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::RetellAI.ListAgentVersionsResponse3.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + 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.ListAgentVersionsResponse4? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.ListAgentVersionsResponse4.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.ListAgentVersionsResponse4.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::RetellAI.ListAgentVersionsResponse5? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::RetellAI.ListAgentVersionsResponse5.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::RetellAI.ListAgentVersionsResponse5.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unprocessable Content + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::RetellAI.ListAgentVersionsResponse6? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::RetellAI.ListAgentVersionsResponse6.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::RetellAI.ListAgentVersionsResponse6.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + 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.ListAgentVersionsResponse7? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.ListAgentVersionsResponse7.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.ListAgentVersionsResponse7.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.ListAgentVersionsResponse8? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.ListAgentVersionsResponse8.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.ListAgentVersionsResponse8.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + ProcessListAgentVersionsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::RetellAI.AllOf.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::RetellAI.AutoSDKHttpResponse>( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::RetellAI.AllOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::RetellAI.AutoSDKHttpResponse>( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListAppUsages.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListAppUsages.g.cs new file mode 100644 index 00000000..3d7bcfec --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListAppUsages.g.cs @@ -0,0 +1,612 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_ListAppUsagesSecurityRequirement0 = + 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_ListAppUsagesSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_ListAppUsagesSecurityRequirement0, + }; + partial void PrepareListAppUsagesArguments( + global::System.Net.Http.HttpClient httpClient, + ref string appId, + ref int? limit, + ref global::RetellAI.ListAppUsagesSortOrder? sortOrder, + ref string? paginationKey); + partial void PrepareListAppUsagesRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string appId, + int? limit, + global::RetellAI.ListAppUsagesSortOrder? sortOrder, + string? paginationKey); + partial void ProcessListAppUsagesResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListAppUsagesResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List the agents and knowledge bases referencing an App, most recently configured first by default. + /// + /// + /// + /// Default Value: 50 + /// + /// + /// Default Value: descending + /// + /// + /// 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> ListAppUsagesAsync( + string appId, + int? limit = default, + global::RetellAI.ListAppUsagesSortOrder? sortOrder = default, + string? paginationKey = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListAppUsagesAsResponseAsync( + appId: appId, + limit: limit, + sortOrder: sortOrder, + paginationKey: paginationKey, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List the agents and knowledge bases referencing an App, most recently configured first by default. + /// + /// + /// + /// Default Value: 50 + /// + /// + /// Default Value: descending + /// + /// + /// 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>> ListAppUsagesAsResponseAsync( + string appId, + int? limit = default, + global::RetellAI.ListAppUsagesSortOrder? sortOrder = default, + string? paginationKey = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListAppUsagesArguments( + httpClient: HttpClient, + appId: ref appId, + limit: ref limit, + sortOrder: ref sortOrder, + paginationKey: ref paginationKey); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListAppUsagesSecurityRequirements, + operationName: "ListAppUsagesAsync"); + + 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: $"/list-app-usages/{appId}", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("limit", limit?.ToString()) + .AddOptionalParameter("sort_order", sortOrder?.ToValueString()) + .AddOptionalParameter("pagination_key", paginationKey) + ; + 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.Get, + 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); + } + } + global::RetellAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListAppUsagesRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + appId: appId!, + limit: limit, + sortOrder: sortOrder, + paginationKey: paginationKey); + + 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: "ListAppUsages", + methodName: "ListAppUsagesAsync", + pathTemplate: "$\"/list-app-usages/{appId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListAppUsages", + methodName: "ListAppUsagesAsync", + pathTemplate: "$\"/list-app-usages/{appId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListAppUsages", + methodName: "ListAppUsagesAsync", + pathTemplate: "$\"/list-app-usages/{appId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListAppUsagesResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListAppUsages", + methodName: "ListAppUsagesAsync", + pathTemplate: "$\"/list-app-usages/{appId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListAppUsages", + methodName: "ListAppUsagesAsync", + pathTemplate: "$\"/list-app-usages/{appId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Unauthorized + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::RetellAI.ListAppUsagesResponse3? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.ListAppUsagesResponse3.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.ListAppUsagesResponse3.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::RetellAI.ListAppUsagesResponse4? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::RetellAI.ListAppUsagesResponse4.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::RetellAI.ListAppUsagesResponse4.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + 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.ListAppUsagesResponse5? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.ListAppUsagesResponse5.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.ListAppUsagesResponse5.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.ListAppUsagesResponse6? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.ListAppUsagesResponse6.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.ListAppUsagesResponse6.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + ProcessListAppUsagesResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::RetellAI.AllOf.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::RetellAI.AutoSDKHttpResponse>( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::RetellAI.AllOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::RetellAI.AutoSDKHttpResponse>( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListApps.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListApps.g.cs new file mode 100644 index 00000000..1e9d2c57 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListApps.g.cs @@ -0,0 +1,566 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_ListAppsSecurityRequirement0 = + 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_ListAppsSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_ListAppsSecurityRequirement0, + }; + partial void PrepareListAppsArguments( + global::System.Net.Http.HttpClient httpClient, + ref int? limit, + ref global::RetellAI.ListAppsSortOrder? sortOrder, + ref string? paginationKey); + partial void PrepareListAppsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int? limit, + global::RetellAI.ListAppsSortOrder? sortOrder, + string? paginationKey); + partial void ProcessListAppsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListAppsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List Apps in the organization (paginated). + /// + /// + /// Default Value: 50 + /// + /// + /// Default Value: descending + /// + /// + /// 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> ListAppsAsync( + int? limit = default, + global::RetellAI.ListAppsSortOrder? sortOrder = default, + string? paginationKey = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListAppsAsResponseAsync( + limit: limit, + sortOrder: sortOrder, + paginationKey: paginationKey, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List Apps in the organization (paginated). + /// + /// + /// Default Value: 50 + /// + /// + /// Default Value: descending + /// + /// + /// 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>> ListAppsAsResponseAsync( + int? limit = default, + global::RetellAI.ListAppsSortOrder? sortOrder = default, + string? paginationKey = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListAppsArguments( + httpClient: HttpClient, + limit: ref limit, + sortOrder: ref sortOrder, + paginationKey: ref paginationKey); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListAppsSecurityRequirements, + operationName: "ListAppsAsync"); + + 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: "/list-apps", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("limit", limit?.ToString()) + .AddOptionalParameter("sort_order", sortOrder?.ToValueString()) + .AddOptionalParameter("pagination_key", paginationKey) + ; + 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.Get, + 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); + } + } + global::RetellAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListAppsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + limit: limit, + sortOrder: sortOrder, + paginationKey: paginationKey); + + 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: "ListApps", + methodName: "ListAppsAsync", + pathTemplate: "\"/list-apps\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListApps", + methodName: "ListAppsAsync", + pathTemplate: "\"/list-apps\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListApps", + methodName: "ListAppsAsync", + pathTemplate: "\"/list-apps\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListAppsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListApps", + methodName: "ListAppsAsync", + pathTemplate: "\"/list-apps\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListApps", + methodName: "ListAppsAsync", + pathTemplate: "\"/list-apps\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Unauthorized + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::RetellAI.ListAppsResponse3? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.ListAppsResponse3.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.ListAppsResponse3.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + 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.ListAppsResponse4? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.ListAppsResponse4.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.ListAppsResponse4.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.ListAppsResponse5? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.ListAppsResponse5.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.ListAppsResponse5.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + ProcessListAppsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::RetellAI.AllOf.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::RetellAI.AutoSDKHttpResponse>( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::RetellAI.AllOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::RetellAI.AutoSDKHttpResponse>( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListContactConversations.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListContactConversations.g.cs new file mode 100644 index 00000000..47427cd6 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListContactConversations.g.cs @@ -0,0 +1,598 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_ListContactConversationsSecurityRequirement0 = + 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_ListContactConversationsSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_ListContactConversationsSecurityRequirement0, + }; + partial void PrepareListContactConversationsArguments( + global::System.Net.Http.HttpClient httpClient, + ref string contactId, + ref int? limit, + ref string? paginationKey); + partial void PrepareListContactConversationsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string contactId, + int? limit, + string? paginationKey); + partial void ProcessListContactConversationsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListContactConversationsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List a contact's conversations (inbound calls, outbound calls, and chats) merged into a single timeline, most recent first. Results are matched by the contact's phone number. Use the returned `pagination_key` to fetch the next page. + /// + /// + /// + /// Default Value: 50 + /// + /// + /// 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 ListContactConversationsAsync( + string contactId, + int? limit = default, + string? paginationKey = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListContactConversationsAsResponseAsync( + contactId: contactId, + limit: limit, + paginationKey: paginationKey, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List a contact's conversations (inbound calls, outbound calls, and chats) merged into a single timeline, most recent first. Results are matched by the contact's phone number. Use the returned `pagination_key` to fetch the next page. + /// + /// + /// + /// Default Value: 50 + /// + /// + /// 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> ListContactConversationsAsResponseAsync( + string contactId, + int? limit = default, + string? paginationKey = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListContactConversationsArguments( + httpClient: HttpClient, + contactId: ref contactId, + limit: ref limit, + paginationKey: ref paginationKey); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListContactConversationsSecurityRequirements, + operationName: "ListContactConversationsAsync"); + + 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: $"/list-contact-conversations/{contactId}", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("limit", limit?.ToString()) + .AddOptionalParameter("pagination_key", paginationKey) + ; + 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.Get, + 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); + } + } + global::RetellAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListContactConversationsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + contactId: contactId!, + limit: limit, + paginationKey: paginationKey); + + 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: "ListContactConversations", + methodName: "ListContactConversationsAsync", + pathTemplate: "$\"/list-contact-conversations/{contactId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListContactConversations", + methodName: "ListContactConversationsAsync", + pathTemplate: "$\"/list-contact-conversations/{contactId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListContactConversations", + methodName: "ListContactConversationsAsync", + pathTemplate: "$\"/list-contact-conversations/{contactId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListContactConversationsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListContactConversations", + methodName: "ListContactConversationsAsync", + pathTemplate: "$\"/list-contact-conversations/{contactId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListContactConversations", + methodName: "ListContactConversationsAsync", + pathTemplate: "$\"/list-contact-conversations/{contactId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Unauthorized + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::RetellAI.ListContactConversationsResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.ListContactConversationsResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.ListContactConversationsResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::RetellAI.ListContactConversationsResponse2? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::RetellAI.ListContactConversationsResponse2.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::RetellAI.ListContactConversationsResponse2.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + 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.ListContactConversationsResponse3? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.ListContactConversationsResponse3.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.ListContactConversationsResponse3.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.ListContactConversationsResponse4? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.ListContactConversationsResponse4.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.ListContactConversationsResponse4.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + ProcessListContactConversationsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::RetellAI.ContactConversationListResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::RetellAI.ContactConversationListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListContacts.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListContacts.g.cs new file mode 100644 index 00000000..f045cb3f --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.ListContacts.g.cs @@ -0,0 +1,635 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_ListContactsSecurityRequirement0 = + 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_ListContactsSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_ListContactsSecurityRequirement0, + }; + partial void PrepareListContactsArguments( + global::System.Net.Http.HttpClient httpClient, + global::RetellAI.ListContactsRequest request); + partial void PrepareListContactsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::RetellAI.ListContactsRequest request); + partial void ProcessListContactsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListContactsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List contacts, newest conversation first by default, with the total count of matches alongside the page. Page through results with `pagination_key`; `skip` is available for offset-style paging but is slower on large contact sets and can repeat or miss rows as contacts are updated. + /// + /// + /// 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 ListContactsAsync( + + global::RetellAI.ListContactsRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListContactsAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List contacts, newest conversation first by default, with the total count of matches alongside the page. Page through results with `pagination_key`; `skip` is available for offset-style paging but is slower on large contact sets and can repeat or miss rows as contacts are updated. + /// + /// + /// 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> ListContactsAsResponseAsync( + + global::RetellAI.ListContactsRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareListContactsArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListContactsSecurityRequirements, + operationName: "ListContactsAsync"); + + 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: "/list-contacts", + 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); + PrepareListContactsRequest( + 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: "ListContacts", + methodName: "ListContactsAsync", + pathTemplate: "\"/list-contacts\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListContacts", + methodName: "ListContactsAsync", + pathTemplate: "\"/list-contacts\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListContacts", + methodName: "ListContactsAsync", + pathTemplate: "\"/list-contacts\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListContactsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListContacts", + methodName: "ListContactsAsync", + pathTemplate: "\"/list-contacts\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListContacts", + methodName: "ListContactsAsync", + pathTemplate: "\"/list-contacts\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::RetellAI.ListContactsResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::RetellAI.ListContactsResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::RetellAI.ListContactsResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + 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.ListContactsResponse2? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.ListContactsResponse2.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.ListContactsResponse2.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + 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.ListContactsResponse3? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.ListContactsResponse3.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.ListContactsResponse3.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.ListContactsResponse4? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.ListContactsResponse4.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.ListContactsResponse4.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + ProcessListContactsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::RetellAI.ContactListResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::RetellAI.ContactListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// List contacts, newest conversation first by default, with the total count of matches alongside the page. Page through results with `pagination_key`; `skip` is available for offset-style paging but is slower on large contact sets and can repeat or miss rows as contacts are updated. + /// + /// + /// Maximum number of contacts to return.
+ /// Default Value: 50 + /// + /// + /// Number of records to skip for offset-based pagination.
+ /// Default Value: 0 + /// + /// + /// Sort contacts by `last_conversation_timestamp` in ascending or descending order. Contacts that have never been contacted sort as if their timestamp were 0.
+ /// Default Value: desc + /// + /// + /// Base64url-encoded pagination key from a previous response. + /// + /// + /// Filter criteria for contacts. All conditions are implicitly connected with AND. first_name and last_name are not filterable here; use search_query to match on those. + /// + /// + /// Case-insensitive substring match against phone number, first name, last name, external ID, and custom field values. This is the only way to match on a contact's name. + /// + /// 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 ListContactsAsync( + double? limit = default, + double? skip = default, + global::RetellAI.ListContactsRequestSortOrder? sortOrder = default, + string? paginationKey = default, + global::RetellAI.ContactFilter? filterCriteria = default, + string? searchQuery = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::RetellAI.ListContactsRequest + { + Limit = limit, + Skip = skip, + SortOrder = sortOrder, + PaginationKey = paginationKey, + FilterCriteria = filterCriteria, + SearchQuery = searchQuery, + }; + + return await ListContactsAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetAgentVersions.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.RunSyncJob.g.cs similarity index 82% rename from src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetAgentVersions.g.cs rename to src/libs/RetellAI/Generated/RetellAI.RetellAiClient.RunSyncJob.g.cs index 09a7e75c..3a42053c 100644 --- a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.GetAgentVersions.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.RunSyncJob.g.cs @@ -7,7 +7,7 @@ public partial class RetellAiClient { - private static readonly global::RetellAI.EndPointSecurityRequirement s_GetAgentVersionsSecurityRequirement0 = + private static readonly global::RetellAI.EndPointSecurityRequirement s_RunSyncJobSecurityRequirement0 = new global::RetellAI.EndPointSecurityRequirement { Authorizations = new global::RetellAI.EndPointAuthorizationRequirement[] @@ -21,42 +21,35 @@ public partial class RetellAiClient }, }, }; - private static readonly global::RetellAI.EndPointSecurityRequirement[] s_GetAgentVersionsSecurityRequirements = + private static readonly global::RetellAI.EndPointSecurityRequirement[] s_RunSyncJobSecurityRequirements = new global::RetellAI.EndPointSecurityRequirement[] - { s_GetAgentVersionsSecurityRequirement0, + { s_RunSyncJobSecurityRequirement0, }; - partial void PrepareGetAgentVersionsArguments( + partial void PrepareRunSyncJobArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareRunSyncJobRequest( global::System.Net.Http.HttpClient httpClient, - ref string agentId); - partial void PrepareGetAgentVersionsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string agentId); - partial void ProcessGetAgentVersionsResponse( + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessRunSyncJobResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetAgentVersionsResponseContent( + partial void ProcessRunSyncJobResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Get all versions of an agent + /// Start a contact sync with the linked CRM app immediately, instead of waiting for the scheduled sync. One sync runs per organization at a time: starting another while one is in flight is rejected. Poll get-sync-job-status for progress. /// - /// - /// Example: 16b980523634a6dc504898cda492e939 - /// /// 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> GetAgentVersionsAsync( - string agentId, + public async global::System.Threading.Tasks.Task RunSyncJobAsync( global::RetellAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetAgentVersionsAsResponseAsync( - agentId: agentId, + var __response = await RunSyncJobAsResponseAsync( requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -64,30 +57,25 @@ partial void ProcessGetAgentVersionsResponseContent( return __response.Body; } /// - /// Get all versions of an agent + /// Start a contact sync with the linked CRM app immediately, instead of waiting for the scheduled sync. One sync runs per organization at a time: starting another while one is in flight is rejected. Poll get-sync-job-status for progress. /// - /// - /// Example: 16b980523634a6dc504898cda492e939 - /// /// 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>> GetAgentVersionsAsResponseAsync( - string agentId, + public async global::System.Threading.Tasks.Task> RunSyncJobAsResponseAsync( global::RetellAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareGetAgentVersionsArguments( - httpClient: HttpClient, - agentId: ref agentId); + PrepareRunSyncJobArguments( + httpClient: HttpClient); var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetAgentVersionsSecurityRequirements, - operationName: "GetAgentVersionsAsync"); + securityRequirements: s_RunSyncJobSecurityRequirements, + operationName: "RunSyncJobAsync"); using var __timeoutCancellationTokenSource = global::RetellAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -107,7 +95,7 @@ partial void ProcessGetAgentVersionsResponseContent( { var __pathBuilder = new global::RetellAI.PathBuilder( - path: $"/get-agent-versions/{agentId}", + path: "/run-sync-job", baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); __path = global::RetellAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -115,7 +103,7 @@ partial void ProcessGetAgentVersionsResponseContent( clientParameters: Options.QueryParameters, requestParameters: requestOptions?.QueryParameters); var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, + 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; @@ -146,10 +134,9 @@ partial void ProcessGetAgentVersionsResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetAgentVersionsRequest( + PrepareRunSyncJobRequest( httpClient: HttpClient, - httpRequestMessage: __httpRequest, - agentId: agentId!); + httpRequestMessage: __httpRequest); return __httpRequest; } @@ -166,10 +153,10 @@ partial void ProcessGetAgentVersionsResponseContent( await global::RetellAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentVersions", - methodName: "GetAgentVersionsAsync", - pathTemplate: "$\"/get-agent-versions/{agentId}\"", - httpMethod: "GET", + operationId: "RunSyncJob", + methodName: "RunSyncJobAsync", + pathTemplate: "\"/run-sync-job\"", + httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, response: null, @@ -200,10 +187,10 @@ partial void ProcessGetAgentVersionsResponseContent( await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentVersions", - methodName: "GetAgentVersionsAsync", - pathTemplate: "$\"/get-agent-versions/{agentId}\"", - httpMethod: "GET", + operationId: "RunSyncJob", + methodName: "RunSyncJobAsync", + pathTemplate: "\"/run-sync-job\"", + httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, response: null, @@ -241,10 +228,10 @@ partial void ProcessGetAgentVersionsResponseContent( await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentVersions", - methodName: "GetAgentVersionsAsync", - pathTemplate: "$\"/get-agent-versions/{agentId}\"", - httpMethod: "GET", + operationId: "RunSyncJob", + methodName: "RunSyncJobAsync", + pathTemplate: "\"/run-sync-job\"", + httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, response: __response, @@ -281,7 +268,7 @@ partial void ProcessGetAgentVersionsResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessGetAgentVersionsResponse( + ProcessRunSyncJobResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -289,10 +276,10 @@ partial void ProcessGetAgentVersionsResponseContent( await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentVersions", - methodName: "GetAgentVersionsAsync", - pathTemplate: "$\"/get-agent-versions/{agentId}\"", - httpMethod: "GET", + operationId: "RunSyncJob", + methodName: "RunSyncJobAsync", + pathTemplate: "\"/run-sync-job\"", + httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, response: __response, @@ -311,10 +298,10 @@ partial void ProcessGetAgentVersionsResponseContent( await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAgentVersions", - methodName: "GetAgentVersionsAsync", - pathTemplate: "$\"/get-agent-versions/{agentId}\"", - httpMethod: "GET", + operationId: "RunSyncJob", + methodName: "RunSyncJobAsync", + pathTemplate: "\"/run-sync-job\"", + httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, response: __response, @@ -333,19 +320,19 @@ partial void ProcessGetAgentVersionsResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::RetellAI.GetAgentVersionsResponse? __value_400 = null; + global::RetellAI.RunSyncJobResponse? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::RetellAI.GetAgentVersionsResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::RetellAI.RunSyncJobResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::RetellAI.GetAgentVersionsResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::RetellAI.RunSyncJobResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -354,7 +341,7 @@ partial void ProcessGetAgentVersionsResponseContent( } - throw global::RetellAI.ApiException.Create( + throw global::RetellAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -370,19 +357,19 @@ partial void ProcessGetAgentVersionsResponseContent( { string? __content_401 = null; global::System.Exception? __exception_401 = null; - global::RetellAI.GetAgentVersionsResponse2? __value_401 = null; + global::RetellAI.RunSyncJobResponse2? __value_401 = null; try { if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::RetellAI.GetAgentVersionsResponse2.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::RetellAI.RunSyncJobResponse2.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::RetellAI.GetAgentVersionsResponse2.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::RetellAI.RunSyncJobResponse2.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -391,7 +378,7 @@ partial void ProcessGetAgentVersionsResponseContent( } - throw global::RetellAI.ApiException.Create( + throw global::RetellAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, @@ -402,38 +389,38 @@ partial void ProcessGetAgentVersionsResponseContent( h => h.Key, h => h.Value)); } - // Unprocessable Content - if ((int)__response.StatusCode == 422) + // Too Many Requests + if ((int)__response.StatusCode == 429) { - string? __content_422 = null; - global::System.Exception? __exception_422 = null; - global::RetellAI.GetAgentVersionsResponse3? __value_422 = null; + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::RetellAI.RunSyncJobResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::RetellAI.GetAgentVersionsResponse3.FromJson(__content_422, JsonSerializerContext); + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.RunSyncJobResponse3.FromJson(__content_429, JsonSerializerContext); } else { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::RetellAI.GetAgentVersionsResponse3.FromJson(__content_422, JsonSerializerContext); + __value_429 = global::RetellAI.RunSyncJobResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) { - __exception_422 = __ex; + __exception_429 = __ex; } - throw global::RetellAI.ApiException.Create( + throw global::RetellAI.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_422, - responseBody: __content_422, - responseObject: __value_422, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, @@ -444,19 +431,19 @@ partial void ProcessGetAgentVersionsResponseContent( { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::RetellAI.GetAgentVersionsResponse4? __value_500 = null; + global::RetellAI.RunSyncJobResponse4? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::RetellAI.GetAgentVersionsResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::RetellAI.RunSyncJobResponse4.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::RetellAI.GetAgentVersionsResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::RetellAI.RunSyncJobResponse4.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -465,7 +452,7 @@ partial void ProcessGetAgentVersionsResponseContent( } - throw global::RetellAI.ApiException.Create( + throw global::RetellAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -489,7 +476,7 @@ partial void ProcessGetAgentVersionsResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessGetAgentVersionsResponseContent( + ProcessRunSyncJobResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -498,9 +485,9 @@ partial void ProcessGetAgentVersionsResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + var __value = global::RetellAI.JobStatus.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::RetellAI.AutoSDKHttpResponse>( + return new global::RetellAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -530,9 +517,9 @@ partial void ProcessGetAgentVersionsResponseContent( #endif ).ConfigureAwait(false); - var __value = (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::RetellAI.JobStatus.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::RetellAI.AutoSDKHttpResponse>( + return new global::RetellAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.TestAppAuth.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.TestAppAuth.g.cs new file mode 100644 index 00000000..15b669a2 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.TestAppAuth.g.cs @@ -0,0 +1,572 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_TestAppAuthSecurityRequirement0 = + 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_TestAppAuthSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_TestAppAuthSecurityRequirement0, + }; + partial void PrepareTestAppAuthArguments( + global::System.Net.Http.HttpClient httpClient, + ref string appId); + partial void PrepareTestAppAuthRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string appId); + partial void ProcessTestAppAuthResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessTestAppAuthResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Probe the App's stored credentials by making a minimal authenticated call to the provider. Returns success=true on a successful round-trip, and records the outcome on the App's connection_status either way. + /// + /// + /// 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 TestAppAuthAsync( + string appId, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await TestAppAuthAsResponseAsync( + appId: appId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Probe the App's stored credentials by making a minimal authenticated call to the provider. Returns success=true on a successful round-trip, and records the outcome on the App's connection_status either way. + /// + /// + /// 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> TestAppAuthAsResponseAsync( + string appId, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareTestAppAuthArguments( + httpClient: HttpClient, + appId: ref appId); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_TestAppAuthSecurityRequirements, + operationName: "TestAppAuthAsync"); + + 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: $"/test-app-auth/{appId}", + 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); + } + } + global::RetellAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareTestAppAuthRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + appId: appId!); + + 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: "TestAppAuth", + methodName: "TestAppAuthAsync", + pathTemplate: "$\"/test-app-auth/{appId}\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "TestAppAuth", + methodName: "TestAppAuthAsync", + pathTemplate: "$\"/test-app-auth/{appId}\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "TestAppAuth", + methodName: "TestAppAuthAsync", + pathTemplate: "$\"/test-app-auth/{appId}\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessTestAppAuthResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "TestAppAuth", + methodName: "TestAppAuthAsync", + pathTemplate: "$\"/test-app-auth/{appId}\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "TestAppAuth", + methodName: "TestAppAuthAsync", + pathTemplate: "$\"/test-app-auth/{appId}\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Unauthorized + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::RetellAI.TestAppAuthResponse2? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.TestAppAuthResponse2.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.TestAppAuthResponse2.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::RetellAI.TestAppAuthResponse3? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::RetellAI.TestAppAuthResponse3.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::RetellAI.TestAppAuthResponse3.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + 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.TestAppAuthResponse4? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.TestAppAuthResponse4.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.TestAppAuthResponse4.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.TestAppAuthResponse5? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.TestAppAuthResponse5.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.TestAppAuthResponse5.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + ProcessTestAppAuthResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::RetellAI.TestAppAuthResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::RetellAI.TestAppAuthResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.UpdateApp.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.UpdateApp.g.cs new file mode 100644 index 00000000..d169caa3 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.UpdateApp.g.cs @@ -0,0 +1,670 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_UpdateAppSecurityRequirement0 = + 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_UpdateAppSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_UpdateAppSecurityRequirement0, + }; + partial void PrepareUpdateAppArguments( + global::System.Net.Http.HttpClient httpClient, + ref string appId, + global::RetellAI.UpdateAppRequest request); + partial void PrepareUpdateAppRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string appId, + global::RetellAI.UpdateAppRequest request); + partial void ProcessUpdateAppResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUpdateAppResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Partially update an App. Omitted fields remain unchanged. Updating auth_config invalidates the cached provider token immediately. + /// + /// + /// + /// 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 UpdateAppAsync( + string appId, + + global::RetellAI.UpdateAppRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await UpdateAppAsResponseAsync( + appId: appId, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Partially update an App. Omitted fields remain unchanged. Updating auth_config invalidates the cached provider token immediately. + /// + /// + /// + /// 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> UpdateAppAsResponseAsync( + string appId, + + global::RetellAI.UpdateAppRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareUpdateAppArguments( + httpClient: HttpClient, + appId: ref appId, + request: request); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateAppSecurityRequirements, + operationName: "UpdateAppAsync"); + + 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: $"/update-app/{appId}", + 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: new global::System.Net.Http.HttpMethod("PATCH"), + 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); + PrepareUpdateAppRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + appId: appId!, + 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: "UpdateApp", + methodName: "UpdateAppAsync", + pathTemplate: "$\"/update-app/{appId}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateApp", + methodName: "UpdateAppAsync", + pathTemplate: "$\"/update-app/{appId}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateApp", + methodName: "UpdateAppAsync", + pathTemplate: "$\"/update-app/{appId}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessUpdateAppResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateApp", + methodName: "UpdateAppAsync", + pathTemplate: "$\"/update-app/{appId}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateApp", + methodName: "UpdateAppAsync", + pathTemplate: "$\"/update-app/{appId}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::RetellAI.UpdateAppResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::RetellAI.UpdateAppResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::RetellAI.UpdateAppResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + 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.UpdateAppResponse2? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.UpdateAppResponse2.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.UpdateAppResponse2.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::RetellAI.UpdateAppResponse3? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::RetellAI.UpdateAppResponse3.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::RetellAI.UpdateAppResponse3.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + 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.UpdateAppResponse4? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.UpdateAppResponse4.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.UpdateAppResponse4.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.UpdateAppResponse5? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.UpdateAppResponse5.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.UpdateAppResponse5.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + ProcessUpdateAppResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::RetellAI.AppResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::RetellAI.AppResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Partially update an App. Omitted fields remain unchanged. Updating auth_config invalidates the cached provider token immediately. + /// + /// + /// + /// + /// Per-tenant API base URL. + /// + /// + /// Sub-account id, for providers that scope requests by a sub-account id on a shared host. + /// + /// + /// + /// 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 UpdateAppAsync( + string appId, + string? name = default, + string? tenantUrl = default, + string? tenantId = default, + global::RetellAI.AuthConfigRequest? authConfig = default, + global::RetellAI.AppCRMConfig? crmConfig = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::RetellAI.UpdateAppRequest + { + Name = name, + TenantUrl = tenantUrl, + TenantId = tenantId, + AuthConfig = authConfig, + CrmConfig = crmConfig, + }; + + return await UpdateAppAsync( + appId: appId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.UpdateContact.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.UpdateContact.g.cs new file mode 100644 index 00000000..13d1b24e --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.UpdateContact.g.cs @@ -0,0 +1,669 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_UpdateContactSecurityRequirement0 = + 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_UpdateContactSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_UpdateContactSecurityRequirement0, + }; + partial void PrepareUpdateContactArguments( + global::System.Net.Http.HttpClient httpClient, + ref string contactId, + global::RetellAI.UpdateContactRequest request); + partial void PrepareUpdateContactRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string contactId, + global::RetellAI.UpdateContactRequest request); + partial void ProcessUpdateContactResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUpdateContactResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Update an existing contact. + /// + /// + /// + /// 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 UpdateContactAsync( + string contactId, + + global::RetellAI.UpdateContactRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await UpdateContactAsResponseAsync( + contactId: contactId, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Update an existing contact. + /// + /// + /// + /// 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> UpdateContactAsResponseAsync( + string contactId, + + global::RetellAI.UpdateContactRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareUpdateContactArguments( + httpClient: HttpClient, + contactId: ref contactId, + request: request); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateContactSecurityRequirements, + operationName: "UpdateContactAsync"); + + 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: $"/update-contact/{contactId}", + 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: new global::System.Net.Http.HttpMethod("PATCH"), + 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); + PrepareUpdateContactRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + contactId: contactId!, + 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: "UpdateContact", + methodName: "UpdateContactAsync", + pathTemplate: "$\"/update-contact/{contactId}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateContact", + methodName: "UpdateContactAsync", + pathTemplate: "$\"/update-contact/{contactId}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateContact", + methodName: "UpdateContactAsync", + pathTemplate: "$\"/update-contact/{contactId}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessUpdateContactResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateContact", + methodName: "UpdateContactAsync", + pathTemplate: "$\"/update-contact/{contactId}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateContact", + methodName: "UpdateContactAsync", + pathTemplate: "$\"/update-contact/{contactId}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::RetellAI.UpdateContactResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::RetellAI.UpdateContactResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::RetellAI.UpdateContactResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + 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.UpdateContactResponse2? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.UpdateContactResponse2.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.UpdateContactResponse2.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::RetellAI.UpdateContactResponse3? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::RetellAI.UpdateContactResponse3.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::RetellAI.UpdateContactResponse3.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + 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.UpdateContactResponse4? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.UpdateContactResponse4.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.UpdateContactResponse4.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.UpdateContactResponse5? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.UpdateContactResponse5.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.UpdateContactResponse5.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + ProcessUpdateContactResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::RetellAI.Contact.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::RetellAI.Contact.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Update an existing contact. + /// + /// + /// + /// First name of the contact. + /// + /// + /// Last name of the contact. + /// + /// + /// + /// Values must match the types defined in CRM config custom fields. Set a value to null to clear it. + /// + /// 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 UpdateContactAsync( + string contactId, + string? firstName = default, + string? lastName = default, + bool? doNotCall = default, + object? customFields = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::RetellAI.UpdateContactRequest + { + FirstName = firstName, + LastName = lastName, + DoNotCall = doNotCall, + CustomFields = customFields, + }; + + return await UpdateContactAsync( + contactId: contactId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.UpdateCrmConfig.g.cs b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.UpdateCrmConfig.g.cs new file mode 100644 index 00000000..e440bc21 --- /dev/null +++ b/src/libs/RetellAI/Generated/RetellAI.RetellAiClient.UpdateCrmConfig.g.cs @@ -0,0 +1,659 @@ + +#nullable enable + +namespace RetellAI +{ + public partial class RetellAiClient + { + + + private static readonly global::RetellAI.EndPointSecurityRequirement s_UpdateCrmConfigSecurityRequirement0 = + 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_UpdateCrmConfigSecurityRequirements = + new global::RetellAI.EndPointSecurityRequirement[] + { s_UpdateCrmConfigSecurityRequirement0, + }; + partial void PrepareUpdateCrmConfigArguments( + global::System.Net.Http.HttpClient httpClient, + global::RetellAI.UpdateCrmConfigRequest request); + partial void PrepareUpdateCrmConfigRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::RetellAI.UpdateCrmConfigRequest request); + partial void ProcessUpdateCrmConfigResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUpdateCrmConfigResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Update the organization's CRM configuration. Omitted fields stay as they are; a field that is sent replaces its stored value in full. + /// + /// + /// 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 UpdateCrmConfigAsync( + + global::RetellAI.UpdateCrmConfigRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await UpdateCrmConfigAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Update the organization's CRM configuration. Omitted fields stay as they are; a field that is sent replaces its stored value in full. + /// + /// + /// 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> UpdateCrmConfigAsResponseAsync( + + global::RetellAI.UpdateCrmConfigRequest request, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareUpdateCrmConfigArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateCrmConfigSecurityRequirements, + operationName: "UpdateCrmConfigAsync"); + + 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: "/update-crm-config", + 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); + PrepareUpdateCrmConfigRequest( + 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: "UpdateCrmConfig", + methodName: "UpdateCrmConfigAsync", + pathTemplate: "\"/update-crm-config\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + 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 __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateCrmConfig", + methodName: "UpdateCrmConfigAsync", + pathTemplate: "\"/update-crm-config\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::RetellAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::RetellAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateCrmConfig", + methodName: "UpdateCrmConfigAsync", + pathTemplate: "\"/update-crm-config\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::RetellAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessUpdateCrmConfigResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateCrmConfig", + methodName: "UpdateCrmConfigAsync", + pathTemplate: "\"/update-crm-config\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::RetellAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::RetellAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateCrmConfig", + methodName: "UpdateCrmConfigAsync", + pathTemplate: "\"/update-crm-config\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::RetellAI.UpdateCrmConfigResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::RetellAI.UpdateCrmConfigResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::RetellAI.UpdateCrmConfigResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + 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.UpdateCrmConfigResponse2? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::RetellAI.UpdateCrmConfigResponse2.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::RetellAI.UpdateCrmConfigResponse2.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not Found + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::RetellAI.UpdateCrmConfigResponse3? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::RetellAI.UpdateCrmConfigResponse3.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::RetellAI.UpdateCrmConfigResponse3.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + 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.UpdateCrmConfigResponse4? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::RetellAI.UpdateCrmConfigResponse4.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::RetellAI.UpdateCrmConfigResponse4.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + 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.UpdateCrmConfigResponse5? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::RetellAI.UpdateCrmConfigResponse5.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::RetellAI.UpdateCrmConfigResponse5.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + 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); + ProcessUpdateCrmConfigResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::RetellAI.CRMConfig.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + 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); + + var __value = await global::RetellAI.CRMConfig.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::RetellAI.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::RetellAI.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + 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 global::RetellAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Update the organization's CRM configuration. Omitted fields stay as they are; a field that is sent replaces its stored value in full. + /// + /// + /// ID of the CRM app to link. Pass null to unlink, which stops syncing. Changing it resets the sync cursor, so the next sync re-reads every contact from the new CRM. + /// + /// + /// Replaces the stored list. Names must be snake_case and cannot collide with a built-in contact field or start with `contact`/`external`. Removing a field that an analysis data mapping still targets is rejected — send crm_analysis_data_mappings in the same request to retarget or drop those mappings. + /// + /// + /// Replaces the stored list. + /// + /// + /// Preferred display order of contact fields, for clients that render contacts as a table. Not used by the API itself. + /// + /// 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 UpdateCrmConfigAsync( + string? appId = default, + global::System.Collections.Generic.IList? customFields = default, + global::System.Collections.Generic.IList? crmAnalysisDataMappings = default, + global::System.Collections.Generic.IList? contactColumnsOrder = default, + global::RetellAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::RetellAI.UpdateCrmConfigRequest + { + AppId = appId, + CustomFields = customFields, + CrmAnalysisDataMappings = crmAnalysisDataMappings, + ContactColumnsOrder = contactColumnsOrder, + }; + + return await UpdateCrmConfigAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/RetellAI/openapi.yaml b/src/libs/RetellAI/openapi.yaml index 8ea366fe..e15a96af 100644 --- a/src/libs/RetellAI/openapi.yaml +++ b/src/libs/RetellAI/openapi.yaml @@ -2,7 +2,7 @@ openapi: 3.0.3 info: title: Retell SDK version: 3.0.0 - x-retell-spec-revision: 2026-08-12-9e090f0 + x-retell-spec-revision: 2026-08-22-7679759 contact: name: Retell Support url: https://www.retellai.com/ @@ -1134,6 +1134,35 @@ components: description: IANA timezone for the agent (e.g. America/New_York). Defaults to America/Los_Angeles if not set. example: America/New_York nullable: true + AgentVersionSummary: + type: object + required: + - version + - is_published + - last_modification_timestamp + properties: + version: + type: integer + example: 3 + description: Version number of the agent. + is_published: + type: boolean + example: false + description: Whether the agent version is published. + version_title: + type: string + description: Optional title of the agent version. + version_description: + type: string + description: Optional description of the agent version. + base_version: + type: integer + example: 2 + description: Version that this agent version was based on. + last_modification_timestamp: + type: integer + example: 1703413636133 + description: Last modification timestamp in milliseconds since epoch. AgentResponse: allOf: - type: object @@ -1256,7 +1285,7 @@ components: description: Webhook setting for the agent swap, defaults to only source. keep_current_voice: type: boolean - description: If true, keep the current voice when swapping agents. Defaults to false. + description: If true, keep the current voice and ambient sound settings when swapping agents. Otherwise, use the destination agent's voice and ambient sound settings. Defaults to false. keep_current_language: type: boolean description: If true, keep the current language when swapping agents. Defaults to false. @@ -1309,7 +1338,7 @@ components: description: Webhook setting for the agent swap, defaults to only source. keep_current_voice: type: boolean - description: If true, keep the current voice when swapping agents. Defaults to false. + description: If true, keep the current voice and ambient sound settings when swapping agents. Otherwise, use the destination agent's voice and ambient sound settings. Defaults to false. keep_current_language: type: boolean description: If true, keep the current language when swapping agents. Defaults to false. @@ -3306,6 +3335,8 @@ components: directly. Defaults to "prompt". timeout_ms: type: integer + minimum: 1000 + maximum: 600000 description: The maximum time in milliseconds the tool can run before it's considered timeout. If the tool times out, the agent would have that info. The minimum value allowed is 1000 ms (1 s), and maximum value allowed is 600,000 ms (10 min). By default, this is set to 120,000 ms (2 min). max_retry: @@ -3770,16 +3801,22 @@ components: dynamic_variables: type: array items: - allOf: - - $ref: '#/components/schemas/StringFilter' - - type: object - required: - - key - properties: - key: - type: string - description: The dynamic variable name to filter on. + $ref: '#/components/schemas/CustomFieldFilter' description: Filter by dynamic variables. + StoredCallFilter: + allOf: + - $ref: '#/components/schemas/CallFilter' + - type: object + properties: + transfer_agent: + type: array + items: + $ref: '#/components/schemas/AgentFilter' + description: The subset of `agent` that was selected as transfer agents. Stored and returned verbatim; it is NOT applied when querying — the dashboard merges its transfer-agent selection into + `agent`, which is what filtering resolves on. It exists only so that a saved filter, on being read back, can tell which entries of `agent` belong to the transfer-agent picker; without it they + all come back as regular agent selections. + description: A `CallFilter` as *persisted* on a dashboard or chart. Identical to `CallFilter` for querying purposes — the extra field records how the selection was made, not what to match. Used only + by the dashboard configuration endpoints; query endpoints take a plain `CallFilter`. ChatFilter: type: object description: Filter criteria for chats. All conditions are implicitly connected with AND. @@ -4533,8 +4570,10 @@ components: - error - refreshing_in_progress example: in_progress - description: Status of the knowledge base. When it's created and being processed, it's "in_progress". When the processing is done, it's "complete". When there's an error in processing, it's "error". - When it is during kb updating, it's "refreshing_in_progress". + description: "Current processing state of the knowledge base:\n\n- `in_progress`: Initial indexing is running. Source metadata may be\n incomplete until indexing finishes.\n- `complete`: Initial\ + \ indexing or the latest update or refresh\n finished. Individual source failures may still be reported in\n `error_messages`.\n- `error`: Initial indexing failed. Source metadata may be incomplete.\n\ + - `refreshing_in_progress`: An existing knowledge base is being\n updated. This includes indexing newly added sources or running a\n manual or automatic refresh that re-indexes URLs, Google\ + \ Drive\n files, and pages from auto-crawling paths. Previously indexed\n sources remain available during the update, and the source list\n may change when it finishes.\n" max_chunk_size: type: integer example: 2000 @@ -5110,7 +5149,7 @@ components: - type: object properties: model_choice: - $ref: '#/components/schemas/ModelChoice' + $ref: '#/components/schemas/ModelChoiceCascading' NodeBaseCommon: type: object required: @@ -7415,6 +7454,8 @@ components: - agent_version transfer_timeout_ms: type: number + minimum: 10000 + maximum: 300000 description: The maximum time to wait for the transfer agent to make a decision, in milliseconds. Defaults to 30000 (30 seconds). default: 30000 action_on_timeout: @@ -7474,6 +7515,8 @@ components: this option. agent_detection_timeout_ms: type: number + minimum: 10000 + maximum: 300000 description: The time to wait before considering transfer fails. transfer_ring_duration_ms: type: integer @@ -8750,6 +8793,388 @@ components: has_more: type: boolean description: Whether more conversations exist beyond the returned window. + AppType: + type: string + enum: + - crm + - calendar + - knowledge_base + - support + - communication + description: App integration category. + AppConnectionStatus: + type: string + enum: + - not_connected + - connected + - error + description: Connection health of the App, server-managed. `not_connected` after create or a credential / tenant URL change; `connected` once verified via OAuth connect, an auth test, or a successful + live tool call; `error` when the provider rejects the credentials (on connect, an auth test, or a live tool call). + AppProvider: + type: string + description: Provider name. Must be valid for the App's type; the supported providers per type are listed by list-app-templates. + OAuthConfigRequest: + type: object + required: + - type + - client_id + - client_secret + properties: + type: + type: string + enum: + - oauth2 + client_id: + type: string + minLength: 1 + client_secret: + type: string + minLength: 1 + description: Secret credential; stored encrypted at rest. + ApiKeyAuthConfigRequest: + type: object + required: + - type + - api_key + properties: + type: + type: string + enum: + - api_key + api_key: + type: string + minLength: 1 + description: API key credential; stored encrypted at rest. + AccessTokenAuthConfigRequest: + type: object + required: + - type + - access_token + properties: + type: + type: string + enum: + - access_token + access_token: + type: string + minLength: 1 + description: OAuth-obtained access token used directly as a static bearer secret; stored encrypted at rest. An alternative to the OAuth connect flow, which persists the same config. + BasicAuthConfigRequest: + type: object + required: + - type + - username + - password + properties: + type: + type: string + enum: + - basic + username: + type: string + minLength: 1 + password: + type: string + minLength: 1 + description: Password credential; stored encrypted at rest. + RefreshTokenAuthConfigRequest: + type: object + required: + - type + - refresh_token + properties: + type: + type: string + enum: + - refresh_token + refresh_token: + type: string + minLength: 1 + description: OAuth refresh token; stored encrypted at rest. An alternative to the OAuth connect flow, which persists the same config. + AuthConfigRequest: + oneOf: + - $ref: '#/components/schemas/OAuthConfigRequest' + - $ref: '#/components/schemas/ApiKeyAuthConfigRequest' + - $ref: '#/components/schemas/AccessTokenAuthConfigRequest' + - $ref: '#/components/schemas/BasicAuthConfigRequest' + - $ref: '#/components/schemas/RefreshTokenAuthConfigRequest' + OAuthConfigResponse: + type: object + required: + - type + - client_id + properties: + type: + type: string + enum: + - oauth2 + client_id: + type: string + ApiKeyAuthConfigResponse: + type: object + required: + - type + properties: + type: + type: string + enum: + - api_key + AccessTokenAuthConfigResponse: + type: object + required: + - type + properties: + type: + type: string + enum: + - access_token + BasicAuthConfigResponse: + type: object + required: + - type + - username + properties: + type: + type: string + enum: + - basic + username: + type: string + RefreshTokenAuthConfigResponse: + type: object + required: + - type + properties: + type: + type: string + enum: + - refresh_token + AppAuthConfigResponse: + oneOf: + - $ref: '#/components/schemas/OAuthConfigResponse' + - $ref: '#/components/schemas/ApiKeyAuthConfigResponse' + - $ref: '#/components/schemas/AccessTokenAuthConfigResponse' + - $ref: '#/components/schemas/BasicAuthConfigResponse' + - $ref: '#/components/schemas/RefreshTokenAuthConfigResponse' + description: Non-secret auth metadata. Encrypted secret fields are never returned by the API. + CRMSyncMapping: + type: object + required: + - field_name + - external_field_name + properties: + field_name: + type: string + description: Retell contact field, built-in or custom, to map. Types must be compatible with the CRM field on both sides of the sync. + external_field_name: + type: string + description: Field on the CRM's contact object to map to. A name that does not exist there surfaces as an error on the sync job rather than at configuration time. + AppCRMConfig: + type: object + properties: + inbound_sync_mappings: + type: array + maxItems: 200 + description: Field mappings applied when syncing CRM records into Retell contacts. Must include phone_number, which is the field the two systems are matched on. + items: + $ref: '#/components/schemas/CRMSyncMapping' + outbound_sync_mappings: + type: array + maxItems: 200 + description: Field mappings applied when writing Retell contact changes back to the CRM. + items: + $ref: '#/components/schemas/CRMSyncMapping' + sync_conversation_activity: + type: boolean + description: Whether to push call/chat activity to the external CRM. Opt-in — defaults to false when unset. + sync_new_contacts: + type: boolean + description: Whether to create a CRM record after a conversation when the contact is not yet linked to one. + AppResponse: + type: object + required: + - app_id + - org_id + - type + - provider + - created_timestamp + - user_modified_timestamp + properties: + app_id: + type: string + org_id: + type: string + type: + $ref: '#/components/schemas/AppType' + provider: + $ref: '#/components/schemas/AppProvider' + connection_status: + $ref: '#/components/schemas/AppConnectionStatus' + name: + type: string + tenant_url: + type: string + description: Per-tenant API base URL. Set by providers with per-org hosts; omitted by providers on a single global host. + tenant_id: + type: string + description: Sub-account id, for providers that scope requests by a sub-account id on a shared host. Omitted by every other provider. + auth_config: + $ref: '#/components/schemas/AppAuthConfigResponse' + crm_config: + $ref: '#/components/schemas/AppCRMConfig' + created_timestamp: + type: number + user_modified_timestamp: + type: number + AppUsageResponse: + oneOf: + - $ref: '#/components/schemas/AgentAppUsage' + - $ref: '#/components/schemas/KnowledgeBaseAppUsage' + description: One agent or knowledge base referencing an app. + AgentAppUsage: + type: object + required: + - type + - agent_id + - agent_versions + - configured_timestamp + properties: + type: + type: string + enum: + - agent + agent_id: + type: string + agent_name: + type: string + description: Current agent name; omitted if the agent was deleted. + agent_versions: + type: array + items: + type: number + description: Agent versions referencing this app, largest first. + configured_timestamp: + type: number + description: When this reference was last recorded, in milliseconds. + KnowledgeBaseAppUsage: + type: object + required: + - type + - knowledge_base_id + - configured_timestamp + properties: + type: + type: string + enum: + - knowledge_base + knowledge_base_id: + type: string + knowledge_base_name: + type: string + description: Current knowledge base name; omitted if it was deleted. + configured_timestamp: + type: number + description: When this reference was last recorded, in milliseconds. + CRMCustomFieldSchema: + type: object + properties: + name: + type: string + label: + type: string + description: Display label for the field. + description: + type: string + type: + type: string + enum: + - string + - number + - boolean + - date + - datetime + - enum + options: + type: array + items: + type: string + description: Allowed values. Required when `type` is `enum`, where a value is rejected unless it appears here; ignored for every other type. + required: + - name + - type + CRMAnalysisDataMapping: + type: object + properties: + field_name: + type: string + description: Contact field to write to. Must be an existing built-in or custom contact field, and cannot be phone_number, which identifies the contact. + analysis_data_name: + type: string + description: Name of the post-call analysis field to read the value from. A value that does not match the contact field's type is skipped rather than failing the conversation. + update_mode: + type: string + description: How to reconcile the new value with what the contact already holds. `overwrite` always replaces it, `fill_if_empty` writes only when the field is empty, and `merge` combines the existing + text with the new value. `merge` is available on string fields only. + enum: + - overwrite + - fill_if_empty + - merge + required: + - field_name + - analysis_data_name + - update_mode + CRMConfig: + type: object + required: + - org_id + properties: + org_id: + type: string + app_id: + type: string + description: The connected CRM integration app ID. + last_sync_timestamp: + type: number + description: Epoch milliseconds of the last successful sync. + custom_fields: + type: array + items: + $ref: '#/components/schemas/CRMCustomFieldSchema' + crm_analysis_data_mappings: + type: array + items: + $ref: '#/components/schemas/CRMAnalysisDataMapping' + contact_columns_order: + type: array + items: + type: string + description: Preferred display order of contact fields, for clients that render contacts as a table. Not used by the API itself. + JobStatus: + type: object + required: + - status + properties: + status: + type: string + enum: + - queued + - running + - idle + start_timestamp: + type: number + description: Epoch milliseconds when the job started. + succeeded: + type: number + description: Number of items processed successfully so far. + failed: + type: number + description: Number of items that errored so far. + triggered_by: + type: string + description: Whether the job was started by an explicit API call (`manual`) or by the scheduled sync (`cron`). + enum: + - manual + - cron DashboardSource: type: string enum: @@ -9884,6 +10309,13 @@ paths: type: string required: true description: Unique id of the conversation flow to be deleted. + - in: query + name: force_delete + required: false + schema: + type: boolean + description: By default the deletion is rejected with a 400 if any agent still uses this conversation flow as its response engine. Set to true to delete it anyway, which leaves those agents pointing + at a conversation flow that no longer exists. responses: '204': description: Successfully deleted the conversation flow @@ -9988,9 +10420,16 @@ paths: example: oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD required: true description: Unique id of the Retell LLM Response Engine to be deleted. Deletes all versions of the Retell LLM Response Engine. - responses: - '204': - description: No Content + - in: query + name: force_delete + required: false + schema: + type: boolean + description: By default the deletion is rejected with a 400 if any agent still uses this Retell LLM as its response engine. Set to true to delete it anyway, which leaves those agents pointing at + a Retell LLM that no longer exists. + responses: + '204': + description: No Content '400': $ref: '#/components/responses/BadRequest' '401': @@ -10022,9 +10461,51 @@ paths: $ref: '#/components/responses/UnprocessableContent' '500': $ref: '#/components/responses/InternalServerError' + /list-agent-versions/{agent_id}: + get: + description: List stored versions of a voice or chat agent with pagination. Root-level data such as assigned tags is not included. + operationId: listAgentVersions + parameters: + - in: path + name: agent_id + schema: + type: string + minLength: 1 + example: 16b980523634a6dc504898cda492e939 + required: true + description: Unique ID of the agent whose versions are being listed. + - $ref: '#/components/parameters/LimitParam' + - $ref: '#/components/parameters/SortOrderParam' + - $ref: '#/components/parameters/PaginationKeyParam' + responses: + '200': + description: Successfully retrieved a page of agent versions. + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/PaginatedResponseBase' + - type: object + properties: + items: + type: array + items: + $ref: '#/components/schemas/AgentVersionSummary' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableContent' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' /get-agent-versions/{agent_id}: get: - description: Get all versions of an agent + description: Get agent versions. Large version histories may be truncated. operationId: getAgentVersions parameters: - in: path @@ -10037,7 +10518,7 @@ paths: description: Unique id of the agent versions to be retrieved. responses: '200': - description: Successfully retrieved all versions of an agent. + description: Successfully retrieved agent versions. content: application/json: schema: @@ -10052,6 +10533,7 @@ paths: $ref: '#/components/responses/UnprocessableContent' '500': $ref: '#/components/responses/InternalServerError' + deprecated: true /get-agent/{agent_id}: get: description: Retrieve details of a specific agent @@ -10088,7 +10570,7 @@ paths: $ref: '#/components/responses/InternalServerError' /get-chat-agent-versions/{agent_id}: get: - description: Get all versions of a chat agent + description: Get chat agent versions. Large version histories may be truncated. operationId: getChatAgentVersions parameters: - in: path @@ -10101,7 +10583,7 @@ paths: description: Unique id of the chat agent versions to be retrieved. responses: '200': - description: Successfully retrieved all versions of a chat agent. + description: Successfully retrieved chat agent versions. content: application/json: schema: @@ -10114,6 +10596,7 @@ paths: $ref: '#/components/responses/UnprocessableContent' '500': $ref: '#/components/responses/InternalServerError' + deprecated: true /get-chat-agent/{agent_id}: get: description: Retrieve details of a specific chat agent @@ -12111,3 +12594,722 @@ paths: $ref: '#/components/responses/UnprocessableContent' '500': $ref: '#/components/responses/InternalServerError' + /create-contact: + post: + description: Create a new contact. + operationId: createContact + x-retell-sdk-resource: contact + x-retell-sdk-method: create + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - phone_number + properties: + phone_number: + type: string + description: Phone number of the contact. + first_name: + type: string + description: First name of the contact. + last_name: + type: string + description: Last name of the contact. + do_not_call: + type: boolean + custom_fields: + type: object + description: 'Values must match the types defined in CRM config custom fields. Set a value to null to clear it. + + ' + responses: + '201': + description: Contact created. + content: + application/json: + schema: + $ref: '#/components/schemas/Contact' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /get-contact/{contact_id}: + get: + description: Retrieve a contact by ID. + operationId: getContact + x-retell-sdk-resource: contact + x-retell-sdk-method: get + parameters: + - in: path + name: contact_id + required: true + schema: + type: string + responses: + '200': + description: Contact found. + content: + application/json: + schema: + $ref: '#/components/schemas/Contact' + '401': + $ref: '#/components/responses/Unauthorized' + '404': + $ref: '#/components/responses/NotFound' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /get-contact-by-phone/{phone_number}: + get: + description: Retrieve a contact by phone number. At most one contact exists per phone number in an organization. + operationId: getContactByPhone + x-retell-sdk-resource: contact + x-retell-sdk-method: get-by-phone + parameters: + - in: path + name: phone_number + required: true + description: Phone number of the contact, E.164 preferred. Other formats are normalized before the lookup; a number that cannot be parsed is rejected with 400. + schema: + type: string + responses: + '200': + description: Contact found. + content: + application/json: + schema: + $ref: '#/components/schemas/Contact' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '404': + $ref: '#/components/responses/NotFound' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /update-contact/{contact_id}: + patch: + description: Update an existing contact. + operationId: updateContact + x-retell-sdk-resource: contact + x-retell-sdk-method: update + parameters: + - in: path + name: contact_id + required: true + schema: + type: string + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + first_name: + type: string + description: First name of the contact. + last_name: + type: string + description: Last name of the contact. + do_not_call: + type: boolean + custom_fields: + type: object + description: 'Values must match the types defined in CRM config custom fields. Set a value to null to clear it. + + ' + responses: + '200': + description: Contact updated. + content: + application/json: + schema: + $ref: '#/components/schemas/Contact' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '404': + $ref: '#/components/responses/NotFound' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /delete-contact/{contact_id}: + delete: + description: Delete a contact. A contact linked to a record in a connected CRM cannot be deleted while two-way sync is active — unlink the CRM app first, otherwise the next sync would recreate it. + operationId: deleteContact + x-retell-sdk-resource: contact + x-retell-sdk-method: delete + parameters: + - in: path + name: contact_id + required: true + schema: + type: string + responses: + '204': + description: Contact deleted. + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '404': + $ref: '#/components/responses/NotFound' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /list-contacts: + post: + description: List contacts, newest conversation first by default, with the total count of matches alongside the page. Page through results with `pagination_key`; `skip` is available for offset-style + paging but is slower on large contact sets and can repeat or miss rows as contacts are updated. + operationId: listContacts + x-retell-sdk-resource: contact + x-retell-sdk-method: list + requestBody: + required: false + content: + application/json: + schema: + $ref: '#/components/schemas/ListContactsRequest' + responses: + '200': + description: Paginated list of contacts. + content: + application/json: + schema: + $ref: '#/components/schemas/ContactListResponse' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /list-contact-conversations/{contact_id}: + get: + description: 'List a contact''s conversations (inbound calls, outbound calls, and chats) merged into a single timeline, most recent first. Results are matched by the contact''s phone number. Use the + returned `pagination_key` to fetch the next page. + + ' + operationId: listContactConversations + x-retell-sdk-resource: contact + x-retell-sdk-method: list-conversations + parameters: + - in: path + name: contact_id + required: true + schema: + type: string + - $ref: '#/components/parameters/LimitParam' + - $ref: '#/components/parameters/PaginationKeyParam' + responses: + '200': + description: Merged list of the contact's conversations. + content: + application/json: + schema: + $ref: '#/components/schemas/ContactConversationListResponse' + '401': + $ref: '#/components/responses/Unauthorized' + '404': + $ref: '#/components/responses/NotFound' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /create-app: + post: + description: 'Create an App: the connection to one external system (a CRM, calendar, support desk, and so on), holding its credentials and settings. Providers that authenticate with a key, token, + or refresh token can be connected in this one call by passing auth_config; the credential is stored encrypted and never returned. Up to 20 apps per provider.' + operationId: createApp + x-retell-sdk-resource: app + x-retell-sdk-method: create + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - type + - provider + properties: + type: + $ref: '#/components/schemas/AppType' + provider: + $ref: '#/components/schemas/AppProvider' + name: + type: string + description: Display name. + tenant_url: + type: string + description: Per-tenant API base URL. + tenant_id: + type: string + description: Sub-account id, for providers that scope requests by a sub-account id on a shared host. + auth_config: + $ref: '#/components/schemas/AuthConfigRequest' + crm_config: + $ref: '#/components/schemas/AppCRMConfig' + responses: + '201': + description: App created. + content: + application/json: + schema: + $ref: '#/components/schemas/AppResponse' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /get-app/{app_id}: + get: + description: Get an App by id. + operationId: getApp + x-retell-sdk-resource: app + x-retell-sdk-method: get + parameters: + - in: path + name: app_id + required: true + schema: + type: string + responses: + '200': + description: App. + content: + application/json: + schema: + $ref: '#/components/schemas/AppResponse' + '401': + $ref: '#/components/responses/Unauthorized' + '404': + $ref: '#/components/responses/NotFound' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /update-app/{app_id}: + patch: + description: Partially update an App. Omitted fields remain unchanged. Updating auth_config invalidates the cached provider token immediately. + operationId: updateApp + x-retell-sdk-resource: app + x-retell-sdk-method: update + parameters: + - in: path + name: app_id + required: true + schema: + type: string + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + name: + type: string + tenant_url: + type: string + description: Per-tenant API base URL. + tenant_id: + type: string + description: Sub-account id, for providers that scope requests by a sub-account id on a shared host. + auth_config: + $ref: '#/components/schemas/AuthConfigRequest' + crm_config: + $ref: '#/components/schemas/AppCRMConfig' + responses: + '200': + description: Updated App. + content: + application/json: + schema: + $ref: '#/components/schemas/AppResponse' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '404': + $ref: '#/components/responses/NotFound' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /delete-app/{app_id}: + delete: + description: Delete an App. Fails when agents or knowledge bases still reference it, unless force_delete is set. If a CRM config is linked to this App, the link is cleared. + operationId: deleteApp + x-retell-sdk-resource: app + x-retell-sdk-method: delete + parameters: + - in: path + name: app_id + required: true + schema: + type: string + - in: query + name: force_delete + required: false + schema: + type: boolean + description: Delete even when the App is still referenced. + responses: + '204': + description: App deleted. + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '404': + $ref: '#/components/responses/NotFound' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /list-apps: + get: + description: List Apps in the organization (paginated). + operationId: listApps + x-retell-sdk-resource: app + x-retell-sdk-method: list + parameters: + - $ref: '#/components/parameters/LimitParam' + - $ref: '#/components/parameters/SortOrderParam' + - $ref: '#/components/parameters/PaginationKeyParam' + responses: + '200': + description: Page of Apps. + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/PaginatedResponseBase' + - type: object + properties: + items: + type: array + items: + $ref: '#/components/schemas/AppResponse' + '401': + $ref: '#/components/responses/Unauthorized' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /list-app-usages/{app_id}: + get: + description: List the agents and knowledge bases referencing an App, most recently configured first by default. + operationId: listAppUsages + x-retell-sdk-resource: app + x-retell-sdk-method: list-usages + parameters: + - in: path + name: app_id + required: true + schema: + type: string + - $ref: '#/components/parameters/LimitParam' + - $ref: '#/components/parameters/SortOrderParam' + - $ref: '#/components/parameters/PaginationKeyParam' + responses: + '200': + description: Page of App references. + content: + application/json: + schema: + allOf: + - $ref: '#/components/schemas/PaginatedResponseBase' + - type: object + properties: + items: + type: array + items: + $ref: '#/components/schemas/AppUsageResponse' + '401': + $ref: '#/components/responses/Unauthorized' + '404': + $ref: '#/components/responses/NotFound' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /test-app-auth/{app_id}: + post: + description: Probe the App's stored credentials by making a minimal authenticated call to the provider. Returns success=true on a successful round-trip, and records the outcome on the App's connection_status + either way. + operationId: testAppAuth + x-retell-sdk-resource: app + x-retell-sdk-method: test-auth + parameters: + - in: path + name: app_id + required: true + schema: + type: string + responses: + '200': + description: Auth probe result. + content: + application/json: + schema: + type: object + required: + - success + properties: + success: + type: boolean + '401': + $ref: '#/components/responses/Unauthorized' + '404': + $ref: '#/components/responses/NotFound' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /get-crm-config: + get: + description: 'Get the organization''s CRM configuration: which CRM app is linked, the custom contact fields defined for it, and how post-call analysis data is written back to contacts. Returns an + empty configuration when nothing has been set up yet.' + operationId: getCrmConfig + x-retell-sdk-resource: crm + x-retell-sdk-method: get-config + responses: + '200': + description: CRM config. + content: + application/json: + schema: + $ref: '#/components/schemas/CRMConfig' + '401': + $ref: '#/components/responses/Unauthorized' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /update-crm-config: + post: + description: Update the organization's CRM configuration. Omitted fields stay as they are; a field that is sent replaces its stored value in full. + operationId: updateCrmConfig + x-retell-sdk-resource: crm + x-retell-sdk-method: update-config + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + app_id: + type: string + nullable: true + description: ID of the CRM app to link. Pass null to unlink, which stops syncing. Changing it resets the sync cursor, so the next sync re-reads every contact from the new CRM. + custom_fields: + type: array + maxItems: 200 + description: Replaces the stored list. Names must be snake_case and cannot collide with a built-in contact field or start with `contact`/`external`. Removing a field that an analysis data + mapping still targets is rejected — send crm_analysis_data_mappings in the same request to retarget or drop those mappings. + items: + $ref: '#/components/schemas/CRMCustomFieldSchema' + crm_analysis_data_mappings: + type: array + maxItems: 200 + description: Replaces the stored list. + items: + $ref: '#/components/schemas/CRMAnalysisDataMapping' + contact_columns_order: + type: array + maxItems: 200 + description: Preferred display order of contact fields, for clients that render contacts as a table. Not used by the API itself. + items: + type: string + responses: + '200': + description: Updated CRM config. + content: + application/json: + schema: + $ref: '#/components/schemas/CRMConfig' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '404': + $ref: '#/components/responses/NotFound' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /run-sync-job: + post: + description: 'Start a contact sync with the linked CRM app immediately, instead of waiting for the scheduled sync. One sync runs per organization at a time: starting another while one is in flight + is rejected. Poll get-sync-job-status for progress.' + operationId: runSyncJob + x-retell-sdk-resource: crm + x-retell-sdk-method: run-sync-job + responses: + '201': + description: Sync job started. + content: + application/json: + schema: + $ref: '#/components/schemas/JobStatus' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /get-sync-job-status: + get: + description: Get the status of the organization's contact sync, whether it was started manually or by the schedule. Returns status `idle` when no sync is running. + operationId: getSyncJobStatus + x-retell-sdk-resource: crm + x-retell-sdk-method: get-sync-job-status + responses: + '200': + description: Sync job status. + content: + application/json: + schema: + $ref: '#/components/schemas/JobStatus' + '401': + $ref: '#/components/responses/Unauthorized' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /backfill-contact-analysis-data: + post: + description: Trigger a backfill job that re-applies analysis data mappings to contacts using historical call data. Only one backfill job can run per organization at a time. + operationId: backfillContactAnalysisData + x-retell-sdk-resource: contact + x-retell-sdk-method: backfill-analysis-data + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + backfill_call_filter: + type: object + description: Optional call filter to scope which calls are processed. Supports agent and start_timestamp from the standard call filter. + properties: + agent: + type: array + items: + $ref: '#/components/schemas/AgentFilter' + description: Filter calls by agent. Agents are OR-connected. + start_timestamp: + oneOf: + - $ref: '#/components/schemas/NumberFilter' + - $ref: '#/components/schemas/RangeFilter' + description: Filter calls by start timestamp (epoch ms). + backfill_attributes: + type: array + items: + type: string + minItems: 1 + maxItems: 200 + description: Contact fields to recompute. Each one must still exist as a contact field and have an analysis data mapping configured, otherwise the request is rejected rather than running + a job that writes nothing. + required: + - backfill_attributes + responses: + '201': + description: Backfill job started. + content: + application/json: + schema: + $ref: '#/components/schemas/JobStatus' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /get-backfill-contact-job-status: + get: + description: Get the status of the contact analysis data backfill job. + operationId: getBackfillContactJobStatus + x-retell-sdk-resource: contact + x-retell-sdk-method: get-backfill-job-status + responses: + '200': + description: Backfill job status. + content: + application/json: + schema: + $ref: '#/components/schemas/JobStatus' + '401': + $ref: '#/components/responses/Unauthorized' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError' + /get-crm-schema: + get: + description: 'Get the contact schema of the connected CRM: the fields available on its contact object, which are the values that sync mappings can reference.' + operationId: getCrmSchema + x-retell-sdk-resource: crm + x-retell-sdk-method: get-schema + parameters: + - in: query + name: app_id + schema: + type: string + description: ID of the CRM app to read the schema from. Defaults to the app linked in the organization's CRM configuration. Naming a different app additionally requires the App.Read scope. + responses: + '200': + description: CRM contact schema. + content: + application/json: + schema: + type: object + properties: + provider: + type: string + description: CRM provider name. + fields: + type: array + items: + $ref: '#/components/schemas/CRMCustomFieldSchema' + required: + - provider + - fields + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '429': + $ref: '#/components/responses/TooManyRequests' + '500': + $ref: '#/components/responses/InternalServerError'