From a38b23221532a04c3e26441263bb9745af48549c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 17 Dec 2024 18:16:23 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...sonConverters.UltravoxV1MessageMedium.g.cs | 49 +++++++ ...rters.UltravoxV1MessageMediumNullable.g.cs | 56 ++++++++ .../Generated/JsonSerializerContext.g.cs | 2 + .../Generated/JsonSerializerContextTypes.g.cs | 38 +++--- .../Ultravox.ApiKeysClient.ApiKeysList.g.cs | 15 ++- .../Ultravox.CallsClient.CallsList.g.cs | 15 ++- ...ltravox.CallsClient.CallsMessagesList.g.cs | 15 ++- .../Ultravox.CallsClient.CallsStagesList.g.cs | 15 ++- ...ient.CallsStagesMessagesAudioRetrieve.g.cs | 113 ++++++++++++++++ ...x.CallsClient.CallsStagesMessagesList.g.cs | 15 ++- .../Ultravox.IApiKeysClient.ApiKeysList.g.cs | 2 + .../Ultravox.ICallsClient.CallsList.g.cs | 2 + ...travox.ICallsClient.CallsMessagesList.g.cs | 2 + ...Ultravox.ICallsClient.CallsStagesList.g.cs | 2 + ...ient.CallsStagesMessagesAudioRetrieve.g.cs | 21 +++ ....ICallsClient.CallsStagesMessagesList.g.cs | 2 + .../Ultravox.IModelsClient.ModelsList.g.cs | 2 + .../Ultravox.IToolsClient.ToolsList.g.cs | 2 + .../Ultravox.IVoicesClient.VoicesList.g.cs | 2 + ...Ultravox.IWebhooksClient.WebhooksList.g.cs | 2 + .../Generated/Ultravox.Models.Call.g.cs | 24 +++- .../Generated/Ultravox.Models.CallStage.g.cs | 16 ++- .../Ultravox.Models.PaginatedAPIKeyList.g.cs | 14 +- .../Ultravox.Models.PaginatedCallList.g.cs | 14 +- ...ltravox.Models.PaginatedCallStageList.g.cs | 14 +- ...travox.Models.PaginatedModelAliasList.g.cs | 14 +- .../Ultravox.Models.PaginatedToolList.g.cs | 14 +- .../Ultravox.Models.PaginatedVoiceList.g.cs | 14 +- .../Ultravox.Models.PaginatedWebhookList.g.cs | 14 +- ...Models.PaginatedultravoxV1MessageList.g.cs | 14 +- .../Ultravox.Models.UltravoxV1Message.g.cs | 36 ++++- ...travox.Models.UltravoxV1MessageMedium.g.cs | 57 ++++++++ .../Ultravox.ModelsClient.ModelsList.g.cs | 15 ++- .../Ultravox.ToolsClient.ToolsList.g.cs | 15 ++- .../Ultravox.VoicesClient.VoicesList.g.cs | 15 ++- .../Ultravox.WebhooksClient.WebhooksList.g.cs | 15 ++- src/libs/Ultravox/openapi.yaml | 124 +++++++++++++++++- 37 files changed, 732 insertions(+), 69 deletions(-) create mode 100644 src/libs/Ultravox/Generated/JsonConverters.UltravoxV1MessageMedium.g.cs create mode 100644 src/libs/Ultravox/Generated/JsonConverters.UltravoxV1MessageMediumNullable.g.cs create mode 100644 src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesMessagesAudioRetrieve.g.cs create mode 100644 src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsStagesMessagesAudioRetrieve.g.cs create mode 100644 src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1MessageMedium.g.cs diff --git a/src/libs/Ultravox/Generated/JsonConverters.UltravoxV1MessageMedium.g.cs b/src/libs/Ultravox/Generated/JsonConverters.UltravoxV1MessageMedium.g.cs new file mode 100644 index 0000000..e01d9b9 --- /dev/null +++ b/src/libs/Ultravox/Generated/JsonConverters.UltravoxV1MessageMedium.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace Ultravox.JsonConverters +{ + /// + public sealed class UltravoxV1MessageMediumJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Ultravox.UltravoxV1MessageMedium Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::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.UltravoxV1MessageMediumExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Ultravox.UltravoxV1MessageMedium)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Ultravox.UltravoxV1MessageMedium value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Ultravox.UltravoxV1MessageMediumExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Ultravox/Generated/JsonConverters.UltravoxV1MessageMediumNullable.g.cs b/src/libs/Ultravox/Generated/JsonConverters.UltravoxV1MessageMediumNullable.g.cs new file mode 100644 index 0000000..e5ec8d7 --- /dev/null +++ b/src/libs/Ultravox/Generated/JsonConverters.UltravoxV1MessageMediumNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace Ultravox.JsonConverters +{ + /// + public sealed class UltravoxV1MessageMediumNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Ultravox.UltravoxV1MessageMedium? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::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.UltravoxV1MessageMediumExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Ultravox.UltravoxV1MessageMedium)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Ultravox.UltravoxV1MessageMedium? 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.UltravoxV1MessageMediumExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Ultravox/Generated/JsonSerializerContext.g.cs b/src/libs/Ultravox/Generated/JsonSerializerContext.g.cs index 0f312ce..4a8ec9c 100644 --- a/src/libs/Ultravox/Generated/JsonSerializerContext.g.cs +++ b/src/libs/Ultravox/Generated/JsonSerializerContext.g.cs @@ -35,6 +35,8 @@ namespace Ultravox typeof(global::Ultravox.JsonConverters.EventsEnumNullableJsonConverter), typeof(global::Ultravox.JsonConverters.UltravoxV1MessageRoleJsonConverter), typeof(global::Ultravox.JsonConverters.UltravoxV1MessageRoleNullableJsonConverter), + typeof(global::Ultravox.JsonConverters.UltravoxV1MessageMediumJsonConverter), + typeof(global::Ultravox.JsonConverters.UltravoxV1MessageMediumNullableJsonConverter), typeof(global::Ultravox.JsonConverters.UltravoxV1StartCallRequestInitiatorJsonConverter), typeof(global::Ultravox.JsonConverters.UltravoxV1StartCallRequestInitiatorNullableJsonConverter), typeof(global::Ultravox.JsonConverters.UltravoxV1StartCallRequestFirstSpeakerJsonConverter), diff --git a/src/libs/Ultravox/Generated/JsonSerializerContextTypes.g.cs b/src/libs/Ultravox/Generated/JsonSerializerContextTypes.g.cs index 4c7bbe2..a8b988b 100644 --- a/src/libs/Ultravox/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/Ultravox/Generated/JsonSerializerContextTypes.g.cs @@ -302,70 +302,74 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Ultravox.PatchedAPIKey? Type71 { get; set; } + public global::Ultravox.UltravoxV1MessageMedium? Type71 { get; set; } /// /// /// - public global::Ultravox.PatchedWebhook? Type72 { get; set; } + public global::Ultravox.PatchedAPIKey? Type72 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1SelectedTool? Type73 { get; set; } + public global::Ultravox.PatchedWebhook? Type73 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type74 { get; set; } + public global::Ultravox.UltravoxV1SelectedTool? Type74 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StartCallRequest? Type75 { get; set; } + public global::System.Collections.Generic.Dictionary? Type75 { get; set; } /// /// /// - public float? Type76 { get; set; } + public global::Ultravox.UltravoxV1StartCallRequest? Type76 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type77 { get; set; } + public float? Type77 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StartCallRequestInitiator? Type78 { get; set; } + public global::System.Collections.Generic.IList? Type78 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StartCallRequestFirstSpeaker? Type79 { get; set; } + public global::Ultravox.UltravoxV1StartCallRequestInitiator? Type79 { get; set; } /// /// /// - public global::Ultravox.UltravoxV1StartCallRequestInitialOutputMedium? Type80 { get; set; } + public global::Ultravox.UltravoxV1StartCallRequestFirstSpeaker? Type80 { get; set; } /// /// /// - public global::Ultravox.ToolsCreateRequest? Type81 { get; set; } + public global::Ultravox.UltravoxV1StartCallRequestInitialOutputMedium? Type81 { get; set; } /// /// /// - public byte[]? Type82 { get; set; } + public global::Ultravox.ToolsCreateRequest? Type82 { get; set; } /// /// /// - public global::Ultravox.VoicesCreateRequest? Type83 { get; set; } + public byte[]? Type83 { get; set; } /// /// /// - public global::Ultravox.SchemaRetrieveFormat? Type84 { get; set; } + public global::Ultravox.VoicesCreateRequest? Type84 { get; set; } /// /// /// - public global::Ultravox.SchemaRetrieveLang? Type85 { get; set; } + public global::Ultravox.SchemaRetrieveFormat? Type85 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type86 { get; set; } + public global::Ultravox.SchemaRetrieveLang? Type86 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type87 { get; set; } + public global::System.Collections.Generic.IList? Type87 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type88 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysList.g.cs b/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysList.g.cs index aff7c5b..b313202 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ApiKeysClient.ApiKeysList.g.cs @@ -7,11 +7,13 @@ public partial class ApiKeysClient { partial void PrepareApiKeysListArguments( global::System.Net.Http.HttpClient httpClient, - ref string? cursor); + ref string? cursor, + ref int? pageSize); partial void PrepareApiKeysListRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string? cursor); + string? cursor, + int? pageSize); partial void ProcessApiKeysListResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -25,23 +27,27 @@ partial void ProcessApiKeysListResponseContent( /// Gets the current user's API keys. /// /// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ApiKeysListAsync( string? cursor = default, + int? pageSize = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PrepareApiKeysListArguments( httpClient: HttpClient, - cursor: ref cursor); + cursor: ref cursor, + pageSize: ref pageSize); var __pathBuilder = new PathBuilder( path: "/api/api_keys", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("cursor", cursor) + .AddOptionalParameter("pageSize", pageSize?.ToString()) ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( @@ -74,7 +80,8 @@ partial void ProcessApiKeysListResponseContent( PrepareApiKeysListRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - cursor: cursor); + cursor: cursor, + pageSize: pageSize); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsList.g.cs index 307f6e7..3c4c225 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsList.g.cs @@ -7,11 +7,13 @@ public partial class CallsClient { partial void PrepareCallsListArguments( global::System.Net.Http.HttpClient httpClient, - ref string? cursor); + ref string? cursor, + ref int? pageSize); partial void PrepareCallsListRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string? cursor); + string? cursor, + int? pageSize); partial void ProcessCallsListResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -25,23 +27,27 @@ partial void ProcessCallsListResponseContent( /// /// /// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CallsListAsync( string? cursor = default, + int? pageSize = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PrepareCallsListArguments( httpClient: HttpClient, - cursor: ref cursor); + cursor: ref cursor, + pageSize: ref pageSize); var __pathBuilder = new PathBuilder( path: "/api/calls", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("cursor", cursor) + .AddOptionalParameter("pageSize", pageSize?.ToString()) ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( @@ -74,7 +80,8 @@ partial void ProcessCallsListResponseContent( PrepareCallsListRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - cursor: cursor); + cursor: cursor, + pageSize: pageSize); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsMessagesList.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsMessagesList.g.cs index 75bbfc7..a241b1b 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsMessagesList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsMessagesList.g.cs @@ -8,12 +8,14 @@ public partial class CallsClient partial void PrepareCallsMessagesListArguments( global::System.Net.Http.HttpClient httpClient, ref global::System.Guid callId, - ref string? cursor); + ref string? cursor, + ref int? pageSize); partial void PrepareCallsMessagesListRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, global::System.Guid callId, - string? cursor); + string? cursor, + int? pageSize); partial void ProcessCallsMessagesListResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -28,11 +30,13 @@ partial void ProcessCallsMessagesListResponseContent( /// /// /// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CallsMessagesListAsync( global::System.Guid callId, string? cursor = default, + int? pageSize = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -40,13 +44,15 @@ partial void ProcessCallsMessagesListResponseContent( PrepareCallsMessagesListArguments( httpClient: HttpClient, callId: ref callId, - cursor: ref cursor); + cursor: ref cursor, + pageSize: ref pageSize); var __pathBuilder = new PathBuilder( path: $"/api/calls/{callId}/messages", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("cursor", cursor) + .AddOptionalParameter("pageSize", pageSize?.ToString()) ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( @@ -80,7 +86,8 @@ partial void ProcessCallsMessagesListResponseContent( httpClient: HttpClient, httpRequestMessage: __httpRequest, callId: callId, - cursor: cursor); + cursor: cursor, + pageSize: pageSize); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesList.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesList.g.cs index 6b1bbaa..ae12e6a 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesList.g.cs @@ -8,12 +8,14 @@ public partial class CallsClient partial void PrepareCallsStagesListArguments( global::System.Net.Http.HttpClient httpClient, ref global::System.Guid callId, - ref string? cursor); + ref string? cursor, + ref int? pageSize); partial void PrepareCallsStagesListRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, global::System.Guid callId, - string? cursor); + string? cursor, + int? pageSize); partial void ProcessCallsStagesListResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -28,11 +30,13 @@ partial void ProcessCallsStagesListResponseContent( /// /// /// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CallsStagesListAsync( global::System.Guid callId, string? cursor = default, + int? pageSize = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -40,13 +44,15 @@ partial void ProcessCallsStagesListResponseContent( PrepareCallsStagesListArguments( httpClient: HttpClient, callId: ref callId, - cursor: ref cursor); + cursor: ref cursor, + pageSize: ref pageSize); var __pathBuilder = new PathBuilder( path: $"/api/calls/{callId}/stages", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("cursor", cursor) + .AddOptionalParameter("pageSize", pageSize?.ToString()) ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( @@ -80,7 +86,8 @@ partial void ProcessCallsStagesListResponseContent( httpClient: HttpClient, httpRequestMessage: __httpRequest, callId: callId, - cursor: cursor); + cursor: cursor, + pageSize: pageSize); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesMessagesAudioRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesMessagesAudioRetrieve.g.cs new file mode 100644 index 0000000..487994a --- /dev/null +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesMessagesAudioRetrieve.g.cs @@ -0,0 +1,113 @@ + +#nullable enable + +namespace Ultravox +{ + public partial class CallsClient + { + partial void PrepareCallsStagesMessagesAudioRetrieveArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid callId, + ref global::System.Guid callStageId, + ref int callStageMessageIndex); + partial void PrepareCallsStagesMessagesAudioRetrieveRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid callId, + global::System.Guid callStageId, + int callStageMessageIndex); + partial void ProcessCallsStagesMessagesAudioRetrieveResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// + /// + /// + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CallsStagesMessagesAudioRetrieveAsync( + global::System.Guid callId, + global::System.Guid callStageId, + int callStageMessageIndex, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareCallsStagesMessagesAudioRetrieveArguments( + httpClient: HttpClient, + callId: ref callId, + callStageId: ref callStageId, + callStageMessageIndex: ref callStageMessageIndex); + + var __pathBuilder = new PathBuilder( + path: $"/api/calls/{callId}/stages/{callStageId}/messages/{callStageMessageIndex}/audio", + baseUri: HttpClient.BaseAddress); + 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); + PrepareCallsStagesMessagesAudioRetrieveRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + callId: callId, + callStageId: callStageId, + callStageMessageIndex: callStageMessageIndex); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCallsStagesMessagesAudioRetrieveResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::Ultravox.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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.CallsClient.CallsStagesMessagesList.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesMessagesList.g.cs index e52d3d6..77b921c 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesMessagesList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesMessagesList.g.cs @@ -9,13 +9,15 @@ partial void PrepareCallsStagesMessagesListArguments( global::System.Net.Http.HttpClient httpClient, ref global::System.Guid callId, ref global::System.Guid callStageId, - ref string? cursor); + ref string? cursor, + ref int? pageSize); partial void PrepareCallsStagesMessagesListRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, global::System.Guid callId, global::System.Guid callStageId, - string? cursor); + string? cursor, + int? pageSize); partial void ProcessCallsStagesMessagesListResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -31,12 +33,14 @@ partial void ProcessCallsStagesMessagesListResponseContent( /// /// /// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CallsStagesMessagesListAsync( global::System.Guid callId, global::System.Guid callStageId, string? cursor = default, + int? pageSize = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -45,13 +49,15 @@ partial void ProcessCallsStagesMessagesListResponseContent( httpClient: HttpClient, callId: ref callId, callStageId: ref callStageId, - cursor: ref cursor); + cursor: ref cursor, + pageSize: ref pageSize); var __pathBuilder = new PathBuilder( path: $"/api/calls/{callId}/stages/{callStageId}/messages", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("cursor", cursor) + .AddOptionalParameter("pageSize", pageSize?.ToString()) ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( @@ -86,7 +92,8 @@ partial void ProcessCallsStagesMessagesListResponseContent( httpRequestMessage: __httpRequest, callId: callId, callStageId: callStageId, - cursor: cursor); + cursor: cursor, + pageSize: pageSize); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/Ultravox/Generated/Ultravox.IApiKeysClient.ApiKeysList.g.cs b/src/libs/Ultravox/Generated/Ultravox.IApiKeysClient.ApiKeysList.g.cs index a82d532..417060c 100644 --- a/src/libs/Ultravox/Generated/Ultravox.IApiKeysClient.ApiKeysList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.IApiKeysClient.ApiKeysList.g.cs @@ -8,10 +8,12 @@ public partial interface IApiKeysClient /// Gets the current user's API keys. /// /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ApiKeysListAsync( string? cursor = default, + int? pageSize = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsList.g.cs index 2e8d2c4..3fb5f83 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsList.g.cs @@ -8,10 +8,12 @@ public partial interface ICallsClient /// /// /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CallsListAsync( string? cursor = default, + int? pageSize = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsMessagesList.g.cs b/src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsMessagesList.g.cs index eced438..5c4b61c 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsMessagesList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsMessagesList.g.cs @@ -9,11 +9,13 @@ public partial interface ICallsClient /// /// /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CallsMessagesListAsync( global::System.Guid callId, string? cursor = default, + int? pageSize = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsStagesList.g.cs b/src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsStagesList.g.cs index 8bbeb4a..8c184e7 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsStagesList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsStagesList.g.cs @@ -9,11 +9,13 @@ public partial interface ICallsClient /// /// /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CallsStagesListAsync( global::System.Guid callId, string? cursor = default, + int? pageSize = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsStagesMessagesAudioRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsStagesMessagesAudioRetrieve.g.cs new file mode 100644 index 0000000..5a3f31e --- /dev/null +++ b/src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsStagesMessagesAudioRetrieve.g.cs @@ -0,0 +1,21 @@ +#nullable enable + +namespace Ultravox +{ + public partial interface ICallsClient + { + /// + /// + /// + /// + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CallsStagesMessagesAudioRetrieveAsync( + global::System.Guid callId, + global::System.Guid callStageId, + int callStageMessageIndex, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsStagesMessagesList.g.cs b/src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsStagesMessagesList.g.cs index be76b93..ddff134 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsStagesMessagesList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ICallsClient.CallsStagesMessagesList.g.cs @@ -10,12 +10,14 @@ public partial interface ICallsClient /// /// /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CallsStagesMessagesListAsync( global::System.Guid callId, global::System.Guid callStageId, string? cursor = default, + int? pageSize = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Ultravox/Generated/Ultravox.IModelsClient.ModelsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.IModelsClient.ModelsList.g.cs index 48bdc6a..c1fa328 100644 --- a/src/libs/Ultravox/Generated/Ultravox.IModelsClient.ModelsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.IModelsClient.ModelsList.g.cs @@ -8,10 +8,12 @@ public partial interface IModelsClient /// /// /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ModelsListAsync( string? cursor = default, + int? pageSize = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Ultravox/Generated/Ultravox.IToolsClient.ToolsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.IToolsClient.ToolsList.g.cs index d9e4f4a..533a30b 100644 --- a/src/libs/Ultravox/Generated/Ultravox.IToolsClient.ToolsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.IToolsClient.ToolsList.g.cs @@ -8,10 +8,12 @@ public partial interface IToolsClient /// /// /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ToolsListAsync( string? cursor = default, + int? pageSize = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Ultravox/Generated/Ultravox.IVoicesClient.VoicesList.g.cs b/src/libs/Ultravox/Generated/Ultravox.IVoicesClient.VoicesList.g.cs index d3f88fc..22a5c20 100644 --- a/src/libs/Ultravox/Generated/Ultravox.IVoicesClient.VoicesList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.IVoicesClient.VoicesList.g.cs @@ -8,10 +8,12 @@ public partial interface IVoicesClient /// /// /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task VoicesListAsync( string? cursor = default, + int? pageSize = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Ultravox/Generated/Ultravox.IWebhooksClient.WebhooksList.g.cs b/src/libs/Ultravox/Generated/Ultravox.IWebhooksClient.WebhooksList.g.cs index 1db6ac4..3eb97b1 100644 --- a/src/libs/Ultravox/Generated/Ultravox.IWebhooksClient.WebhooksList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.IWebhooksClient.WebhooksList.g.cs @@ -8,10 +8,12 @@ public partial interface IWebhooksClient /// /// /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task WebhooksListAsync( string? cursor = default, + int? pageSize = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.Call.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.Call.g.cs index 1b650bc..de3a038 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Models.Call.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.Models.Call.g.cs @@ -110,8 +110,7 @@ public sealed partial class Call public string? Model { get; set; } /// - /// Default Value: false
- /// Included only in requests + /// Default Value: false ///
[global::System.Text.Json.Serialization.JsonPropertyName("recordingEnabled")] public bool? RecordingEnabled { get; set; } @@ -147,6 +146,15 @@ public sealed partial class Call [global::System.Text.Json.Serialization.JsonPropertyName("transcriptOptional")] public bool? TranscriptOptional { get; set; } + /// + /// The number of errors in this call.
+ /// Default Value: 0
+ /// Included only in responses + ///
+ /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("errorCount")] + public int ErrorCount { get; set; } = default!; + /// /// Additional properties that are not explicitly defined in the schema /// @@ -205,8 +213,7 @@ public sealed partial class Call /// Default Value: fixie-ai/ultravox /// /// - /// Default Value: false
- /// Included only in requests + /// Default Value: false /// /// /// @@ -218,6 +225,11 @@ public sealed partial class Call /// Indicates whether a transcript is optional for the call.
/// Default Value: true /// + /// + /// The number of errors in this call.
+ /// Default Value: 0
+ /// Included only in responses + /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public Call( string? clientVersion, @@ -239,7 +251,8 @@ public Call( global::System.Guid callId = default!, global::System.DateTime created = default!, global::Ultravox.FirstSpeakerEnum firstSpeaker = default!, - global::Ultravox.InitialOutputMediumEnum initialOutputMedium = default!) + global::Ultravox.InitialOutputMediumEnum initialOutputMedium = default!, + int errorCount = default!) { this.CallId = callId; this.ClientVersion = clientVersion; @@ -261,6 +274,7 @@ public Call( this.TimeExceededMessage = timeExceededMessage; this.Voice = voice; this.TranscriptOptional = transcriptOptional; + this.ErrorCount = errorCount; } /// diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.CallStage.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.CallStage.g.cs index e0f78d6..b0824cb 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Models.CallStage.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.Models.CallStage.g.cs @@ -79,6 +79,14 @@ public sealed partial class CallStage [global::System.Text.Json.Serialization.JsonPropertyName("voice")] public string? Voice { get; set; } + /// + /// The number of errors in this call stage.
+ /// Included only in responses + ///
+ /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("errorCount")] + public int ErrorCount { get; set; } = default!; + /// /// Additional properties that are not explicitly defined in the schema /// @@ -116,6 +124,10 @@ public sealed partial class CallStage /// /// /// + /// + /// The number of errors in this call stage.
+ /// Included only in responses + /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public CallStage( global::System.Collections.Generic.IList? inactivityMessages, @@ -128,7 +140,8 @@ public CallStage( global::System.Guid callId = default!, global::System.Guid callStageId = default!, global::System.DateTime created = default!, - double temperature = default!) + double temperature = default!, + int errorCount = default!) { this.CallId = callId; this.CallStageId = callStageId; @@ -141,6 +154,7 @@ public CallStage( this.Temperature = temperature; this.TimeExceededMessage = timeExceededMessage; this.Voice = voice; + this.ErrorCount = errorCount; } /// diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedAPIKeyList.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedAPIKeyList.g.cs index f812c6a..5685e8a 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedAPIKeyList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedAPIKeyList.g.cs @@ -29,6 +29,13 @@ public sealed partial class PaginatedAPIKeyList [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Results { get; set; } + /// + /// Example: 123 + /// + /// 123 + [global::System.Text.Json.Serialization.JsonPropertyName("total")] + public int? Total { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -45,15 +52,20 @@ public sealed partial class PaginatedAPIKeyList /// Example: http://api.example.org/accounts/?cursor=cj0xJnA9NDg3 /// /// + /// + /// Example: 123 + /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public PaginatedAPIKeyList( global::System.Collections.Generic.IList results, string? next, - string? previous) + string? previous, + int? total) { this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results)); this.Next = next; this.Previous = previous; + this.Total = total; } /// diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedCallList.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedCallList.g.cs index 9ecb254..df4bb0d 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedCallList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedCallList.g.cs @@ -29,6 +29,13 @@ public sealed partial class PaginatedCallList [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Results { get; set; } + /// + /// Example: 123 + /// + /// 123 + [global::System.Text.Json.Serialization.JsonPropertyName("total")] + public int? Total { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -45,15 +52,20 @@ public sealed partial class PaginatedCallList /// Example: http://api.example.org/accounts/?cursor=cj0xJnA9NDg3 /// /// + /// + /// Example: 123 + /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public PaginatedCallList( global::System.Collections.Generic.IList results, string? next, - string? previous) + string? previous, + int? total) { this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results)); this.Next = next; this.Previous = previous; + this.Total = total; } /// diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedCallStageList.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedCallStageList.g.cs index 3cdfe6a..361fc88 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedCallStageList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedCallStageList.g.cs @@ -29,6 +29,13 @@ public sealed partial class PaginatedCallStageList [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Results { get; set; } + /// + /// Example: 123 + /// + /// 123 + [global::System.Text.Json.Serialization.JsonPropertyName("total")] + public int? Total { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -45,15 +52,20 @@ public sealed partial class PaginatedCallStageList /// Example: http://api.example.org/accounts/?cursor=cj0xJnA9NDg3 /// /// + /// + /// Example: 123 + /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public PaginatedCallStageList( global::System.Collections.Generic.IList results, string? next, - string? previous) + string? previous, + int? total) { this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results)); this.Next = next; this.Previous = previous; + this.Total = total; } /// diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedModelAliasList.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedModelAliasList.g.cs index f44ece5..dbf32bf 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedModelAliasList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedModelAliasList.g.cs @@ -29,6 +29,13 @@ public sealed partial class PaginatedModelAliasList [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Results { get; set; } + /// + /// Example: 123 + /// + /// 123 + [global::System.Text.Json.Serialization.JsonPropertyName("total")] + public int? Total { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -45,15 +52,20 @@ public sealed partial class PaginatedModelAliasList /// Example: http://api.example.org/accounts/?cursor=cj0xJnA9NDg3 /// /// + /// + /// Example: 123 + /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public PaginatedModelAliasList( global::System.Collections.Generic.IList results, string? next, - string? previous) + string? previous, + int? total) { this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results)); this.Next = next; this.Previous = previous; + this.Total = total; } /// diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedToolList.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedToolList.g.cs index 7344c78..cfc5099 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedToolList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedToolList.g.cs @@ -29,6 +29,13 @@ public sealed partial class PaginatedToolList [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Results { get; set; } + /// + /// Example: 123 + /// + /// 123 + [global::System.Text.Json.Serialization.JsonPropertyName("total")] + public int? Total { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -45,15 +52,20 @@ public sealed partial class PaginatedToolList /// Example: http://api.example.org/accounts/?cursor=cj0xJnA9NDg3 /// /// + /// + /// Example: 123 + /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public PaginatedToolList( global::System.Collections.Generic.IList results, string? next, - string? previous) + string? previous, + int? total) { this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results)); this.Next = next; this.Previous = previous; + this.Total = total; } /// diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedVoiceList.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedVoiceList.g.cs index 351273b..61f4884 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedVoiceList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedVoiceList.g.cs @@ -29,6 +29,13 @@ public sealed partial class PaginatedVoiceList [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Results { get; set; } + /// + /// Example: 123 + /// + /// 123 + [global::System.Text.Json.Serialization.JsonPropertyName("total")] + public int? Total { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -45,15 +52,20 @@ public sealed partial class PaginatedVoiceList /// Example: http://api.example.org/accounts/?cursor=cj0xJnA9NDg3 /// /// + /// + /// Example: 123 + /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public PaginatedVoiceList( global::System.Collections.Generic.IList results, string? next, - string? previous) + string? previous, + int? total) { this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results)); this.Next = next; this.Previous = previous; + this.Total = total; } /// diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedWebhookList.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedWebhookList.g.cs index d9ec445..b59aa51 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedWebhookList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedWebhookList.g.cs @@ -29,6 +29,13 @@ public sealed partial class PaginatedWebhookList [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Results { get; set; } + /// + /// Example: 123 + /// + /// 123 + [global::System.Text.Json.Serialization.JsonPropertyName("total")] + public int? Total { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -45,15 +52,20 @@ public sealed partial class PaginatedWebhookList /// Example: http://api.example.org/accounts/?cursor=cj0xJnA9NDg3 /// /// + /// + /// Example: 123 + /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public PaginatedWebhookList( global::System.Collections.Generic.IList results, string? next, - string? previous) + string? previous, + int? total) { this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results)); this.Next = next; this.Previous = previous; + this.Total = total; } /// diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedultravoxV1MessageList.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedultravoxV1MessageList.g.cs index 5030e3f..90abe3e 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedultravoxV1MessageList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.Models.PaginatedultravoxV1MessageList.g.cs @@ -29,6 +29,13 @@ public sealed partial class PaginatedultravoxV1MessageList [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Results { get; set; } + /// + /// Example: 123 + /// + /// 123 + [global::System.Text.Json.Serialization.JsonPropertyName("total")] + public int? Total { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -45,15 +52,20 @@ public sealed partial class PaginatedultravoxV1MessageList /// Example: http://api.example.org/accounts/?cursor=cj0xJnA9NDg3 /// /// + /// + /// Example: 123 + /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public PaginatedultravoxV1MessageList( global::System.Collections.Generic.IList results, string? next, - string? previous) + string? previous, + int? total) { this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results)); this.Next = next; this.Previous = previous; + this.Total = total; } /// diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1Message.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1Message.g.cs index 902b87a..386ecd0 100644 --- a/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1Message.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1Message.g.cs @@ -41,6 +41,25 @@ public sealed partial class UltravoxV1Message [global::System.Text.Json.Serialization.JsonPropertyName("errorDetails")] public string? ErrorDetails { get; set; } + /// + /// The medium of the message. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("medium")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ultravox.JsonConverters.UltravoxV1MessageMediumJsonConverter))] + public global::Ultravox.UltravoxV1MessageMedium? Medium { get; set; } + + /// + /// The index of the message within the call stage. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("callStageMessageIndex")] + public int? CallStageMessageIndex { get; set; } + + /// + /// The call stage this message appeared in. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("callStageId")] + public string? CallStageId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -67,19 +86,34 @@ public sealed partial class UltravoxV1Message /// presented to the model so it can respond to failures gracefully, the full details
/// are only exposed via the Ultravox REST API. /// + /// + /// The medium of the message. + /// + /// + /// The index of the message within the call stage. + /// + /// + /// The call stage this message appeared in. + /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public UltravoxV1Message( global::Ultravox.UltravoxV1MessageRole? role, string? text, string? invocationId, string? toolName, - string? errorDetails) + string? errorDetails, + global::Ultravox.UltravoxV1MessageMedium? medium, + int? callStageMessageIndex, + string? callStageId) { this.Role = role; this.Text = text; this.InvocationId = invocationId; this.ToolName = toolName; this.ErrorDetails = errorDetails; + this.Medium = medium; + this.CallStageMessageIndex = callStageMessageIndex; + this.CallStageId = callStageId; } /// diff --git a/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1MessageMedium.g.cs b/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1MessageMedium.g.cs new file mode 100644 index 0000000..f0e4ea4 --- /dev/null +++ b/src/libs/Ultravox/Generated/Ultravox.Models.UltravoxV1MessageMedium.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Ultravox +{ + /// + /// The medium of the message. + /// + public enum UltravoxV1MessageMedium + { + /// + /// + /// + MESSAGEMEDIUMUNSPECIFIED, + /// + /// + /// + MESSAGEMEDIUMVOICE, + /// + /// + /// + MESSAGEMEDIUMTEXT, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UltravoxV1MessageMediumExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UltravoxV1MessageMedium value) + { + return value switch + { + UltravoxV1MessageMedium.MESSAGEMEDIUMUNSPECIFIED => "MESSAGE_MEDIUM_UNSPECIFIED", + UltravoxV1MessageMedium.MESSAGEMEDIUMVOICE => "MESSAGE_MEDIUM_VOICE", + UltravoxV1MessageMedium.MESSAGEMEDIUMTEXT => "MESSAGE_MEDIUM_TEXT", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UltravoxV1MessageMedium? ToEnum(string value) + { + return value switch + { + "MESSAGE_MEDIUM_UNSPECIFIED" => UltravoxV1MessageMedium.MESSAGEMEDIUMUNSPECIFIED, + "MESSAGE_MEDIUM_VOICE" => UltravoxV1MessageMedium.MESSAGEMEDIUMVOICE, + "MESSAGE_MEDIUM_TEXT" => UltravoxV1MessageMedium.MESSAGEMEDIUMTEXT, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Ultravox/Generated/Ultravox.ModelsClient.ModelsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.ModelsClient.ModelsList.g.cs index 0b8d010..b66a664 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ModelsClient.ModelsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ModelsClient.ModelsList.g.cs @@ -7,11 +7,13 @@ public partial class ModelsClient { partial void PrepareModelsListArguments( global::System.Net.Http.HttpClient httpClient, - ref string? cursor); + ref string? cursor, + ref int? pageSize); partial void PrepareModelsListRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string? cursor); + string? cursor, + int? pageSize); partial void ProcessModelsListResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -25,23 +27,27 @@ partial void ProcessModelsListResponseContent( /// /// /// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ModelsListAsync( string? cursor = default, + int? pageSize = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PrepareModelsListArguments( httpClient: HttpClient, - cursor: ref cursor); + cursor: ref cursor, + pageSize: ref pageSize); var __pathBuilder = new PathBuilder( path: "/api/models", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("cursor", cursor) + .AddOptionalParameter("pageSize", pageSize?.ToString()) ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( @@ -74,7 +80,8 @@ partial void ProcessModelsListResponseContent( PrepareModelsListRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - cursor: cursor); + cursor: cursor, + pageSize: pageSize); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsList.g.cs index 50a2672..afcfb6b 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsList.g.cs @@ -7,11 +7,13 @@ public partial class ToolsClient { partial void PrepareToolsListArguments( global::System.Net.Http.HttpClient httpClient, - ref string? cursor); + ref string? cursor, + ref int? pageSize); partial void PrepareToolsListRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string? cursor); + string? cursor, + int? pageSize); partial void ProcessToolsListResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -25,23 +27,27 @@ partial void ProcessToolsListResponseContent( /// ///
/// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ToolsListAsync( string? cursor = default, + int? pageSize = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PrepareToolsListArguments( httpClient: HttpClient, - cursor: ref cursor); + cursor: ref cursor, + pageSize: ref pageSize); var __pathBuilder = new PathBuilder( path: "/api/tools", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("cursor", cursor) + .AddOptionalParameter("pageSize", pageSize?.ToString()) ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( @@ -74,7 +80,8 @@ partial void ProcessToolsListResponseContent( PrepareToolsListRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - cursor: cursor); + cursor: cursor, + pageSize: pageSize); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesList.g.cs b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesList.g.cs index b12b1e2..ce63bb1 100644 --- a/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesList.g.cs @@ -7,11 +7,13 @@ public partial class VoicesClient { partial void PrepareVoicesListArguments( global::System.Net.Http.HttpClient httpClient, - ref string? cursor); + ref string? cursor, + ref int? pageSize); partial void PrepareVoicesListRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string? cursor); + string? cursor, + int? pageSize); partial void ProcessVoicesListResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -25,23 +27,27 @@ partial void ProcessVoicesListResponseContent( /// ///
/// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task VoicesListAsync( string? cursor = default, + int? pageSize = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PrepareVoicesListArguments( httpClient: HttpClient, - cursor: ref cursor); + cursor: ref cursor, + pageSize: ref pageSize); var __pathBuilder = new PathBuilder( path: "/api/voices", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("cursor", cursor) + .AddOptionalParameter("pageSize", pageSize?.ToString()) ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( @@ -74,7 +80,8 @@ partial void ProcessVoicesListResponseContent( PrepareVoicesListRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - cursor: cursor); + cursor: cursor, + pageSize: pageSize); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksList.g.cs b/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksList.g.cs index fefdffd..f590ff4 100644 --- a/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.WebhooksClient.WebhooksList.g.cs @@ -7,11 +7,13 @@ public partial class WebhooksClient { partial void PrepareWebhooksListArguments( global::System.Net.Http.HttpClient httpClient, - ref string? cursor); + ref string? cursor, + ref int? pageSize); partial void PrepareWebhooksListRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string? cursor); + string? cursor, + int? pageSize); partial void ProcessWebhooksListResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -25,23 +27,27 @@ partial void ProcessWebhooksListResponseContent( /// ///
/// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task WebhooksListAsync( string? cursor = default, + int? pageSize = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PrepareWebhooksListArguments( httpClient: HttpClient, - cursor: ref cursor); + cursor: ref cursor, + pageSize: ref pageSize); var __pathBuilder = new PathBuilder( path: "/api/webhooks", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("cursor", cursor) + .AddOptionalParameter("pageSize", pageSize?.ToString()) ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( @@ -74,7 +80,8 @@ partial void ProcessWebhooksListResponseContent( PrepareWebhooksListRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - cursor: cursor); + cursor: cursor, + pageSize: pageSize); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/Ultravox/openapi.yaml b/src/libs/Ultravox/openapi.yaml index e1726f6..4c5fb36 100644 --- a/src/libs/Ultravox/openapi.yaml +++ b/src/libs/Ultravox/openapi.yaml @@ -48,6 +48,11 @@ paths: description: The pagination cursor value. schema: type: string + - name: pageSize + in: query + description: Number of results to return per page. + schema: + type: integer responses: '200': description: '' @@ -163,6 +168,11 @@ paths: description: The pagination cursor value. schema: type: string + - name: pageSize + in: query + description: Number of results to return per page. + schema: + type: integer responses: '200': description: '' @@ -235,6 +245,11 @@ paths: description: The pagination cursor value. schema: type: string + - name: pageSize + in: query + description: Number of results to return per page. + schema: + type: integer responses: '200': description: '' @@ -278,6 +293,11 @@ paths: description: The pagination cursor value. schema: type: string + - name: pageSize + in: query + description: Number of results to return per page. + schema: + type: integer responses: '200': description: '' @@ -337,6 +357,11 @@ paths: description: The pagination cursor value. schema: type: string + - name: pageSize + in: query + description: Number of results to return per page. + schema: + type: integer responses: '200': description: '' @@ -346,6 +371,34 @@ paths: $ref: '#/components/schemas/Paginatedultravox.v1.MessageList' security: - apiKeyAuth: [ ] + '/api/calls/{call_id}/stages/{call_stage_id}/messages/{call_stage_message_index}/audio': + get: + tags: + - calls + operationId: calls_stages_messages_audio_retrieve + parameters: + - name: call_id + in: path + required: true + schema: + type: string + format: uuid + - name: call_stage_id + in: path + required: true + schema: + type: string + format: uuid + - name: call_stage_message_index + in: path + required: true + schema: + type: integer + responses: + '200': + description: No response body + security: + - apiKeyAuth: [ ] '/api/calls/{call_id}/stages/{call_stage_id}/tools': get: tags: @@ -409,6 +462,11 @@ paths: description: The pagination cursor value. schema: type: string + - name: pageSize + in: query + description: Number of results to return per page. + schema: + type: integer responses: '200': description: '' @@ -569,6 +627,11 @@ paths: description: The pagination cursor value. schema: type: string + - name: pageSize + in: query + description: Number of results to return per page. + schema: + type: integer responses: '200': description: '' @@ -680,6 +743,11 @@ paths: description: The pagination cursor value. schema: type: string + - name: pageSize + in: query + description: Number of results to return per page. + schema: + type: integer responses: '200': description: '' @@ -762,6 +830,11 @@ paths: description: The pagination cursor value. schema: type: string + - name: pageSize + in: query + description: Number of results to return per page. + schema: + type: integer responses: '200': description: '' @@ -986,6 +1059,7 @@ components: - created - endReason - ended + - errorCount - firstSpeaker - initialOutputMedium - joinUrl @@ -1056,7 +1130,6 @@ components: recordingEnabled: type: boolean default: false - writeOnly: true systemPrompt: type: string nullable: true @@ -1076,11 +1149,17 @@ components: type: boolean description: Indicates whether a transcript is optional for the call. default: true + errorCount: + type: integer + description: The number of errors in this call. + default: 0 + readOnly: true CallStage: required: - callId - callStageId - created + - errorCount - temperature type: object properties: @@ -1126,6 +1205,10 @@ components: voice: type: string nullable: true + errorCount: + type: integer + description: The number of errors in this call stage. + readOnly: true CallTool: required: - callToolId @@ -1204,6 +1287,9 @@ components: type: array items: $ref: '#/components/schemas/APIKey' + total: + type: integer + example: 123 PaginatedCallList: required: - results @@ -1223,6 +1309,9 @@ components: type: array items: $ref: '#/components/schemas/Call' + total: + type: integer + example: 123 PaginatedCallStageList: required: - results @@ -1242,6 +1331,9 @@ components: type: array items: $ref: '#/components/schemas/CallStage' + total: + type: integer + example: 123 PaginatedModelAliasList: required: - results @@ -1261,6 +1353,9 @@ components: type: array items: $ref: '#/components/schemas/ModelAlias' + total: + type: integer + example: 123 PaginatedToolList: required: - results @@ -1280,6 +1375,9 @@ components: type: array items: $ref: '#/components/schemas/Tool' + total: + type: integer + example: 123 PaginatedVoiceList: required: - results @@ -1299,6 +1397,9 @@ components: type: array items: $ref: '#/components/schemas/Voice' + total: + type: integer + example: 123 PaginatedWebhookList: required: - results @@ -1318,6 +1419,9 @@ components: type: array items: $ref: '#/components/schemas/Webhook' + total: + type: integer + example: 123 Paginatedultravox.v1.MessageList: required: - results @@ -1337,6 +1441,9 @@ components: type: array items: $ref: '#/components/schemas/ultravox.v1.Message' + total: + type: integer + example: 123 PatchedAPIKey: type: object properties: @@ -1488,6 +1595,21 @@ components: errorDetails: type: string description: "For failed tool calls, additional debugging information. While the text field is\n presented to the model so it can respond to failures gracefully, the full details\n are only exposed via the Ultravox REST API." + medium: + enum: + - MESSAGE_MEDIUM_UNSPECIFIED + - MESSAGE_MEDIUM_VOICE + - MESSAGE_MEDIUM_TEXT + type: string + description: The medium of the message. + format: enum + callStageMessageIndex: + type: integer + description: The index of the message within the call stage. + format: int32 + callStageId: + type: string + description: The call stage this message appeared in. description: A message exchanged during a call. google.protobuf.Value: description: 'Represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values.'