diff --git a/src/libs/Ultravox/Generated/Ultravox..JsonSerializerContext.g.cs b/src/libs/Ultravox/Generated/Ultravox..JsonSerializerContext.g.cs index da222a2..6969bd2 100644 --- a/src/libs/Ultravox/Generated/Ultravox..JsonSerializerContext.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox..JsonSerializerContext.g.cs @@ -157,6 +157,10 @@ namespace Ultravox typeof(global::Ultravox.JsonConverters.UltravoxV1TimedMessageEndBehaviorNullableJsonConverter), + typeof(global::Ultravox.JsonConverters.AccountsMeUsageConcurrencyRetrieveBucketJsonConverter), + + typeof(global::Ultravox.JsonConverters.AccountsMeUsageConcurrencyRetrieveBucketNullableJsonConverter), + typeof(global::Ultravox.JsonConverters.AgentsScheduledBatchesScheduledCallsListStatusJsonConverter), typeof(global::Ultravox.JsonConverters.AgentsScheduledBatchesScheduledCallsListStatusNullableJsonConverter), @@ -269,6 +273,9 @@ namespace Ultravox [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.DailyCallStatistics))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.HourlyCallStatistics))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.ConcurrencyBucket))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.ConcurrencyResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.CorpusUploadsRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.CorpusUploadsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.EventsEnum))] @@ -442,6 +449,7 @@ namespace Ultravox [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.ToolsCreateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.VoicesCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.AccountsMeUsageConcurrencyRetrieveBucket))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.AgentsScheduledBatchesScheduledCallsListStatus))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.CallsEventsListMinimumSeverity))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Ultravox.CallsMessagesListMode))] @@ -461,6 +469,7 @@ namespace Ultravox [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))] diff --git a/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeUsageConcurrencyRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeUsageConcurrencyRetrieve.g.cs new file mode 100644 index 0000000..205de5e --- /dev/null +++ b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsMeUsageConcurrencyRetrieve.g.cs @@ -0,0 +1,193 @@ + +#nullable enable + +namespace Ultravox +{ + public partial class AccountsClient + { + partial void PrepareAccountsMeUsageConcurrencyRetrieveArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::Ultravox.AccountsMeUsageConcurrencyRetrieveBucket? bucket, + ref global::System.DateTime? end, + ref global::System.DateTime? start); + partial void PrepareAccountsMeUsageConcurrencyRetrieveRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::Ultravox.AccountsMeUsageConcurrencyRetrieveBucket? bucket, + global::System.DateTime? end, + global::System.DateTime? start); + partial void ProcessAccountsMeUsageConcurrencyRetrieveResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessAccountsMeUsageConcurrencyRetrieveResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Gets historical call concurrency for the account. + /// + /// + /// Default Value: minute + /// + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task AccountsMeUsageConcurrencyRetrieveAsync( + global::Ultravox.AccountsMeUsageConcurrencyRetrieveBucket? bucket = default, + global::System.DateTime? end = default, + global::System.DateTime? start = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareAccountsMeUsageConcurrencyRetrieveArguments( + httpClient: HttpClient, + bucket: ref bucket, + end: ref end, + start: ref start); + + var __pathBuilder = new global::Ultravox.PathBuilder( + path: "/api/accounts/me/usage/concurrency", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("bucket", bucket?.ToValueString()) + .AddOptionalParameter("end", end?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + .AddOptionalParameter("start", start?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + ; + var __path = __pathBuilder.ToString(); + using 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") + { + __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); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareAccountsMeUsageConcurrencyRetrieveRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + bucket: bucket, + end: end, + start: start); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessAccountsMeUsageConcurrencyRetrieveResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessAccountsMeUsageConcurrencyRetrieveResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::Ultravox.ConcurrencyResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::Ultravox.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + + using var __content = await __response.Content.ReadAsStreamAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::Ultravox.ConcurrencyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::Ultravox.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/Ultravox/Generated/Ultravox.IAccountsClient.AccountsMeUsageConcurrencyRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.IAccountsClient.AccountsMeUsageConcurrencyRetrieve.g.cs new file mode 100644 index 0000000..6e3bd48 --- /dev/null +++ b/src/libs/Ultravox/Generated/Ultravox.IAccountsClient.AccountsMeUsageConcurrencyRetrieve.g.cs @@ -0,0 +1,23 @@ +#nullable enable + +namespace Ultravox +{ + public partial interface IAccountsClient + { + /// + /// Gets historical call concurrency for the account. + /// + /// + /// Default Value: minute + /// + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task AccountsMeUsageConcurrencyRetrieveAsync( + global::Ultravox.AccountsMeUsageConcurrencyRetrieveBucket? bucket = default, + global::System.DateTime? end = default, + global::System.DateTime? start = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Ultravox/Generated/Ultravox.JsonConverters.AccountsMeUsageConcurrencyRetrieveBucket.g.cs b/src/libs/Ultravox/Generated/Ultravox.JsonConverters.AccountsMeUsageConcurrencyRetrieveBucket.g.cs new file mode 100644 index 0000000..9755266 --- /dev/null +++ b/src/libs/Ultravox/Generated/Ultravox.JsonConverters.AccountsMeUsageConcurrencyRetrieveBucket.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Ultravox.JsonConverters +{ + /// + public sealed class AccountsMeUsageConcurrencyRetrieveBucketJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Ultravox.AccountsMeUsageConcurrencyRetrieveBucket Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Ultravox.AccountsMeUsageConcurrencyRetrieveBucketExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Ultravox.AccountsMeUsageConcurrencyRetrieveBucket)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Ultravox.AccountsMeUsageConcurrencyRetrieveBucket); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Ultravox.AccountsMeUsageConcurrencyRetrieveBucket value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Ultravox.AccountsMeUsageConcurrencyRetrieveBucketExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Ultravox/Generated/Ultravox.JsonConverters.AccountsMeUsageConcurrencyRetrieveBucketNullable.g.cs b/src/libs/Ultravox/Generated/Ultravox.JsonConverters.AccountsMeUsageConcurrencyRetrieveBucketNullable.g.cs new file mode 100644 index 0000000..5c9e591 --- /dev/null +++ b/src/libs/Ultravox/Generated/Ultravox.JsonConverters.AccountsMeUsageConcurrencyRetrieveBucketNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Ultravox.JsonConverters +{ + /// + public sealed class AccountsMeUsageConcurrencyRetrieveBucketNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Ultravox.AccountsMeUsageConcurrencyRetrieveBucket? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Ultravox.AccountsMeUsageConcurrencyRetrieveBucketExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Ultravox.AccountsMeUsageConcurrencyRetrieveBucket)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Ultravox.AccountsMeUsageConcurrencyRetrieveBucket?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Ultravox.AccountsMeUsageConcurrencyRetrieveBucket? 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::Ultravox.AccountsMeUsageConcurrencyRetrieveBucketExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Ultravox/Generated/Ultravox.JsonSerializerContextTypes.g.cs b/src/libs/Ultravox/Generated/Ultravox.JsonSerializerContextTypes.g.cs index 6cebf6c..1bc702d 100644 --- a/src/libs/Ultravox/Generated/Ultravox.JsonSerializerContextTypes.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.JsonSerializerContextTypes.g.cs @@ -272,755 +272,771 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Ultravox.CorpusUploadsRequest? Type61 { get; set; } + public global::Ultravox.ConcurrencyBucket? Type61 { get; set; } /// /// /// - public global::Ultravox.CorpusUploadsResponse? Type62 { get; set; } + public global::Ultravox.ConcurrencyResponse? Type62 { get; set; } /// /// /// - public global::Ultravox.EventsEnum? Type63 { get; set; } + public global::System.Collections.Generic.IList? Type63 { get; set; } /// /// /// - public global::Ultravox.Invoice? Type64 { get; set; } + public global::Ultravox.CorpusUploadsRequest? Type64 { get; set; } /// /// /// - public global::Ultravox.InvoiceStatusEnum? Type65 { get; set; } + public global::Ultravox.CorpusUploadsResponse? Type65 { get; set; } /// /// /// - public global::Ultravox.ModelAlias? Type66 { get; set; } + public global::Ultravox.EventsEnum? Type66 { get; set; } /// /// /// - public global::Ultravox.OwnershipEnum? Type67 { get; set; } + public global::Ultravox.Invoice? Type67 { get; set; } /// /// /// - public global::Ultravox.PaginatedAPIKeyList? Type68 { get; set; } + public global::Ultravox.InvoiceStatusEnum? Type68 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type69 { get; set; } + public global::Ultravox.ModelAlias? Type69 { get; set; } /// /// /// - public global::Ultravox.PaginatedAgentList? Type70 { get; set; } + public global::Ultravox.OwnershipEnum? Type70 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type71 { get; set; } + public global::Ultravox.PaginatedAPIKeyList? Type71 { get; set; } /// /// /// - public global::Ultravox.PaginatedCallEventList? Type72 { get; set; } + public global::System.Collections.Generic.IList? Type72 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type73 { get; set; } + public global::Ultravox.PaginatedAgentList? Type73 { get; set; } /// /// /// - public global::Ultravox.PaginatedCallList? Type74 { get; set; } + public global::System.Collections.Generic.IList? Type74 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type75 { get; set; } + public global::Ultravox.PaginatedCallEventList? Type75 { get; set; } /// /// /// - public global::Ultravox.PaginatedCallStageList? Type76 { get; set; } + public global::System.Collections.Generic.IList? Type76 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type77 { get; set; } + public global::Ultravox.PaginatedCallList? Type77 { get; set; } /// /// /// - public global::Ultravox.PaginatedCallTombstoneList? Type78 { get; set; } + public global::System.Collections.Generic.IList? Type78 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type79 { get; set; } + public global::Ultravox.PaginatedCallStageList? Type79 { get; set; } /// /// /// - public global::Ultravox.PaginatedInvoiceList? Type80 { get; set; } + public global::System.Collections.Generic.IList? Type80 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type81 { get; set; } + public global::Ultravox.PaginatedCallTombstoneList? Type81 { get; set; } /// /// /// - public global::Ultravox.PaginatedModelAliasList? Type82 { get; set; } + public global::System.Collections.Generic.IList? Type82 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type83 { get; set; } + public global::Ultravox.PaginatedInvoiceList? Type83 { get; set; } /// /// /// - public global::Ultravox.PaginatedScheduledCallBatchList? Type84 { get; set; } + public global::System.Collections.Generic.IList? Type84 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type85 { get; set; } + public global::Ultravox.PaginatedModelAliasList? Type85 { get; set; } /// /// /// - public global::Ultravox.ScheduledCallBatch? Type86 { get; set; } + public global::System.Collections.Generic.IList? Type86 { get; set; } /// /// /// - public global::Ultravox.PaginatedScheduledCallList? Type87 { get; set; } + public global::Ultravox.PaginatedScheduledCallBatchList? Type87 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type88 { get; set; } + public global::System.Collections.Generic.IList? Type88 { get; set; } /// /// /// - public global::Ultravox.ScheduledCall? Type89 { get; set; } + public global::Ultravox.ScheduledCallBatch? Type89 { get; set; } /// /// /// - public global::Ultravox.PaginatedSipRegistrationList? Type90 { get; set; } + public global::Ultravox.PaginatedScheduledCallList? Type90 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type91 { get; set; } + public global::System.Collections.Generic.IList? Type91 { get; set; } /// /// /// - public global::Ultravox.SipRegistration? Type92 { get; set; } + public global::Ultravox.ScheduledCall? Type92 { get; set; } /// /// /// - public global::Ultravox.PaginatedToolHistoryList? Type93 { get; set; } + public global::Ultravox.PaginatedSipRegistrationList? Type93 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type94 { get; set; } + public global::System.Collections.Generic.IList? Type94 { get; set; } /// /// /// - public global::Ultravox.ToolHistory? Type95 { get; set; } + public global::Ultravox.SipRegistration? Type95 { get; set; } /// /// /// - public global::Ultravox.PaginatedToolList? Type96 { get; set; } + public global::Ultravox.PaginatedToolHistoryList? Type96 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type97 { get; set; } + public global::System.Collections.Generic.IList? Type97 { get; set; } /// /// /// - public global::Ultravox.Tool? Type98 { get; set; } + public global::Ultravox.ToolHistory? Type98 { get; set; } /// /// /// - public global::Ultravox.PaginatedVoiceList? Type99 { get; set; } + public global::Ultravox.PaginatedToolList? Type99 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type100 { get; set; } + public global::System.Collections.Generic.IList? Type100 { get; set; } /// /// /// - public global::Ultravox.Voice? Type101 { get; set; } + public global::Ultravox.Tool? Type101 { get; set; } /// /// /// - public global::Ultravox.PaginatedWebhookList? Type102 { get; set; } + public global::Ultravox.PaginatedVoiceList? Type102 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type103 { get; set; } + public global::System.Collections.Generic.IList? Type103 { get; set; } /// /// /// - public global::Ultravox.Webhook? Type104 { get; set; } + public global::Ultravox.Voice? Type104 { get; set; } /// /// /// - public global::Ultravox.PaginatedultravoxV1CorpusDocumentList? Type105 { get; set; } + public global::Ultravox.PaginatedWebhookList? Type105 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type106 { get; set; } + public global::System.Collections.Generic.IList? Type106 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CorpusDocument? Type107 { get; set; } + public global::Ultravox.Webhook? Type107 { get; set; } /// /// /// - public global::Ultravox.PaginatedultravoxV1CorpusList? Type108 { get; set; } + public global::Ultravox.PaginatedultravoxV1CorpusDocumentList? Type108 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type109 { get; set; } + public global::System.Collections.Generic.IList? Type109 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1Corpus? Type110 { get; set; } + public global::Ultravox.UltravoxV1CorpusDocument? Type110 { get; set; } /// /// /// - public global::Ultravox.PaginatedultravoxV1CorpusSourceList? Type111 { get; set; } + public global::Ultravox.PaginatedultravoxV1CorpusList? Type111 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type112 { get; set; } + public global::System.Collections.Generic.IList? Type112 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CorpusSource? Type113 { get; set; } + public global::Ultravox.UltravoxV1Corpus? Type113 { get; set; } /// /// /// - public global::Ultravox.PaginatedultravoxV1MessageList? Type114 { get; set; } + public global::Ultravox.PaginatedultravoxV1CorpusSourceList? Type114 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type115 { get; set; } + public global::System.Collections.Generic.IList? Type115 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1Message? Type116 { get; set; } + public global::Ultravox.UltravoxV1CorpusSource? Type116 { get; set; } /// /// /// - public global::Ultravox.PatchedAPIKey? Type117 { get; set; } + public global::Ultravox.PaginatedultravoxV1MessageList? Type117 { get; set; } /// /// /// - public global::Ultravox.PatchedAccountTelephonyConfig? Type118 { get; set; } + public global::System.Collections.Generic.IList? Type118 { get; set; } /// /// /// - public global::Ultravox.PatchedAgent? Type119 { get; set; } + public global::Ultravox.UltravoxV1Message? Type119 { get; set; } /// /// /// - public global::Ultravox.PatchedPlivoConfig? Type120 { get; set; } + public global::Ultravox.PatchedAPIKey? Type120 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type121 { get; set; } + public global::Ultravox.PatchedAccountTelephonyConfig? Type121 { get; set; } /// /// /// - public global::Ultravox.PatchedScheduledCallBatch? Type122 { get; set; } + public global::Ultravox.PatchedAgent? Type122 { get; set; } /// /// /// - public global::Ultravox.PatchedSetTtsApiKeysRequest? Type123 { get; set; } + public global::Ultravox.PatchedPlivoConfig? Type123 { get; set; } /// /// /// - public global::Ultravox.PatchedSipConfig? Type124 { get; set; } + public global::System.Collections.Generic.IList? Type124 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type125 { get; set; } + public global::Ultravox.PatchedScheduledCallBatch? Type125 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type126 { get; set; } + public global::Ultravox.PatchedSetTtsApiKeysRequest? Type126 { get; set; } /// /// /// - public global::Ultravox.PatchedSipRegistration? Type127 { get; set; } + public global::Ultravox.PatchedSipConfig? Type127 { get; set; } /// /// /// - public global::Ultravox.PatchedTelnyxConfig? Type128 { get; set; } + public global::System.Collections.Generic.IList? Type128 { get; set; } /// /// /// - public global::Ultravox.PatchedTwilioConfig? Type129 { get; set; } + public global::System.Collections.Generic.IList? Type129 { get; set; } /// /// /// - public global::Ultravox.PatchedVoice? Type130 { get; set; } + public global::Ultravox.PatchedSipRegistration? Type130 { get; set; } /// /// /// - public global::Ultravox.PatchedWebhook? Type131 { get; set; } + public global::Ultravox.PatchedTelnyxConfig? Type131 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type132 { get; set; } + public global::Ultravox.PatchedTwilioConfig? Type132 { get; set; } /// /// /// - public global::Ultravox.WebhookStatusEnum? Type133 { get; set; } + public global::Ultravox.PatchedVoice? Type133 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type134 { get; set; } + public global::Ultravox.PatchedWebhook? Type134 { get; set; } /// /// /// - public global::Ultravox.WebhookFailure? Type135 { get; set; } + public global::System.Collections.Generic.IList? Type135 { get; set; } /// /// /// - public global::Ultravox.ScheduledCallStatusEnum? Type136 { get; set; } + public global::Ultravox.WebhookStatusEnum? Type136 { get; set; } /// /// /// - public global::Ultravox.SendCallDataMessage? Type137 { get; set; } + public global::System.Collections.Generic.IList? Type137 { get; set; } /// /// /// - public global::Ultravox.SipConfig? Type138 { get; set; } + public global::Ultravox.WebhookFailure? Type138 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1BaseToolDefinition? Type139 { get; set; } + public global::Ultravox.ScheduledCallStatusEnum? Type139 { get; set; } /// /// /// - public global::Ultravox.UsageResponse? Type140 { get; set; } + public global::Ultravox.SendCallDataMessage? Type140 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type141 { get; set; } + public global::Ultravox.SipConfig? Type141 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CallTemplateInitialOutputMedium? Type142 { get; set; } + public global::Ultravox.UltravoxV1BaseToolDefinition? Type142 { get; set; } /// /// /// - public float? Type143 { get; set; } + public global::Ultravox.UsageResponse? Type143 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type144 { get; set; } + public global::System.Collections.Generic.IList? Type144 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1SelectedTool? Type145 { get; set; } + public global::Ultravox.UltravoxV1CallTemplateInitialOutputMedium? Type145 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CallTemplateRetentionPolicy? Type146 { get; set; } + public float? Type146 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CorpusStats? Type147 { get; set; } + public global::System.Collections.Generic.IList? Type147 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CorpusDocumentMetadata? Type148 { get; set; } + public global::Ultravox.UltravoxV1SelectedTool? Type148 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CorpusQueryResult? Type149 { get; set; } + public global::Ultravox.UltravoxV1CallTemplateRetentionPolicy? Type149 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CorpusQueryResultCitation? Type150 { get; set; } + public global::Ultravox.UltravoxV1CorpusStats? Type150 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1SourceStats? Type151 { get; set; } + public global::Ultravox.UltravoxV1CorpusDocumentMetadata? Type151 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CrawlSpec? Type152 { get; set; } + public global::Ultravox.UltravoxV1CorpusQueryResult? Type152 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1UploadSpec? Type153 { get; set; } + public global::Ultravox.UltravoxV1CorpusQueryResultCitation? Type153 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1AdvancedSpec? Type154 { get; set; } + public global::Ultravox.UltravoxV1SourceStats? Type154 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1MessageRole? Type155 { get; set; } + public global::Ultravox.UltravoxV1CrawlSpec? Type155 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1MessageMedium? Type156 { get; set; } + public global::Ultravox.UltravoxV1UploadSpec? Type156 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1InCallTimespan? Type157 { get; set; } + public global::Ultravox.UltravoxV1AdvancedSpec? Type157 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type158 { get; set; } + public global::Ultravox.UltravoxV1MessageRole? Type158 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1AdvancedSpecDocumentDetails? Type159 { get; set; } + public global::Ultravox.UltravoxV1MessageMedium? Type159 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1AutomaticParameter? Type160 { get; set; } + public global::Ultravox.UltravoxV1InCallTimespan? Type160 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1AutomaticParameterLocation? Type161 { get; set; } + public global::System.Collections.Generic.IList? Type161 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1AutomaticParameterKnownValue? Type162 { get; set; } + public global::Ultravox.UltravoxV1AdvancedSpecDocumentDetails? Type162 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1BaseHttpToolDetails? Type163 { get; set; } + public global::Ultravox.UltravoxV1AutomaticParameter? Type163 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type164 { get; set; } + public global::Ultravox.UltravoxV1AutomaticParameterLocation? Type164 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1DynamicParameter? Type165 { get; set; } + public global::Ultravox.UltravoxV1AutomaticParameterKnownValue? Type165 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type166 { get; set; } + public global::Ultravox.UltravoxV1BaseHttpToolDetails? Type166 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StaticParameter? Type167 { get; set; } + public global::System.Collections.Generic.IList? Type167 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type168 { get; set; } + public global::Ultravox.UltravoxV1DynamicParameter? Type168 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1ToolRequirements? Type169 { get; set; } + public global::System.Collections.Generic.IList? Type169 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1BaseToolDefinitionDefaultReaction? Type170 { get; set; } + public global::Ultravox.UltravoxV1StaticParameter? Type170 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StaticToolResponse? Type171 { get; set; } + public global::System.Collections.Generic.IList? Type171 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CallMediumWebRtcMedium? Type172 { get; set; } + public global::Ultravox.UltravoxV1ToolRequirements? Type172 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CallMediumTwilioMedium? Type173 { get; set; } + public global::Ultravox.UltravoxV1BaseToolDefinitionDefaultReaction? Type173 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CallMediumWebSocketMedium? Type174 { get; set; } + public global::Ultravox.UltravoxV1StaticToolResponse? Type174 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CallMediumTelnyxMedium? Type175 { get; set; } + public global::Ultravox.UltravoxV1CallMediumWebRtcMedium? Type175 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CallMediumPlivoMedium? Type176 { get; set; } + public global::Ultravox.UltravoxV1CallMediumTwilioMedium? Type176 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CallMediumExotelMedium? Type177 { get; set; } + public global::Ultravox.UltravoxV1CallMediumWebSocketMedium? Type177 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CallMediumSipMedium? Type178 { get; set; } + public global::Ultravox.UltravoxV1CallMediumTelnyxMedium? Type178 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CallMediumDtmfHandling? Type179 { get; set; } + public global::Ultravox.UltravoxV1CallMediumPlivoMedium? Type179 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CallMediumDtmfUserTextMessage? Type180 { get; set; } + public global::Ultravox.UltravoxV1CallMediumExotelMedium? Type180 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CallMediumDtmfUserTextMessageUrgency? Type181 { get; set; } + public global::Ultravox.UltravoxV1CallMediumSipMedium? Type181 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1PlivoMediumOutgoingRequestParams? Type182 { get; set; } + public global::Ultravox.UltravoxV1CallMediumDtmfHandling? Type182 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1SipMediumSipOutgoing? Type183 { get; set; } + public global::Ultravox.UltravoxV1CallMediumDtmfUserTextMessage? Type183 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1TelnyxMediumOutgoingRequestParams? Type184 { get; set; } + public global::Ultravox.UltravoxV1CallMediumDtmfUserTextMessageUrgency? Type184 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1TwilioMediumOutgoingRequestParams? Type185 { get; set; } + public global::Ultravox.UltravoxV1PlivoMediumOutgoingRequestParams? Type185 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1EnabledDataMessages? Type186 { get; set; } + public global::Ultravox.UltravoxV1SipMediumSipOutgoing? Type186 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1HttpCallToolDetails? Type187 { get; set; } + public global::Ultravox.UltravoxV1TelnyxMediumOutgoingRequestParams? Type187 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CallToolDefaultReaction? Type188 { get; set; } + public global::Ultravox.UltravoxV1TwilioMediumOutgoingRequestParams? Type188 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1Callback? Type189 { get; set; } + public global::Ultravox.UltravoxV1EnabledDataMessages? Type189 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CartesiaVoice? Type190 { get; set; } + public global::Ultravox.UltravoxV1HttpCallToolDetails? Type190 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CartesiaVoiceCartesiaGenerationConfig? Type191 { get; set; } + public global::Ultravox.UltravoxV1CallToolDefaultReaction? Type191 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1CorpusStatsStatus? Type192 { get; set; } + public global::Ultravox.UltravoxV1Callback? Type192 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1MimeTypeFilter? Type193 { get; set; } + public global::Ultravox.UltravoxV1CartesiaVoice? Type193 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1DataConnectionAudioConfig? Type194 { get; set; } + public global::Ultravox.UltravoxV1CartesiaVoiceCartesiaGenerationConfig? Type194 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1DataConnectionAudioConfigChannelMode? Type195 { get; set; } + public global::Ultravox.UltravoxV1CorpusStatsStatus? Type195 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1DynamicParameterLocation? Type196 { get; set; } + public global::Ultravox.UltravoxV1MimeTypeFilter? Type196 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1ElevenLabsVoice? Type197 { get; set; } + public global::Ultravox.UltravoxV1DataConnectionAudioConfig? Type197 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type198 { get; set; } + public global::Ultravox.UltravoxV1DataConnectionAudioConfigChannelMode? Type198 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1ElevenLabsVoicePronunciationDictionaryReference? Type199 { get; set; } + public global::Ultravox.UltravoxV1DynamicParameterLocation? Type199 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1LmntVoice? Type200 { get; set; } + public global::Ultravox.UltravoxV1ElevenLabsVoice? Type200 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1GoogleVoice? Type201 { get; set; } + public global::System.Collections.Generic.IList? Type201 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1InworldVoice? Type202 { get; set; } + public global::Ultravox.UltravoxV1ElevenLabsVoicePronunciationDictionaryReference? Type202 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1RespeecherVoice? Type203 { get; set; } + public global::Ultravox.UltravoxV1LmntVoice? Type203 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1GenericVoice? Type204 { get; set; } + public global::Ultravox.UltravoxV1GoogleVoice? Type204 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1FallbackAgentGreeting? Type205 { get; set; } + public global::Ultravox.UltravoxV1InworldVoice? Type205 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1FirstSpeakerSettingsUserGreeting? Type206 { get; set; } + public global::Ultravox.UltravoxV1RespeecherVoice? Type206 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1FirstSpeakerSettingsAgentGreeting? Type207 { get; set; } + public global::Ultravox.UltravoxV1GenericVoice? Type207 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1GenericVoiceJsonByteEncoding? Type208 { get; set; } + public global::Ultravox.UltravoxV1FallbackAgentGreeting? Type208 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1HeaderApiKeyRequirement? Type209 { get; set; } + public global::Ultravox.UltravoxV1FirstSpeakerSettingsUserGreeting? Type209 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1HttpAuthRequirement? Type210 { get; set; } + public global::Ultravox.UltravoxV1FirstSpeakerSettingsAgentGreeting? Type210 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1MimeTypeSet? Type211 { get; set; } + public global::Ultravox.UltravoxV1GenericVoiceJsonByteEncoding? Type211 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1QueryApiKeyRequirement? Type212 { get; set; } + public global::Ultravox.UltravoxV1HeaderApiKeyRequirement? Type212 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1QueryCorpusRequest? Type213 { get; set; } + public global::Ultravox.UltravoxV1HttpAuthRequirement? Type213 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1SecurityOptions? Type214 { get; set; } + public global::Ultravox.UltravoxV1MimeTypeSet? Type214 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type215 { get; set; } + public global::Ultravox.UltravoxV1QueryApiKeyRequirement? Type215 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1SecurityRequirements? Type216 { get; set; } + public global::Ultravox.UltravoxV1QueryCorpusRequest? Type216 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1SecurityRequirement? Type217 { get; set; } + public global::Ultravox.UltravoxV1SecurityOptions? Type217 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type218 { get; set; } + public global::System.Collections.Generic.IList? Type218 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1UltravoxCallTokenRequirement? Type219 { get; set; } + public global::Ultravox.UltravoxV1SecurityRequirements? Type219 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1SourceStatsStatus? Type220 { get; set; } + public global::Ultravox.UltravoxV1SecurityRequirement? Type220 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StartAgentCallRequest? Type221 { get; set; } + public global::System.Collections.Generic.Dictionary? Type221 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StartAgentCallRequestInitialOutputMedium? Type222 { get; set; } + public global::Ultravox.UltravoxV1UltravoxCallTokenRequirement? Type222 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1ToolOverrides? Type223 { get; set; } + public global::Ultravox.UltravoxV1SourceStatsStatus? Type223 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StartAgentCallRequestRetentionPolicy? Type224 { get; set; } + public global::Ultravox.UltravoxV1StartAgentCallRequest? Type224 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StartCallRequest? Type225 { get; set; } + public global::Ultravox.UltravoxV1StartAgentCallRequestInitialOutputMedium? Type225 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StartCallRequestFirstSpeaker? Type226 { get; set; } + public global::Ultravox.UltravoxV1ToolOverrides? Type226 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StartCallRequestInitialOutputMedium? Type227 { get; set; } + public global::Ultravox.UltravoxV1StartAgentCallRequestRetentionPolicy? Type227 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StartCallRequestRetentionPolicy? Type228 { get; set; } + public global::Ultravox.UltravoxV1StartCallRequest? Type228 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StaticParameterLocation? Type229 { get; set; } + public global::Ultravox.UltravoxV1StartCallRequestFirstSpeaker? Type229 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1TimedMessageEndBehavior? Type230 { get; set; } + public global::Ultravox.UltravoxV1StartCallRequestInitialOutputMedium? Type230 { get; set; } /// /// /// - public global::Ultravox.ToolsCreateRequest? Type231 { get; set; } + public global::Ultravox.UltravoxV1StartCallRequestRetentionPolicy? Type231 { get; set; } /// /// /// - public byte[]? Type232 { get; set; } + public global::Ultravox.UltravoxV1StaticParameterLocation? Type232 { get; set; } /// /// /// - public global::Ultravox.VoicesCreateRequest? Type233 { get; set; } + public global::Ultravox.UltravoxV1TimedMessageEndBehavior? Type233 { get; set; } /// /// /// - public global::Ultravox.AgentsScheduledBatchesScheduledCallsListStatus? Type234 { get; set; } + public global::Ultravox.ToolsCreateRequest? Type234 { get; set; } /// /// /// - public global::Ultravox.CallsEventsListMinimumSeverity? Type235 { get; set; } + public byte[]? Type235 { get; set; } /// /// /// - public global::Ultravox.CallsMessagesListMode? Type236 { get; set; } + public global::Ultravox.VoicesCreateRequest? Type236 { get; set; } /// /// /// - public global::Ultravox.SchemaRetrieveFormat? Type237 { get; set; } + public global::Ultravox.AccountsMeUsageConcurrencyRetrieveBucket? Type237 { get; set; } /// /// /// - public global::Ultravox.SchemaRetrieveLang? Type238 { get; set; } + public global::Ultravox.AgentsScheduledBatchesScheduledCallsListStatus? Type238 { get; set; } /// /// /// - public global::Ultravox.ToolsListOwnership? Type239 { get; set; } + public global::Ultravox.CallsEventsListMinimumSeverity? Type239 { get; set; } /// /// /// - public global::Ultravox.ToolsListSortOrder? Type240 { get; set; } + public global::Ultravox.CallsMessagesListMode? Type240 { get; set; } /// /// /// - public global::Ultravox.VoicesListBillingStyle? Type241 { get; set; } + public global::Ultravox.SchemaRetrieveFormat? Type241 { get; set; } /// /// /// - public global::Ultravox.VoicesListOwnership? Type242 { get; set; } + public global::Ultravox.SchemaRetrieveLang? Type242 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type243 { get; set; } + public global::Ultravox.ToolsListOwnership? Type243 { get; set; } /// /// /// - public global::Ultravox.VoicesListProviderItem? Type244 { get; set; } + public global::Ultravox.ToolsListSortOrder? Type244 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type245 { get; set; } + public global::Ultravox.VoicesListBillingStyle? Type245 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type246 { get; set; } + public global::Ultravox.VoicesListOwnership? Type246 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type247 { get; set; } + public global::System.Collections.Generic.IList? Type247 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type248 { get; set; } + public global::Ultravox.VoicesListProviderItem? Type248 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type249 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type250 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type251 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type252 { get; set; } /// /// @@ -1041,150 +1057,154 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType4 { get; set; } + public global::System.Collections.Generic.List? ListType4 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType5 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType5 { get; set; } + public global::System.Collections.Generic.List? ListType6 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType6 { get; set; } + public global::System.Collections.Generic.List? ListType7 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType7 { get; set; } + public global::System.Collections.Generic.List? ListType8 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType8 { get; set; } + public global::System.Collections.Generic.List? ListType9 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType9 { get; set; } + public global::System.Collections.Generic.List? ListType10 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType10 { get; set; } + public global::System.Collections.Generic.List? ListType11 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType11 { get; set; } + public global::System.Collections.Generic.List? ListType12 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType12 { get; set; } + public global::System.Collections.Generic.List? ListType13 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType13 { get; set; } + public global::System.Collections.Generic.List? ListType14 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType14 { get; set; } + public global::System.Collections.Generic.List? ListType15 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType15 { get; set; } + public global::System.Collections.Generic.List? ListType16 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType16 { get; set; } + public global::System.Collections.Generic.List? ListType17 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType17 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType18 { get; set; } + public global::System.Collections.Generic.List? ListType19 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType19 { get; set; } + public global::System.Collections.Generic.List? ListType20 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType20 { get; set; } + public global::System.Collections.Generic.List? ListType21 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType21 { get; set; } + public global::System.Collections.Generic.List? ListType22 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType22 { get; set; } + public global::System.Collections.Generic.List? ListType23 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType23 { get; set; } + public global::System.Collections.Generic.List? ListType24 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType24 { get; set; } + public global::System.Collections.Generic.List? ListType25 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType25 { get; set; } + public global::System.Collections.Generic.List? ListType26 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType26 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.AccountsMeUsageConcurrencyRetrieveBucket.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.AccountsMeUsageConcurrencyRetrieveBucket.g.cs new file mode 100644 index 0000000..bf2289c --- /dev/null +++ b/src/libs/Ultravox/Generated/Ultravox.Models.AccountsMeUsageConcurrencyRetrieveBucket.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace Ultravox +{ + /// + /// Default Value: minute + /// + public enum AccountsMeUsageConcurrencyRetrieveBucket + { + /// + /// + /// + x5min, + /// + /// + /// + Day, + /// + /// + /// + Hour, + /// + /// + /// + Minute, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AccountsMeUsageConcurrencyRetrieveBucketExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AccountsMeUsageConcurrencyRetrieveBucket value) + { + return value switch + { + AccountsMeUsageConcurrencyRetrieveBucket.x5min => "5min", + AccountsMeUsageConcurrencyRetrieveBucket.Day => "day", + AccountsMeUsageConcurrencyRetrieveBucket.Hour => "hour", + AccountsMeUsageConcurrencyRetrieveBucket.Minute => "minute", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AccountsMeUsageConcurrencyRetrieveBucket? ToEnum(string value) + { + return value switch + { + "5min" => AccountsMeUsageConcurrencyRetrieveBucket.x5min, + "day" => AccountsMeUsageConcurrencyRetrieveBucket.Day, + "hour" => AccountsMeUsageConcurrencyRetrieveBucket.Hour, + "minute" => AccountsMeUsageConcurrencyRetrieveBucket.Minute, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.ConcurrencyBucket.Json.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.ConcurrencyBucket.Json.g.cs new file mode 100644 index 0000000..bf4e0c7 --- /dev/null +++ b/src/libs/Ultravox/Generated/Ultravox.Models.ConcurrencyBucket.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Ultravox +{ + public sealed partial class ConcurrencyBucket + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Ultravox.ConcurrencyBucket? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Ultravox.ConcurrencyBucket), + jsonSerializerContext) as global::Ultravox.ConcurrencyBucket; + } + + /// + /// 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::Ultravox.ConcurrencyBucket? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Ultravox.ConcurrencyBucket), + jsonSerializerContext).ConfigureAwait(false)) as global::Ultravox.ConcurrencyBucket; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.ConcurrencyBucket.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.ConcurrencyBucket.g.cs new file mode 100644 index 0000000..382947a --- /dev/null +++ b/src/libs/Ultravox/Generated/Ultravox.Models.ConcurrencyBucket.g.cs @@ -0,0 +1,94 @@ + +#nullable enable + +namespace Ultravox +{ + /// + /// + /// + public sealed partial class ConcurrencyBucket + { + /// + /// Start of the time bucket + /// + [global::System.Text.Json.Serialization.JsonPropertyName("timestamp")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime Timestamp { get; set; } + + /// + /// Peak total active calls in this bucket + /// + [global::System.Text.Json.Serialization.JsonPropertyName("maxTotalCalls")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int MaxTotalCalls { get; set; } + + /// + /// Peak joined calls in this bucket + /// + [global::System.Text.Json.Serialization.JsonPropertyName("maxJoinedCalls")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int MaxJoinedCalls { get; set; } + + /// + /// Average total active calls in this bucket + /// + [global::System.Text.Json.Serialization.JsonPropertyName("avgTotalCalls")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double AvgTotalCalls { get; set; } + + /// + /// Average joined calls in this bucket + /// + [global::System.Text.Json.Serialization.JsonPropertyName("avgJoinedCalls")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double AvgJoinedCalls { 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. + /// + /// + /// Start of the time bucket + /// + /// + /// Peak total active calls in this bucket + /// + /// + /// Peak joined calls in this bucket + /// + /// + /// Average total active calls in this bucket + /// + /// + /// Average joined calls in this bucket + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ConcurrencyBucket( + global::System.DateTime timestamp, + int maxTotalCalls, + int maxJoinedCalls, + double avgTotalCalls, + double avgJoinedCalls) + { + this.Timestamp = timestamp; + this.MaxTotalCalls = maxTotalCalls; + this.MaxJoinedCalls = maxJoinedCalls; + this.AvgTotalCalls = avgTotalCalls; + this.AvgJoinedCalls = avgJoinedCalls; + } + + /// + /// Initializes a new instance of the class. + /// + public ConcurrencyBucket() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.ConcurrencyResponse.Json.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.ConcurrencyResponse.Json.g.cs new file mode 100644 index 0000000..c95a9ab --- /dev/null +++ b/src/libs/Ultravox/Generated/Ultravox.Models.ConcurrencyResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Ultravox +{ + public sealed partial class ConcurrencyResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Ultravox.ConcurrencyResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Ultravox.ConcurrencyResponse), + jsonSerializerContext) as global::Ultravox.ConcurrencyResponse; + } + + /// + /// 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::Ultravox.ConcurrencyResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Ultravox.ConcurrencyResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Ultravox.ConcurrencyResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.ConcurrencyResponse.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.ConcurrencyResponse.g.cs new file mode 100644 index 0000000..e4388bc --- /dev/null +++ b/src/libs/Ultravox/Generated/Ultravox.Models.ConcurrencyResponse.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace Ultravox +{ + /// + /// + /// + public sealed partial class ConcurrencyResponse + { + /// + /// Concurrency over time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("timeSeries")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList TimeSeries { 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. + /// + /// + /// Concurrency over time + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ConcurrencyResponse( + global::System.Collections.Generic.IList timeSeries) + { + this.TimeSeries = timeSeries ?? throw new global::System.ArgumentNullException(nameof(timeSeries)); + } + + /// + /// Initializes a new instance of the class. + /// + public ConcurrencyResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Ultravox/openapi.yaml b/src/libs/Ultravox/openapi.yaml index 15ad635..88f3b76 100644 --- a/src/libs/Ultravox/openapi.yaml +++ b/src/libs/Ultravox/openapi.yaml @@ -262,6 +262,53 @@ paths: schema: $ref: '#/components/schemas/CallUsage' description: '' + /api/accounts/me/usage/concurrency: + get: + operationId: accounts_me_usage_concurrency_retrieve + description: Gets historical call concurrency for the account. + parameters: + - in: query + name: bucket + schema: + enum: + - minute + - 5min + - hour + - day + type: string + default: minute + minLength: 1 + description: |- + Bucket size for the time series. + + * `minute` - minute + * `5min` - 5min + * `hour` - hour + * `day` - day + - in: query + name: end + schema: + type: string + format: date-time + description: End datetime for the time range. Defaults to now. + - in: query + name: start + schema: + type: string + format: date-time + description: Start datetime for the time range. Defaults to 24 hours before + end. + tags: + - accounts + security: + - apiKeyAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConcurrencyResponse' + description: '' /api/agents: get: operationId: agents_list @@ -4013,6 +4060,43 @@ components: - allTime - daily - hourly + ConcurrencyBucket: + type: object + properties: + timestamp: + type: string + format: date-time + description: Start of the time bucket + maxTotalCalls: + type: integer + description: Peak total active calls in this bucket + maxJoinedCalls: + type: integer + description: Peak joined calls in this bucket + avgTotalCalls: + type: number + format: double + description: Average total active calls in this bucket + avgJoinedCalls: + type: number + format: double + description: Average joined calls in this bucket + required: + - avgJoinedCalls + - avgTotalCalls + - maxJoinedCalls + - maxTotalCalls + - timestamp + ConcurrencyResponse: + type: object + properties: + timeSeries: + type: array + items: + $ref: '#/components/schemas/ConcurrencyBucket' + description: Concurrency over time + required: + - timeSeries CorpusUploadsRequest: type: object properties: