From f654f60413526dadbf5eaafe77f2dbfa25593ce4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 8 Aug 2024 21:14:35 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...nfraApi.AccountUpdateDetailsV1MePatch.g.cs | 2 +- ...epInfraApi.CreateVoiceV1VoicesAddPost.g.cs | 84 ++++++++ ...aApi.DeleteVoiceV1VoicesVoiceIdDelete.g.cs | 89 ++++++++ ...epInfraApi.GetVoiceV1VoicesVoiceIdGet.g.cs | 90 ++++++++ ...fra.DeepInfraApi.GetVoicesV1VoicesGet.g.cs | 84 ++++++++ ...pi.UpdateVoiceV1VoicesVoiceIdEditPost.g.cs | 128 +++++++++++ .../DeepInfra.Models.GetVoicesOut.g.cs | 23 ++ .../DeepInfra.Models.UpdateVoiceIn.g.cs | 31 +++ .../Generated/DeepInfra.Models.Voice.g.cs | 56 +++++ .../Generated/JsonSerializerContextTypes.g.cs | 150 +++++++------ src/libs/DeepInfra/openapi.yaml | 202 ++++++++++++++++++ 11 files changed, 871 insertions(+), 68 deletions(-) create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.CreateVoiceV1VoicesAddPost.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeleteVoiceV1VoicesVoiceIdDelete.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoiceV1VoicesVoiceIdGet.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoicesV1VoicesGet.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.UpdateVoiceV1VoicesVoiceIdEditPost.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.GetVoicesOut.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.UpdateVoiceIn.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.Voice.g.cs diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.AccountUpdateDetailsV1MePatch.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.AccountUpdateDetailsV1MePatch.g.cs index 4963c96..67eb8b6 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.AccountUpdateDetailsV1MePatch.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.AccountUpdateDetailsV1MePatch.g.cs @@ -40,7 +40,7 @@ partial void ProcessAccountUpdateDetailsV1MePatchResponseContent( request: request); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), + method: global::System.Net.Http.HttpMethod.Patch, requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1/me", global::System.UriKind.RelativeOrAbsolute)); var __httpRequestContent = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request, global::DeepInfra.SourceGenerationContext.Default.MeIn), diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.CreateVoiceV1VoicesAddPost.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.CreateVoiceV1VoicesAddPost.g.cs new file mode 100644 index 0000000..c7e44c1 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.CreateVoiceV1VoicesAddPost.g.cs @@ -0,0 +1,84 @@ + +#nullable enable + +namespace DeepInfra +{ + public partial class DeepInfraApi + { + partial void PrepareCreateVoiceV1VoicesAddPostArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareCreateVoiceV1VoicesAddPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessCreateVoiceV1VoicesAddPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateVoiceV1VoicesAddPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Create Voice
+ /// Create a new voice + ///
+ /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateVoiceV1VoicesAddPostAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: _httpClient); + PrepareCreateVoiceV1VoicesAddPostArguments( + httpClient: _httpClient); + + using var httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1/voices/add", global::System.UriKind.RelativeOrAbsolute)); + + PrepareRequest( + client: _httpClient, + request: httpRequest); + PrepareCreateVoiceV1VoicesAddPostRequest( + httpClient: _httpClient, + httpRequestMessage: httpRequest); + + using var response = await _httpClient.SendAsync( + request: httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: _httpClient, + response: response); + ProcessCreateVoiceV1VoicesAddPostResponse( + httpClient: _httpClient, + httpResponseMessage: response); + + var __content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: _httpClient, + response: response, + content: ref __content); + ProcessCreateVoiceV1VoicesAddPostResponseContent( + httpClient: _httpClient, + httpResponseMessage: response, + content: ref __content); + + try + { + response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException ex) + { + throw new global::System.InvalidOperationException(__content, ex); + } + + return + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Voice) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeleteVoiceV1VoicesVoiceIdDelete.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeleteVoiceV1VoicesVoiceIdDelete.g.cs new file mode 100644 index 0000000..7033358 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeleteVoiceV1VoicesVoiceIdDelete.g.cs @@ -0,0 +1,89 @@ + +#nullable enable + +namespace DeepInfra +{ + public partial class DeepInfraApi + { + partial void PrepareDeleteVoiceV1VoicesVoiceIdDeleteArguments( + global::System.Net.Http.HttpClient httpClient, + ref string voiceId); + partial void PrepareDeleteVoiceV1VoicesVoiceIdDeleteRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string voiceId); + partial void ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Delete Voice + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task DeleteVoiceV1VoicesVoiceIdDeleteAsync( + string voiceId, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: _httpClient); + PrepareDeleteVoiceV1VoicesVoiceIdDeleteArguments( + httpClient: _httpClient, + voiceId: ref voiceId); + + using var httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Delete, + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1/voices/{voiceId}", global::System.UriKind.RelativeOrAbsolute)); + + PrepareRequest( + client: _httpClient, + request: httpRequest); + PrepareDeleteVoiceV1VoicesVoiceIdDeleteRequest( + httpClient: _httpClient, + httpRequestMessage: httpRequest, + voiceId: voiceId); + + using var response = await _httpClient.SendAsync( + request: httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: _httpClient, + response: response); + ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponse( + httpClient: _httpClient, + httpResponseMessage: response); + + var __content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: _httpClient, + response: response, + content: ref __content); + ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponseContent( + httpClient: _httpClient, + httpResponseMessage: response, + content: ref __content); + + try + { + response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException ex) + { + throw new global::System.InvalidOperationException(__content, ex); + } + + return + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoiceV1VoicesVoiceIdGet.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoiceV1VoicesVoiceIdGet.g.cs new file mode 100644 index 0000000..40426ff --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoiceV1VoicesVoiceIdGet.g.cs @@ -0,0 +1,90 @@ + +#nullable enable + +namespace DeepInfra +{ + public partial class DeepInfraApi + { + partial void PrepareGetVoiceV1VoicesVoiceIdGetArguments( + global::System.Net.Http.HttpClient httpClient, + ref string voiceId); + partial void PrepareGetVoiceV1VoicesVoiceIdGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string voiceId); + partial void ProcessGetVoiceV1VoicesVoiceIdGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetVoiceV1VoicesVoiceIdGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Voice
+ /// Get a voice by its id + ///
+ /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetVoiceV1VoicesVoiceIdGetAsync( + string voiceId, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: _httpClient); + PrepareGetVoiceV1VoicesVoiceIdGetArguments( + httpClient: _httpClient, + voiceId: ref voiceId); + + using var httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1/voices/{voiceId}", global::System.UriKind.RelativeOrAbsolute)); + + PrepareRequest( + client: _httpClient, + request: httpRequest); + PrepareGetVoiceV1VoicesVoiceIdGetRequest( + httpClient: _httpClient, + httpRequestMessage: httpRequest, + voiceId: voiceId); + + using var response = await _httpClient.SendAsync( + request: httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: _httpClient, + response: response); + ProcessGetVoiceV1VoicesVoiceIdGetResponse( + httpClient: _httpClient, + httpResponseMessage: response); + + var __content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: _httpClient, + response: response, + content: ref __content); + ProcessGetVoiceV1VoicesVoiceIdGetResponseContent( + httpClient: _httpClient, + httpResponseMessage: response, + content: ref __content); + + try + { + response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException ex) + { + throw new global::System.InvalidOperationException(__content, ex); + } + + return + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Voice) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoicesV1VoicesGet.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoicesV1VoicesGet.g.cs new file mode 100644 index 0000000..27d3212 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoicesV1VoicesGet.g.cs @@ -0,0 +1,84 @@ + +#nullable enable + +namespace DeepInfra +{ + public partial class DeepInfraApi + { + partial void PrepareGetVoicesV1VoicesGetArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareGetVoicesV1VoicesGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessGetVoicesV1VoicesGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetVoicesV1VoicesGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Voices
+ /// Get available voices for a given user + ///
+ /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetVoicesV1VoicesGetAsync( + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: _httpClient); + PrepareGetVoicesV1VoicesGetArguments( + httpClient: _httpClient); + + using var httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1/voices", global::System.UriKind.RelativeOrAbsolute)); + + PrepareRequest( + client: _httpClient, + request: httpRequest); + PrepareGetVoicesV1VoicesGetRequest( + httpClient: _httpClient, + httpRequestMessage: httpRequest); + + using var response = await _httpClient.SendAsync( + request: httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: _httpClient, + response: response); + ProcessGetVoicesV1VoicesGetResponse( + httpClient: _httpClient, + httpResponseMessage: response); + + var __content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: _httpClient, + response: response, + content: ref __content); + ProcessGetVoicesV1VoicesGetResponseContent( + httpClient: _httpClient, + httpResponseMessage: response, + content: ref __content); + + try + { + response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException ex) + { + throw new global::System.InvalidOperationException(__content, ex); + } + + return + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.GetVoicesOut) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.UpdateVoiceV1VoicesVoiceIdEditPost.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.UpdateVoiceV1VoicesVoiceIdEditPost.g.cs new file mode 100644 index 0000000..72a9894 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.UpdateVoiceV1VoicesVoiceIdEditPost.g.cs @@ -0,0 +1,128 @@ + +#nullable enable + +namespace DeepInfra +{ + public partial class DeepInfraApi + { + partial void PrepareUpdateVoiceV1VoicesVoiceIdEditPostArguments( + global::System.Net.Http.HttpClient httpClient, + ref string voiceId, + global::DeepInfra.UpdateVoiceIn request); + partial void PrepareUpdateVoiceV1VoicesVoiceIdEditPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string voiceId, + global::DeepInfra.UpdateVoiceIn request); + partial void ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Update Voice + /// + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateVoiceV1VoicesVoiceIdEditPostAsync( + string voiceId, + global::DeepInfra.UpdateVoiceIn request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: _httpClient); + PrepareUpdateVoiceV1VoicesVoiceIdEditPostArguments( + httpClient: _httpClient, + voiceId: ref voiceId, + request: request); + + using var httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1/voices/{voiceId}/edit", global::System.UriKind.RelativeOrAbsolute)); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: global::System.Text.Json.JsonSerializer.Serialize(request, global::DeepInfra.SourceGenerationContext.Default.UpdateVoiceIn), + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + httpRequest.Content = __httpRequestContent; + + PrepareRequest( + client: _httpClient, + request: httpRequest); + PrepareUpdateVoiceV1VoicesVoiceIdEditPostRequest( + httpClient: _httpClient, + httpRequestMessage: httpRequest, + voiceId: voiceId, + request: request); + + using var response = await _httpClient.SendAsync( + request: httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: _httpClient, + response: response); + ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponse( + httpClient: _httpClient, + httpResponseMessage: response); + + var __content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: _httpClient, + response: response, + content: ref __content); + ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponseContent( + httpClient: _httpClient, + httpResponseMessage: response, + content: ref __content); + + try + { + response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException ex) + { + throw new global::System.InvalidOperationException(__content, ex); + } + + return + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Voice) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + + /// + /// Update Voice + /// + /// + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateVoiceV1VoicesVoiceIdEditPostAsync( + string voiceId, + string name, + string description, + global::System.Threading.CancellationToken cancellationToken = default) + { + var request = new global::DeepInfra.UpdateVoiceIn + { + Name = name, + Description = description, + }; + + return await UpdateVoiceV1VoicesVoiceIdEditPostAsync( + voiceId: voiceId, + request: request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.GetVoicesOut.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.GetVoicesOut.g.cs new file mode 100644 index 0000000..f5b81c9 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.GetVoicesOut.g.cs @@ -0,0 +1,23 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class GetVoicesOut + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("voices")] + public global::System.Collections.Generic.IList? Voices { 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.UpdateVoiceIn.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.UpdateVoiceIn.g.cs new file mode 100644 index 0000000..929fbd0 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.UpdateVoiceIn.g.cs @@ -0,0 +1,31 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class UpdateVoiceIn + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Description { 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.Voice.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.Voice.g.cs new file mode 100644 index 0000000..4f094cb --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.Voice.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class Voice + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("user_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UserId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("voice_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string VoiceId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + public int CreatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + public int UpdatedAt { 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/JsonSerializerContextTypes.g.cs b/src/libs/DeepInfra/Generated/JsonSerializerContextTypes.g.cs index 2db0f02..9d67fb5 100644 --- a/src/libs/DeepInfra/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/DeepInfra/Generated/JsonSerializerContextTypes.g.cs @@ -169,270 +169,286 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::DeepInfra.ImageURLDetail? Type39 { get; set; } + public global::System.Collections.Generic.IList? Type39 { get; set; } /// /// /// - public global::System.Collections.Generic.IList?>? Type40 { get; set; } + public global::DeepInfra.ImageURLDetail? Type40 { get; set; } /// /// /// - public global::DeepInfra.ModelDocBlockKey? Type41 { get; set; } + public global::System.Collections.Generic.IList?>? Type41 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type42 { get; set; } + public global::DeepInfra.ModelDocBlockKey? Type42 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type43 { get; set; } + public global::System.Collections.Generic.IList? Type43 { get; set; } /// /// /// - public global::System.AnyOf? Type44 { get; set; } + public global::System.Collections.Generic.IList? Type44 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type45 { get; set; } + public global::System.AnyOf? Type45 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type46 { get; set; } + public global::System.Collections.Generic.IList? Type46 { get; set; } /// /// /// - public global::System.AllOf? Type47 { get; set; } + public global::System.Collections.Generic.IList? Type47 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type48 { get; set; } + public global::System.AllOf? Type48 { get; set; } /// /// /// - public global::System.AnyOf? Type49 { get; set; } + public global::System.Collections.Generic.IList? Type49 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type50 { get; set; } + public global::System.AnyOf? Type50 { get; set; } /// /// /// - public global::System.AnyOf?>? Type51 { get; set; } + public global::System.Collections.Generic.IList>? Type51 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type52 { get; set; } + public global::System.AnyOf?>? Type52 { get; set; } /// /// /// - public global::System.AllOf? Type53 { get; set; } + public global::System.Collections.Generic.IList? Type53 { get; set; } /// /// /// - public global::System.AnyOf, string>? Type54 { get; set; } + public global::System.AllOf? Type54 { get; set; } /// /// /// - public global::DeepInfra.OpenAIEmbeddingsInEncodingFormat? Type55 { get; set; } + public global::System.AnyOf, string>? Type55 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type56 { get; set; } + public global::DeepInfra.OpenAIEmbeddingsInEncodingFormat? Type56 { get; set; } /// /// /// - public global::System.AllOf? Type57 { get; set; } + public global::System.Collections.Generic.IList? Type57 { get; set; } /// /// /// - public global::System.AllOf? Type58 { get; set; } + public global::System.AllOf? Type58 { get; set; } /// /// /// - public global::DeepInfra.ResponseFormatType? Type59 { get; set; } + public global::System.AllOf? Type59 { get; set; } /// /// /// - public global::DeepInfra.SchemaVariant? Type60 { get; set; } + public global::DeepInfra.ResponseFormatType? Type60 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type61 { get; set; } + public global::DeepInfra.SchemaVariant? Type61 { get; set; } /// /// /// - public global::DeepInfra.SchemaVariantKey? Type62 { get; set; } + public global::System.Collections.Generic.IList? Type62 { get; set; } /// /// /// - public global::DeepInfra.HTTPValidationError? Type63 { get; set; } + public global::DeepInfra.SchemaVariantKey? Type63 { get; set; } /// /// /// - public global::DeepInfra.Me? Type64 { get; set; } + public global::DeepInfra.HTTPValidationError? Type64 { get; set; } /// /// /// - public global::DeepInfra.MeIn? Type65 { get; set; } + public global::DeepInfra.Me? Type65 { get; set; } /// /// /// - public global::DeepInfra.DeepError? Type66 { get; set; } + public global::DeepInfra.MeIn? Type66 { get; set; } /// /// /// - public global::DeepInfra.EmailsOut? Type67 { get; set; } + public global::DeepInfra.DeepError? Type67 { get; set; } /// /// /// - public global::DeepInfra.RateLimitOut? Type68 { get; set; } + public global::DeepInfra.EmailsOut? Type68 { get; set; } /// /// /// - public global::DeepInfra.RateLimitRequestIn? Type69 { get; set; } + public global::DeepInfra.RateLimitOut? Type69 { get; set; } /// /// /// - public global::DeepInfra.DeployModelIn? Type70 { get; set; } + public global::DeepInfra.RateLimitRequestIn? Type70 { get; set; } /// /// /// - public global::DeepInfra.DeployResult? Type71 { get; set; } + public global::DeepInfra.DeployModelIn? Type71 { get; set; } /// /// /// - public global::DeepInfra.HFModel? Type72 { get; set; } + public global::DeepInfra.DeployResult? Type72 { get; set; } /// /// /// - public global::DeepInfra.DeployGPUAvailability? Type73 { get; set; } + public global::DeepInfra.HFModel? Type73 { get; set; } /// /// /// - public global::DeepInfra.DeployLLMIn? Type74 { get; set; } + public global::DeepInfra.DeployGPUAvailability? Type74 { get; set; } /// /// /// - public global::DeepInfra.DeploymentOut? Type75 { get; set; } + public global::DeepInfra.DeployLLMIn? Type75 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type76 { get; set; } + public global::DeepInfra.DeploymentOut? Type76 { get; set; } /// /// /// - public global::DeepInfra.DeployLLMUpdateIn? Type77 { get; set; } + public global::System.Collections.Generic.IList? Type77 { get; set; } /// /// /// - public global::DeepInfra.DeployStatusOut? Type78 { get; set; } + public global::DeepInfra.DeployLLMUpdateIn? Type78 { get; set; } /// /// /// - public global::DeepInfra.DeployDelete? Type79 { get; set; } + public global::DeepInfra.DeployStatusOut? Type79 { get; set; } /// /// /// - public global::DeepInfra.DeploymentStatsOut? Type80 { get; set; } + public global::DeepInfra.DeployDelete? Type80 { get; set; } /// /// /// - public global::DeepInfra.DetailedDeploymentStatsOut? Type81 { get; set; } + public global::DeepInfra.DeploymentStatsOut? Type81 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type82 { get; set; } + public global::DeepInfra.DetailedDeploymentStatsOut? Type82 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type83 { get; set; } + public global::System.Collections.Generic.IList? Type83 { get; set; } /// /// /// - public global::DeepInfra.ModelPublicityIn? Type84 { get; set; } + public global::System.Collections.Generic.IList? Type84 { get; set; } /// /// /// - public global::DeepInfra.ModelMetaIn? Type85 { get; set; } + public global::DeepInfra.ModelPublicityIn? Type85 { get; set; } /// /// /// - public global::DeepInfra.ModelInfoOut? Type86 { get; set; } + public global::DeepInfra.ModelMetaIn? Type86 { get; set; } /// /// /// - public global::DeepInfra.SchemaOut? Type87 { get; set; } + public global::DeepInfra.ModelInfoOut? Type87 { get; set; } /// /// /// - public global::DeepInfra.OpenAICompletionsIn? Type88 { get; set; } + public global::DeepInfra.SchemaOut? Type88 { get; set; } /// /// /// - public global::DeepInfra.OpenAIChatCompletionsIn? Type89 { get; set; } + public global::DeepInfra.OpenAICompletionsIn? Type89 { get; set; } /// /// /// - public global::DeepInfra.OpenAIEmbeddingsIn? Type90 { get; set; } + public global::DeepInfra.OpenAIChatCompletionsIn? Type90 { get; set; } /// /// /// - public global::DeepInfra.OpenAIModelsOut? Type91 { get; set; } + public global::DeepInfra.OpenAIEmbeddingsIn? Type91 { get; set; } /// /// /// - public global::DeepInfra.FeedbackIn? Type92 { get; set; } + public global::DeepInfra.OpenAIModelsOut? Type92 { get; set; } /// /// /// - public global::DeepInfra.OpenAITextToSpeechIn? Type93 { get; set; } + public global::DeepInfra.FeedbackIn? Type93 { get; set; } /// /// /// - public global::DeepInfra.LogQueryOut? Type94 { get; set; } + public global::DeepInfra.OpenAITextToSpeechIn? Type94 { get; set; } /// /// /// - public global::DeepInfra.DeploymentLogQueryOut? Type95 { get; set; } + public global::DeepInfra.LogQueryOut? Type95 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type96 { get; set; } + public global::DeepInfra.DeploymentLogQueryOut? Type96 { get; set; } /// /// /// - public global::DeepInfra.ApiTokenIn? Type97 { get; set; } + public global::DeepInfra.GetVoicesOut? Type97 { get; set; } /// /// /// - public global::DeepInfra.ApiToken? Type98 { get; set; } + public global::DeepInfra.Voice? Type98 { get; set; } /// /// /// - public global::DeepInfra.Checklist? Type99 { get; set; } + public global::DeepInfra.UpdateVoiceIn? Type99 { get; set; } /// /// /// - public global::DeepInfra.ConfigOut? Type100 { get; set; } + public global::System.Collections.Generic.IList? Type100 { get; set; } /// /// /// - public global::DeepInfra.ConfigIn? Type101 { get; set; } + public global::DeepInfra.ApiTokenIn? Type101 { get; set; } /// /// /// - public global::DeepInfra.BillingPortalOut? Type102 { get; set; } + public global::DeepInfra.ApiToken? Type102 { get; set; } /// /// /// - public global::DeepInfra.UsageOut? Type103 { get; set; } + public global::DeepInfra.Checklist? Type103 { get; set; } /// /// /// - public global::DeepInfra.DeepStartApplicationIn? Type104 { get; set; } + public global::DeepInfra.ConfigOut? Type104 { get; set; } /// /// /// - public global::DeepInfra.DeepStartApplicationOut? Type105 { get; set; } + public global::DeepInfra.ConfigIn? Type105 { get; set; } + /// + /// + /// + public global::DeepInfra.BillingPortalOut? Type106 { get; set; } + /// + /// + /// + public global::DeepInfra.UsageOut? Type107 { get; set; } + /// + /// + /// + public global::DeepInfra.DeepStartApplicationIn? Type108 { get; set; } + /// + /// + /// + public global::DeepInfra.DeepStartApplicationOut? Type109 { get; set; } } } \ No newline at end of file diff --git a/src/libs/DeepInfra/openapi.yaml b/src/libs/DeepInfra/openapi.yaml index 3f9fdd9..0242102 100644 --- a/src/libs/DeepInfra/openapi.yaml +++ b/src/libs/DeepInfra/openapi.yaml @@ -1309,6 +1309,159 @@ paths: $ref: '#/components/schemas/HTTPValidationError' security: - HTTPBearer: [ ] + /v1/voices: + get: + summary: Get Voices + description: Get available voices for a given user + operationId: get_voices_v1_voices_get + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/GetVoicesOut' + '404': + description: Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/DeepError' + security: + - HTTPBearer: [ ] + '/v1/voices/{voice_id}': + get: + summary: Get Voice + description: Get a voice by its id + operationId: get_voice_v1_voices__voice_id__get + parameters: + - name: voice_id + in: path + required: true + schema: + title: Voice Id + type: string + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/Voice' + '404': + description: Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/DeepError' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - HTTPBearer: [ ] + delete: + summary: Delete Voice + operationId: delete_voice_v1_voices__voice_id__delete + parameters: + - name: voice_id + in: path + required: true + schema: + title: Voice Id + type: string + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '400': + description: Bad Request + content: + application/json: + schema: + $ref: '#/components/schemas/DeepError' + '404': + description: Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/DeepError' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - HTTPBearer: [ ] + /v1/voices/add: + post: + summary: Create Voice + description: Create a new voice + operationId: create_voice_v1_voices_add_post + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/Voice' + '400': + description: Bad Request + content: + application/json: + schema: + $ref: '#/components/schemas/DeepError' + security: + - HTTPBearer: [ ] + '/v1/voices/{voice_id}/edit': + post: + summary: Update Voice + operationId: update_voice_v1_voices__voice_id__edit_post + parameters: + - name: voice_id + in: path + required: true + schema: + title: Voice Id + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateVoiceIn' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/Voice' + '400': + description: Bad Request + content: + application/json: + schema: + $ref: '#/components/schemas/DeepError' + '404': + description: Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/DeepError' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - HTTPBearer: [ ] /github/login: get: summary: Github Login @@ -2587,6 +2740,15 @@ components: available: title: Available type: boolean + GetVoicesOut: + title: GetVoicesOut + type: object + properties: + voices: + title: Voices + type: array + items: + $ref: '#/components/schemas/Voice' HFModel: title: HFModel required: @@ -3718,6 +3880,46 @@ components: - quartz type: string description: An enumeration. + UpdateVoiceIn: + title: UpdateVoiceIn + required: + - name + - description + type: object + properties: + name: + title: Name + type: string + description: + title: Description + type: string + Voice: + title: Voice + required: + - user_id + - voice_id + - name + type: object + properties: + user_id: + title: User Id + type: string + voice_id: + title: Voice Id + type: string + name: + title: Name + type: string + description: + title: Description + type: string + default: '' + created_at: + title: Created At + type: integer + updated_at: + title: Updated At + type: integer securitySchemes: HTTPBearer: type: http