From 1d500375dec30fe66753e91889d73cffb01b95a1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 29 Aug 2024 12:38:29 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Generated/AI21.Ai21Api.Constructors.Bearer.g.cs | 10 ++++++++++ src/libs/AI21/Generated/AI21.Ai21Api.g.cs | 4 ++++ src/libs/AI21/Generated/AI21.ChatClient.g.cs | 4 ++++ src/libs/AI21/Generated/AI21.CompletionClient.g.cs | 4 ++++ src/libs/AI21/Generated/AI21.CustomModelsClient.g.cs | 4 ++++ src/libs/AI21/Generated/AI21.DatasetsClient.g.cs | 4 ++++ .../AI21.GrammaticalErrorCorrectionsClient.g.cs | 4 ++++ src/libs/AI21/Generated/AI21.JambaCompleteClient.g.cs | 4 ++++ .../AI21/Generated/AI21.LibraryManagementClient.g.cs | 4 ++++ src/libs/AI21/Generated/AI21.ParaphraseClient.g.cs | 4 ++++ src/libs/AI21/Generated/AI21.RAGEngineClient.g.cs | 4 ++++ src/libs/AI21/Generated/AI21.SegmentationClient.g.cs | 4 ++++ src/libs/AI21/Generated/AI21.SummarizeClient.g.cs | 4 ++++ src/libs/AI21/Generated/AI21.TokenizeClient.g.cs | 4 ++++ 14 files changed, 62 insertions(+) diff --git a/src/libs/AI21/Generated/AI21.Ai21Api.Constructors.Bearer.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.Constructors.Bearer.g.cs index c0c7836..84b7bde 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.Constructors.Bearer.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.Constructors.Bearer.g.cs @@ -11,7 +11,17 @@ public Ai21Api( global::System.Net.Http.HttpClient? httpClient = null, global::System.Uri? baseUri = null) : this(httpClient, baseUri) { + Authorizing(_httpClient, ref apiKey); + AuthorizeUsingBearer(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/AI21/Generated/AI21.Ai21Api.g.cs b/src/libs/AI21/Generated/AI21.Ai21Api.g.cs index ddc8e41..5ffa0a9 100644 --- a/src/libs/AI21/Generated/AI21.Ai21Api.g.cs +++ b/src/libs/AI21/Generated/AI21.Ai21Api.g.cs @@ -92,6 +92,8 @@ public Ai21Api( { _httpClient = httpClient ?? new global::System.Net.Http.HttpClient(); _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl); + + Initialized(_httpClient); } /// @@ -100,6 +102,8 @@ public void Dispose() _httpClient.Dispose(); } + partial void Initialized( + global::System.Net.Http.HttpClient client); partial void PrepareArguments( global::System.Net.Http.HttpClient client); partial void PrepareRequest( diff --git a/src/libs/AI21/Generated/AI21.ChatClient.g.cs b/src/libs/AI21/Generated/AI21.ChatClient.g.cs index 658afb5..572ba58 100644 --- a/src/libs/AI21/Generated/AI21.ChatClient.g.cs +++ b/src/libs/AI21/Generated/AI21.ChatClient.g.cs @@ -31,6 +31,8 @@ public ChatClient( { _httpClient = httpClient ?? new global::System.Net.Http.HttpClient(); _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl); + + Initialized(_httpClient); } /// @@ -39,6 +41,8 @@ public void Dispose() _httpClient.Dispose(); } + partial void Initialized( + global::System.Net.Http.HttpClient client); partial void PrepareArguments( global::System.Net.Http.HttpClient client); partial void PrepareRequest( diff --git a/src/libs/AI21/Generated/AI21.CompletionClient.g.cs b/src/libs/AI21/Generated/AI21.CompletionClient.g.cs index bbc71bf..a92dd7e 100644 --- a/src/libs/AI21/Generated/AI21.CompletionClient.g.cs +++ b/src/libs/AI21/Generated/AI21.CompletionClient.g.cs @@ -31,6 +31,8 @@ public CompletionClient( { _httpClient = httpClient ?? new global::System.Net.Http.HttpClient(); _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl); + + Initialized(_httpClient); } /// @@ -39,6 +41,8 @@ public void Dispose() _httpClient.Dispose(); } + partial void Initialized( + global::System.Net.Http.HttpClient client); partial void PrepareArguments( global::System.Net.Http.HttpClient client); partial void PrepareRequest( diff --git a/src/libs/AI21/Generated/AI21.CustomModelsClient.g.cs b/src/libs/AI21/Generated/AI21.CustomModelsClient.g.cs index 0a95c0b..b9fafa8 100644 --- a/src/libs/AI21/Generated/AI21.CustomModelsClient.g.cs +++ b/src/libs/AI21/Generated/AI21.CustomModelsClient.g.cs @@ -31,6 +31,8 @@ public CustomModelsClient( { _httpClient = httpClient ?? new global::System.Net.Http.HttpClient(); _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl); + + Initialized(_httpClient); } /// @@ -39,6 +41,8 @@ public void Dispose() _httpClient.Dispose(); } + partial void Initialized( + global::System.Net.Http.HttpClient client); partial void PrepareArguments( global::System.Net.Http.HttpClient client); partial void PrepareRequest( diff --git a/src/libs/AI21/Generated/AI21.DatasetsClient.g.cs b/src/libs/AI21/Generated/AI21.DatasetsClient.g.cs index 28926d2..bf56e3c 100644 --- a/src/libs/AI21/Generated/AI21.DatasetsClient.g.cs +++ b/src/libs/AI21/Generated/AI21.DatasetsClient.g.cs @@ -31,6 +31,8 @@ public DatasetsClient( { _httpClient = httpClient ?? new global::System.Net.Http.HttpClient(); _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl); + + Initialized(_httpClient); } /// @@ -39,6 +41,8 @@ public void Dispose() _httpClient.Dispose(); } + partial void Initialized( + global::System.Net.Http.HttpClient client); partial void PrepareArguments( global::System.Net.Http.HttpClient client); partial void PrepareRequest( diff --git a/src/libs/AI21/Generated/AI21.GrammaticalErrorCorrectionsClient.g.cs b/src/libs/AI21/Generated/AI21.GrammaticalErrorCorrectionsClient.g.cs index 4ee63eb..a4a55e0 100644 --- a/src/libs/AI21/Generated/AI21.GrammaticalErrorCorrectionsClient.g.cs +++ b/src/libs/AI21/Generated/AI21.GrammaticalErrorCorrectionsClient.g.cs @@ -31,6 +31,8 @@ public GrammaticalErrorCorrectionsClient( { _httpClient = httpClient ?? new global::System.Net.Http.HttpClient(); _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl); + + Initialized(_httpClient); } /// @@ -39,6 +41,8 @@ public void Dispose() _httpClient.Dispose(); } + partial void Initialized( + global::System.Net.Http.HttpClient client); partial void PrepareArguments( global::System.Net.Http.HttpClient client); partial void PrepareRequest( diff --git a/src/libs/AI21/Generated/AI21.JambaCompleteClient.g.cs b/src/libs/AI21/Generated/AI21.JambaCompleteClient.g.cs index b23db64..612cbb7 100644 --- a/src/libs/AI21/Generated/AI21.JambaCompleteClient.g.cs +++ b/src/libs/AI21/Generated/AI21.JambaCompleteClient.g.cs @@ -31,6 +31,8 @@ public JambaCompleteClient( { _httpClient = httpClient ?? new global::System.Net.Http.HttpClient(); _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl); + + Initialized(_httpClient); } /// @@ -39,6 +41,8 @@ public void Dispose() _httpClient.Dispose(); } + partial void Initialized( + global::System.Net.Http.HttpClient client); partial void PrepareArguments( global::System.Net.Http.HttpClient client); partial void PrepareRequest( diff --git a/src/libs/AI21/Generated/AI21.LibraryManagementClient.g.cs b/src/libs/AI21/Generated/AI21.LibraryManagementClient.g.cs index c2caf39..735328a 100644 --- a/src/libs/AI21/Generated/AI21.LibraryManagementClient.g.cs +++ b/src/libs/AI21/Generated/AI21.LibraryManagementClient.g.cs @@ -31,6 +31,8 @@ public LibraryManagementClient( { _httpClient = httpClient ?? new global::System.Net.Http.HttpClient(); _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl); + + Initialized(_httpClient); } /// @@ -39,6 +41,8 @@ public void Dispose() _httpClient.Dispose(); } + partial void Initialized( + global::System.Net.Http.HttpClient client); partial void PrepareArguments( global::System.Net.Http.HttpClient client); partial void PrepareRequest( diff --git a/src/libs/AI21/Generated/AI21.ParaphraseClient.g.cs b/src/libs/AI21/Generated/AI21.ParaphraseClient.g.cs index c285b78..7b83ace 100644 --- a/src/libs/AI21/Generated/AI21.ParaphraseClient.g.cs +++ b/src/libs/AI21/Generated/AI21.ParaphraseClient.g.cs @@ -31,6 +31,8 @@ public ParaphraseClient( { _httpClient = httpClient ?? new global::System.Net.Http.HttpClient(); _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl); + + Initialized(_httpClient); } /// @@ -39,6 +41,8 @@ public void Dispose() _httpClient.Dispose(); } + partial void Initialized( + global::System.Net.Http.HttpClient client); partial void PrepareArguments( global::System.Net.Http.HttpClient client); partial void PrepareRequest( diff --git a/src/libs/AI21/Generated/AI21.RAGEngineClient.g.cs b/src/libs/AI21/Generated/AI21.RAGEngineClient.g.cs index ca0b412..4c50957 100644 --- a/src/libs/AI21/Generated/AI21.RAGEngineClient.g.cs +++ b/src/libs/AI21/Generated/AI21.RAGEngineClient.g.cs @@ -31,6 +31,8 @@ public RAGEngineClient( { _httpClient = httpClient ?? new global::System.Net.Http.HttpClient(); _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl); + + Initialized(_httpClient); } /// @@ -39,6 +41,8 @@ public void Dispose() _httpClient.Dispose(); } + partial void Initialized( + global::System.Net.Http.HttpClient client); partial void PrepareArguments( global::System.Net.Http.HttpClient client); partial void PrepareRequest( diff --git a/src/libs/AI21/Generated/AI21.SegmentationClient.g.cs b/src/libs/AI21/Generated/AI21.SegmentationClient.g.cs index 725f493..4a4b434 100644 --- a/src/libs/AI21/Generated/AI21.SegmentationClient.g.cs +++ b/src/libs/AI21/Generated/AI21.SegmentationClient.g.cs @@ -31,6 +31,8 @@ public SegmentationClient( { _httpClient = httpClient ?? new global::System.Net.Http.HttpClient(); _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl); + + Initialized(_httpClient); } /// @@ -39,6 +41,8 @@ public void Dispose() _httpClient.Dispose(); } + partial void Initialized( + global::System.Net.Http.HttpClient client); partial void PrepareArguments( global::System.Net.Http.HttpClient client); partial void PrepareRequest( diff --git a/src/libs/AI21/Generated/AI21.SummarizeClient.g.cs b/src/libs/AI21/Generated/AI21.SummarizeClient.g.cs index c1466f2..82c26bd 100644 --- a/src/libs/AI21/Generated/AI21.SummarizeClient.g.cs +++ b/src/libs/AI21/Generated/AI21.SummarizeClient.g.cs @@ -31,6 +31,8 @@ public SummarizeClient( { _httpClient = httpClient ?? new global::System.Net.Http.HttpClient(); _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl); + + Initialized(_httpClient); } /// @@ -39,6 +41,8 @@ public void Dispose() _httpClient.Dispose(); } + partial void Initialized( + global::System.Net.Http.HttpClient client); partial void PrepareArguments( global::System.Net.Http.HttpClient client); partial void PrepareRequest( diff --git a/src/libs/AI21/Generated/AI21.TokenizeClient.g.cs b/src/libs/AI21/Generated/AI21.TokenizeClient.g.cs index b1ad795..3a1065b 100644 --- a/src/libs/AI21/Generated/AI21.TokenizeClient.g.cs +++ b/src/libs/AI21/Generated/AI21.TokenizeClient.g.cs @@ -31,6 +31,8 @@ public TokenizeClient( { _httpClient = httpClient ?? new global::System.Net.Http.HttpClient(); _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl); + + Initialized(_httpClient); } /// @@ -39,6 +41,8 @@ public void Dispose() _httpClient.Dispose(); } + partial void Initialized( + global::System.Net.Http.HttpClient client); partial void PrepareArguments( global::System.Net.Http.HttpClient client); partial void PrepareRequest(