From f220022e3bd81ea69f6a2408811d004974c11110 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 13 Sep 2026 11:08:31 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- src/cli/AsyncAI.CLI/AsyncAI.CLI.csproj | 4 +-- ...sClient.Authorizations.ApiKeyInHeader.g.cs | 36 +++++++++++++++++++ ...tusClient.Constructors.ApiKeyInHeader.g.cs | 31 ++++++++++++++++ ...sClient.Authorizations.ApiKeyInHeader.g.cs | 16 +++++++++ ...hClient.Authorizations.ApiKeyInHeader.g.cs | 16 +++++++++ ...tClient.Authorizations.ApiKeyInHeader.g.cs | 16 +++++++++ ...hClient.Authorizations.ApiKeyInHeader.g.cs | 36 +++++++++++++++++++ ...echClient.Constructors.ApiKeyInHeader.g.cs | 31 ++++++++++++++++ ...tClient.Authorizations.ApiKeyInHeader.g.cs | 36 +++++++++++++++++++ ...entClient.Constructors.ApiKeyInHeader.g.cs | 31 ++++++++++++++++ 10 files changed, 251 insertions(+), 2 deletions(-) create mode 100644 src/libs/AsyncAI/Generated/AsyncAI.ApiStatusClient.Authorizations.ApiKeyInHeader.g.cs create mode 100644 src/libs/AsyncAI/Generated/AsyncAI.ApiStatusClient.Constructors.ApiKeyInHeader.g.cs create mode 100644 src/libs/AsyncAI/Generated/AsyncAI.IApiStatusClient.Authorizations.ApiKeyInHeader.g.cs create mode 100644 src/libs/AsyncAI/Generated/AsyncAI.ITextToSpeechClient.Authorizations.ApiKeyInHeader.g.cs create mode 100644 src/libs/AsyncAI/Generated/AsyncAI.IVoiceManagementClient.Authorizations.ApiKeyInHeader.g.cs create mode 100644 src/libs/AsyncAI/Generated/AsyncAI.TextToSpeechClient.Authorizations.ApiKeyInHeader.g.cs create mode 100644 src/libs/AsyncAI/Generated/AsyncAI.TextToSpeechClient.Constructors.ApiKeyInHeader.g.cs create mode 100644 src/libs/AsyncAI/Generated/AsyncAI.VoiceManagementClient.Authorizations.ApiKeyInHeader.g.cs create mode 100644 src/libs/AsyncAI/Generated/AsyncAI.VoiceManagementClient.Constructors.ApiKeyInHeader.g.cs diff --git a/src/cli/AsyncAI.CLI/AsyncAI.CLI.csproj b/src/cli/AsyncAI.CLI/AsyncAI.CLI.csproj index e66d4ae..91ce95f 100644 --- a/src/cli/AsyncAI.CLI/AsyncAI.CLI.csproj +++ b/src/cli/AsyncAI.CLI/AsyncAI.CLI.csproj @@ -18,11 +18,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + \ No newline at end of file diff --git a/src/libs/AsyncAI/Generated/AsyncAI.ApiStatusClient.Authorizations.ApiKeyInHeader.g.cs b/src/libs/AsyncAI/Generated/AsyncAI.ApiStatusClient.Authorizations.ApiKeyInHeader.g.cs new file mode 100644 index 0000000..4f67cd0 --- /dev/null +++ b/src/libs/AsyncAI/Generated/AsyncAI.ApiStatusClient.Authorizations.ApiKeyInHeader.g.cs @@ -0,0 +1,36 @@ + +#nullable enable + +namespace AsyncAI +{ + public sealed partial class ApiStatusClient + { + + /// + public void AuthorizeUsingApiKeyInHeader( + string apiKey) + { + apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); + + for (var i = Authorizations.Count - 1; i >= 0; i--) + { + var __authorization = Authorizations[i]; + if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header" && + __authorization.Name == "X-Api-Key") + { + Authorizations.RemoveAt(i); + } + } + + Authorizations.Add(new global::AsyncAI.EndPointAuthorization + { + Type = "ApiKey", + SchemeId = "ApikeyXApiKey", + Location = "Header", + Name = "X-Api-Key", + Value = apiKey, + }); + } + } +} \ No newline at end of file diff --git a/src/libs/AsyncAI/Generated/AsyncAI.ApiStatusClient.Constructors.ApiKeyInHeader.g.cs b/src/libs/AsyncAI/Generated/AsyncAI.ApiStatusClient.Constructors.ApiKeyInHeader.g.cs new file mode 100644 index 0000000..a5106f0 --- /dev/null +++ b/src/libs/AsyncAI/Generated/AsyncAI.ApiStatusClient.Constructors.ApiKeyInHeader.g.cs @@ -0,0 +1,31 @@ + +#nullable enable + +namespace AsyncAI +{ + public sealed partial class ApiStatusClient + { + /// + + public ApiStatusClient( + string apiKey, + global::System.Net.Http.HttpClient? httpClient = null, + global::System.Uri? baseUri = null, + global::System.Collections.Generic.List? authorizations = null, + bool disposeHttpClient = true) : this(httpClient, baseUri, authorizations, disposeHttpClient) + { + Authorizing(HttpClient, ref apiKey); + + AuthorizeUsingApiKeyInHeader(apiKey); + + Authorized(HttpClient); + } + + partial void Authorizing( + global::System.Net.Http.HttpClient client, + ref string apiKey); + partial void Authorized( + global::System.Net.Http.HttpClient client); + + } +} \ No newline at end of file diff --git a/src/libs/AsyncAI/Generated/AsyncAI.IApiStatusClient.Authorizations.ApiKeyInHeader.g.cs b/src/libs/AsyncAI/Generated/AsyncAI.IApiStatusClient.Authorizations.ApiKeyInHeader.g.cs new file mode 100644 index 0000000..58e95b8 --- /dev/null +++ b/src/libs/AsyncAI/Generated/AsyncAI.IApiStatusClient.Authorizations.ApiKeyInHeader.g.cs @@ -0,0 +1,16 @@ + +#nullable enable + +namespace AsyncAI +{ + public partial interface IApiStatusClient + { + /// + /// Authorize using ApiKey authentication. + /// + /// + + public void AuthorizeUsingApiKeyInHeader( + string apiKey); + } +} \ No newline at end of file diff --git a/src/libs/AsyncAI/Generated/AsyncAI.ITextToSpeechClient.Authorizations.ApiKeyInHeader.g.cs b/src/libs/AsyncAI/Generated/AsyncAI.ITextToSpeechClient.Authorizations.ApiKeyInHeader.g.cs new file mode 100644 index 0000000..485aa5e --- /dev/null +++ b/src/libs/AsyncAI/Generated/AsyncAI.ITextToSpeechClient.Authorizations.ApiKeyInHeader.g.cs @@ -0,0 +1,16 @@ + +#nullable enable + +namespace AsyncAI +{ + public partial interface ITextToSpeechClient + { + /// + /// Authorize using ApiKey authentication. + /// + /// + + public void AuthorizeUsingApiKeyInHeader( + string apiKey); + } +} \ No newline at end of file diff --git a/src/libs/AsyncAI/Generated/AsyncAI.IVoiceManagementClient.Authorizations.ApiKeyInHeader.g.cs b/src/libs/AsyncAI/Generated/AsyncAI.IVoiceManagementClient.Authorizations.ApiKeyInHeader.g.cs new file mode 100644 index 0000000..6884d1d --- /dev/null +++ b/src/libs/AsyncAI/Generated/AsyncAI.IVoiceManagementClient.Authorizations.ApiKeyInHeader.g.cs @@ -0,0 +1,16 @@ + +#nullable enable + +namespace AsyncAI +{ + public partial interface IVoiceManagementClient + { + /// + /// Authorize using ApiKey authentication. + /// + /// + + public void AuthorizeUsingApiKeyInHeader( + string apiKey); + } +} \ No newline at end of file diff --git a/src/libs/AsyncAI/Generated/AsyncAI.TextToSpeechClient.Authorizations.ApiKeyInHeader.g.cs b/src/libs/AsyncAI/Generated/AsyncAI.TextToSpeechClient.Authorizations.ApiKeyInHeader.g.cs new file mode 100644 index 0000000..a697c2e --- /dev/null +++ b/src/libs/AsyncAI/Generated/AsyncAI.TextToSpeechClient.Authorizations.ApiKeyInHeader.g.cs @@ -0,0 +1,36 @@ + +#nullable enable + +namespace AsyncAI +{ + public sealed partial class TextToSpeechClient + { + + /// + public void AuthorizeUsingApiKeyInHeader( + string apiKey) + { + apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); + + for (var i = Authorizations.Count - 1; i >= 0; i--) + { + var __authorization = Authorizations[i]; + if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header" && + __authorization.Name == "X-Api-Key") + { + Authorizations.RemoveAt(i); + } + } + + Authorizations.Add(new global::AsyncAI.EndPointAuthorization + { + Type = "ApiKey", + SchemeId = "ApikeyXApiKey", + Location = "Header", + Name = "X-Api-Key", + Value = apiKey, + }); + } + } +} \ No newline at end of file diff --git a/src/libs/AsyncAI/Generated/AsyncAI.TextToSpeechClient.Constructors.ApiKeyInHeader.g.cs b/src/libs/AsyncAI/Generated/AsyncAI.TextToSpeechClient.Constructors.ApiKeyInHeader.g.cs new file mode 100644 index 0000000..9c6b3b3 --- /dev/null +++ b/src/libs/AsyncAI/Generated/AsyncAI.TextToSpeechClient.Constructors.ApiKeyInHeader.g.cs @@ -0,0 +1,31 @@ + +#nullable enable + +namespace AsyncAI +{ + public sealed partial class TextToSpeechClient + { + /// + + public TextToSpeechClient( + string apiKey, + global::System.Net.Http.HttpClient? httpClient = null, + global::System.Uri? baseUri = null, + global::System.Collections.Generic.List? authorizations = null, + bool disposeHttpClient = true) : this(httpClient, baseUri, authorizations, disposeHttpClient) + { + Authorizing(HttpClient, ref apiKey); + + AuthorizeUsingApiKeyInHeader(apiKey); + + Authorized(HttpClient); + } + + partial void Authorizing( + global::System.Net.Http.HttpClient client, + ref string apiKey); + partial void Authorized( + global::System.Net.Http.HttpClient client); + + } +} \ No newline at end of file diff --git a/src/libs/AsyncAI/Generated/AsyncAI.VoiceManagementClient.Authorizations.ApiKeyInHeader.g.cs b/src/libs/AsyncAI/Generated/AsyncAI.VoiceManagementClient.Authorizations.ApiKeyInHeader.g.cs new file mode 100644 index 0000000..f55f121 --- /dev/null +++ b/src/libs/AsyncAI/Generated/AsyncAI.VoiceManagementClient.Authorizations.ApiKeyInHeader.g.cs @@ -0,0 +1,36 @@ + +#nullable enable + +namespace AsyncAI +{ + public sealed partial class VoiceManagementClient + { + + /// + public void AuthorizeUsingApiKeyInHeader( + string apiKey) + { + apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); + + for (var i = Authorizations.Count - 1; i >= 0; i--) + { + var __authorization = Authorizations[i]; + if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header" && + __authorization.Name == "X-Api-Key") + { + Authorizations.RemoveAt(i); + } + } + + Authorizations.Add(new global::AsyncAI.EndPointAuthorization + { + Type = "ApiKey", + SchemeId = "ApikeyXApiKey", + Location = "Header", + Name = "X-Api-Key", + Value = apiKey, + }); + } + } +} \ No newline at end of file diff --git a/src/libs/AsyncAI/Generated/AsyncAI.VoiceManagementClient.Constructors.ApiKeyInHeader.g.cs b/src/libs/AsyncAI/Generated/AsyncAI.VoiceManagementClient.Constructors.ApiKeyInHeader.g.cs new file mode 100644 index 0000000..6eefcca --- /dev/null +++ b/src/libs/AsyncAI/Generated/AsyncAI.VoiceManagementClient.Constructors.ApiKeyInHeader.g.cs @@ -0,0 +1,31 @@ + +#nullable enable + +namespace AsyncAI +{ + public sealed partial class VoiceManagementClient + { + /// + + public VoiceManagementClient( + string apiKey, + global::System.Net.Http.HttpClient? httpClient = null, + global::System.Uri? baseUri = null, + global::System.Collections.Generic.List? authorizations = null, + bool disposeHttpClient = true) : this(httpClient, baseUri, authorizations, disposeHttpClient) + { + Authorizing(HttpClient, ref apiKey); + + AuthorizeUsingApiKeyInHeader(apiKey); + + Authorized(HttpClient); + } + + partial void Authorizing( + global::System.Net.Http.HttpClient client, + ref string apiKey); + partial void Authorized( + global::System.Net.Http.HttpClient client); + + } +} \ No newline at end of file