diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelARun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelARun.g.cs
index 81b9da77..5d6cde31 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelARun.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelARun.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AssistantsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CancelARunSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CancelARunSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CancelARunSecurityRequirement0,
+ };
partial void PrepareCancelARunArguments(
global::System.Net.Http.HttpClient httpClient,
ref string threadId,
@@ -42,9 +61,15 @@ partial void ProcessCancelARunResponseContent(
threadId: ref threadId,
runId: ref runId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CancelARunSecurityRequirements,
+ operationName: "CancelARunAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/threads/{threadId}/runs/{runId}/cancel",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -54,7 +79,7 @@ partial void ProcessCancelARunResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateMessage.g.cs
index 03a48693..2a58a52a 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateMessage.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateMessage.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AssistantsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateMessageSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateMessageSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateMessageSecurityRequirement0,
+ };
partial void PrepareCreateMessageArguments(
global::System.Net.Http.HttpClient httpClient,
ref string threadId,
@@ -45,9 +64,15 @@ partial void ProcessCreateMessageResponseContent(
threadId: ref threadId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateMessageSecurityRequirements,
+ operationName: "CreateMessageAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/threads/{threadId}/messages",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -57,7 +82,7 @@ partial void ProcessCreateMessageResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRun.g.cs
index e2b58216..1a1802ac 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRun.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRun.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AssistantsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateRunSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateRunSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateRunSecurityRequirement0,
+ };
partial void PrepareCreateRunArguments(
global::System.Net.Http.HttpClient httpClient,
ref string threadId,
@@ -50,12 +69,18 @@ partial void ProcessCreateRunResponseContent(
include: include,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateRunSecurityRequirements,
+ operationName: "CreateRunAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/threads/{threadId}/runs",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("include[]", include, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -65,7 +90,7 @@ partial void ProcessCreateRunResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThread.g.cs
index af0cc00c..5a8f9f6b 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThread.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThread.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AssistantsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateThreadSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateThreadSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateThreadSecurityRequirement0,
+ };
partial void PrepareCreateThreadArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateThreadRequest request);
@@ -40,9 +59,15 @@ partial void ProcessCreateThreadResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateThreadSecurityRequirements,
+ operationName: "CreateThreadAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/threads",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCreateThreadResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRun.g.cs
index ed1d5d9e..0003a0d4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRun.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRun.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AssistantsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateThreadAndRunSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateThreadAndRunSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateThreadAndRunSecurityRequirement0,
+ };
partial void PrepareCreateThreadAndRunArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateThreadAndRunRequest request);
@@ -40,9 +59,15 @@ partial void ProcessCreateThreadAndRunResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateThreadAndRunSecurityRequirements,
+ operationName: "CreateThreadAndRunAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/threads/runs",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCreateThreadAndRunResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteMessage.g.cs
index b4c1b5b0..1dbced9b 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteMessage.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteMessage.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AssistantsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteMessageSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteMessageSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteMessageSecurityRequirement0,
+ };
partial void PrepareDeleteMessageArguments(
global::System.Net.Http.HttpClient httpClient,
ref string threadId,
@@ -42,9 +61,15 @@ partial void ProcessDeleteMessageResponseContent(
threadId: ref threadId,
messageId: ref messageId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteMessageSecurityRequirements,
+ operationName: "DeleteMessageAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/threads/{threadId}/messages/{messageId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -54,7 +79,7 @@ partial void ProcessDeleteMessageResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteThread.g.cs
index 7ea7d5cd..17cb4cea 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteThread.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteThread.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AssistantsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteThreadSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteThreadSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteThreadSecurityRequirement0,
+ };
partial void PrepareDeleteThreadArguments(
global::System.Net.Http.HttpClient httpClient,
ref string threadId);
@@ -37,9 +56,15 @@ partial void ProcessDeleteThreadResponseContent(
httpClient: HttpClient,
threadId: ref threadId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteThreadSecurityRequirements,
+ operationName: "DeleteThreadAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/threads/{threadId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -49,7 +74,7 @@ partial void ProcessDeleteThreadResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListMessages.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListMessages.g.cs
index 71150281..751347f3 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListMessages.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListMessages.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AssistantsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListMessagesSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListMessagesSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListMessagesSecurityRequirement0,
+ };
partial void PrepareListMessagesArguments(
global::System.Net.Http.HttpClient httpClient,
ref string threadId,
@@ -66,6 +85,12 @@ partial void ProcessListMessagesResponseContent(
before: ref before,
runId: ref runId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListMessagesSecurityRequirements,
+ operationName: "ListMessagesAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/threads/{threadId}/messages",
baseUri: HttpClient.BaseAddress);
@@ -75,7 +100,7 @@ partial void ProcessListMessagesResponseContent(
.AddOptionalParameter("after", after)
.AddOptionalParameter("before", before)
.AddOptionalParameter("run_id", runId)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -85,7 +110,7 @@ partial void ProcessListMessagesResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRunSteps.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRunSteps.g.cs
index a549dbd0..d56a48b0 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRunSteps.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRunSteps.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AssistantsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListRunStepsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListRunStepsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListRunStepsSecurityRequirement0,
+ };
partial void PrepareListRunStepsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string threadId,
@@ -71,6 +90,12 @@ partial void ProcessListRunStepsResponseContent(
before: ref before,
include: include);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListRunStepsSecurityRequirements,
+ operationName: "ListRunStepsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/threads/{threadId}/runs/{runId}/steps",
baseUri: HttpClient.BaseAddress);
@@ -80,7 +105,7 @@ partial void ProcessListRunStepsResponseContent(
.AddOptionalParameter("after", after)
.AddOptionalParameter("before", before)
.AddOptionalParameter("include[]", include, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -90,7 +115,7 @@ partial void ProcessListRunStepsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRuns.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRuns.g.cs
index e232953e..af8183d9 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRuns.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ListRuns.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AssistantsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListRunsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListRunsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListRunsSecurityRequirement0,
+ };
partial void PrepareListRunsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string threadId,
@@ -61,6 +80,12 @@ partial void ProcessListRunsResponseContent(
after: ref after,
before: ref before);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListRunsSecurityRequirements,
+ operationName: "ListRunsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/threads/{threadId}/runs",
baseUri: HttpClient.BaseAddress);
@@ -69,7 +94,7 @@ partial void ProcessListRunsResponseContent(
.AddOptionalParameter("order", order?.ToValueString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("before", before)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -79,7 +104,7 @@ partial void ProcessListRunsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyMessage.g.cs
index 4bd99142..897d27ee 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyMessage.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyMessage.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AssistantsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ModifyMessageSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ModifyMessageSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ModifyMessageSecurityRequirement0,
+ };
partial void PrepareModifyMessageArguments(
global::System.Net.Http.HttpClient httpClient,
ref string threadId,
@@ -50,9 +69,15 @@ partial void ProcessModifyMessageResponseContent(
messageId: ref messageId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ModifyMessageSecurityRequirements,
+ operationName: "ModifyMessageAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/threads/{threadId}/messages/{messageId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -62,7 +87,7 @@ partial void ProcessModifyMessageResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyRun.g.cs
index 14d7f144..ec7d74de 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyRun.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyRun.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AssistantsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ModifyRunSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ModifyRunSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ModifyRunSecurityRequirement0,
+ };
partial void PrepareModifyRunArguments(
global::System.Net.Http.HttpClient httpClient,
ref string threadId,
@@ -50,9 +69,15 @@ partial void ProcessModifyRunResponseContent(
runId: ref runId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ModifyRunSecurityRequirements,
+ operationName: "ModifyRunAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/threads/{threadId}/runs/{runId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -62,7 +87,7 @@ partial void ProcessModifyRunResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyThread.g.cs
index 251ef825..52f0466c 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyThread.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.ModifyThread.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AssistantsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ModifyThreadSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ModifyThreadSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ModifyThreadSecurityRequirement0,
+ };
partial void PrepareModifyThreadArguments(
global::System.Net.Http.HttpClient httpClient,
ref string threadId,
@@ -45,9 +64,15 @@ partial void ProcessModifyThreadResponseContent(
threadId: ref threadId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ModifyThreadSecurityRequirements,
+ operationName: "ModifyThreadAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/threads/{threadId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -57,7 +82,7 @@ partial void ProcessModifyThreadResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveMessage.g.cs
index 982c3362..0d2532e0 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveMessage.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveMessage.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AssistantsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveMessageSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveMessageSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveMessageSecurityRequirement0,
+ };
partial void PrepareRetrieveMessageArguments(
global::System.Net.Http.HttpClient httpClient,
ref string threadId,
@@ -42,9 +61,15 @@ partial void ProcessRetrieveMessageResponseContent(
threadId: ref threadId,
messageId: ref messageId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveMessageSecurityRequirements,
+ operationName: "RetrieveMessageAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/threads/{threadId}/messages/{messageId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -54,7 +79,7 @@ partial void ProcessRetrieveMessageResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRun.g.cs
index 41de1927..ff5c258f 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRun.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRun.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AssistantsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveRunSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveRunSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveRunSecurityRequirement0,
+ };
partial void PrepareRetrieveRunArguments(
global::System.Net.Http.HttpClient httpClient,
ref string threadId,
@@ -42,9 +61,15 @@ partial void ProcessRetrieveRunResponseContent(
threadId: ref threadId,
runId: ref runId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveRunSecurityRequirements,
+ operationName: "RetrieveRunAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/threads/{threadId}/runs/{runId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -54,7 +79,7 @@ partial void ProcessRetrieveRunResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRunStep.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRunStep.g.cs
index 5a0b3ddb..ae1c590b 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRunStep.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveRunStep.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AssistantsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveRunStepSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveRunStepSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveRunStepSecurityRequirement0,
+ };
partial void PrepareRetrieveRunStepArguments(
global::System.Net.Http.HttpClient httpClient,
ref string threadId,
@@ -52,12 +71,18 @@ partial void ProcessRetrieveRunStepResponseContent(
stepId: ref stepId,
include: include);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveRunStepSecurityRequirements,
+ operationName: "RetrieveRunStepAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/threads/{threadId}/runs/{runId}/steps/{stepId}",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("include[]", include, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -67,7 +92,7 @@ partial void ProcessRetrieveRunStepResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveThread.g.cs
index 05cb1af0..dc35b8af 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveThread.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.RetrieveThread.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AssistantsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveThreadSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveThreadSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveThreadSecurityRequirement0,
+ };
partial void PrepareRetrieveThreadArguments(
global::System.Net.Http.HttpClient httpClient,
ref string threadId);
@@ -37,9 +56,15 @@ partial void ProcessRetrieveThreadResponseContent(
httpClient: HttpClient,
threadId: ref threadId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveThreadSecurityRequirements,
+ operationName: "RetrieveThreadAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/threads/{threadId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -49,7 +74,7 @@ partial void ProcessRetrieveThreadResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOutputsToRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOutputsToRun.g.cs
index ded65c00..a169a124 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOutputsToRun.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOutputsToRun.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AssistantsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_SubmitToolOutputsToRunSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_SubmitToolOutputsToRunSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_SubmitToolOutputsToRunSecurityRequirement0,
+ };
partial void PrepareSubmitToolOutputsToRunArguments(
global::System.Net.Http.HttpClient httpClient,
ref string threadId,
@@ -50,9 +69,15 @@ partial void ProcessSubmitToolOutputsToRunResponseContent(
runId: ref runId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_SubmitToolOutputsToRunSecurityRequirements,
+ operationName: "SubmitToolOutputsToRunAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/threads/{threadId}/runs/{runId}/submit_tool_outputs",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -62,7 +87,7 @@ partial void ProcessSubmitToolOutputsToRunResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs
index 7ba53ce0..0e5bf56f 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AudioClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateSpeechSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateSpeechSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateSpeechSecurityRequirement0,
+ };
partial void PrepareCreateSpeechArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateSpeechRequest request);
@@ -36,9 +55,15 @@ partial void ProcessCreateSpeechResponse(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateSpeechSecurityRequirements,
+ operationName: "CreateSpeechAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/audio/speech",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -48,7 +73,7 @@ partial void ProcessCreateSpeechResponse(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs
index 6630b944..ff0aaa5f 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AudioClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateTranscriptionSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateTranscriptionSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateTranscriptionSecurityRequirement0,
+ };
partial void PrepareCreateTranscriptionArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateTranscriptionRequest request);
@@ -58,9 +77,15 @@ partial void ProcessCreateTranscriptionResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateTranscriptionSecurityRequirements,
+ operationName: "CreateTranscriptionAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/audio/transcriptions",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -70,7 +95,7 @@ partial void ProcessCreateTranscriptionResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsStream.g.cs
index c2610081..07e07734 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsStream.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsStream.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AudioClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateTranscriptionAsStreamSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateTranscriptionAsStreamSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateTranscriptionAsStreamSecurityRequirement0,
+ };
partial void PrepareCreateTranscriptionAsStreamArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateTranscriptionRequest request);
@@ -53,9 +72,15 @@ partial void ProcessCreateTranscriptionAsStreamResponse(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateTranscriptionAsStreamSecurityRequirements,
+ operationName: "CreateTranscriptionAsStreamAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/audio/transcriptions",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -65,7 +90,7 @@ partial void ProcessCreateTranscriptionAsStreamResponse(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs
index 0eb34ecd..ec320bc0 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslation.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AudioClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateTranslationSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateTranslationSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateTranslationSecurityRequirement0,
+ };
partial void PrepareCreateTranslationArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateTranslationRequest request);
@@ -40,9 +59,15 @@ partial void ProcessCreateTranslationResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateTranslationSecurityRequirements,
+ operationName: "CreateTranslationAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/audio/translations",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCreateTranslationResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoice.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoice.g.cs
index 11482e3c..c4121ca3 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoice.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoice.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AudioClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateVoiceSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateVoiceSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateVoiceSecurityRequirement0,
+ };
partial void PrepareCreateVoiceArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateVoiceRequest request);
@@ -42,9 +61,15 @@ partial void ProcessCreateVoiceResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateVoiceSecurityRequirements,
+ operationName: "CreateVoiceAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/audio/voices",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -54,7 +79,7 @@ partial void ProcessCreateVoiceResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoiceConsent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoiceConsent.g.cs
index 3319c3c3..22f96105 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoiceConsent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateVoiceConsent.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AudioClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateVoiceConsentSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateVoiceConsentSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateVoiceConsentSecurityRequirement0,
+ };
partial void PrepareCreateVoiceConsentArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateVoiceConsentRequest request);
@@ -42,9 +61,15 @@ partial void ProcessCreateVoiceConsentResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateVoiceConsentSecurityRequirements,
+ operationName: "CreateVoiceConsentAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/audio/voice_consents",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -54,7 +79,7 @@ partial void ProcessCreateVoiceConsentResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.DeleteVoiceConsent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.DeleteVoiceConsent.g.cs
index 24810a8b..c48293e2 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.DeleteVoiceConsent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.DeleteVoiceConsent.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AudioClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteVoiceConsentSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteVoiceConsentSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteVoiceConsentSecurityRequirement0,
+ };
partial void PrepareDeleteVoiceConsentArguments(
global::System.Net.Http.HttpClient httpClient,
ref string consentId);
@@ -39,9 +58,15 @@ partial void ProcessDeleteVoiceConsentResponseContent(
httpClient: HttpClient,
consentId: ref consentId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteVoiceConsentSecurityRequirements,
+ operationName: "DeleteVoiceConsentAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/audio/voice_consents/{consentId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -51,7 +76,7 @@ partial void ProcessDeleteVoiceConsentResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.ListVoiceConsents.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.ListVoiceConsents.g.cs
index bd642e22..99a6b1f4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.ListVoiceConsents.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.ListVoiceConsents.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AudioClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListVoiceConsentsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListVoiceConsentsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListVoiceConsentsSecurityRequirement0,
+ };
partial void PrepareListVoiceConsentsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string? after,
@@ -46,13 +65,19 @@ partial void ProcessListVoiceConsentsResponseContent(
after: ref after,
limit: ref limit);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListVoiceConsentsSecurityRequirements,
+ operationName: "ListVoiceConsentsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/audio/voice_consents",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("after", after)
.AddOptionalParameter("limit", limit?.ToString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -62,7 +87,7 @@ partial void ProcessListVoiceConsentsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.RetrieveVoiceConsent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.RetrieveVoiceConsent.g.cs
index fc696f5c..82d4f802 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.RetrieveVoiceConsent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.RetrieveVoiceConsent.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AudioClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveVoiceConsentSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveVoiceConsentSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveVoiceConsentSecurityRequirement0,
+ };
partial void PrepareRetrieveVoiceConsentArguments(
global::System.Net.Http.HttpClient httpClient,
ref string consentId);
@@ -39,9 +58,15 @@ partial void ProcessRetrieveVoiceConsentResponseContent(
httpClient: HttpClient,
consentId: ref consentId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveVoiceConsentSecurityRequirements,
+ operationName: "RetrieveVoiceConsentAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/audio/voice_consents/{consentId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -51,7 +76,7 @@ partial void ProcessRetrieveVoiceConsentResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.UpdateVoiceConsent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.UpdateVoiceConsent.g.cs
index da60fced..fce30435 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.UpdateVoiceConsent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.UpdateVoiceConsent.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AudioClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_UpdateVoiceConsentSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_UpdateVoiceConsentSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_UpdateVoiceConsentSecurityRequirement0,
+ };
partial void PrepareUpdateVoiceConsentArguments(
global::System.Net.Http.HttpClient httpClient,
ref string consentId,
@@ -47,9 +66,15 @@ partial void ProcessUpdateVoiceConsentResponseContent(
consentId: ref consentId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UpdateVoiceConsentSecurityRequirements,
+ operationName: "UpdateVoiceConsentAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/audio/voice_consents/{consentId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -59,7 +84,7 @@ partial void ProcessUpdateVoiceConsentResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs
index 44cefa6a..59073765 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogsClient.ListAuditLogs.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class AuditLogsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListAuditLogsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListAuditLogsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListAuditLogsSecurityRequirement0,
+ };
partial void PrepareListAuditLogsArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.ListAuditLogsEffectiveAt? effectiveAt,
@@ -79,6 +98,12 @@ partial void ProcessListAuditLogsResponseContent(
after: ref after,
before: ref before);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListAuditLogsSecurityRequirements,
+ operationName: "ListAuditLogsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/audit_logs",
baseUri: HttpClient.BaseAddress);
@@ -95,7 +120,7 @@ partial void ProcessListAuditLogsResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("before", before)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -105,7 +130,7 @@ partial void ProcessListAuditLogsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs
index aa1ec067..4f4d676d 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CancelBatch.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class BatchClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CancelBatchSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CancelBatchSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CancelBatchSecurityRequirement0,
+ };
partial void PrepareCancelBatchArguments(
global::System.Net.Http.HttpClient httpClient,
ref string batchId);
@@ -37,9 +56,15 @@ partial void ProcessCancelBatchResponseContent(
httpClient: HttpClient,
batchId: ref batchId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CancelBatchSecurityRequirements,
+ operationName: "CancelBatchAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/batches/{batchId}/cancel",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -49,7 +74,7 @@ partial void ProcessCancelBatchResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs
index 98a2004f..efca08f4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class BatchClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateBatchSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateBatchSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateBatchSecurityRequirement0,
+ };
partial void PrepareCreateBatchArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateBatchRequest request);
@@ -40,9 +59,15 @@ partial void ProcessCreateBatchResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateBatchSecurityRequirements,
+ operationName: "CreateBatchAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/batches",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCreateBatchResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs
index 3d55fda3..325efc0c 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.ListBatches.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class BatchClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListBatchesSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListBatchesSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListBatchesSecurityRequirement0,
+ };
partial void PrepareListBatchesArguments(
global::System.Net.Http.HttpClient httpClient,
ref string? after,
@@ -44,13 +63,19 @@ partial void ProcessListBatchesResponseContent(
after: ref after,
limit: ref limit);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListBatchesSecurityRequirements,
+ operationName: "ListBatchesAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/batches",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("after", after)
.AddOptionalParameter("limit", limit?.ToString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -60,7 +85,7 @@ partial void ProcessListBatchesResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs
index 24df9933..4c9a7e66 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.RetrieveBatch.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class BatchClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveBatchSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveBatchSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveBatchSecurityRequirement0,
+ };
partial void PrepareRetrieveBatchArguments(
global::System.Net.Http.HttpClient httpClient,
ref string batchId);
@@ -37,9 +56,15 @@ partial void ProcessRetrieveBatchResponseContent(
httpClient: HttpClient,
batchId: ref batchId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveBatchSecurityRequirements,
+ operationName: "RetrieveBatchAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/batches/{batchId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -49,7 +74,7 @@ partial void ProcessRetrieveBatchResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForOrganization.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForOrganization.g.cs
index c1674258..a633d7da 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForOrganization.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForOrganization.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class CertificatesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ActivateCertificatesForOrganizationSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ActivateCertificatesForOrganizationSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ActivateCertificatesForOrganizationSecurityRequirement0,
+ };
partial void PrepareActivateCertificatesForOrganizationArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.ToggleCertificatesRequest request);
@@ -41,9 +60,15 @@ partial void ProcessActivateCertificatesForOrganizationResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ActivateCertificatesForOrganizationSecurityRequirements,
+ operationName: "ActivateCertificatesForOrganizationAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/certificates/activate",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -53,7 +78,7 @@ partial void ProcessActivateCertificatesForOrganizationResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForProject.g.cs
index 01094792..cd0dac07 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForProject.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateCertificatesForProject.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class CertificatesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ActivateCertificatesForProjectSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ActivateCertificatesForProjectSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ActivateCertificatesForProjectSecurityRequirement0,
+ };
partial void PrepareActivateCertificatesForProjectArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -46,9 +65,15 @@ partial void ProcessActivateCertificatesForProjectResponseContent(
projectId: ref projectId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ActivateCertificatesForProjectSecurityRequirements,
+ operationName: "ActivateCertificatesForProjectAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/certificates/activate",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -58,7 +83,7 @@ partial void ProcessActivateCertificatesForProjectResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForOrganization.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForOrganization.g.cs
index 48a1a445..334945e2 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForOrganization.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForOrganization.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class CertificatesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeactivateCertificatesForOrganizationSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeactivateCertificatesForOrganizationSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeactivateCertificatesForOrganizationSecurityRequirement0,
+ };
partial void PrepareDeactivateCertificatesForOrganizationArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.ToggleCertificatesRequest request);
@@ -41,9 +60,15 @@ partial void ProcessDeactivateCertificatesForOrganizationResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeactivateCertificatesForOrganizationSecurityRequirements,
+ operationName: "DeactivateCertificatesForOrganizationAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/certificates/deactivate",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -53,7 +78,7 @@ partial void ProcessDeactivateCertificatesForOrganizationResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForProject.g.cs
index 33366ec8..f57f4f18 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForProject.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateCertificatesForProject.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class CertificatesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeactivateCertificatesForProjectSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeactivateCertificatesForProjectSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeactivateCertificatesForProjectSecurityRequirement0,
+ };
partial void PrepareDeactivateCertificatesForProjectArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -46,9 +65,15 @@ partial void ProcessDeactivateCertificatesForProjectResponseContent(
projectId: ref projectId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeactivateCertificatesForProjectSecurityRequirements,
+ operationName: "DeactivateCertificatesForProjectAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/certificates/deactivate",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -58,7 +83,7 @@ partial void ProcessDeactivateCertificatesForProjectResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs
index 062c3397..2c184ce2 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeleteCertificate.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class CertificatesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteCertificateSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteCertificateSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteCertificateSecurityRequirement0,
+ };
partial void PrepareDeleteCertificateArguments(
global::System.Net.Http.HttpClient httpClient,
ref string certificateId);
@@ -38,9 +57,15 @@ partial void ProcessDeleteCertificateResponseContent(
httpClient: HttpClient,
certificateId: ref certificateId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteCertificateSecurityRequirements,
+ operationName: "DeleteCertificateAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/certificates/{certificateId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -50,7 +75,7 @@ partial void ProcessDeleteCertificateResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs
index 550e96da..3e0f23df 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.GetCertificate.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class CertificatesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_GetCertificateSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_GetCertificateSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_GetCertificateSecurityRequirement0,
+ };
partial void PrepareGetCertificateArguments(
global::System.Net.Http.HttpClient httpClient,
ref string certificateId,
@@ -43,12 +62,18 @@ partial void ProcessGetCertificateResponseContent(
certificateId: ref certificateId,
include: include);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetCertificateSecurityRequirements,
+ operationName: "GetCertificateAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/certificates/{certificateId}",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("include", include, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -58,7 +83,7 @@ partial void ProcessGetCertificateResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs
index 7ba1402c..46512b78 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListOrganizationCertificates.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class CertificatesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListOrganizationCertificatesSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListOrganizationCertificatesSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListOrganizationCertificatesSecurityRequirement0,
+ };
partial void PrepareListOrganizationCertificatesArguments(
global::System.Net.Http.HttpClient httpClient,
ref int? limit,
@@ -51,6 +70,12 @@ partial void ProcessListOrganizationCertificatesResponseContent(
after: ref after,
order: ref order);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListOrganizationCertificatesSecurityRequirements,
+ operationName: "ListOrganizationCertificatesAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/certificates",
baseUri: HttpClient.BaseAddress);
@@ -58,7 +83,7 @@ partial void ProcessListOrganizationCertificatesResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("order", order?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -68,7 +93,7 @@ partial void ProcessListOrganizationCertificatesResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs
index dd339511..1dca6ce4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ListProjectCertificates.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class CertificatesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListProjectCertificatesSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListProjectCertificatesSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListProjectCertificatesSecurityRequirement0,
+ };
partial void PrepareListProjectCertificatesArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -56,6 +75,12 @@ partial void ProcessListProjectCertificatesResponseContent(
after: ref after,
order: ref order);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListProjectCertificatesSecurityRequirements,
+ operationName: "ListProjectCertificatesAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/certificates",
baseUri: HttpClient.BaseAddress);
@@ -63,7 +88,7 @@ partial void ProcessListProjectCertificatesResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("order", order?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -73,7 +98,7 @@ partial void ProcessListProjectCertificatesResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs
index 0f231878..363bd26b 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ModifyCertificate.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class CertificatesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ModifyCertificateSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ModifyCertificateSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ModifyCertificateSecurityRequirement0,
+ };
partial void PrepareModifyCertificateArguments(
global::System.Net.Http.HttpClient httpClient,
ref string certificateId,
@@ -45,9 +64,15 @@ partial void ProcessModifyCertificateResponseContent(
certificateId: ref certificateId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ModifyCertificateSecurityRequirements,
+ operationName: "ModifyCertificateAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/certificates/{certificateId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -57,7 +82,7 @@ partial void ProcessModifyCertificateResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs
index dac273df..c15a0ec9 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.UploadCertificate.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class CertificatesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_UploadCertificateSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_UploadCertificateSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_UploadCertificateSecurityRequirement0,
+ };
partial void PrepareUploadCertificateArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.UploadCertificateRequest request);
@@ -41,9 +60,15 @@ partial void ProcessUploadCertificateResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UploadCertificateSecurityRequirements,
+ operationName: "UploadCertificateAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/certificates",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -53,7 +78,7 @@ partial void ProcessUploadCertificateResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs
index 31bb6fc5..64f56519 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletion.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ChatClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateChatCompletionSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateChatCompletionSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateChatCompletionSecurityRequirement0,
+ };
partial void PrepareCreateChatCompletionArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateChatCompletionRequest request);
@@ -51,9 +70,15 @@ partial void ProcessCreateChatCompletionResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateChatCompletionSecurityRequirements,
+ operationName: "CreateChatCompletionAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/chat/completions",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -63,7 +88,7 @@ partial void ProcessCreateChatCompletionResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletionAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletionAsStream.g.cs
index f4854ed0..38964f00 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletionAsStream.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.CreateChatCompletionAsStream.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ChatClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateChatCompletionAsStreamSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateChatCompletionAsStreamSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateChatCompletionAsStreamSecurityRequirement0,
+ };
partial void PrepareCreateChatCompletionAsStreamArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateChatCompletionRequest request);
@@ -46,9 +65,15 @@ partial void ProcessCreateChatCompletionAsStreamResponse(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateChatCompletionAsStreamSecurityRequirements,
+ operationName: "CreateChatCompletionAsStreamAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/chat/completions",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -58,7 +83,7 @@ partial void ProcessCreateChatCompletionAsStreamResponse(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs
index 57895fb2..ef3f6907 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.DeleteChatCompletion.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ChatClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteChatCompletionSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteChatCompletionSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteChatCompletionSecurityRequirement0,
+ };
partial void PrepareDeleteChatCompletionArguments(
global::System.Net.Http.HttpClient httpClient,
ref string completionId);
@@ -38,9 +57,15 @@ partial void ProcessDeleteChatCompletionResponseContent(
httpClient: HttpClient,
completionId: ref completionId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteChatCompletionSecurityRequirements,
+ operationName: "DeleteChatCompletionAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/chat/completions/{completionId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -50,7 +75,7 @@ partial void ProcessDeleteChatCompletionResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs
index adfd922a..f9751309 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletion.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ChatClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_GetChatCompletionSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_GetChatCompletionSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_GetChatCompletionSecurityRequirement0,
+ };
partial void PrepareGetChatCompletionArguments(
global::System.Net.Http.HttpClient httpClient,
ref string completionId);
@@ -38,9 +57,15 @@ partial void ProcessGetChatCompletionResponseContent(
httpClient: HttpClient,
completionId: ref completionId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetChatCompletionSecurityRequirements,
+ operationName: "GetChatCompletionAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/chat/completions/{completionId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -50,7 +75,7 @@ partial void ProcessGetChatCompletionResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatMessages.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatMessages.g.cs
index 9780cf83..46f40231 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatMessages.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatMessages.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ChatClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_GetChatMessagesSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_GetChatMessagesSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_GetChatMessagesSecurityRequirement0,
+ };
partial void PrepareGetChatMessagesArguments(
global::System.Net.Http.HttpClient httpClient,
ref string completionId,
@@ -58,6 +77,12 @@ partial void ProcessGetChatMessagesResponseContent(
limit: ref limit,
order: ref order);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetChatMessagesSecurityRequirements,
+ operationName: "GetChatMessagesAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/chat/completions/{completionId}/messages",
baseUri: HttpClient.BaseAddress);
@@ -65,7 +90,7 @@ partial void ProcessGetChatMessagesResponseContent(
.AddOptionalParameter("after", after)
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("order", order?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -75,7 +100,7 @@ partial void ProcessGetChatMessagesResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs
index 1c400363..0c7631be 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.ListChatCompletions.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ChatClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListChatCompletionsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListChatCompletionsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListChatCompletionsSecurityRequirement0,
+ };
partial void PrepareListChatCompletionsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string? model,
@@ -62,6 +81,12 @@ partial void ProcessListChatCompletionsResponseContent(
limit: ref limit,
order: ref order);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListChatCompletionsSecurityRequirements,
+ operationName: "ListChatCompletionsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/chat/completions",
baseUri: HttpClient.BaseAddress);
@@ -71,7 +96,7 @@ partial void ProcessListChatCompletionsResponseContent(
.AddOptionalParameter("after", after)
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("order", order?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -81,7 +106,7 @@ partial void ProcessListChatCompletionsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs
index fe57d53c..57d2fcf7 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.UpdateChatCompletion.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ChatClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_UpdateChatCompletionSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_UpdateChatCompletionSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_UpdateChatCompletionSecurityRequirement0,
+ };
partial void PrepareUpdateChatCompletionArguments(
global::System.Net.Http.HttpClient httpClient,
ref string completionId,
@@ -47,9 +66,15 @@ partial void ProcessUpdateChatCompletionResponseContent(
completionId: ref completionId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UpdateChatCompletionSecurityRequirements,
+ operationName: "UpdateChatCompletionAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/chat/completions/{completionId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -59,7 +84,7 @@ partial void ProcessUpdateChatCompletionResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs
index 755e6263..0fcd5b39 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CompletionsClient.CreateCompletion.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class CompletionsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateCompletionSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateCompletionSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateCompletionSecurityRequirement0,
+ };
partial void PrepareCreateCompletionArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateCompletionRequest request);
@@ -41,9 +60,15 @@ partial void ProcessCreateCompletionResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateCompletionSecurityRequirements,
+ operationName: "CreateCompletionAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/completions",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -53,7 +78,7 @@ partial void ProcessCreateCompletionResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateAConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateAConversation.g.cs
index 4e112323..7c4a35a7 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateAConversation.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateAConversation.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ConversationsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateAConversationSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateAConversationSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateAConversationSecurityRequirement0,
+ };
partial void PrepareCreateAConversationArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateConversationBody request);
@@ -40,9 +59,15 @@ partial void ProcessCreateAConversationResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateAConversationSecurityRequirements,
+ operationName: "CreateAConversationAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/conversations",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCreateAConversationResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateItems.g.cs
index 4bd1a20f..b3bc6ffc 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateItems.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateItems.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ConversationsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateItemsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateItemsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateItemsSecurityRequirement0,
+ };
partial void PrepareCreateItemsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string conversationId,
@@ -52,12 +71,18 @@ partial void ProcessCreateItemsResponseContent(
include: include,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateItemsSecurityRequirements,
+ operationName: "CreateItemsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/conversations/{conversationId}/items",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("include", include, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -67,7 +92,7 @@ partial void ProcessCreateItemsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAConversation.g.cs
index db1bff46..18b44cab 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAConversation.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAConversation.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ConversationsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteAConversationSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteAConversationSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteAConversationSecurityRequirement0,
+ };
partial void PrepareDeleteAConversationArguments(
global::System.Net.Http.HttpClient httpClient,
ref string conversationId);
@@ -39,9 +58,15 @@ partial void ProcessDeleteAConversationResponseContent(
httpClient: HttpClient,
conversationId: ref conversationId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteAConversationSecurityRequirements,
+ operationName: "DeleteAConversationAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/conversations/{conversationId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -51,7 +76,7 @@ partial void ProcessDeleteAConversationResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAnItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAnItem.g.cs
index 597c9c5c..c8956786 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAnItem.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteAnItem.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ConversationsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteAnItemSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteAnItemSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteAnItemSecurityRequirement0,
+ };
partial void PrepareDeleteAnItemArguments(
global::System.Net.Http.HttpClient httpClient,
ref string conversationId,
@@ -46,9 +65,15 @@ partial void ProcessDeleteAnItemResponseContent(
conversationId: ref conversationId,
itemId: ref itemId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteAnItemSecurityRequirements,
+ operationName: "DeleteAnItemAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/conversations/{conversationId}/items/{itemId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -58,7 +83,7 @@ partial void ProcessDeleteAnItemResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListItems.g.cs
index 1a80d229..96e6141c 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListItems.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListItems.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ConversationsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListItemsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListItemsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListItemsSecurityRequirement0,
+ };
partial void PrepareListItemsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string conversationId,
@@ -61,6 +80,12 @@ partial void ProcessListItemsResponseContent(
after: ref after,
include: include);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListItemsSecurityRequirements,
+ operationName: "ListItemsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/conversations/{conversationId}/items",
baseUri: HttpClient.BaseAddress);
@@ -69,7 +94,7 @@ partial void ProcessListItemsResponseContent(
.AddOptionalParameter("order", order?.ToValueString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("include", include, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -79,7 +104,7 @@ partial void ProcessListItemsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAConversation.g.cs
index ef7c512f..1e5c7979 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAConversation.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAConversation.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ConversationsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveAConversationSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveAConversationSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveAConversationSecurityRequirement0,
+ };
partial void PrepareRetrieveAConversationArguments(
global::System.Net.Http.HttpClient httpClient,
ref string conversationId);
@@ -39,9 +58,15 @@ partial void ProcessRetrieveAConversationResponseContent(
httpClient: HttpClient,
conversationId: ref conversationId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveAConversationSecurityRequirements,
+ operationName: "RetrieveAConversationAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/conversations/{conversationId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -51,7 +76,7 @@ partial void ProcessRetrieveAConversationResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAnItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAnItem.g.cs
index 6ccdc8e8..b1ce42b4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAnItem.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.RetrieveAnItem.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ConversationsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveAnItemSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveAnItemSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveAnItemSecurityRequirement0,
+ };
partial void PrepareRetrieveAnItemArguments(
global::System.Net.Http.HttpClient httpClient,
ref string conversationId,
@@ -51,12 +70,18 @@ partial void ProcessRetrieveAnItemResponseContent(
itemId: ref itemId,
include: include);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveAnItemSecurityRequirements,
+ operationName: "RetrieveAnItemAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/conversations/{conversationId}/items/{itemId}",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("include", include, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -66,7 +91,7 @@ partial void ProcessRetrieveAnItemResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateAConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateAConversation.g.cs
index bf97ca38..416efd72 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateAConversation.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateAConversation.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ConversationsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_UpdateAConversationSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_UpdateAConversationSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_UpdateAConversationSecurityRequirement0,
+ };
partial void PrepareUpdateAConversationArguments(
global::System.Net.Http.HttpClient httpClient,
ref string conversationId,
@@ -47,9 +66,15 @@ partial void ProcessUpdateAConversationResponseContent(
conversationId: ref conversationId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UpdateAConversationSecurityRequirements,
+ operationName: "UpdateAConversationAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/conversations/{conversationId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -59,7 +84,7 @@ partial void ProcessUpdateAConversationResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbeddings.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbeddings.g.cs
index 67d6692e..c20affdf 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbeddings.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbeddings.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class EmbeddingsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateEmbeddingsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateEmbeddingsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateEmbeddingsSecurityRequirement0,
+ };
partial void PrepareCreateEmbeddingsArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateEmbeddingRequest request);
@@ -40,9 +59,15 @@ partial void ProcessCreateEmbeddingsResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateEmbeddingsSecurityRequirements,
+ operationName: "CreateEmbeddingsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/embeddings",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCreateEmbeddingsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CancelEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CancelEvalRun.g.cs
index f145d47e..6b3d250d 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CancelEvalRun.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CancelEvalRun.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class EvalsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CancelEvalRunSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CancelEvalRunSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CancelEvalRunSecurityRequirement0,
+ };
partial void PrepareCancelEvalRunArguments(
global::System.Net.Http.HttpClient httpClient,
ref string evalId,
@@ -42,9 +61,15 @@ partial void ProcessCancelEvalRunResponseContent(
evalId: ref evalId,
runId: ref runId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CancelEvalRunSecurityRequirements,
+ operationName: "CancelEvalRunAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/evals/{evalId}/runs/{runId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -54,7 +79,7 @@ partial void ProcessCancelEvalRunResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs
index f554900b..0daf504d 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEval.g.cs
@@ -7,6 +7,25 @@ namespace tryAGI.OpenAI
{
public partial class EvalsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateEvalSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateEvalSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateEvalSecurityRequirement0,
+ };
partial void PrepareCreateEvalArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateEvalRequest request);
@@ -44,9 +63,15 @@ partial void ProcessCreateEvalResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateEvalSecurityRequirements,
+ operationName: "CreateEvalAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/evals",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -56,7 +81,7 @@ partial void ProcessCreateEvalResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs
index 2380b553..c4e224a7 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class EvalsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateEvalRunSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateEvalRunSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateEvalRunSecurityRequirement0,
+ };
partial void PrepareCreateEvalRunArguments(
global::System.Net.Http.HttpClient httpClient,
ref string evalId,
@@ -45,9 +64,15 @@ partial void ProcessCreateEvalRunResponseContent(
evalId: ref evalId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateEvalRunSecurityRequirements,
+ operationName: "CreateEvalRunAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/evals/{evalId}/runs",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -57,7 +82,7 @@ partial void ProcessCreateEvalRunResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteAnEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteAnEval.g.cs
index f09497fa..000e7ec4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteAnEval.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteAnEval.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class EvalsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteAnEvalSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteAnEvalSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteAnEvalSecurityRequirement0,
+ };
partial void PrepareDeleteAnEvalArguments(
global::System.Net.Http.HttpClient httpClient,
ref string evalId);
@@ -37,9 +56,15 @@ partial void ProcessDeleteAnEvalResponseContent(
httpClient: HttpClient,
evalId: ref evalId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteAnEvalSecurityRequirements,
+ operationName: "DeleteAnEvalAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/evals/{evalId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -49,7 +74,7 @@ partial void ProcessDeleteAnEvalResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs
index a4473895..6602bf4f 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class EvalsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteEvalRunSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteEvalRunSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteEvalRunSecurityRequirement0,
+ };
partial void PrepareDeleteEvalRunArguments(
global::System.Net.Http.HttpClient httpClient,
ref string evalId,
@@ -42,9 +61,15 @@ partial void ProcessDeleteEvalRunResponseContent(
evalId: ref evalId,
runId: ref runId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteEvalRunSecurityRequirements,
+ operationName: "DeleteEvalRunAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/evals/{evalId}/runs/{runId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -54,7 +79,7 @@ partial void ProcessDeleteEvalRunResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEval.g.cs
index 7ca7bb3a..1d7f5e8a 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEval.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEval.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class EvalsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_GetAnEvalSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_GetAnEvalSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_GetAnEvalSecurityRequirement0,
+ };
partial void PrepareGetAnEvalArguments(
global::System.Net.Http.HttpClient httpClient,
ref string evalId);
@@ -37,9 +56,15 @@ partial void ProcessGetAnEvalResponseContent(
httpClient: HttpClient,
evalId: ref evalId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetAnEvalSecurityRequirements,
+ operationName: "GetAnEvalAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/evals/{evalId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -49,7 +74,7 @@ partial void ProcessGetAnEvalResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEvalRun.g.cs
index 8067c5ba..343bfbe6 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEvalRun.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnEvalRun.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class EvalsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_GetAnEvalRunSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_GetAnEvalRunSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_GetAnEvalRunSecurityRequirement0,
+ };
partial void PrepareGetAnEvalRunArguments(
global::System.Net.Http.HttpClient httpClient,
ref string evalId,
@@ -42,9 +61,15 @@ partial void ProcessGetAnEvalRunResponseContent(
evalId: ref evalId,
runId: ref runId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetAnEvalRunSecurityRequirements,
+ operationName: "GetAnEvalRunAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/evals/{evalId}/runs/{runId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -54,7 +79,7 @@ partial void ProcessGetAnEvalRunResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnOutputItemOfAnEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnOutputItemOfAnEvalRun.g.cs
index 766f7cfc..40f3a8ee 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnOutputItemOfAnEvalRun.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetAnOutputItemOfAnEvalRun.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class EvalsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_GetAnOutputItemOfAnEvalRunSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_GetAnOutputItemOfAnEvalRunSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_GetAnOutputItemOfAnEvalRunSecurityRequirement0,
+ };
partial void PrepareGetAnOutputItemOfAnEvalRunArguments(
global::System.Net.Http.HttpClient httpClient,
ref string evalId,
@@ -47,9 +66,15 @@ partial void ProcessGetAnOutputItemOfAnEvalRunResponseContent(
runId: ref runId,
outputItemId: ref outputItemId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetAnOutputItemOfAnEvalRunSecurityRequirements,
+ operationName: "GetAnOutputItemOfAnEvalRunAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/evals/{evalId}/runs/{runId}/output_items/{outputItemId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -59,7 +84,7 @@ partial void ProcessGetAnOutputItemOfAnEvalRunResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs
index 62d249a9..1c8d1dcd 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItems.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class EvalsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_GetEvalRunOutputItemsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_GetEvalRunOutputItemsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_GetEvalRunOutputItemsSecurityRequirement0,
+ };
partial void PrepareGetEvalRunOutputItemsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string evalId,
@@ -66,6 +85,12 @@ partial void ProcessGetEvalRunOutputItemsResponseContent(
status: ref status,
order: ref order);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetEvalRunOutputItemsSecurityRequirements,
+ operationName: "GetEvalRunOutputItemsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/evals/{evalId}/runs/{runId}/output_items",
baseUri: HttpClient.BaseAddress);
@@ -74,7 +99,7 @@ partial void ProcessGetEvalRunOutputItemsResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("status", status?.ToValueString())
.AddOptionalParameter("order", order?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -84,7 +109,7 @@ partial void ProcessGetEvalRunOutputItemsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs
index f8cdb148..06792b7c 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class EvalsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_GetEvalRunsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_GetEvalRunsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_GetEvalRunsSecurityRequirement0,
+ };
partial void PrepareGetEvalRunsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string evalId,
@@ -61,6 +80,12 @@ partial void ProcessGetEvalRunsResponseContent(
order: ref order,
status: ref status);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetEvalRunsSecurityRequirements,
+ operationName: "GetEvalRunsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/evals/{evalId}/runs",
baseUri: HttpClient.BaseAddress);
@@ -69,7 +94,7 @@ partial void ProcessGetEvalRunsResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("order", order?.ToValueString())
.AddOptionalParameter("status", status?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -79,7 +104,7 @@ partial void ProcessGetEvalRunsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.ListEvals.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.ListEvals.g.cs
index 4017e611..5d5fbc73 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.ListEvals.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.ListEvals.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class EvalsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListEvalsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListEvalsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListEvalsSecurityRequirement0,
+ };
partial void PrepareListEvalsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string? after,
@@ -58,6 +77,12 @@ partial void ProcessListEvalsResponseContent(
order: ref order,
orderBy: ref orderBy);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListEvalsSecurityRequirements,
+ operationName: "ListEvalsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/evals",
baseUri: HttpClient.BaseAddress);
@@ -66,7 +91,7 @@ partial void ProcessListEvalsResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("order", order?.ToValueString())
.AddOptionalParameter("order_by", orderBy?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -76,7 +101,7 @@ partial void ProcessListEvalsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateAnEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateAnEval.g.cs
index 82afe30f..8bd0c1d5 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateAnEval.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateAnEval.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class EvalsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_UpdateAnEvalSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_UpdateAnEvalSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_UpdateAnEvalSecurityRequirement0,
+ };
partial void PrepareUpdateAnEvalArguments(
global::System.Net.Http.HttpClient httpClient,
ref string evalId,
@@ -45,9 +64,15 @@ partial void ProcessUpdateAnEvalResponseContent(
evalId: ref evalId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UpdateAnEvalSecurityRequirements,
+ operationName: "UpdateAnEvalAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/evals/{evalId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -57,7 +82,7 @@ partial void ProcessUpdateAnEvalResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs
index 7ff5a466..af8fa924 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DeleteFile.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class FilesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteFileSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteFileSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteFileSecurityRequirement0,
+ };
partial void PrepareDeleteFileArguments(
global::System.Net.Http.HttpClient httpClient,
ref string fileId);
@@ -37,9 +56,15 @@ partial void ProcessDeleteFileResponseContent(
httpClient: HttpClient,
fileId: ref fileId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteFileSecurityRequirements,
+ operationName: "DeleteFileAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/files/{fileId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -49,7 +74,7 @@ partial void ProcessDeleteFileResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs
index 47491f0f..6e3b28fc 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.ListFiles.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class FilesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListFilesSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListFilesSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListFilesSecurityRequirement0,
+ };
partial void PrepareListFilesArguments(
global::System.Net.Http.HttpClient httpClient,
ref string? purpose,
@@ -56,6 +75,12 @@ partial void ProcessListFilesResponseContent(
order: ref order,
after: ref after);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListFilesSecurityRequirements,
+ operationName: "ListFilesAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/files",
baseUri: HttpClient.BaseAddress);
@@ -64,7 +89,7 @@ partial void ProcessListFilesResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("order", order?.ToValueString())
.AddOptionalParameter("after", after)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -74,7 +99,7 @@ partial void ProcessListFilesResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs
index 518dffe8..a4ad05c4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFile.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class FilesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveFileSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveFileSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveFileSecurityRequirement0,
+ };
partial void PrepareRetrieveFileArguments(
global::System.Net.Http.HttpClient httpClient,
ref string fileId);
@@ -37,9 +56,15 @@ partial void ProcessRetrieveFileResponseContent(
httpClient: HttpClient,
fileId: ref fileId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveFileSecurityRequirements,
+ operationName: "RetrieveFileAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/files/{fileId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -49,7 +74,7 @@ partial void ProcessRetrieveFileResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFileContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFileContent.g.cs
index b555afe3..38f8b5bc 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFileContent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.RetrieveFileContent.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class FilesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveFileContentSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveFileContentSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveFileContentSecurityRequirement0,
+ };
partial void PrepareRetrieveFileContentArguments(
global::System.Net.Http.HttpClient httpClient,
ref string fileId);
@@ -37,9 +56,15 @@ partial void ProcessRetrieveFileContentResponseContent(
httpClient: HttpClient,
fileId: ref fileId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveFileContentSecurityRequirements,
+ operationName: "RetrieveFileContentAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/files/{fileId}/content",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -49,7 +74,7 @@ partial void ProcessRetrieveFileContentResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.UploadFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.UploadFile.g.cs
index 3ae04f15..b39fa2da 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.UploadFile.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.UploadFile.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class FilesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_UploadFileSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_UploadFileSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_UploadFileSecurityRequirement0,
+ };
partial void PrepareUploadFileArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateFileRequest request);
@@ -54,9 +73,15 @@ partial void ProcessUploadFileResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UploadFileSecurityRequirements,
+ operationName: "UploadFileAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/files",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -66,7 +91,7 @@ partial void ProcessUploadFileResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuning.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuning.g.cs
index a645093e..808d7a82 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuning.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuning.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class FineTuningClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CancelFineTuningSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CancelFineTuningSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CancelFineTuningSecurityRequirement0,
+ };
partial void PrepareCancelFineTuningArguments(
global::System.Net.Http.HttpClient httpClient,
ref string fineTuningJobId);
@@ -39,9 +58,15 @@ partial void ProcessCancelFineTuningResponseContent(
httpClient: HttpClient,
fineTuningJobId: ref fineTuningJobId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CancelFineTuningSecurityRequirements,
+ operationName: "CancelFineTuningAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/fine_tuning/jobs/{fineTuningJobId}/cancel",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -51,7 +76,7 @@ partial void ProcessCancelFineTuningResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateCheckpointPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateCheckpointPermissions.g.cs
index f5d3910b..515348ae 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateCheckpointPermissions.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateCheckpointPermissions.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class FineTuningClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateCheckpointPermissionsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateCheckpointPermissionsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateCheckpointPermissionsSecurityRequirement0,
+ };
partial void PrepareCreateCheckpointPermissionsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string fineTunedModelCheckpoint,
@@ -48,9 +67,15 @@ partial void ProcessCreateCheckpointPermissionsResponseContent(
fineTunedModelCheckpoint: ref fineTunedModelCheckpoint,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateCheckpointPermissionsSecurityRequirements,
+ operationName: "CreateCheckpointPermissionsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/fine_tuning/checkpoints/{fineTunedModelCheckpoint}/permissions",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -60,7 +85,7 @@ partial void ProcessCreateCheckpointPermissionsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs
index 2b035003..2e2ec00e 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningJob.g.cs
@@ -7,6 +7,25 @@ namespace tryAGI.OpenAI
{
public partial class FineTuningClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateFineTuningJobSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateFineTuningJobSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateFineTuningJobSecurityRequirement0,
+ };
partial void PrepareCreateFineTuningJobArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateFineTuningJobRequest request);
@@ -44,9 +63,15 @@ partial void ProcessCreateFineTuningJobResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateFineTuningJobSecurityRequirements,
+ operationName: "CreateFineTuningJobAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/fine_tuning/jobs",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -56,7 +81,7 @@ partial void ProcessCreateFineTuningJobResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteCheckpointPermission.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteCheckpointPermission.g.cs
index 92d83ecc..87d3db8d 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteCheckpointPermission.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteCheckpointPermission.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class FineTuningClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteCheckpointPermissionSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteCheckpointPermissionSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteCheckpointPermissionSecurityRequirement0,
+ };
partial void PrepareDeleteCheckpointPermissionArguments(
global::System.Net.Http.HttpClient httpClient,
ref string fineTunedModelCheckpoint,
@@ -47,9 +66,15 @@ partial void ProcessDeleteCheckpointPermissionResponseContent(
fineTunedModelCheckpoint: ref fineTunedModelCheckpoint,
permissionId: ref permissionId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteCheckpointPermissionSecurityRequirements,
+ operationName: "DeleteCheckpointPermissionAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/fine_tuning/checkpoints/{fineTunedModelCheckpoint}/permissions/{permissionId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -59,7 +84,7 @@ partial void ProcessDeleteCheckpointPermissionResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListCheckpointPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListCheckpointPermissions.g.cs
index 517d3443..001b1caf 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListCheckpointPermissions.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListCheckpointPermissions.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class FineTuningClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListCheckpointPermissionsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListCheckpointPermissionsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListCheckpointPermissionsSecurityRequirement0,
+ };
partial void PrepareListCheckpointPermissionsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string fineTunedModelCheckpoint,
@@ -64,6 +83,12 @@ partial void ProcessListCheckpointPermissionsResponseContent(
limit: ref limit,
order: ref order);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListCheckpointPermissionsSecurityRequirements,
+ operationName: "ListCheckpointPermissionsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/fine_tuning/checkpoints/{fineTunedModelCheckpoint}/permissions",
baseUri: HttpClient.BaseAddress);
@@ -72,7 +97,7 @@ partial void ProcessListCheckpointPermissionsResponseContent(
.AddOptionalParameter("after", after)
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("order", order?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -82,7 +107,7 @@ partial void ProcessListCheckpointPermissionsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpoints.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpoints.g.cs
index 85bfc2b4..a2020483 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpoints.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpoints.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class FineTuningClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListFineTuningCheckpointsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListFineTuningCheckpointsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListFineTuningCheckpointsSecurityRequirement0,
+ };
partial void PrepareListFineTuningCheckpointsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string fineTuningJobId,
@@ -51,13 +70,19 @@ partial void ProcessListFineTuningCheckpointsResponseContent(
after: ref after,
limit: ref limit);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListFineTuningCheckpointsSecurityRequirements,
+ operationName: "ListFineTuningCheckpointsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/fine_tuning/jobs/{fineTuningJobId}/checkpoints",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("after", after)
.AddOptionalParameter("limit", limit?.ToString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -67,7 +92,7 @@ partial void ProcessListFineTuningCheckpointsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs
index d4635fdd..86c3410e 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningEvents.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class FineTuningClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListFineTuningEventsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListFineTuningEventsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListFineTuningEventsSecurityRequirement0,
+ };
partial void PrepareListFineTuningEventsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string fineTuningJobId,
@@ -51,13 +70,19 @@ partial void ProcessListFineTuningEventsResponseContent(
after: ref after,
limit: ref limit);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListFineTuningEventsSecurityRequirements,
+ operationName: "ListFineTuningEventsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/fine_tuning/jobs/{fineTuningJobId}/events",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("after", after)
.AddOptionalParameter("limit", limit?.ToString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -67,7 +92,7 @@ partial void ProcessListFineTuningEventsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobs.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobs.g.cs
index b8b35665..9284a0ad 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobs.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobs.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class FineTuningClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListFineTuningJobsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListFineTuningJobsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListFineTuningJobsSecurityRequirement0,
+ };
partial void PrepareListFineTuningJobsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string? after,
@@ -49,6 +68,12 @@ partial void ProcessListFineTuningJobsResponseContent(
limit: ref limit,
metadata: metadata);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListFineTuningJobsSecurityRequirements,
+ operationName: "ListFineTuningJobsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/fine_tuning/jobs",
baseUri: HttpClient.BaseAddress);
@@ -56,7 +81,7 @@ partial void ProcessListFineTuningJobsResponseContent(
.AddOptionalParameter("after", after)
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("metadata", metadata?.ToString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -66,7 +91,7 @@ partial void ProcessListFineTuningJobsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuning.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuning.g.cs
index 1b012683..d75d526e 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuning.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuning.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class FineTuningClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_PauseFineTuningSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_PauseFineTuningSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_PauseFineTuningSecurityRequirement0,
+ };
partial void PreparePauseFineTuningArguments(
global::System.Net.Http.HttpClient httpClient,
ref string fineTuningJobId);
@@ -39,9 +58,15 @@ partial void ProcessPauseFineTuningResponseContent(
httpClient: HttpClient,
fineTuningJobId: ref fineTuningJobId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_PauseFineTuningSecurityRequirements,
+ operationName: "PauseFineTuningAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/fine_tuning/jobs/{fineTuningJobId}/pause",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -51,7 +76,7 @@ partial void ProcessPauseFineTuningResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuning.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuning.g.cs
index 249af772..14896265 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuning.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuning.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class FineTuningClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ResumeFineTuningSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ResumeFineTuningSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ResumeFineTuningSecurityRequirement0,
+ };
partial void PrepareResumeFineTuningArguments(
global::System.Net.Http.HttpClient httpClient,
ref string fineTuningJobId);
@@ -39,9 +58,15 @@ partial void ProcessResumeFineTuningResponseContent(
httpClient: HttpClient,
fineTuningJobId: ref fineTuningJobId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ResumeFineTuningSecurityRequirements,
+ operationName: "ResumeFineTuningAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/fine_tuning/jobs/{fineTuningJobId}/resume",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -51,7 +76,7 @@ partial void ProcessResumeFineTuningResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs
index 226b712b..ca208370 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RetrieveFineTuningJob.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class FineTuningClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveFineTuningJobSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveFineTuningJobSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveFineTuningJobSecurityRequirement0,
+ };
partial void PrepareRetrieveFineTuningJobArguments(
global::System.Net.Http.HttpClient httpClient,
ref string fineTuningJobId);
@@ -40,9 +59,15 @@ partial void ProcessRetrieveFineTuningJobResponseContent(
httpClient: HttpClient,
fineTuningJobId: ref fineTuningJobId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveFineTuningJobSecurityRequirements,
+ operationName: "RetrieveFineTuningJobAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/fine_tuning/jobs/{fineTuningJobId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -52,7 +77,7 @@ partial void ProcessRetrieveFineTuningJobResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs
index 9d1eb207..04379f8a 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.RunGrader.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class FineTuningClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RunGraderSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RunGraderSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RunGraderSecurityRequirement0,
+ };
partial void PrepareRunGraderArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.RunGraderRequest request);
@@ -40,9 +59,15 @@ partial void ProcessRunGraderResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RunGraderSecurityRequirements,
+ operationName: "RunGraderAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/fine_tuning/alpha/graders/run",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessRunGraderResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs
index 9224ed6b..ee5a3c13 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ValidateGrader.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class FineTuningClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ValidateGraderSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ValidateGraderSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ValidateGraderSecurityRequirement0,
+ };
partial void PrepareValidateGraderArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.ValidateGraderRequest request);
@@ -40,9 +59,15 @@ partial void ProcessValidateGraderResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ValidateGraderSecurityRequirements,
+ operationName: "ValidateGraderAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/fine_tuning/alpha/graders/validate",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessValidateGraderResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignOrganizationRoleToGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignOrganizationRoleToGroup.g.cs
index 9e4544bb..896870bb 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignOrganizationRoleToGroup.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignOrganizationRoleToGroup.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class GroupOrganizationRoleAssignmentsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_AssignOrganizationRoleToGroupSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_AssignOrganizationRoleToGroupSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_AssignOrganizationRoleToGroupSecurityRequirement0,
+ };
partial void PrepareAssignOrganizationRoleToGroupArguments(
global::System.Net.Http.HttpClient httpClient,
ref string groupId,
@@ -45,9 +64,15 @@ partial void ProcessAssignOrganizationRoleToGroupResponseContent(
groupId: ref groupId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AssignOrganizationRoleToGroupSecurityRequirements,
+ operationName: "AssignOrganizationRoleToGroupAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/groups/{groupId}/roles",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -57,7 +82,7 @@ partial void ProcessAssignOrganizationRoleToGroupResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupOrganizationRoleAssignments.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupOrganizationRoleAssignments.g.cs
index b16816f4..fe0ae000 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupOrganizationRoleAssignments.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupOrganizationRoleAssignments.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class GroupOrganizationRoleAssignmentsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListGroupOrganizationRoleAssignmentsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListGroupOrganizationRoleAssignmentsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListGroupOrganizationRoleAssignmentsSecurityRequirement0,
+ };
partial void PrepareListGroupOrganizationRoleAssignmentsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string groupId,
@@ -52,6 +71,12 @@ partial void ProcessListGroupOrganizationRoleAssignmentsResponseContent(
after: ref after,
order: ref order);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListGroupOrganizationRoleAssignmentsSecurityRequirements,
+ operationName: "ListGroupOrganizationRoleAssignmentsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/groups/{groupId}/roles",
baseUri: HttpClient.BaseAddress);
@@ -59,7 +84,7 @@ partial void ProcessListGroupOrganizationRoleAssignmentsResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("order", order?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -69,7 +94,7 @@ partial void ProcessListGroupOrganizationRoleAssignmentsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromGroup.g.cs
index f1f710e9..1e9a8a4b 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromGroup.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromGroup.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class GroupOrganizationRoleAssignmentsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_UnassignOrganizationRoleFromGroupSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_UnassignOrganizationRoleFromGroupSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_UnassignOrganizationRoleFromGroupSecurityRequirement0,
+ };
partial void PrepareUnassignOrganizationRoleFromGroupArguments(
global::System.Net.Http.HttpClient httpClient,
ref string groupId,
@@ -42,9 +61,15 @@ partial void ProcessUnassignOrganizationRoleFromGroupResponseContent(
groupId: ref groupId,
roleId: ref roleId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UnassignOrganizationRoleFromGroupSecurityRequirements,
+ operationName: "UnassignOrganizationRoleFromGroupAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/groups/{groupId}/roles/{roleId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -54,7 +79,7 @@ partial void ProcessUnassignOrganizationRoleFromGroupResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.AddGroupUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.AddGroupUser.g.cs
index 14163b74..97f7ce81 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.AddGroupUser.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.AddGroupUser.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class GroupUsersClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_AddGroupUserSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_AddGroupUserSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_AddGroupUserSecurityRequirement0,
+ };
partial void PrepareAddGroupUserArguments(
global::System.Net.Http.HttpClient httpClient,
ref string groupId,
@@ -45,9 +64,15 @@ partial void ProcessAddGroupUserResponseContent(
groupId: ref groupId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AddGroupUserSecurityRequirements,
+ operationName: "AddGroupUserAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/groups/{groupId}/users",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -57,7 +82,7 @@ partial void ProcessAddGroupUserResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.ListGroupUsers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.ListGroupUsers.g.cs
index 85a75dc7..1384a17b 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.ListGroupUsers.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.ListGroupUsers.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class GroupUsersClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListGroupUsersSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListGroupUsersSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListGroupUsersSecurityRequirement0,
+ };
partial void PrepareListGroupUsersArguments(
global::System.Net.Http.HttpClient httpClient,
ref string groupId,
@@ -56,6 +75,12 @@ partial void ProcessListGroupUsersResponseContent(
after: ref after,
order: ref order);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListGroupUsersSecurityRequirements,
+ operationName: "ListGroupUsersAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/groups/{groupId}/users",
baseUri: HttpClient.BaseAddress);
@@ -63,7 +88,7 @@ partial void ProcessListGroupUsersResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("order", order?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -73,7 +98,7 @@ partial void ProcessListGroupUsersResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RemoveGroupUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RemoveGroupUser.g.cs
index 0550097f..47c36e0f 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RemoveGroupUser.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RemoveGroupUser.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class GroupUsersClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RemoveGroupUserSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RemoveGroupUserSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RemoveGroupUserSecurityRequirement0,
+ };
partial void PrepareRemoveGroupUserArguments(
global::System.Net.Http.HttpClient httpClient,
ref string groupId,
@@ -42,9 +61,15 @@ partial void ProcessRemoveGroupUserResponseContent(
groupId: ref groupId,
userId: ref userId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RemoveGroupUserSecurityRequirements,
+ operationName: "RemoveGroupUserAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/groups/{groupId}/users/{userId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -54,7 +79,7 @@ partial void ProcessRemoveGroupUserResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.CreateGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.CreateGroup.g.cs
index 94c290d5..61caf547 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.CreateGroup.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.CreateGroup.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class GroupsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateGroupSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateGroupSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateGroupSecurityRequirement0,
+ };
partial void PrepareCreateGroupArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateGroupBody request);
@@ -40,9 +59,15 @@ partial void ProcessCreateGroupResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateGroupSecurityRequirements,
+ operationName: "CreateGroupAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/groups",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCreateGroupResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.DeleteGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.DeleteGroup.g.cs
index d9a77873..543904e4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.DeleteGroup.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.DeleteGroup.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class GroupsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteGroupSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteGroupSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteGroupSecurityRequirement0,
+ };
partial void PrepareDeleteGroupArguments(
global::System.Net.Http.HttpClient httpClient,
ref string groupId);
@@ -37,9 +56,15 @@ partial void ProcessDeleteGroupResponseContent(
httpClient: HttpClient,
groupId: ref groupId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteGroupSecurityRequirements,
+ operationName: "DeleteGroupAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/groups/{groupId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -49,7 +74,7 @@ partial void ProcessDeleteGroupResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.ListGroups.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.ListGroups.g.cs
index 49303374..fb3f8565 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.ListGroups.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.ListGroups.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class GroupsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListGroupsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListGroupsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListGroupsSecurityRequirement0,
+ };
partial void PrepareListGroupsArguments(
global::System.Net.Http.HttpClient httpClient,
ref int? limit,
@@ -51,6 +70,12 @@ partial void ProcessListGroupsResponseContent(
after: ref after,
order: ref order);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListGroupsSecurityRequirements,
+ operationName: "ListGroupsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/groups",
baseUri: HttpClient.BaseAddress);
@@ -58,7 +83,7 @@ partial void ProcessListGroupsResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("order", order?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -68,7 +93,7 @@ partial void ProcessListGroupsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.UpdateGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.UpdateGroup.g.cs
index ba544ed4..980804ed 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.UpdateGroup.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.UpdateGroup.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class GroupsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_UpdateGroupSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_UpdateGroupSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_UpdateGroupSecurityRequirement0,
+ };
partial void PrepareUpdateGroupArguments(
global::System.Net.Http.HttpClient httpClient,
ref string groupId,
@@ -45,9 +64,15 @@ partial void ProcessUpdateGroupResponseContent(
groupId: ref groupId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UpdateGroupSecurityRequirements,
+ operationName: "UpdateGroupAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/groups/{groupId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -57,7 +82,7 @@ partial void ProcessUpdateGroupResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.Authorizations.Bearer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.Authorizations.Bearer.g.cs
index 5e90941e..0e6a5a80 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.Authorizations.Bearer.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.Authorizations.Bearer.g.cs
@@ -9,6 +9,7 @@ public partial interface IOpenAiClient
/// Authorize using bearer authentication.
///
///
+
public void AuthorizeUsingBearer(
string apiKey);
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs
index cc2fbbf2..0b154532 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ImagesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateImageSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateImageSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateImageSecurityRequirement0,
+ };
partial void PrepareCreateImageArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateImageRequest request);
@@ -57,9 +76,15 @@ partial void ProcessCreateImageResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateImageSecurityRequirements,
+ operationName: "CreateImageAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/images/generations",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -69,7 +94,7 @@ partial void ProcessCreateImageResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageAsStream.g.cs
index a5775f60..4764278f 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageAsStream.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageAsStream.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ImagesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateImageAsStreamSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateImageAsStreamSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateImageAsStreamSecurityRequirement0,
+ };
partial void PrepareCreateImageAsStreamArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateImageRequest request);
@@ -52,9 +71,15 @@ partial void ProcessCreateImageAsStreamResponse(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateImageAsStreamSecurityRequirements,
+ operationName: "CreateImageAsStreamAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/images/generations",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -64,7 +89,7 @@ partial void ProcessCreateImageAsStreamResponse(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs
index b0ca87e4..62b8d0c5 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ImagesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateImageEditSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateImageEditSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateImageEditSecurityRequirement0,
+ };
partial void PrepareCreateImageEditArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateImageEditRequest request);
@@ -63,9 +82,15 @@ partial void ProcessCreateImageEditResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateImageEditSecurityRequirements,
+ operationName: "CreateImageEditAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/images/edits",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -75,7 +100,7 @@ partial void ProcessCreateImageEditResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEditAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEditAsStream.g.cs
index 81c9c2fa..cb179ffa 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEditAsStream.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEditAsStream.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ImagesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateImageEditAsStreamSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateImageEditAsStreamSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateImageEditAsStreamSecurityRequirement0,
+ };
partial void PrepareCreateImageEditAsStreamArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateImageEditRequest request);
@@ -58,9 +77,15 @@ partial void ProcessCreateImageEditAsStreamResponse(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateImageEditAsStreamSecurityRequirements,
+ operationName: "CreateImageEditAsStreamAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/images/edits",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -70,7 +95,7 @@ partial void ProcessCreateImageEditAsStreamResponse(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs
index 82760b64..4230a742 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageVariation.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ImagesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateImageVariationSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateImageVariationSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateImageVariationSecurityRequirement0,
+ };
partial void PrepareCreateImageVariationArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateImageVariationRequest request);
@@ -40,9 +59,15 @@ partial void ProcessCreateImageVariationResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateImageVariationSecurityRequirements,
+ operationName: "CreateImageVariationAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/images/variations",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCreateImageVariationResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.CreateInvite.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.CreateInvite.g.cs
index d32cc529..826d9d46 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.CreateInvite.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.CreateInvite.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class InvitesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateInviteSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateInviteSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateInviteSecurityRequirement0,
+ };
partial void PrepareCreateInviteArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.InviteRequest request);
@@ -40,9 +59,15 @@ partial void ProcessCreateInviteResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateInviteSecurityRequirements,
+ operationName: "CreateInviteAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/invites",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCreateInviteResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.DeleteInvite.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.DeleteInvite.g.cs
index f0098348..cc7ae3c1 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.DeleteInvite.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.DeleteInvite.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class InvitesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteInviteSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteInviteSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteInviteSecurityRequirement0,
+ };
partial void PrepareDeleteInviteArguments(
global::System.Net.Http.HttpClient httpClient,
ref string inviteId);
@@ -37,9 +56,15 @@ partial void ProcessDeleteInviteResponseContent(
httpClient: HttpClient,
inviteId: ref inviteId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteInviteSecurityRequirements,
+ operationName: "DeleteInviteAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/invites/{inviteId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -49,7 +74,7 @@ partial void ProcessDeleteInviteResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs
index 3993455a..e00cf0a3 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.ListInvites.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class InvitesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListInvitesSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListInvitesSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListInvitesSecurityRequirement0,
+ };
partial void PrepareListInvitesArguments(
global::System.Net.Http.HttpClient httpClient,
ref int? limit,
@@ -44,13 +63,19 @@ partial void ProcessListInvitesResponseContent(
limit: ref limit,
after: ref after);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListInvitesSecurityRequirements,
+ operationName: "ListInvitesAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/invites",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("after", after)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -60,7 +85,7 @@ partial void ProcessListInvitesResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs
index 4dd72e14..aeff32e4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.RetrieveInvite.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class InvitesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveInviteSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveInviteSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveInviteSecurityRequirement0,
+ };
partial void PrepareRetrieveInviteArguments(
global::System.Net.Http.HttpClient httpClient,
ref string inviteId);
@@ -37,9 +56,15 @@ partial void ProcessRetrieveInviteResponseContent(
httpClient: HttpClient,
inviteId: ref inviteId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveInviteSecurityRequirements,
+ operationName: "RetrieveInviteAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/invites/{inviteId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -49,7 +74,7 @@ partial void ProcessRetrieveInviteResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteAFineTunedModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteAFineTunedModel.g.cs
index c4b1c220..be441a47 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteAFineTunedModel.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteAFineTunedModel.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ModelsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteAFineTunedModelSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteAFineTunedModelSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteAFineTunedModelSecurityRequirement0,
+ };
partial void PrepareDeleteAFineTunedModelArguments(
global::System.Net.Http.HttpClient httpClient,
ref string model);
@@ -39,9 +58,15 @@ partial void ProcessDeleteAFineTunedModelResponseContent(
httpClient: HttpClient,
model: ref model);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteAFineTunedModelSecurityRequirements,
+ operationName: "DeleteAFineTunedModelAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/models/{model}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -51,7 +76,7 @@ partial void ProcessDeleteAFineTunedModelResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs
index 38002121..95337967 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.ListModels.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ModelsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListModelsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListModelsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListModelsSecurityRequirement0,
+ };
partial void PrepareListModelsArguments(
global::System.Net.Http.HttpClient httpClient);
partial void PrepareListModelsRequest(
@@ -32,9 +51,15 @@ partial void ProcessListModelsResponseContent(
PrepareListModelsArguments(
httpClient: HttpClient);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListModelsSecurityRequirements,
+ operationName: "ListModelsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/models",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -44,7 +69,7 @@ partial void ProcessListModelsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs
index 22b5dfc6..96c06c08 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.RetrieveModel.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ModelsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveModelSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveModelSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveModelSecurityRequirement0,
+ };
partial void PrepareRetrieveModelArguments(
global::System.Net.Http.HttpClient httpClient,
ref string model);
@@ -39,9 +58,15 @@ partial void ProcessRetrieveModelResponseContent(
httpClient: HttpClient,
model: ref model);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveModelSecurityRequirements,
+ operationName: "RetrieveModelAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/models/{model}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -51,7 +76,7 @@ partial void ProcessRetrieveModelResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs
index f9d65bcf..48f64d36 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModerationsClient.CreateModeration.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ModerationsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateModerationSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateModerationSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateModerationSecurityRequirement0,
+ };
partial void PrepareCreateModerationArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateModerationRequest request);
@@ -41,9 +60,15 @@ partial void ProcessCreateModerationResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateModerationSecurityRequirements,
+ operationName: "CreateModerationAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/moderations",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -53,7 +78,7 @@ partial void ProcessCreateModerationResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Authorizations.Bearer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Authorizations.Bearer.g.cs
index 7921aff2..e1cd09ed 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Authorizations.Bearer.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Authorizations.Bearer.g.cs
@@ -5,13 +5,23 @@ namespace tryAGI.OpenAI
{
public sealed partial class OpenAiClient
{
+
///
public void AuthorizeUsingBearer(
string apiKey)
{
apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey));
- Authorizations.Clear();
+ for (var i = Authorizations.Count - 1; i >= 0; i--)
+ {
+ var __authorization = Authorizations[i];
+ if (__authorization.Type == "Http" &&
+ __authorization.Name == "Bearer")
+ {
+ Authorizations.RemoveAt(i);
+ }
+ }
+
Authorizations.Add(new global::tryAGI.OpenAI.EndPointAuthorization
{
Type = "Http",
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSession.g.cs
index dba380e8..19559fbf 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSession.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSession.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CancelChatSessionSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CancelChatSessionSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CancelChatSessionSecurityRequirement0,
+ };
partial void PrepareCancelChatSessionArguments(
global::System.Net.Http.HttpClient httpClient,
ref string sessionId);
@@ -40,9 +59,15 @@ partial void ProcessCancelChatSessionResponseContent(
httpClient: HttpClient,
sessionId: ref sessionId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CancelChatSessionSecurityRequirements,
+ operationName: "CancelChatSessionAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/chatkit/sessions/{sessionId}/cancel",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCancelChatSessionResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CompactAResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CompactAResponse.g.cs
index 58dfb8c1..c0007732 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CompactAResponse.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CompactAResponse.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CompactAResponseSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CompactAResponseSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CompactAResponseSecurityRequirement0,
+ };
partial void PrepareCompactAResponseArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CompactResponseMethodPublicBody request);
@@ -41,9 +60,15 @@ partial void ProcessCompactAResponseResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CompactAResponseSecurityRequirements,
+ operationName: "CompactAResponseAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/responses/compact",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -53,7 +78,7 @@ partial void ProcessCompactAResponseResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Constructors.Bearer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Constructors.Bearer.g.cs
index cec9161a..464c6204 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Constructors.Bearer.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Constructors.Bearer.g.cs
@@ -6,6 +6,7 @@ namespace tryAGI.OpenAI
public sealed partial class OpenAiClient
{
///
+
public OpenAiClient(
string apiKey,
global::System.Net.Http.HttpClient? httpClient = null,
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateAdminApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateAdminApiKey.g.cs
index 574ee80f..6d1344f2 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateAdminApiKey.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateAdminApiKey.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateAdminApiKeySecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateAdminApiKeySecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateAdminApiKeySecurityRequirement0,
+ };
partial void PrepareCreateAdminApiKeyArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.AdminApiKeysCreateRequest request);
@@ -41,9 +60,15 @@ partial void ProcessCreateAdminApiKeyResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateAdminApiKeySecurityRequirements,
+ operationName: "CreateAdminApiKeyAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/admin_api_keys",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -53,7 +78,7 @@ partial void ProcessCreateAdminApiKeyResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatKitSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatKitSession.g.cs
index 1401c019..6c9038fe 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatKitSession.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatKitSession.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateChatKitSessionSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateChatKitSessionSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateChatKitSessionSecurityRequirement0,
+ };
partial void PrepareCreateChatKitSessionArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateChatSessionBody request);
@@ -40,9 +59,15 @@ partial void ProcessCreateChatKitSessionResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateChatKitSessionSecurityRequirements,
+ operationName: "CreateChatKitSessionAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/chatkit/sessions",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCreateChatKitSessionResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs
index 44c29058..a967bbae 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainer.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateContainerSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateContainerSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateContainerSecurityRequirement0,
+ };
partial void PrepareCreateContainerArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateContainerBody request);
@@ -41,9 +60,15 @@ partial void ProcessCreateContainerResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateContainerSecurityRequirements,
+ operationName: "CreateContainerAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/containers",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -53,7 +78,7 @@ partial void ProcessCreateContainerResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs
index a5f01538..52d873e5 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateContainerFile.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateContainerFileSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateContainerFileSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateContainerFileSecurityRequirement0,
+ };
partial void PrepareCreateContainerFileArguments(
global::System.Net.Http.HttpClient httpClient,
ref string containerId,
@@ -47,9 +66,15 @@ partial void ProcessCreateContainerFileResponseContent(
containerId: ref containerId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateContainerFileSecurityRequirements,
+ operationName: "CreateContainerFileAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/containers/{containerId}/files",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -59,7 +84,7 @@ partial void ProcessCreateContainerFileResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAContainer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAContainer.g.cs
index 4a3a4358..9c9bc2cd 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAContainer.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAContainer.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteAContainerSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteAContainerSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteAContainerSecurityRequirement0,
+ };
partial void PrepareDeleteAContainerArguments(
global::System.Net.Http.HttpClient httpClient,
ref string containerId);
@@ -33,9 +52,15 @@ partial void ProcessDeleteAContainerResponse(
httpClient: HttpClient,
containerId: ref containerId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteAContainerSecurityRequirements,
+ operationName: "DeleteAContainerAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/containers/{containerId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -45,7 +70,7 @@ partial void ProcessDeleteAContainerResponse(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAContainerFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAContainerFile.g.cs
index bf0fc40a..1e704cf4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAContainerFile.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAContainerFile.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteAContainerFileSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteAContainerFileSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteAContainerFileSecurityRequirement0,
+ };
partial void PrepareDeleteAContainerFileArguments(
global::System.Net.Http.HttpClient httpClient,
ref string containerId,
@@ -38,9 +57,15 @@ partial void ProcessDeleteAContainerFileResponse(
containerId: ref containerId,
fileId: ref fileId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteAContainerFileSecurityRequirements,
+ operationName: "DeleteAContainerFileAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/containers/{containerId}/files/{fileId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -50,7 +75,7 @@ partial void ProcessDeleteAContainerFileResponse(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAdminApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAdminApiKey.g.cs
index 0fe6eada..f1eabe92 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAdminApiKey.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteAdminApiKey.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteAdminApiKeySecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteAdminApiKeySecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteAdminApiKeySecurityRequirement0,
+ };
partial void PrepareDeleteAdminApiKeyArguments(
global::System.Net.Http.HttpClient httpClient,
ref string keyId);
@@ -40,9 +59,15 @@ partial void ProcessDeleteAdminApiKeyResponseContent(
httpClient: HttpClient,
keyId: ref keyId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteAdminApiKeySecurityRequirements,
+ operationName: "DeleteAdminApiKeyAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/admin_api_keys/{keyId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -52,7 +77,7 @@ partial void ProcessDeleteAdminApiKeyResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteChatKitThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteChatKitThread.g.cs
index 16c6f5ce..0e58a035 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteChatKitThread.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteChatKitThread.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteChatKitThreadSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteChatKitThreadSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteChatKitThreadSecurityRequirement0,
+ };
partial void PrepareDeleteChatKitThreadArguments(
global::System.Net.Http.HttpClient httpClient,
ref string threadId);
@@ -39,9 +58,15 @@ partial void ProcessDeleteChatKitThreadResponseContent(
httpClient: HttpClient,
threadId: ref threadId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteChatKitThreadSecurityRequirements,
+ operationName: "DeleteChatKitThreadAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/chatkit/threads/{threadId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -51,7 +76,7 @@ partial void ProcessDeleteChatKitThreadResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetInputTokenCounts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetInputTokenCounts.g.cs
index 7b89f61c..0f57b507 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetInputTokenCounts.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetInputTokenCounts.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_GetInputTokenCountsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_GetInputTokenCountsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_GetInputTokenCountsSecurityRequirement0,
+ };
partial void PrepareGetInputTokenCountsArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.TokenCountsBody request);
@@ -41,9 +60,15 @@ partial void ProcessGetInputTokenCountsResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetInputTokenCountsSecurityRequirements,
+ operationName: "GetInputTokenCountsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/responses/input_tokens",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -53,7 +78,7 @@ partial void ProcessGetInputTokenCountsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListAllOrganizationAndProjectApiKeys.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListAllOrganizationAndProjectApiKeys.g.cs
index d86d9834..09dd5080 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListAllOrganizationAndProjectApiKeys.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListAllOrganizationAndProjectApiKeys.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListAllOrganizationAndProjectApiKeysSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListAllOrganizationAndProjectApiKeysSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListAllOrganizationAndProjectApiKeysSecurityRequirement0,
+ };
partial void PrepareListAllOrganizationAndProjectApiKeysArguments(
global::System.Net.Http.HttpClient httpClient,
ref string? after,
@@ -56,6 +75,12 @@ partial void ProcessListAllOrganizationAndProjectApiKeysResponseContent(
order: ref order,
limit: ref limit);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListAllOrganizationAndProjectApiKeysSecurityRequirements,
+ operationName: "ListAllOrganizationAndProjectApiKeysAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/admin_api_keys",
baseUri: HttpClient.BaseAddress);
@@ -63,7 +88,7 @@ partial void ProcessListAllOrganizationAndProjectApiKeysResponseContent(
.AddOptionalParameter("after", after)
.AddOptionalParameter("order", order?.ToValueString())
.AddOptionalParameter("limit", limit?.ToString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -73,7 +98,7 @@ partial void ProcessListAllOrganizationAndProjectApiKeysResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreadItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreadItems.g.cs
index 6a75d435..f8523c75 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreadItems.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreadItems.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListChatKitThreadItemsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListChatKitThreadItemsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListChatKitThreadItemsSecurityRequirement0,
+ };
partial void PrepareListChatKitThreadItemsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string threadId,
@@ -63,6 +82,12 @@ partial void ProcessListChatKitThreadItemsResponseContent(
after: ref after,
before: ref before);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListChatKitThreadItemsSecurityRequirements,
+ operationName: "ListChatKitThreadItemsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/chatkit/threads/{threadId}/items",
baseUri: HttpClient.BaseAddress);
@@ -71,7 +96,7 @@ partial void ProcessListChatKitThreadItemsResponseContent(
.AddOptionalParameter("order", order?.ToValueString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("before", before)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -81,7 +106,7 @@ partial void ProcessListChatKitThreadItemsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreads.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreads.g.cs
index 739ea051..d036e564 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreads.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListChatKitThreads.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListChatKitThreadsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListChatKitThreadsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListChatKitThreadsSecurityRequirement0,
+ };
partial void PrepareListChatKitThreadsArguments(
global::System.Net.Http.HttpClient httpClient,
ref int? limit,
@@ -63,6 +82,12 @@ partial void ProcessListChatKitThreadsResponseContent(
before: ref before,
user: ref user);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListChatKitThreadsSecurityRequirements,
+ operationName: "ListChatKitThreadsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/chatkit/threads",
baseUri: HttpClient.BaseAddress);
@@ -72,7 +97,7 @@ partial void ProcessListChatKitThreadsResponseContent(
.AddOptionalParameter("after", after)
.AddOptionalParameter("before", before)
.AddOptionalParameter("user", user)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -82,7 +107,7 @@ partial void ProcessListChatKitThreadsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs
index 535e8612..0c4bb0fc 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainerFiles.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListContainerFilesSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListContainerFilesSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListContainerFilesSecurityRequirement0,
+ };
partial void PrepareListContainerFilesArguments(
global::System.Net.Http.HttpClient httpClient,
ref string containerId,
@@ -57,6 +76,12 @@ partial void ProcessListContainerFilesResponseContent(
order: ref order,
after: ref after);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListContainerFilesSecurityRequirements,
+ operationName: "ListContainerFilesAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/containers/{containerId}/files",
baseUri: HttpClient.BaseAddress);
@@ -64,7 +89,7 @@ partial void ProcessListContainerFilesResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("order", order?.ToValueString())
.AddOptionalParameter("after", after)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -74,7 +99,7 @@ partial void ProcessListContainerFilesResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs
index 903627aa..18ba130c 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListContainers.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListContainersSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListContainersSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListContainersSecurityRequirement0,
+ };
partial void PrepareListContainersArguments(
global::System.Net.Http.HttpClient httpClient,
ref int? limit,
@@ -57,6 +76,12 @@ partial void ProcessListContainersResponseContent(
after: ref after,
name: ref name);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListContainersSecurityRequirements,
+ operationName: "ListContainersAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/containers",
baseUri: HttpClient.BaseAddress);
@@ -65,7 +90,7 @@ partial void ProcessListContainersResponseContent(
.AddOptionalParameter("order", order?.ToValueString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("name", name)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -75,7 +100,7 @@ partial void ProcessListContainersResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveAdminApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveAdminApiKey.g.cs
index 306e68d7..39038e10 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveAdminApiKey.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveAdminApiKey.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveAdminApiKeySecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveAdminApiKeySecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveAdminApiKeySecurityRequirement0,
+ };
partial void PrepareRetrieveAdminApiKeyArguments(
global::System.Net.Http.HttpClient httpClient,
ref string keyId);
@@ -40,9 +59,15 @@ partial void ProcessRetrieveAdminApiKeyResponseContent(
httpClient: HttpClient,
keyId: ref keyId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveAdminApiKeySecurityRequirements,
+ operationName: "RetrieveAdminApiKeyAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/admin_api_keys/{keyId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -52,7 +77,7 @@ partial void ProcessRetrieveAdminApiKeyResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveChatKitThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveChatKitThread.g.cs
index f3bed57d..dcab58b7 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveChatKitThread.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveChatKitThread.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveChatKitThreadSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveChatKitThreadSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveChatKitThreadSecurityRequirement0,
+ };
partial void PrepareRetrieveChatKitThreadArguments(
global::System.Net.Http.HttpClient httpClient,
ref string threadId);
@@ -39,9 +58,15 @@ partial void ProcessRetrieveChatKitThreadResponseContent(
httpClient: HttpClient,
threadId: ref threadId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveChatKitThreadSecurityRequirements,
+ operationName: "RetrieveChatKitThreadAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/chatkit/threads/{threadId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -51,7 +76,7 @@ partial void ProcessRetrieveChatKitThreadResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs
index c9ec7c2a..3a42110b 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainer.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveContainerSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveContainerSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveContainerSecurityRequirement0,
+ };
partial void PrepareRetrieveContainerArguments(
global::System.Net.Http.HttpClient httpClient,
ref string containerId);
@@ -38,9 +57,15 @@ partial void ProcessRetrieveContainerResponseContent(
httpClient: HttpClient,
containerId: ref containerId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveContainerSecurityRequirements,
+ operationName: "RetrieveContainerAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/containers/{containerId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -50,7 +75,7 @@ partial void ProcessRetrieveContainerResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs
index 7200505f..93a722aa 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFile.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveContainerFileSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveContainerFileSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveContainerFileSecurityRequirement0,
+ };
partial void PrepareRetrieveContainerFileArguments(
global::System.Net.Http.HttpClient httpClient,
ref string containerId,
@@ -43,9 +62,15 @@ partial void ProcessRetrieveContainerFileResponseContent(
containerId: ref containerId,
fileId: ref fileId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveContainerFileSecurityRequirements,
+ operationName: "RetrieveContainerFileAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/containers/{containerId}/files/{fileId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -55,7 +80,7 @@ partial void ProcessRetrieveContainerFileResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFileContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFileContent.g.cs
index 79b9e537..d42aec62 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFileContent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFileContent.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class OpenAiClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveContainerFileContentSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveContainerFileContentSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveContainerFileContentSecurityRequirement0,
+ };
partial void PrepareRetrieveContainerFileContentArguments(
global::System.Net.Http.HttpClient httpClient,
ref string containerId,
@@ -38,9 +57,15 @@ partial void ProcessRetrieveContainerFileContentResponse(
containerId: ref containerId,
fileId: ref fileId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveContainerFileContentSecurityRequirements,
+ operationName: "RetrieveContainerFileContentAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/containers/{containerId}/files/{fileId}/content",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -50,7 +75,7 @@ partial void ProcessRetrieveContainerFileContentResponse(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.PathBuilder.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.PathBuilder.g.cs
index c0ba07b4..51ce1582 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.PathBuilder.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.PathBuilder.g.cs
@@ -224,6 +224,40 @@ public PathBuilder AddOptionalParameter(
return this;
}
+ ///
+ /// Adds a pre-serialized query string fragment to the URL.
+ ///
+ /// The serialized query string value.
+ /// The current instance.
+ public PathBuilder AddRawQueryString(
+ string value)
+ {
+ if (string.IsNullOrWhiteSpace(value))
+ {
+ return this;
+ }
+
+ value = value.TrimStart('?', '&');
+ if (value.Length == 0)
+ {
+ return this;
+ }
+
+ if (_firstParameter)
+ {
+ _stringBuilder.Append('?');
+ _firstParameter = false;
+ }
+ else
+ {
+ _stringBuilder.Append('&');
+ }
+
+ _stringBuilder.Append(value);
+
+ return this;
+ }
+
///
/// Returns the constructed URL as a string.
///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectRoleToGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectRoleToGroup.g.cs
index f9acdb85..a9c5c347 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectRoleToGroup.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectRoleToGroup.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectGroupRoleAssignmentsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_AssignProjectRoleToGroupSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_AssignProjectRoleToGroupSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_AssignProjectRoleToGroupSecurityRequirement0,
+ };
partial void PrepareAssignProjectRoleToGroupArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -50,9 +69,15 @@ partial void ProcessAssignProjectRoleToGroupResponseContent(
groupId: ref groupId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AssignProjectRoleToGroupSecurityRequirements,
+ operationName: "AssignProjectRoleToGroupAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/projects/{projectId}/groups/{groupId}/roles",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -62,7 +87,7 @@ partial void ProcessAssignProjectRoleToGroupResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.ListProjectGroupRoleAssignments.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.ListProjectGroupRoleAssignments.g.cs
index fa85f557..3c012aff 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.ListProjectGroupRoleAssignments.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.ListProjectGroupRoleAssignments.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectGroupRoleAssignmentsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListProjectGroupRoleAssignmentsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListProjectGroupRoleAssignmentsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListProjectGroupRoleAssignmentsSecurityRequirement0,
+ };
partial void PrepareListProjectGroupRoleAssignmentsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -57,6 +76,12 @@ partial void ProcessListProjectGroupRoleAssignmentsResponseContent(
after: ref after,
order: ref order);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListProjectGroupRoleAssignmentsSecurityRequirements,
+ operationName: "ListProjectGroupRoleAssignmentsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/projects/{projectId}/groups/{groupId}/roles",
baseUri: HttpClient.BaseAddress);
@@ -64,7 +89,7 @@ partial void ProcessListProjectGroupRoleAssignmentsResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("order", order?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -74,7 +99,7 @@ partial void ProcessListProjectGroupRoleAssignmentsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectRoleFromGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectRoleFromGroup.g.cs
index dacbba5a..f390d3ad 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectRoleFromGroup.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectRoleFromGroup.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectGroupRoleAssignmentsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_UnassignProjectRoleFromGroupSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_UnassignProjectRoleFromGroupSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_UnassignProjectRoleFromGroupSecurityRequirement0,
+ };
partial void PrepareUnassignProjectRoleFromGroupArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -47,9 +66,15 @@ partial void ProcessUnassignProjectRoleFromGroupResponseContent(
groupId: ref groupId,
roleId: ref roleId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UnassignProjectRoleFromGroupSecurityRequirements,
+ operationName: "UnassignProjectRoleFromGroupAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/projects/{projectId}/groups/{groupId}/roles/{roleId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -59,7 +84,7 @@ partial void ProcessUnassignProjectRoleFromGroupResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.AddProjectGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.AddProjectGroup.g.cs
index 4574c900..bb2b0aa3 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.AddProjectGroup.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.AddProjectGroup.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectGroupsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_AddProjectGroupSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_AddProjectGroupSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_AddProjectGroupSecurityRequirement0,
+ };
partial void PrepareAddProjectGroupArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -45,9 +64,15 @@ partial void ProcessAddProjectGroupResponseContent(
projectId: ref projectId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AddProjectGroupSecurityRequirements,
+ operationName: "AddProjectGroupAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/groups",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -57,7 +82,7 @@ partial void ProcessAddProjectGroupResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.ListProjectGroups.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.ListProjectGroups.g.cs
index feb0058c..a45b487d 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.ListProjectGroups.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.ListProjectGroups.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectGroupsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListProjectGroupsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListProjectGroupsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListProjectGroupsSecurityRequirement0,
+ };
partial void PrepareListProjectGroupsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -56,6 +75,12 @@ partial void ProcessListProjectGroupsResponseContent(
after: ref after,
order: ref order);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListProjectGroupsSecurityRequirements,
+ operationName: "ListProjectGroupsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/groups",
baseUri: HttpClient.BaseAddress);
@@ -63,7 +88,7 @@ partial void ProcessListProjectGroupsResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("order", order?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -73,7 +98,7 @@ partial void ProcessListProjectGroupsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RemoveProjectGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RemoveProjectGroup.g.cs
index 43b1304b..818b87de 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RemoveProjectGroup.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RemoveProjectGroup.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectGroupsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RemoveProjectGroupSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RemoveProjectGroupSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RemoveProjectGroupSecurityRequirement0,
+ };
partial void PrepareRemoveProjectGroupArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -42,9 +61,15 @@ partial void ProcessRemoveProjectGroupResponseContent(
projectId: ref projectId,
groupId: ref groupId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RemoveProjectGroupSecurityRequirements,
+ operationName: "RemoveProjectGroupAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/groups/{groupId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -54,7 +79,7 @@ partial void ProcessRemoveProjectGroupResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectRoleToUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectRoleToUser.g.cs
index b7e3a169..714a3dd5 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectRoleToUser.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectRoleToUser.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectUserRoleAssignmentsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_AssignProjectRoleToUserSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_AssignProjectRoleToUserSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_AssignProjectRoleToUserSecurityRequirement0,
+ };
partial void PrepareAssignProjectRoleToUserArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -50,9 +69,15 @@ partial void ProcessAssignProjectRoleToUserResponseContent(
userId: ref userId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AssignProjectRoleToUserSecurityRequirements,
+ operationName: "AssignProjectRoleToUserAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/projects/{projectId}/users/{userId}/roles",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -62,7 +87,7 @@ partial void ProcessAssignProjectRoleToUserResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.ListProjectUserRoleAssignments.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.ListProjectUserRoleAssignments.g.cs
index c160ec08..060baaa4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.ListProjectUserRoleAssignments.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.ListProjectUserRoleAssignments.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectUserRoleAssignmentsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListProjectUserRoleAssignmentsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListProjectUserRoleAssignmentsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListProjectUserRoleAssignmentsSecurityRequirement0,
+ };
partial void PrepareListProjectUserRoleAssignmentsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -57,6 +76,12 @@ partial void ProcessListProjectUserRoleAssignmentsResponseContent(
after: ref after,
order: ref order);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListProjectUserRoleAssignmentsSecurityRequirements,
+ operationName: "ListProjectUserRoleAssignmentsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/projects/{projectId}/users/{userId}/roles",
baseUri: HttpClient.BaseAddress);
@@ -64,7 +89,7 @@ partial void ProcessListProjectUserRoleAssignmentsResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("order", order?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -74,7 +99,7 @@ partial void ProcessListProjectUserRoleAssignmentsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectRoleFromUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectRoleFromUser.g.cs
index 1b1b1ba7..cc651a72 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectRoleFromUser.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectRoleFromUser.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectUserRoleAssignmentsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_UnassignProjectRoleFromUserSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_UnassignProjectRoleFromUserSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_UnassignProjectRoleFromUserSecurityRequirement0,
+ };
partial void PrepareUnassignProjectRoleFromUserArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -47,9 +66,15 @@ partial void ProcessUnassignProjectRoleFromUserResponseContent(
userId: ref userId,
roleId: ref roleId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UnassignProjectRoleFromUserSecurityRequirements,
+ operationName: "UnassignProjectRoleFromUserAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/projects/{projectId}/users/{userId}/roles/{roleId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -59,7 +84,7 @@ partial void ProcessUnassignProjectRoleFromUserResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs
index aed55839..ddb25fd4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ArchiveProject.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ArchiveProjectSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ArchiveProjectSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ArchiveProjectSecurityRequirement0,
+ };
partial void PrepareArchiveProjectArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId);
@@ -37,9 +56,15 @@ partial void ProcessArchiveProjectResponseContent(
httpClient: HttpClient,
projectId: ref projectId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ArchiveProjectSecurityRequirements,
+ operationName: "ArchiveProjectAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/archive",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -49,7 +74,7 @@ partial void ProcessArchiveProjectResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs
index 67e01a69..40df0f61 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProject.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateProjectSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateProjectSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateProjectSecurityRequirement0,
+ };
partial void PrepareCreateProjectArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.ProjectCreateRequest request);
@@ -40,9 +59,15 @@ partial void ProcessCreateProjectResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateProjectSecurityRequirements,
+ operationName: "CreateProjectAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/projects",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCreateProjectResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs
index 548ed0a2..d33c9099 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectServiceAccount.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateProjectServiceAccountSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateProjectServiceAccountSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateProjectServiceAccountSecurityRequirement0,
+ };
partial void PrepareCreateProjectServiceAccountArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -45,9 +64,15 @@ partial void ProcessCreateProjectServiceAccountResponseContent(
projectId: ref projectId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateProjectServiceAccountSecurityRequirements,
+ operationName: "CreateProjectServiceAccountAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/service_accounts",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -57,7 +82,7 @@ partial void ProcessCreateProjectServiceAccountResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectUser.g.cs
index 8b53805a..99cbdb88 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectUser.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.CreateProjectUser.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateProjectUserSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateProjectUserSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateProjectUserSecurityRequirement0,
+ };
partial void PrepareCreateProjectUserArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -45,9 +64,15 @@ partial void ProcessCreateProjectUserResponseContent(
projectId: ref projectId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateProjectUserSecurityRequirements,
+ operationName: "CreateProjectUserAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/users",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -57,7 +82,7 @@ partial void ProcessCreateProjectUserResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs
index 919fd759..e4967bc9 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteProjectApiKeySecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteProjectApiKeySecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteProjectApiKeySecurityRequirement0,
+ };
partial void PrepareDeleteProjectApiKeyArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -44,9 +63,15 @@ partial void ProcessDeleteProjectApiKeyResponseContent(
projectId: ref projectId,
keyId: ref keyId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteProjectApiKeySecurityRequirements,
+ operationName: "DeleteProjectApiKeyAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/api_keys/{keyId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -56,7 +81,7 @@ partial void ProcessDeleteProjectApiKeyResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectServiceAccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectServiceAccount.g.cs
index 10b99c2c..b730a4c9 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectServiceAccount.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectServiceAccount.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteProjectServiceAccountSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteProjectServiceAccountSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteProjectServiceAccountSecurityRequirement0,
+ };
partial void PrepareDeleteProjectServiceAccountArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -44,9 +63,15 @@ partial void ProcessDeleteProjectServiceAccountResponseContent(
projectId: ref projectId,
serviceAccountId: ref serviceAccountId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteProjectServiceAccountSecurityRequirements,
+ operationName: "DeleteProjectServiceAccountAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/service_accounts/{serviceAccountId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -56,7 +81,7 @@ partial void ProcessDeleteProjectServiceAccountResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs
index 7fa68eb4..39e86c09 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectUser.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteProjectUserSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteProjectUserSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteProjectUserSecurityRequirement0,
+ };
partial void PrepareDeleteProjectUserArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -44,9 +63,15 @@ partial void ProcessDeleteProjectUserResponseContent(
projectId: ref projectId,
userId: ref userId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteProjectUserSecurityRequirements,
+ operationName: "DeleteProjectUserAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/users/{userId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -56,7 +81,7 @@ partial void ProcessDeleteProjectUserResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs
index fc20e1fe..5dc8673f 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectApiKeys.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListProjectApiKeysSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListProjectApiKeysSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListProjectApiKeysSecurityRequirement0,
+ };
partial void PrepareListProjectApiKeysArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -49,13 +68,19 @@ partial void ProcessListProjectApiKeysResponseContent(
limit: ref limit,
after: ref after);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListProjectApiKeysSecurityRequirements,
+ operationName: "ListProjectApiKeysAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/api_keys",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("after", after)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -65,7 +90,7 @@ partial void ProcessListProjectApiKeysResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs
index b741025f..bbe0b1e4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectRateLimits.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListProjectRateLimitsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListProjectRateLimitsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListProjectRateLimitsSecurityRequirement0,
+ };
partial void PrepareListProjectRateLimitsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -54,6 +73,12 @@ partial void ProcessListProjectRateLimitsResponseContent(
after: ref after,
before: ref before);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListProjectRateLimitsSecurityRequirements,
+ operationName: "ListProjectRateLimitsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/rate_limits",
baseUri: HttpClient.BaseAddress);
@@ -61,7 +86,7 @@ partial void ProcessListProjectRateLimitsResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("before", before)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -71,7 +96,7 @@ partial void ProcessListProjectRateLimitsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs
index 91018066..e90ca4ef 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectServiceAccounts.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListProjectServiceAccountsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListProjectServiceAccountsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListProjectServiceAccountsSecurityRequirement0,
+ };
partial void PrepareListProjectServiceAccountsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -49,13 +68,19 @@ partial void ProcessListProjectServiceAccountsResponseContent(
limit: ref limit,
after: ref after);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListProjectServiceAccountsSecurityRequirements,
+ operationName: "ListProjectServiceAccountsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/service_accounts",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("after", after)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -65,7 +90,7 @@ partial void ProcessListProjectServiceAccountsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs
index 9e95ca71..e4b0853f 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjectUsers.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListProjectUsersSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListProjectUsersSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListProjectUsersSecurityRequirement0,
+ };
partial void PrepareListProjectUsersArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -49,13 +68,19 @@ partial void ProcessListProjectUsersResponseContent(
limit: ref limit,
after: ref after);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListProjectUsersSecurityRequirements,
+ operationName: "ListProjectUsersAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/users",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("after", after)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -65,7 +90,7 @@ partial void ProcessListProjectUsersResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs
index c8886e13..dc5c89c6 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ListProjects.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListProjectsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListProjectsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListProjectsSecurityRequirement0,
+ };
partial void PrepareListProjectsArguments(
global::System.Net.Http.HttpClient httpClient,
ref int? limit,
@@ -51,6 +70,12 @@ partial void ProcessListProjectsResponseContent(
after: ref after,
includeArchived: ref includeArchived);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListProjectsSecurityRequirements,
+ operationName: "ListProjectsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/projects",
baseUri: HttpClient.BaseAddress);
@@ -58,7 +83,7 @@ partial void ProcessListProjectsResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("include_archived", includeArchived?.ToString().ToLowerInvariant())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -68,7 +93,7 @@ partial void ProcessListProjectsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs
index 81ce7fbe..ce84d8a1 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProject.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ModifyProjectSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ModifyProjectSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ModifyProjectSecurityRequirement0,
+ };
partial void PrepareModifyProjectArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -45,9 +64,15 @@ partial void ProcessModifyProjectResponseContent(
projectId: ref projectId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ModifyProjectSecurityRequirements,
+ operationName: "ModifyProjectAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -57,7 +82,7 @@ partial void ProcessModifyProjectResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectRateLimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectRateLimit.g.cs
index 4ee32279..173d04ac 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectRateLimit.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectRateLimit.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ModifyProjectRateLimitSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ModifyProjectRateLimitSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ModifyProjectRateLimitSecurityRequirement0,
+ };
partial void PrepareModifyProjectRateLimitArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -50,9 +69,15 @@ partial void ProcessModifyProjectRateLimitResponseContent(
rateLimitId: ref rateLimitId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ModifyProjectRateLimitSecurityRequirements,
+ operationName: "ModifyProjectRateLimitAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/rate_limits/{rateLimitId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -62,7 +87,7 @@ partial void ProcessModifyProjectRateLimitResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs
index 700f0692..02ae0356 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.ModifyProjectUser.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ModifyProjectUserSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ModifyProjectUserSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ModifyProjectUserSecurityRequirement0,
+ };
partial void PrepareModifyProjectUserArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -50,9 +69,15 @@ partial void ProcessModifyProjectUserResponseContent(
userId: ref userId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ModifyProjectUserSecurityRequirements,
+ operationName: "ModifyProjectUserAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/users/{userId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -62,7 +87,7 @@ partial void ProcessModifyProjectUserResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs
index c4bb7010..481ae765 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProject.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveProjectSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveProjectSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveProjectSecurityRequirement0,
+ };
partial void PrepareRetrieveProjectArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId);
@@ -37,9 +56,15 @@ partial void ProcessRetrieveProjectResponseContent(
httpClient: HttpClient,
projectId: ref projectId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveProjectSecurityRequirements,
+ operationName: "RetrieveProjectAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -49,7 +74,7 @@ partial void ProcessRetrieveProjectResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs
index 8112eff9..5ecad37a 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectApiKey.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveProjectApiKeySecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveProjectApiKeySecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveProjectApiKeySecurityRequirement0,
+ };
partial void PrepareRetrieveProjectApiKeyArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -42,9 +61,15 @@ partial void ProcessRetrieveProjectApiKeyResponseContent(
projectId: ref projectId,
keyId: ref keyId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveProjectApiKeySecurityRequirements,
+ operationName: "RetrieveProjectApiKeyAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/api_keys/{keyId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -54,7 +79,7 @@ partial void ProcessRetrieveProjectApiKeyResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs
index 6244e866..dae86808 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectServiceAccount.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveProjectServiceAccountSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveProjectServiceAccountSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveProjectServiceAccountSecurityRequirement0,
+ };
partial void PrepareRetrieveProjectServiceAccountArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -42,9 +61,15 @@ partial void ProcessRetrieveProjectServiceAccountResponseContent(
projectId: ref projectId,
serviceAccountId: ref serviceAccountId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveProjectServiceAccountSecurityRequirements,
+ operationName: "RetrieveProjectServiceAccountAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/service_accounts/{serviceAccountId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -54,7 +79,7 @@ partial void ProcessRetrieveProjectServiceAccountResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs
index 2290284f..760e40a0 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectUser.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ProjectsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveProjectUserSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveProjectUserSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveProjectUserSecurityRequirement0,
+ };
partial void PrepareRetrieveProjectUserArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -42,9 +61,15 @@ partial void ProcessRetrieveProjectUserResponseContent(
projectId: ref projectId,
userId: ref userId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveProjectUserSecurityRequirements,
+ operationName: "RetrieveProjectUserAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/projects/{projectId}/users/{userId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -54,7 +79,7 @@ partial void ProcessRetrieveProjectUserResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.PathBuilder.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.PathBuilder.g.cs
index 5ce6cfa5..fb70b5b2 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.PathBuilder.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.PathBuilder.g.cs
@@ -224,6 +224,40 @@ public PathBuilder AddOptionalParameter(
return this;
}
+ ///
+ /// Adds a pre-serialized query string fragment to the URL.
+ ///
+ /// The serialized query string value.
+ /// The current instance.
+ public PathBuilder AddRawQueryString(
+ string value)
+ {
+ if (string.IsNullOrWhiteSpace(value))
+ {
+ return this;
+ }
+
+ value = value.TrimStart('?', '&');
+ if (value.Length == 0)
+ {
+ return this;
+ }
+
+ if (_firstParameter)
+ {
+ _stringBuilder.Append('?');
+ _firstParameter = false;
+ }
+ else
+ {
+ _stringBuilder.Append('&');
+ }
+
+ _stringBuilder.Append(value);
+
+ return this;
+ }
+
///
/// Returns the constructed URL as a string.
///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptCall.g.cs
index e1b6dd6c..60b77c0b 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptCall.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptCall.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class RealtimeClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_AcceptCallSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_AcceptCallSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_AcceptCallSecurityRequirement0,
+ };
partial void PrepareAcceptCallArguments(
global::System.Net.Http.HttpClient httpClient,
ref string callId,
@@ -41,9 +60,15 @@ partial void ProcessAcceptCallResponse(
callId: ref callId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AcceptCallSecurityRequirements,
+ operationName: "AcceptCallAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/realtime/calls/{callId}/accept",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -53,7 +78,7 @@ partial void ProcessAcceptCallResponse(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateCall.g.cs
index 62f9dac7..646d38e8 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateCall.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateCall.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class RealtimeClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateCallSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateCallSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateCallSecurityRequirement0,
+ };
partial void PrepareCreateCallArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.RealtimeCallCreateRequest request);
@@ -61,9 +80,15 @@ partial void ProcessCreateCallResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateCallSecurityRequirements,
+ operationName: "CreateCallAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/realtime/calls",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -73,7 +98,7 @@ partial void ProcessCreateCallResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateClientSecret.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateClientSecret.g.cs
index 8be298e3..f0a3f015 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateClientSecret.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateClientSecret.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class RealtimeClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateClientSecretSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateClientSecretSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateClientSecretSecurityRequirement0,
+ };
partial void PrepareCreateClientSecretArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.RealtimeCreateClientSecretRequest request);
@@ -48,9 +67,15 @@ partial void ProcessCreateClientSecretResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateClientSecretSecurityRequirements,
+ operationName: "CreateClientSecretAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/realtime/client_secrets",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -60,7 +85,7 @@ partial void ProcessCreateClientSecretResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateSession.g.cs
index d0335ff7..1459da90 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateSession.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateSession.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class RealtimeClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateSessionSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateSessionSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateSessionSecurityRequirement0,
+ };
partial void PrepareCreateSessionArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.RealtimeSessionCreateRequest request);
@@ -46,9 +65,15 @@ partial void ProcessCreateSessionResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateSessionSecurityRequirements,
+ operationName: "CreateSessionAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/realtime/sessions",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -58,7 +83,7 @@ partial void ProcessCreateSessionResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateTranscriptionSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateTranscriptionSession.g.cs
index 1dd1ed0a..b5e908b3 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateTranscriptionSession.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateTranscriptionSession.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class RealtimeClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateTranscriptionSessionSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateTranscriptionSessionSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateTranscriptionSessionSecurityRequirement0,
+ };
partial void PrepareCreateTranscriptionSessionArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest request);
@@ -46,9 +65,15 @@ partial void ProcessCreateTranscriptionSessionResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateTranscriptionSessionSecurityRequirements,
+ operationName: "CreateTranscriptionSessionAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/realtime/transcription_sessions",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -58,7 +83,7 @@ partial void ProcessCreateTranscriptionSessionResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.HangUpCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.HangUpCall.g.cs
index acd424b0..694996e3 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.HangUpCall.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.HangUpCall.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class RealtimeClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_HangUpCallSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_HangUpCallSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_HangUpCallSecurityRequirement0,
+ };
partial void PrepareHangUpCallArguments(
global::System.Net.Http.HttpClient httpClient,
ref string callId);
@@ -33,9 +52,15 @@ partial void ProcessHangUpCallResponse(
httpClient: HttpClient,
callId: ref callId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_HangUpCallSecurityRequirements,
+ operationName: "HangUpCallAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/realtime/calls/{callId}/hangup",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -45,7 +70,7 @@ partial void ProcessHangUpCallResponse(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferCall.g.cs
index 3e0e5233..b87a6159 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferCall.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferCall.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class RealtimeClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ReferCallSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ReferCallSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ReferCallSecurityRequirement0,
+ };
partial void PrepareReferCallArguments(
global::System.Net.Http.HttpClient httpClient,
ref string callId,
@@ -40,9 +59,15 @@ partial void ProcessReferCallResponse(
callId: ref callId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ReferCallSecurityRequirements,
+ operationName: "ReferCallAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/realtime/calls/{callId}/refer",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessReferCallResponse(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectCall.g.cs
index d6732032..60bcf335 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectCall.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectCall.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class RealtimeClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RejectCallSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RejectCallSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RejectCallSecurityRequirement0,
+ };
partial void PrepareRejectCallArguments(
global::System.Net.Http.HttpClient httpClient,
ref string callId,
@@ -40,9 +59,15 @@ partial void ProcessRejectCallResponse(
callId: ref callId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RejectCallSecurityRequirements,
+ operationName: "RejectCallAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/realtime/calls/{callId}/reject",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessRejectCallResponse(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelAResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelAResponse.g.cs
index d9131d20..eee9d8ab 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelAResponse.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelAResponse.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ResponsesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CancelAResponseSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CancelAResponseSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CancelAResponseSecurityRequirement0,
+ };
partial void PrepareCancelAResponseArguments(
global::System.Net.Http.HttpClient httpClient,
ref string responseId);
@@ -41,9 +60,15 @@ partial void ProcessCancelAResponseResponseContent(
httpClient: HttpClient,
responseId: ref responseId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CancelAResponseSecurityRequirements,
+ operationName: "CancelAResponseAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/responses/{responseId}/cancel",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -53,7 +78,7 @@ partial void ProcessCancelAResponseResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponse.g.cs
index cbd75a65..22a47ade 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponse.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponse.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ResponsesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateAModelResponseSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateAModelResponseSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateAModelResponseSecurityRequirement0,
+ };
partial void PrepareCreateAModelResponseArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateResponse request);
@@ -44,9 +63,15 @@ partial void ProcessCreateAModelResponseResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateAModelResponseSecurityRequirements,
+ operationName: "CreateAModelResponseAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/responses",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -56,7 +81,7 @@ partial void ProcessCreateAModelResponseResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponseAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponseAsStream.g.cs
index 781587be..f641107b 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponseAsStream.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateAModelResponseAsStream.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ResponsesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateAModelResponseAsStreamSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateAModelResponseAsStreamSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateAModelResponseAsStreamSecurityRequirement0,
+ };
partial void PrepareCreateAModelResponseAsStreamArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateResponse request);
@@ -39,9 +58,15 @@ partial void ProcessCreateAModelResponseAsStreamResponse(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateAModelResponseAsStreamSecurityRequirements,
+ operationName: "CreateAModelResponseAsStreamAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/responses",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -51,7 +76,7 @@ partial void ProcessCreateAModelResponseAsStreamResponse(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteAModelResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteAModelResponse.g.cs
index 7918d83a..3aa85213 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteAModelResponse.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteAModelResponse.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ResponsesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteAModelResponseSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteAModelResponseSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteAModelResponseSecurityRequirement0,
+ };
partial void PrepareDeleteAModelResponseArguments(
global::System.Net.Http.HttpClient httpClient,
ref string responseId);
@@ -34,9 +53,15 @@ partial void ProcessDeleteAModelResponseResponse(
httpClient: HttpClient,
responseId: ref responseId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteAModelResponseSecurityRequirements,
+ operationName: "DeleteAModelResponseAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/responses/{responseId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -46,7 +71,7 @@ partial void ProcessDeleteAModelResponseResponse(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetAModelResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetAModelResponse.g.cs
index c48984bf..eae31cee 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetAModelResponse.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetAModelResponse.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ResponsesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_GetAModelResponseSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_GetAModelResponseSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_GetAModelResponseSecurityRequirement0,
+ };
partial void PrepareGetAModelResponseArguments(
global::System.Net.Http.HttpClient httpClient,
ref string responseId,
@@ -59,6 +78,12 @@ partial void ProcessGetAModelResponseResponseContent(
startingAfter: ref startingAfter,
includeObfuscation: ref includeObfuscation);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetAModelResponseSecurityRequirements,
+ operationName: "GetAModelResponseAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/responses/{responseId}",
baseUri: HttpClient.BaseAddress);
@@ -67,7 +92,7 @@ partial void ProcessGetAModelResponseResponseContent(
.AddOptionalParameter("stream", stream?.ToString().ToLowerInvariant())
.AddOptionalParameter("starting_after", startingAfter?.ToString())
.AddOptionalParameter("include_obfuscation", includeObfuscation?.ToString().ToLowerInvariant())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -77,7 +102,7 @@ partial void ProcessGetAModelResponseResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs
index 36fc4ccd..d155c2f6 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.ListInputItems.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class ResponsesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListInputItemsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListInputItemsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListInputItemsSecurityRequirement0,
+ };
partial void PrepareListInputItemsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string responseId,
@@ -59,6 +78,12 @@ partial void ProcessListInputItemsResponseContent(
after: ref after,
include: include);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListInputItemsSecurityRequirements,
+ operationName: "ListInputItemsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/responses/{responseId}/input_items",
baseUri: HttpClient.BaseAddress);
@@ -67,7 +92,7 @@ partial void ProcessListInputItemsResponseContent(
.AddOptionalParameter("order", order?.ToValueString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("include", include, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -77,7 +102,7 @@ partial void ProcessListInputItemsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateOrganizationRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateOrganizationRole.g.cs
index f3ed215a..a4675440 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateOrganizationRole.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateOrganizationRole.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class RolesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateOrganizationRoleSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateOrganizationRoleSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateOrganizationRoleSecurityRequirement0,
+ };
partial void PrepareCreateOrganizationRoleArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.PublicCreateOrganizationRoleBody request);
@@ -40,9 +59,15 @@ partial void ProcessCreateOrganizationRoleResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateOrganizationRoleSecurityRequirements,
+ operationName: "CreateOrganizationRoleAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/roles",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCreateOrganizationRoleResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateProjectRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateProjectRole.g.cs
index 5fcc7c50..6da1775e 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateProjectRole.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateProjectRole.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class RolesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateProjectRoleSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateProjectRoleSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateProjectRoleSecurityRequirement0,
+ };
partial void PrepareCreateProjectRoleArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -45,9 +64,15 @@ partial void ProcessCreateProjectRoleResponseContent(
projectId: ref projectId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateProjectRoleSecurityRequirements,
+ operationName: "CreateProjectRoleAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/projects/{projectId}/roles",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -57,7 +82,7 @@ partial void ProcessCreateProjectRoleResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteOrganizationRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteOrganizationRole.g.cs
index 3578537f..583b5450 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteOrganizationRole.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteOrganizationRole.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class RolesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteOrganizationRoleSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteOrganizationRoleSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteOrganizationRoleSecurityRequirement0,
+ };
partial void PrepareDeleteOrganizationRoleArguments(
global::System.Net.Http.HttpClient httpClient,
ref string roleId);
@@ -37,9 +56,15 @@ partial void ProcessDeleteOrganizationRoleResponseContent(
httpClient: HttpClient,
roleId: ref roleId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteOrganizationRoleSecurityRequirements,
+ operationName: "DeleteOrganizationRoleAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/roles/{roleId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -49,7 +74,7 @@ partial void ProcessDeleteOrganizationRoleResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteProjectRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteProjectRole.g.cs
index be5d408f..465ddce4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteProjectRole.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteProjectRole.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class RolesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteProjectRoleSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteProjectRoleSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteProjectRoleSecurityRequirement0,
+ };
partial void PrepareDeleteProjectRoleArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -42,9 +61,15 @@ partial void ProcessDeleteProjectRoleResponseContent(
projectId: ref projectId,
roleId: ref roleId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteProjectRoleSecurityRequirements,
+ operationName: "DeleteProjectRoleAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/projects/{projectId}/roles/{roleId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -54,7 +79,7 @@ partial void ProcessDeleteProjectRoleResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListOrganizationRoles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListOrganizationRoles.g.cs
index 71951a7a..4425c923 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListOrganizationRoles.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListOrganizationRoles.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class RolesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListOrganizationRolesSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListOrganizationRolesSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListOrganizationRolesSecurityRequirement0,
+ };
partial void PrepareListOrganizationRolesArguments(
global::System.Net.Http.HttpClient httpClient,
ref int? limit,
@@ -51,6 +70,12 @@ partial void ProcessListOrganizationRolesResponseContent(
after: ref after,
order: ref order);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListOrganizationRolesSecurityRequirements,
+ operationName: "ListOrganizationRolesAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/roles",
baseUri: HttpClient.BaseAddress);
@@ -58,7 +83,7 @@ partial void ProcessListOrganizationRolesResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("order", order?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -68,7 +93,7 @@ partial void ProcessListOrganizationRolesResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListProjectRoles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListProjectRoles.g.cs
index 52cba09b..0b96917d 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListProjectRoles.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListProjectRoles.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class RolesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListProjectRolesSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListProjectRolesSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListProjectRolesSecurityRequirement0,
+ };
partial void PrepareListProjectRolesArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -56,6 +75,12 @@ partial void ProcessListProjectRolesResponseContent(
after: ref after,
order: ref order);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListProjectRolesSecurityRequirements,
+ operationName: "ListProjectRolesAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/projects/{projectId}/roles",
baseUri: HttpClient.BaseAddress);
@@ -63,7 +88,7 @@ partial void ProcessListProjectRolesResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("order", order?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -73,7 +98,7 @@ partial void ProcessListProjectRolesResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateOrganizationRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateOrganizationRole.g.cs
index 8afda66d..e7dce4c4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateOrganizationRole.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateOrganizationRole.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class RolesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_UpdateOrganizationRoleSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_UpdateOrganizationRoleSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_UpdateOrganizationRoleSecurityRequirement0,
+ };
partial void PrepareUpdateOrganizationRoleArguments(
global::System.Net.Http.HttpClient httpClient,
ref string roleId,
@@ -45,9 +64,15 @@ partial void ProcessUpdateOrganizationRoleResponseContent(
roleId: ref roleId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UpdateOrganizationRoleSecurityRequirements,
+ operationName: "UpdateOrganizationRoleAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/roles/{roleId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -57,7 +82,7 @@ partial void ProcessUpdateOrganizationRoleResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateProjectRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateProjectRole.g.cs
index 12066b73..d03c6b2d 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateProjectRole.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateProjectRole.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class RolesClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_UpdateProjectRoleSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_UpdateProjectRoleSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_UpdateProjectRoleSecurityRequirement0,
+ };
partial void PrepareUpdateProjectRoleArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId,
@@ -50,9 +69,15 @@ partial void ProcessUpdateProjectRoleResponseContent(
roleId: ref roleId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UpdateProjectRoleSecurityRequirements,
+ operationName: "UpdateProjectRoleAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/projects/{projectId}/roles/{roleId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -62,7 +87,7 @@ partial void ProcessUpdateProjectRoleResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Security.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Security.g.cs
new file mode 100644
index 00000000..d7087fbf
--- /dev/null
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Security.g.cs
@@ -0,0 +1,145 @@
+#nullable enable
+
+namespace tryAGI.OpenAI
+{
+ internal sealed class EndPointAuthorizationRequirement
+ {
+ internal string Type { get; set; } = string.Empty;
+
+ internal string Location { get; set; } = string.Empty;
+
+ internal string Name { get; set; } = string.Empty;
+
+ internal string FriendlyName { get; set; } = string.Empty;
+ }
+
+ internal sealed class EndPointSecurityRequirement
+ {
+ internal global::System.Collections.Generic.IReadOnlyList Authorizations { get; set; } =
+ global::System.Array.Empty();
+ }
+
+ internal static class EndPointSecurityResolver
+ {
+ internal static global::System.Collections.Generic.List ResolveAuthorizations(
+ global::System.Collections.Generic.IReadOnlyList availableAuthorizations,
+ global::System.Collections.Generic.IReadOnlyList securityRequirements,
+ string operationName)
+ {
+ availableAuthorizations = availableAuthorizations ?? throw new global::System.ArgumentNullException(nameof(availableAuthorizations));
+ securityRequirements = securityRequirements ?? throw new global::System.ArgumentNullException(nameof(securityRequirements));
+ operationName = operationName ?? throw new global::System.ArgumentNullException(nameof(operationName));
+
+ if (securityRequirements.Count == 0)
+ {
+ return new global::System.Collections.Generic.List();
+ }
+
+ var allowsAnonymous = false;
+
+ foreach (var requirement in securityRequirements)
+ {
+ if (requirement.Authorizations.Count == 0)
+ {
+ allowsAnonymous = true;
+ continue;
+ }
+
+ var selected = new global::System.Collections.Generic.List(requirement.Authorizations.Count);
+ var satisfied = true;
+
+ foreach (var requiredAuthorization in requirement.Authorizations)
+ {
+ var found = false;
+
+ for (var i = 0; i < availableAuthorizations.Count; i++)
+ {
+ if (!Matches(availableAuthorizations[i], requiredAuthorization))
+ {
+ continue;
+ }
+
+ selected.Add(availableAuthorizations[i]);
+ found = true;
+ break;
+ }
+
+ if (!found)
+ {
+ satisfied = false;
+ break;
+ }
+ }
+
+ if (satisfied)
+ {
+ return selected;
+ }
+ }
+
+ if (allowsAnonymous)
+ {
+ return new global::System.Collections.Generic.List();
+ }
+
+ throw new global::System.InvalidOperationException(
+ $"Operation '{operationName}' requires one of the configured security alternatives: {DescribeRequirements(securityRequirements)}.");
+ }
+
+ private static bool Matches(
+ EndPointAuthorization availableAuthorization,
+ EndPointAuthorizationRequirement requiredAuthorization)
+ {
+ if (!string.Equals(availableAuthorization.Type, requiredAuthorization.Type, global::System.StringComparison.Ordinal))
+ {
+ return false;
+ }
+
+ return requiredAuthorization.Type switch
+ {
+ "OAuth2" => true,
+ "Http" => string.Equals(
+ availableAuthorization.Name,
+ requiredAuthorization.Name,
+ global::System.StringComparison.Ordinal),
+ "ApiKey" => string.Equals(
+ availableAuthorization.Location,
+ requiredAuthorization.Location,
+ global::System.StringComparison.Ordinal) &&
+ string.Equals(
+ availableAuthorization.Name,
+ requiredAuthorization.Name,
+ global::System.StringComparison.Ordinal),
+ _ => string.Equals(
+ availableAuthorization.Location,
+ requiredAuthorization.Location,
+ global::System.StringComparison.Ordinal) &&
+ string.Equals(
+ availableAuthorization.Name,
+ requiredAuthorization.Name,
+ global::System.StringComparison.Ordinal),
+ };
+ }
+
+ private static string DescribeRequirements(
+ global::System.Collections.Generic.IReadOnlyList securityRequirements)
+ {
+ var parts = new global::System.Collections.Generic.List(securityRequirements.Count);
+
+ foreach (var requirement in securityRequirements)
+ {
+ if (requirement.Authorizations.Count == 0)
+ {
+ parts.Add("anonymous");
+ continue;
+ }
+
+ parts.Add(string.Join(
+ " + ",
+ global::System.Linq.Enumerable.Select(requirement.Authorizations, static x => x.FriendlyName)));
+ }
+
+ return string.Join(" or ", parts);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkill.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkill.g.cs
index f0b7d7b1..0c03d5cc 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkill.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkill.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class SkillsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateSkillSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateSkillSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateSkillSecurityRequirement0,
+ };
partial void PrepareCreateSkillArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateSkillBody request);
@@ -40,9 +59,15 @@ partial void ProcessCreateSkillResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateSkillSecurityRequirements,
+ operationName: "CreateSkillAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/skills",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCreateSkillResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkillVersion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkillVersion.g.cs
index adae36ed..a4e68afe 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkillVersion.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.CreateSkillVersion.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class SkillsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateSkillVersionSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateSkillVersionSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateSkillVersionSecurityRequirement0,
+ };
partial void PrepareCreateSkillVersionArguments(
global::System.Net.Http.HttpClient httpClient,
ref string skillId,
@@ -47,9 +66,15 @@ partial void ProcessCreateSkillVersionResponseContent(
skillId: ref skillId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateSkillVersionSecurityRequirements,
+ operationName: "CreateSkillVersionAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/skills/{skillId}/versions",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -59,7 +84,7 @@ partial void ProcessCreateSkillVersionResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkill.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkill.g.cs
index 0669070f..729d2117 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkill.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkill.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class SkillsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteSkillSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteSkillSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteSkillSecurityRequirement0,
+ };
partial void PrepareDeleteSkillArguments(
global::System.Net.Http.HttpClient httpClient,
ref string skillId);
@@ -39,9 +58,15 @@ partial void ProcessDeleteSkillResponseContent(
httpClient: HttpClient,
skillId: ref skillId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteSkillSecurityRequirements,
+ operationName: "DeleteSkillAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/skills/{skillId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -51,7 +76,7 @@ partial void ProcessDeleteSkillResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkillVersion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkillVersion.g.cs
index 34a35412..84257bfd 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkillVersion.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.DeleteSkillVersion.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class SkillsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteSkillVersionSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteSkillVersionSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteSkillVersionSecurityRequirement0,
+ };
partial void PrepareDeleteSkillVersionArguments(
global::System.Net.Http.HttpClient httpClient,
ref string skillId,
@@ -46,9 +65,15 @@ partial void ProcessDeleteSkillVersionResponseContent(
skillId: ref skillId,
version: ref version);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteSkillVersionSecurityRequirements,
+ operationName: "DeleteSkillVersionAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/skills/{skillId}/versions/{version}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -58,7 +83,7 @@ partial void ProcessDeleteSkillVersionResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkill.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkill.g.cs
index faf5888b..353ce091 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkill.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkill.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class SkillsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_GetSkillSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_GetSkillSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_GetSkillSecurityRequirement0,
+ };
partial void PrepareGetSkillArguments(
global::System.Net.Http.HttpClient httpClient,
ref string skillId);
@@ -39,9 +58,15 @@ partial void ProcessGetSkillResponseContent(
httpClient: HttpClient,
skillId: ref skillId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetSkillSecurityRequirements,
+ operationName: "GetSkillAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/skills/{skillId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -51,7 +76,7 @@ partial void ProcessGetSkillResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContent.g.cs
index 6ace65e9..4bdc5a06 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContent.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class SkillsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_GetSkillContentSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_GetSkillContentSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_GetSkillContentSecurityRequirement0,
+ };
partial void PrepareGetSkillContentArguments(
global::System.Net.Http.HttpClient httpClient,
ref string skillId);
@@ -39,9 +58,15 @@ partial void ProcessGetSkillContentResponseContent(
httpClient: HttpClient,
skillId: ref skillId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetSkillContentSecurityRequirements,
+ operationName: "GetSkillContentAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/skills/{skillId}/content",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -51,7 +76,7 @@ partial void ProcessGetSkillContentResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersion.g.cs
index 19259508..d9dcc864 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersion.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersion.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class SkillsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_GetSkillVersionSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_GetSkillVersionSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_GetSkillVersionSecurityRequirement0,
+ };
partial void PrepareGetSkillVersionArguments(
global::System.Net.Http.HttpClient httpClient,
ref string skillId,
@@ -46,9 +65,15 @@ partial void ProcessGetSkillVersionResponseContent(
skillId: ref skillId,
version: ref version);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetSkillVersionSecurityRequirements,
+ operationName: "GetSkillVersionAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/skills/{skillId}/versions/{version}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -58,7 +83,7 @@ partial void ProcessGetSkillVersionResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContent.g.cs
index 8cf1b438..4d0a8112 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContent.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class SkillsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_GetSkillVersionContentSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_GetSkillVersionContentSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_GetSkillVersionContentSecurityRequirement0,
+ };
partial void PrepareGetSkillVersionContentArguments(
global::System.Net.Http.HttpClient httpClient,
ref string skillId,
@@ -46,9 +65,15 @@ partial void ProcessGetSkillVersionContentResponseContent(
skillId: ref skillId,
version: ref version);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetSkillVersionContentSecurityRequirements,
+ operationName: "GetSkillVersionContentAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/skills/{skillId}/versions/{version}/content",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -58,7 +83,7 @@ partial void ProcessGetSkillVersionContentResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkillVersions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkillVersions.g.cs
index 128df6a5..1f310d06 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkillVersions.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkillVersions.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class SkillsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListSkillVersionsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListSkillVersionsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListSkillVersionsSecurityRequirement0,
+ };
partial void PrepareListSkillVersionsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string skillId,
@@ -56,6 +75,12 @@ partial void ProcessListSkillVersionsResponseContent(
order: ref order,
after: ref after);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListSkillVersionsSecurityRequirements,
+ operationName: "ListSkillVersionsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/skills/{skillId}/versions",
baseUri: HttpClient.BaseAddress);
@@ -63,7 +88,7 @@ partial void ProcessListSkillVersionsResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("order", order?.ToValueString())
.AddOptionalParameter("after", after)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -73,7 +98,7 @@ partial void ProcessListSkillVersionsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkills.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkills.g.cs
index 22b33323..131d0ceb 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkills.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.ListSkills.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class SkillsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListSkillsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListSkillsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListSkillsSecurityRequirement0,
+ };
partial void PrepareListSkillsArguments(
global::System.Net.Http.HttpClient httpClient,
ref int? limit,
@@ -49,6 +68,12 @@ partial void ProcessListSkillsResponseContent(
order: ref order,
after: ref after);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListSkillsSecurityRequirements,
+ operationName: "ListSkillsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/skills",
baseUri: HttpClient.BaseAddress);
@@ -56,7 +81,7 @@ partial void ProcessListSkillsResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("order", order?.ToValueString())
.AddOptionalParameter("after", after)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -66,7 +91,7 @@ partial void ProcessListSkillsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.UpdateSkillDefaultVersion.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.UpdateSkillDefaultVersion.g.cs
index 5fe9e6be..8f1ec0c7 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.UpdateSkillDefaultVersion.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.UpdateSkillDefaultVersion.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class SkillsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_UpdateSkillDefaultVersionSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_UpdateSkillDefaultVersionSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_UpdateSkillDefaultVersionSecurityRequirement0,
+ };
partial void PrepareUpdateSkillDefaultVersionArguments(
global::System.Net.Http.HttpClient httpClient,
ref string skillId,
@@ -47,9 +66,15 @@ partial void ProcessUpdateSkillDefaultVersionResponseContent(
skillId: ref skillId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UpdateSkillDefaultVersionSecurityRequirements,
+ operationName: "UpdateSkillDefaultVersionAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/skills/{skillId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -59,7 +84,7 @@ partial void ProcessUpdateSkillDefaultVersionResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs
index d4fad4e7..589e7592 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.AddUploadPart.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UploadsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_AddUploadPartSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_AddUploadPartSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_AddUploadPartSecurityRequirement0,
+ };
partial void PrepareAddUploadPartArguments(
global::System.Net.Http.HttpClient httpClient,
ref string uploadId,
@@ -49,9 +68,15 @@ partial void ProcessAddUploadPartResponseContent(
uploadId: ref uploadId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AddUploadPartSecurityRequirements,
+ operationName: "AddUploadPartAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/uploads/{uploadId}/parts",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -61,7 +86,7 @@ partial void ProcessAddUploadPartResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs
index f18b6f8b..c01f9a64 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CancelUpload.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UploadsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CancelUploadSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CancelUploadSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CancelUploadSecurityRequirement0,
+ };
partial void PrepareCancelUploadArguments(
global::System.Net.Http.HttpClient httpClient,
ref string uploadId);
@@ -40,9 +59,15 @@ partial void ProcessCancelUploadResponseContent(
httpClient: HttpClient,
uploadId: ref uploadId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CancelUploadSecurityRequirements,
+ operationName: "CancelUploadAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/uploads/{uploadId}/cancel",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCancelUploadResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs
index 53076c4e..2cc0afed 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CompleteUpload.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UploadsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CompleteUploadSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CompleteUploadSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CompleteUploadSecurityRequirement0,
+ };
partial void PrepareCompleteUploadArguments(
global::System.Net.Http.HttpClient httpClient,
ref string uploadId,
@@ -51,9 +70,15 @@ partial void ProcessCompleteUploadResponseContent(
uploadId: ref uploadId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CompleteUploadSecurityRequirements,
+ operationName: "CompleteUploadAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/uploads/{uploadId}/complete",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -63,7 +88,7 @@ partial void ProcessCompleteUploadResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs
index 1d668023..e6cd94ce 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UploadsClient.CreateUpload.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UploadsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateUploadSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateUploadSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateUploadSecurityRequirement0,
+ };
partial void PrepareCreateUploadArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateUploadRequest request);
@@ -54,9 +73,15 @@ partial void ProcessCreateUploadResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateUploadSecurityRequirements,
+ operationName: "CreateUploadAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/uploads",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -66,7 +91,7 @@ partial void ProcessCreateUploadResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioSpeeches.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioSpeeches.g.cs
index 2ad59d80..3660f4d1 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioSpeeches.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioSpeeches.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UsageClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_AudioSpeechesSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_AudioSpeechesSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_AudioSpeechesSecurityRequirement0,
+ };
partial void PrepareAudioSpeechesArguments(
global::System.Net.Http.HttpClient httpClient,
ref int startTime,
@@ -84,6 +103,12 @@ partial void ProcessAudioSpeechesResponseContent(
limit: ref limit,
page: ref page);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AudioSpeechesSecurityRequirements,
+ operationName: "AudioSpeechesAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/usage/audio_speeches",
baseUri: HttpClient.BaseAddress);
@@ -98,7 +123,7 @@ partial void ProcessAudioSpeechesResponseContent(
.AddOptionalParameter("group_by", groupBy, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("page", page)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -108,7 +133,7 @@ partial void ProcessAudioSpeechesResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioTranscriptions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioTranscriptions.g.cs
index 156ae588..c7c39f83 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioTranscriptions.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.AudioTranscriptions.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UsageClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_AudioTranscriptionsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_AudioTranscriptionsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_AudioTranscriptionsSecurityRequirement0,
+ };
partial void PrepareAudioTranscriptionsArguments(
global::System.Net.Http.HttpClient httpClient,
ref int startTime,
@@ -84,6 +103,12 @@ partial void ProcessAudioTranscriptionsResponseContent(
limit: ref limit,
page: ref page);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AudioTranscriptionsSecurityRequirements,
+ operationName: "AudioTranscriptionsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/usage/audio_transcriptions",
baseUri: HttpClient.BaseAddress);
@@ -98,7 +123,7 @@ partial void ProcessAudioTranscriptionsResponseContent(
.AddOptionalParameter("group_by", groupBy, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("page", page)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -108,7 +133,7 @@ partial void ProcessAudioTranscriptionsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.CodeInterpreterSessions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.CodeInterpreterSessions.g.cs
index 21719ab9..1fcdeed5 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.CodeInterpreterSessions.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.CodeInterpreterSessions.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UsageClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CodeInterpreterSessionsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CodeInterpreterSessionsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CodeInterpreterSessionsSecurityRequirement0,
+ };
partial void PrepareCodeInterpreterSessionsArguments(
global::System.Net.Http.HttpClient httpClient,
ref int startTime,
@@ -69,6 +88,12 @@ partial void ProcessCodeInterpreterSessionsResponseContent(
limit: ref limit,
page: ref page);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CodeInterpreterSessionsSecurityRequirements,
+ operationName: "CodeInterpreterSessionsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/usage/code_interpreter_sessions",
baseUri: HttpClient.BaseAddress);
@@ -80,7 +105,7 @@ partial void ProcessCodeInterpreterSessionsResponseContent(
.AddOptionalParameter("group_by", groupBy, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("page", page)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -90,7 +115,7 @@ partial void ProcessCodeInterpreterSessionsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Completions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Completions.g.cs
index 2efd437a..598eb6a2 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Completions.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Completions.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UsageClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CompletionsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CompletionsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CompletionsSecurityRequirement0,
+ };
partial void PrepareCompletionsArguments(
global::System.Net.Http.HttpClient httpClient,
ref int startTime,
@@ -89,6 +108,12 @@ partial void ProcessCompletionsResponseContent(
limit: ref limit,
page: ref page);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CompletionsSecurityRequirements,
+ operationName: "CompletionsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/usage/completions",
baseUri: HttpClient.BaseAddress);
@@ -104,7 +129,7 @@ partial void ProcessCompletionsResponseContent(
.AddOptionalParameter("group_by", groupBy, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("page", page)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -114,7 +139,7 @@ partial void ProcessCompletionsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Costs.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Costs.g.cs
index 790d1e0c..7eb1783d 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Costs.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Costs.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UsageClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CostsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CostsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CostsSecurityRequirement0,
+ };
partial void PrepareCostsArguments(
global::System.Net.Http.HttpClient httpClient,
ref int startTime,
@@ -71,6 +90,12 @@ partial void ProcessCostsResponseContent(
limit: ref limit,
page: ref page);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CostsSecurityRequirements,
+ operationName: "CostsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/costs",
baseUri: HttpClient.BaseAddress);
@@ -82,7 +107,7 @@ partial void ProcessCostsResponseContent(
.AddOptionalParameter("group_by", groupBy, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("page", page)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -92,7 +117,7 @@ partial void ProcessCostsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Embeddings.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Embeddings.g.cs
index 2555531d..ee97a9ac 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Embeddings.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Embeddings.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UsageClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_EmbeddingsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_EmbeddingsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_EmbeddingsSecurityRequirement0,
+ };
partial void PrepareEmbeddingsArguments(
global::System.Net.Http.HttpClient httpClient,
ref int startTime,
@@ -84,6 +103,12 @@ partial void ProcessEmbeddingsResponseContent(
limit: ref limit,
page: ref page);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_EmbeddingsSecurityRequirements,
+ operationName: "EmbeddingsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/usage/embeddings",
baseUri: HttpClient.BaseAddress);
@@ -98,7 +123,7 @@ partial void ProcessEmbeddingsResponseContent(
.AddOptionalParameter("group_by", groupBy, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("page", page)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -108,7 +133,7 @@ partial void ProcessEmbeddingsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Images.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Images.g.cs
index 67146861..e03f36bd 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Images.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Images.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UsageClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ImagesSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ImagesSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ImagesSecurityRequirement0,
+ };
partial void PrepareImagesArguments(
global::System.Net.Http.HttpClient httpClient,
ref int startTime,
@@ -94,6 +113,12 @@ partial void ProcessImagesResponseContent(
limit: ref limit,
page: ref page);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ImagesSecurityRequirements,
+ operationName: "ImagesAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/usage/images",
baseUri: HttpClient.BaseAddress);
@@ -110,7 +135,7 @@ partial void ProcessImagesResponseContent(
.AddOptionalParameter("group_by", groupBy, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("page", page)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -120,7 +145,7 @@ partial void ProcessImagesResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Moderations.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Moderations.g.cs
index ee09e8a2..91fc63c9 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Moderations.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.Moderations.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UsageClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ModerationsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ModerationsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ModerationsSecurityRequirement0,
+ };
partial void PrepareModerationsArguments(
global::System.Net.Http.HttpClient httpClient,
ref int startTime,
@@ -84,6 +103,12 @@ partial void ProcessModerationsResponseContent(
limit: ref limit,
page: ref page);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ModerationsSecurityRequirements,
+ operationName: "ModerationsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/usage/moderations",
baseUri: HttpClient.BaseAddress);
@@ -98,7 +123,7 @@ partial void ProcessModerationsResponseContent(
.AddOptionalParameter("group_by", groupBy, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("page", page)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -108,7 +133,7 @@ partial void ProcessModerationsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.VectorStores.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.VectorStores.g.cs
index e413fa96..d90e3ccd 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.VectorStores.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.VectorStores.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UsageClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_VectorStoresSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_VectorStoresSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_VectorStoresSecurityRequirement0,
+ };
partial void PrepareVectorStoresArguments(
global::System.Net.Http.HttpClient httpClient,
ref int startTime,
@@ -69,6 +88,12 @@ partial void ProcessVectorStoresResponseContent(
limit: ref limit,
page: ref page);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_VectorStoresSecurityRequirements,
+ operationName: "VectorStoresAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/usage/vector_stores",
baseUri: HttpClient.BaseAddress);
@@ -80,7 +105,7 @@ partial void ProcessVectorStoresResponseContent(
.AddOptionalParameter("group_by", groupBy, selector: static x => x.ToValueString(), delimiter: ",", explode: true)
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("page", page)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -90,7 +115,7 @@ partial void ProcessVectorStoresResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignOrganizationRoleToUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignOrganizationRoleToUser.g.cs
index c66502a3..9fa84acc 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignOrganizationRoleToUser.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignOrganizationRoleToUser.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UserOrganizationRoleAssignmentsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_AssignOrganizationRoleToUserSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_AssignOrganizationRoleToUserSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_AssignOrganizationRoleToUserSecurityRequirement0,
+ };
partial void PrepareAssignOrganizationRoleToUserArguments(
global::System.Net.Http.HttpClient httpClient,
ref string userId,
@@ -45,9 +64,15 @@ partial void ProcessAssignOrganizationRoleToUserResponseContent(
userId: ref userId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AssignOrganizationRoleToUserSecurityRequirements,
+ operationName: "AssignOrganizationRoleToUserAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/users/{userId}/roles",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -57,7 +82,7 @@ partial void ProcessAssignOrganizationRoleToUserResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserOrganizationRoleAssignments.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserOrganizationRoleAssignments.g.cs
index de05c9b0..41c431de 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserOrganizationRoleAssignments.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserOrganizationRoleAssignments.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UserOrganizationRoleAssignmentsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListUserOrganizationRoleAssignmentsSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListUserOrganizationRoleAssignmentsSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListUserOrganizationRoleAssignmentsSecurityRequirement0,
+ };
partial void PrepareListUserOrganizationRoleAssignmentsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string userId,
@@ -52,6 +71,12 @@ partial void ProcessListUserOrganizationRoleAssignmentsResponseContent(
after: ref after,
order: ref order);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListUserOrganizationRoleAssignmentsSecurityRequirements,
+ operationName: "ListUserOrganizationRoleAssignmentsAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/users/{userId}/roles",
baseUri: HttpClient.BaseAddress);
@@ -59,7 +84,7 @@ partial void ProcessListUserOrganizationRoleAssignmentsResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("order", order?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -69,7 +94,7 @@ partial void ProcessListUserOrganizationRoleAssignmentsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromUser.g.cs
index b9e494c5..553e0a83 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromUser.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignOrganizationRoleFromUser.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UserOrganizationRoleAssignmentsClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_UnassignOrganizationRoleFromUserSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_UnassignOrganizationRoleFromUserSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_UnassignOrganizationRoleFromUserSecurityRequirement0,
+ };
partial void PrepareUnassignOrganizationRoleFromUserArguments(
global::System.Net.Http.HttpClient httpClient,
ref string userId,
@@ -42,9 +61,15 @@ partial void ProcessUnassignOrganizationRoleFromUserResponseContent(
userId: ref userId,
roleId: ref roleId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UnassignOrganizationRoleFromUserSecurityRequirements,
+ operationName: "UnassignOrganizationRoleFromUserAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/users/{userId}/roles/{roleId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -54,7 +79,7 @@ partial void ProcessUnassignOrganizationRoleFromUserResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.DeleteUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.DeleteUser.g.cs
index 62d84218..f8a583c4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.DeleteUser.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.DeleteUser.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UsersClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteUserSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteUserSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteUserSecurityRequirement0,
+ };
partial void PrepareDeleteUserArguments(
global::System.Net.Http.HttpClient httpClient,
ref string userId);
@@ -37,9 +56,15 @@ partial void ProcessDeleteUserResponseContent(
httpClient: HttpClient,
userId: ref userId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteUserSecurityRequirements,
+ operationName: "DeleteUserAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/users/{userId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -49,7 +74,7 @@ partial void ProcessDeleteUserResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs
index 067e76a1..b5401985 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ListUsers.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UsersClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListUsersSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListUsersSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListUsersSecurityRequirement0,
+ };
partial void PrepareListUsersArguments(
global::System.Net.Http.HttpClient httpClient,
ref int? limit,
@@ -49,6 +68,12 @@ partial void ProcessListUsersResponseContent(
after: ref after,
emails: emails);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListUsersSecurityRequirements,
+ operationName: "ListUsersAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/organization/users",
baseUri: HttpClient.BaseAddress);
@@ -56,7 +81,7 @@ partial void ProcessListUsersResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("emails", emails, delimiter: ",", explode: true)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -66,7 +91,7 @@ partial void ProcessListUsersResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs
index b851597a..84948327 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.ModifyUser.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UsersClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ModifyUserSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ModifyUserSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ModifyUserSecurityRequirement0,
+ };
partial void PrepareModifyUserArguments(
global::System.Net.Http.HttpClient httpClient,
ref string userId,
@@ -45,9 +64,15 @@ partial void ProcessModifyUserResponseContent(
userId: ref userId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ModifyUserSecurityRequirements,
+ operationName: "ModifyUserAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/users/{userId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -57,7 +82,7 @@ partial void ProcessModifyUserResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs
index 8a6068ad..c4da7deb 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsersClient.RetrieveUser.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class UsersClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveUserSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveUserSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveUserSecurityRequirement0,
+ };
partial void PrepareRetrieveUserArguments(
global::System.Net.Http.HttpClient httpClient,
ref string userId);
@@ -37,9 +56,15 @@ partial void ProcessRetrieveUserResponseContent(
httpClient: HttpClient,
userId: ref userId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveUserSecurityRequirements,
+ operationName: "RetrieveUserAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/organization/users/{userId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -49,7 +74,7 @@ partial void ProcessRetrieveUserResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs
index 028b63a6..fce00975 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CancelVectorStoreFileBatch.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VectorStoresClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CancelVectorStoreFileBatchSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CancelVectorStoreFileBatchSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CancelVectorStoreFileBatchSecurityRequirement0,
+ };
partial void PrepareCancelVectorStoreFileBatchArguments(
global::System.Net.Http.HttpClient httpClient,
ref string vectorStoreId,
@@ -42,9 +61,15 @@ partial void ProcessCancelVectorStoreFileBatchResponseContent(
vectorStoreId: ref vectorStoreId,
batchId: ref batchId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CancelVectorStoreFileBatchSecurityRequirements,
+ operationName: "CancelVectorStoreFileBatchAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/vector_stores/{vectorStoreId}/file_batches/{batchId}/cancel",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -54,7 +79,7 @@ partial void ProcessCancelVectorStoreFileBatchResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs
index 0eb4091d..b985aca4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStore.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VectorStoresClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateVectorStoreSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateVectorStoreSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateVectorStoreSecurityRequirement0,
+ };
partial void PrepareCreateVectorStoreArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateVectorStoreRequest request);
@@ -40,9 +59,15 @@ partial void ProcessCreateVectorStoreResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateVectorStoreSecurityRequirements,
+ operationName: "CreateVectorStoreAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/vector_stores",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCreateVectorStoreResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs
index 09c0c099..33aa0f82 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFile.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VectorStoresClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateVectorStoreFileSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateVectorStoreFileSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateVectorStoreFileSecurityRequirement0,
+ };
partial void PrepareCreateVectorStoreFileArguments(
global::System.Net.Http.HttpClient httpClient,
ref string vectorStoreId,
@@ -49,9 +68,15 @@ partial void ProcessCreateVectorStoreFileResponseContent(
vectorStoreId: ref vectorStoreId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateVectorStoreFileSecurityRequirements,
+ operationName: "CreateVectorStoreFileAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/vector_stores/{vectorStoreId}/files",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -61,7 +86,7 @@ partial void ProcessCreateVectorStoreFileResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs
index 06465b19..8f459eb2 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.CreateVectorStoreFileBatch.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VectorStoresClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateVectorStoreFileBatchSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateVectorStoreFileBatchSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateVectorStoreFileBatchSecurityRequirement0,
+ };
partial void PrepareCreateVectorStoreFileBatchArguments(
global::System.Net.Http.HttpClient httpClient,
ref string vectorStoreId,
@@ -50,9 +69,15 @@ partial void ProcessCreateVectorStoreFileBatchResponseContent(
vectorStoreId: ref vectorStoreId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateVectorStoreFileBatchSecurityRequirements,
+ operationName: "CreateVectorStoreFileBatchAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/vector_stores/{vectorStoreId}/file_batches",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -62,7 +87,7 @@ partial void ProcessCreateVectorStoreFileBatchResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs
index f1283ed1..dcca7d70 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStore.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VectorStoresClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteVectorStoreSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteVectorStoreSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteVectorStoreSecurityRequirement0,
+ };
partial void PrepareDeleteVectorStoreArguments(
global::System.Net.Http.HttpClient httpClient,
ref string vectorStoreId);
@@ -37,9 +56,15 @@ partial void ProcessDeleteVectorStoreResponseContent(
httpClient: HttpClient,
vectorStoreId: ref vectorStoreId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteVectorStoreSecurityRequirements,
+ operationName: "DeleteVectorStoreAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/vector_stores/{vectorStoreId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -49,7 +74,7 @@ partial void ProcessDeleteVectorStoreResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs
index 8b853d14..578b245f 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.DeleteVectorStoreFile.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VectorStoresClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteVectorStoreFileSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteVectorStoreFileSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteVectorStoreFileSecurityRequirement0,
+ };
partial void PrepareDeleteVectorStoreFileArguments(
global::System.Net.Http.HttpClient httpClient,
ref string vectorStoreId,
@@ -42,9 +61,15 @@ partial void ProcessDeleteVectorStoreFileResponseContent(
vectorStoreId: ref vectorStoreId,
fileId: ref fileId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteVectorStoreFileSecurityRequirements,
+ operationName: "DeleteVectorStoreFileAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/vector_stores/{vectorStoreId}/files/{fileId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -54,7 +79,7 @@ partial void ProcessDeleteVectorStoreFileResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs
index 4e68e42d..5d30cab5 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFiles.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VectorStoresClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListVectorStoreFilesSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListVectorStoreFilesSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListVectorStoreFilesSecurityRequirement0,
+ };
partial void PrepareListVectorStoreFilesArguments(
global::System.Net.Http.HttpClient httpClient,
ref string vectorStoreId,
@@ -66,6 +85,12 @@ partial void ProcessListVectorStoreFilesResponseContent(
before: ref before,
filter: ref filter);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListVectorStoreFilesSecurityRequirements,
+ operationName: "ListVectorStoreFilesAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/vector_stores/{vectorStoreId}/files",
baseUri: HttpClient.BaseAddress);
@@ -75,7 +100,7 @@ partial void ProcessListVectorStoreFilesResponseContent(
.AddOptionalParameter("after", after)
.AddOptionalParameter("before", before)
.AddOptionalParameter("filter", filter?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -85,7 +110,7 @@ partial void ProcessListVectorStoreFilesResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFilesInABatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFilesInABatch.g.cs
index 6fd5985f..720f5e12 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFilesInABatch.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStoreFilesInABatch.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VectorStoresClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListVectorStoreFilesInABatchSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListVectorStoreFilesInABatchSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListVectorStoreFilesInABatchSecurityRequirement0,
+ };
partial void PrepareListVectorStoreFilesInABatchArguments(
global::System.Net.Http.HttpClient httpClient,
ref string vectorStoreId,
@@ -71,6 +90,12 @@ partial void ProcessListVectorStoreFilesInABatchResponseContent(
before: ref before,
filter: ref filter);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListVectorStoreFilesInABatchSecurityRequirements,
+ operationName: "ListVectorStoreFilesInABatchAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/vector_stores/{vectorStoreId}/file_batches/{batchId}/files",
baseUri: HttpClient.BaseAddress);
@@ -80,7 +105,7 @@ partial void ProcessListVectorStoreFilesInABatchResponseContent(
.AddOptionalParameter("after", after)
.AddOptionalParameter("before", before)
.AddOptionalParameter("filter", filter?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -90,7 +115,7 @@ partial void ProcessListVectorStoreFilesInABatchResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs
index 732d0010..55b888bf 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListVectorStores.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VectorStoresClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListVectorStoresSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListVectorStoresSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListVectorStoresSecurityRequirement0,
+ };
partial void PrepareListVectorStoresArguments(
global::System.Net.Http.HttpClient httpClient,
ref int? limit,
@@ -56,6 +75,12 @@ partial void ProcessListVectorStoresResponseContent(
after: ref after,
before: ref before);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListVectorStoresSecurityRequirements,
+ operationName: "ListVectorStoresAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/vector_stores",
baseUri: HttpClient.BaseAddress);
@@ -64,7 +89,7 @@ partial void ProcessListVectorStoresResponseContent(
.AddOptionalParameter("order", order?.ToValueString())
.AddOptionalParameter("after", after)
.AddOptionalParameter("before", before)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -74,7 +99,7 @@ partial void ProcessListVectorStoresResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs
index 4221079c..cd5b497f 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ModifyVectorStore.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VectorStoresClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ModifyVectorStoreSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ModifyVectorStoreSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ModifyVectorStoreSecurityRequirement0,
+ };
partial void PrepareModifyVectorStoreArguments(
global::System.Net.Http.HttpClient httpClient,
ref string vectorStoreId,
@@ -45,9 +64,15 @@ partial void ProcessModifyVectorStoreResponseContent(
vectorStoreId: ref vectorStoreId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ModifyVectorStoreSecurityRequirements,
+ operationName: "ModifyVectorStoreAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/vector_stores/{vectorStoreId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -57,7 +82,7 @@ partial void ProcessModifyVectorStoreResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStore.g.cs
index 3dab84d5..1dc0316d 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStore.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStore.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VectorStoresClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveVectorStoreSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveVectorStoreSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveVectorStoreSecurityRequirement0,
+ };
partial void PrepareRetrieveVectorStoreArguments(
global::System.Net.Http.HttpClient httpClient,
ref string vectorStoreId);
@@ -37,9 +56,15 @@ partial void ProcessRetrieveVectorStoreResponseContent(
httpClient: HttpClient,
vectorStoreId: ref vectorStoreId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveVectorStoreSecurityRequirements,
+ operationName: "RetrieveVectorStoreAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/vector_stores/{vectorStoreId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -49,7 +74,7 @@ partial void ProcessRetrieveVectorStoreResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFile.g.cs
index 9fd9aa88..13583f54 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFile.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFile.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VectorStoresClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveVectorStoreFileSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveVectorStoreFileSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveVectorStoreFileSecurityRequirement0,
+ };
partial void PrepareRetrieveVectorStoreFileArguments(
global::System.Net.Http.HttpClient httpClient,
ref string vectorStoreId,
@@ -46,9 +65,15 @@ partial void ProcessRetrieveVectorStoreFileResponseContent(
vectorStoreId: ref vectorStoreId,
fileId: ref fileId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveVectorStoreFileSecurityRequirements,
+ operationName: "RetrieveVectorStoreFileAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/vector_stores/{vectorStoreId}/files/{fileId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -58,7 +83,7 @@ partial void ProcessRetrieveVectorStoreFileResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileBatch.g.cs
index 1e9fa72e..b4a9c3e1 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileBatch.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileBatch.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VectorStoresClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveVectorStoreFileBatchSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveVectorStoreFileBatchSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveVectorStoreFileBatchSecurityRequirement0,
+ };
partial void PrepareRetrieveVectorStoreFileBatchArguments(
global::System.Net.Http.HttpClient httpClient,
ref string vectorStoreId,
@@ -46,9 +65,15 @@ partial void ProcessRetrieveVectorStoreFileBatchResponseContent(
vectorStoreId: ref vectorStoreId,
batchId: ref batchId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveVectorStoreFileBatchSecurityRequirements,
+ operationName: "RetrieveVectorStoreFileBatchAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/vector_stores/{vectorStoreId}/file_batches/{batchId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -58,7 +83,7 @@ partial void ProcessRetrieveVectorStoreFileBatchResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs
index 29a16592..45171235 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.RetrieveVectorStoreFileContent.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VectorStoresClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveVectorStoreFileContentSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveVectorStoreFileContentSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveVectorStoreFileContentSecurityRequirement0,
+ };
partial void PrepareRetrieveVectorStoreFileContentArguments(
global::System.Net.Http.HttpClient httpClient,
ref string vectorStoreId,
@@ -46,9 +65,15 @@ partial void ProcessRetrieveVectorStoreFileContentResponseContent(
vectorStoreId: ref vectorStoreId,
fileId: ref fileId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveVectorStoreFileContentSecurityRequirements,
+ operationName: "RetrieveVectorStoreFileContentAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/vector_stores/{vectorStoreId}/files/{fileId}/content",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -58,7 +83,7 @@ partial void ProcessRetrieveVectorStoreFileContentResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs
index 92d4b777..67f99b15 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.SearchVectorStore.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VectorStoresClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_SearchVectorStoreSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_SearchVectorStoreSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_SearchVectorStoreSecurityRequirement0,
+ };
partial void PrepareSearchVectorStoreArguments(
global::System.Net.Http.HttpClient httpClient,
ref string vectorStoreId,
@@ -47,9 +66,15 @@ partial void ProcessSearchVectorStoreResponseContent(
vectorStoreId: ref vectorStoreId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_SearchVectorStoreSecurityRequirements,
+ operationName: "SearchVectorStoreAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/vector_stores/{vectorStoreId}/search",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -59,7 +84,7 @@ partial void ProcessSearchVectorStoreResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs
index 6482c052..ece1737f 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.UpdateVectorStoreFileAttributes.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VectorStoresClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_UpdateVectorStoreFileAttributesSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_UpdateVectorStoreFileAttributesSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_UpdateVectorStoreFileAttributesSecurityRequirement0,
+ };
partial void PrepareUpdateVectorStoreFileAttributesArguments(
global::System.Net.Http.HttpClient httpClient,
ref string vectorStoreId,
@@ -54,9 +73,15 @@ partial void ProcessUpdateVectorStoreFileAttributesResponseContent(
fileId: ref fileId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UpdateVectorStoreFileAttributesSecurityRequirements,
+ operationName: "UpdateVectorStoreFileAttributesAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/vector_stores/{vectorStoreId}/files/{fileId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -66,7 +91,7 @@ partial void ProcessUpdateVectorStoreFileAttributesResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideo.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideo.g.cs
index a59706a6..eead534c 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideo.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideo.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VideosClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateVideoSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateVideoSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateVideoSecurityRequirement0,
+ };
partial void PrepareCreateVideoArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateVideoMultipartBody request);
@@ -40,9 +59,15 @@ partial void ProcessCreateVideoResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateVideoSecurityRequirements,
+ operationName: "CreateVideoAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/videos",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCreateVideoResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoCharacter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoCharacter.g.cs
index 950b6d33..bc65dc97 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoCharacter.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoCharacter.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VideosClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateVideoCharacterSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateVideoCharacterSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateVideoCharacterSecurityRequirement0,
+ };
partial void PrepareCreateVideoCharacterArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateVideoCharacterBody request);
@@ -40,9 +59,15 @@ partial void ProcessCreateVideoCharacterResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateVideoCharacterSecurityRequirements,
+ operationName: "CreateVideoCharacterAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/videos/characters",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCreateVideoCharacterResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoEdit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoEdit.g.cs
index f050ade1..1f4a9cef 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoEdit.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoEdit.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VideosClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateVideoEditSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateVideoEditSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateVideoEditSecurityRequirement0,
+ };
partial void PrepareCreateVideoEditArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateVideoEditMultipartBody request);
@@ -40,9 +59,15 @@ partial void ProcessCreateVideoEditResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateVideoEditSecurityRequirements,
+ operationName: "CreateVideoEditAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/videos/edits",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCreateVideoEditResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoExtend.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoExtend.g.cs
index c020106b..2ae7f774 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoExtend.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.CreateVideoExtend.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VideosClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateVideoExtendSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateVideoExtendSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_CreateVideoExtendSecurityRequirement0,
+ };
partial void PrepareCreateVideoExtendArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateVideoExtendMultipartBody request);
@@ -40,9 +59,15 @@ partial void ProcessCreateVideoExtendResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateVideoExtendSecurityRequirements,
+ operationName: "CreateVideoExtendAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/videos/extensions",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -52,7 +77,7 @@ partial void ProcessCreateVideoExtendResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.DeleteVideo.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.DeleteVideo.g.cs
index 54129a75..e704aa8b 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.DeleteVideo.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.DeleteVideo.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VideosClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_DeleteVideoSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_DeleteVideoSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_DeleteVideoSecurityRequirement0,
+ };
partial void PrepareDeleteVideoArguments(
global::System.Net.Http.HttpClient httpClient,
ref string videoId);
@@ -39,9 +58,15 @@ partial void ProcessDeleteVideoResponseContent(
httpClient: HttpClient,
videoId: ref videoId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteVideoSecurityRequirements,
+ operationName: "DeleteVideoAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/videos/{videoId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -51,7 +76,7 @@ partial void ProcessDeleteVideoResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.GetVideoCharacter.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.GetVideoCharacter.g.cs
index 6da7e22c..b6e79f37 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.GetVideoCharacter.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.GetVideoCharacter.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VideosClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_GetVideoCharacterSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_GetVideoCharacterSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_GetVideoCharacterSecurityRequirement0,
+ };
partial void PrepareGetVideoCharacterArguments(
global::System.Net.Http.HttpClient httpClient,
ref string characterId);
@@ -39,9 +58,15 @@ partial void ProcessGetVideoCharacterResponseContent(
httpClient: HttpClient,
characterId: ref characterId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetVideoCharacterSecurityRequirements,
+ operationName: "GetVideoCharacterAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/videos/characters/{characterId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -51,7 +76,7 @@ partial void ProcessGetVideoCharacterResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.ListVideos.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.ListVideos.g.cs
index cbe87478..9fd09b89 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.ListVideos.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.ListVideos.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VideosClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_ListVideosSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_ListVideosSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_ListVideosSecurityRequirement0,
+ };
partial void PrepareListVideosArguments(
global::System.Net.Http.HttpClient httpClient,
ref int? limit,
@@ -49,6 +68,12 @@ partial void ProcessListVideosResponseContent(
order: ref order,
after: ref after);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListVideosSecurityRequirements,
+ operationName: "ListVideosAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: "/videos",
baseUri: HttpClient.BaseAddress);
@@ -56,7 +81,7 @@ partial void ProcessListVideosResponseContent(
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("order", order?.ToValueString())
.AddOptionalParameter("after", after)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -66,7 +91,7 @@ partial void ProcessListVideosResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RemixVideo.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RemixVideo.g.cs
index eed487c0..24c1eab7 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RemixVideo.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RemixVideo.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VideosClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RemixVideoSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RemixVideoSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RemixVideoSecurityRequirement0,
+ };
partial void PrepareRemixVideoArguments(
global::System.Net.Http.HttpClient httpClient,
ref string videoId,
@@ -47,9 +66,15 @@ partial void ProcessRemixVideoResponseContent(
videoId: ref videoId,
request: request);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RemixVideoSecurityRequirements,
+ operationName: "RemixVideoAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/videos/{videoId}/remix",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -59,7 +84,7 @@ partial void ProcessRemixVideoResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideo.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideo.g.cs
index 1443da89..9e1e980e 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideo.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideo.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VideosClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveVideoSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveVideoSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveVideoSecurityRequirement0,
+ };
partial void PrepareRetrieveVideoArguments(
global::System.Net.Http.HttpClient httpClient,
ref string videoId);
@@ -39,9 +58,15 @@ partial void ProcessRetrieveVideoResponseContent(
httpClient: HttpClient,
videoId: ref videoId);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveVideoSecurityRequirements,
+ operationName: "RetrieveVideoAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/videos/{videoId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -51,7 +76,7 @@ partial void ProcessRetrieveVideoResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideoContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideoContent.g.cs
index 1e13db92..60e24fe6 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideoContent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideoContent.g.cs
@@ -5,6 +5,25 @@ namespace tryAGI.OpenAI
{
public partial class VideosClient
{
+
+
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_RetrieveVideoContentSecurityRequirement0 =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement
+ {
+ Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[]
+ { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_RetrieveVideoContentSecurityRequirements =
+ new global::tryAGI.OpenAI.EndPointSecurityRequirement[]
+ { s_RetrieveVideoContentSecurityRequirement0,
+ };
partial void PrepareRetrieveVideoContentArguments(
global::System.Net.Http.HttpClient httpClient,
ref string videoId,
@@ -45,12 +64,18 @@ partial void ProcessRetrieveVideoContentResponseContent(
videoId: ref videoId,
variant: ref variant);
+
+ var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveVideoContentSecurityRequirements,
+ operationName: "RetrieveVideoContentAsync");
+
var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder(
path: $"/videos/{videoId}/content",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("variant", variant?.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -60,7 +85,7 @@ partial void ProcessRetrieveVideoContentResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif
- foreach (var __authorization in Authorizations)
+ foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")