From 2817143496a927da70ef883c9db38004fbaf0531 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 9 Apr 2026 12:58:46 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...GI.OpenAI.AssistantsClient.CancelARun.g.cs | 29 +++- ...OpenAI.AssistantsClient.CreateMessage.g.cs | 29 +++- ...AGI.OpenAI.AssistantsClient.CreateRun.g.cs | 29 +++- ....OpenAI.AssistantsClient.CreateThread.g.cs | 29 +++- ...I.AssistantsClient.CreateThreadAndRun.g.cs | 29 +++- ...OpenAI.AssistantsClient.DeleteMessage.g.cs | 29 +++- ....OpenAI.AssistantsClient.DeleteThread.g.cs | 29 +++- ....OpenAI.AssistantsClient.ListMessages.g.cs | 29 +++- ....OpenAI.AssistantsClient.ListRunSteps.g.cs | 29 +++- ...yAGI.OpenAI.AssistantsClient.ListRuns.g.cs | 29 +++- ...OpenAI.AssistantsClient.ModifyMessage.g.cs | 29 +++- ...AGI.OpenAI.AssistantsClient.ModifyRun.g.cs | 29 +++- ....OpenAI.AssistantsClient.ModifyThread.g.cs | 29 +++- ...enAI.AssistantsClient.RetrieveMessage.g.cs | 29 +++- ...I.OpenAI.AssistantsClient.RetrieveRun.g.cs | 29 +++- ...enAI.AssistantsClient.RetrieveRunStep.g.cs | 29 +++- ...penAI.AssistantsClient.RetrieveThread.g.cs | 29 +++- ...sistantsClient.SubmitToolOutputsToRun.g.cs | 29 +++- ...ryAGI.OpenAI.AudioClient.CreateSpeech.g.cs | 29 +++- ...penAI.AudioClient.CreateTranscription.g.cs | 29 +++- ...dioClient.CreateTranscriptionAsStream.g.cs | 29 +++- ....OpenAI.AudioClient.CreateTranslation.g.cs | 29 +++- ...tryAGI.OpenAI.AudioClient.CreateVoice.g.cs | 29 +++- ...OpenAI.AudioClient.CreateVoiceConsent.g.cs | 29 +++- ...OpenAI.AudioClient.DeleteVoiceConsent.g.cs | 29 +++- ....OpenAI.AudioClient.ListVoiceConsents.g.cs | 29 +++- ...enAI.AudioClient.RetrieveVoiceConsent.g.cs | 29 +++- ...OpenAI.AudioClient.UpdateVoiceConsent.g.cs | 29 +++- ....OpenAI.AuditLogsClient.ListAuditLogs.g.cs | 29 +++- ...tryAGI.OpenAI.BatchClient.CancelBatch.g.cs | 29 +++- ...tryAGI.OpenAI.BatchClient.CreateBatch.g.cs | 29 +++- ...tryAGI.OpenAI.BatchClient.ListBatches.g.cs | 29 +++- ...yAGI.OpenAI.BatchClient.RetrieveBatch.g.cs | 29 +++- ...t.ActivateCertificatesForOrganization.g.cs | 29 +++- ...Client.ActivateCertificatesForProject.g.cs | 29 +++- ...DeactivateCertificatesForOrganization.g.cs | 29 +++- ...ient.DeactivateCertificatesForProject.g.cs | 29 +++- ....CertificatesClient.DeleteCertificate.g.cs | 29 +++- ...nAI.CertificatesClient.GetCertificate.g.cs | 29 +++- ...esClient.ListOrganizationCertificates.g.cs | 29 +++- ...ficatesClient.ListProjectCertificates.g.cs | 29 +++- ....CertificatesClient.ModifyCertificate.g.cs | 29 +++- ....CertificatesClient.UploadCertificate.g.cs | 29 +++- ...penAI.ChatClient.CreateChatCompletion.g.cs | 29 +++- ...atClient.CreateChatCompletionAsStream.g.cs | 29 +++- ...penAI.ChatClient.DeleteChatCompletion.g.cs | 29 +++- ...I.OpenAI.ChatClient.GetChatCompletion.g.cs | 29 +++- ...AGI.OpenAI.ChatClient.GetChatMessages.g.cs | 29 +++- ...OpenAI.ChatClient.ListChatCompletions.g.cs | 29 +++- ...penAI.ChatClient.UpdateChatCompletion.g.cs | 29 +++- ...AI.CompletionsClient.CreateCompletion.g.cs | 29 +++- ...nversationsClient.CreateAConversation.g.cs | 29 +++- ...penAI.ConversationsClient.CreateItems.g.cs | 29 +++- ...nversationsClient.DeleteAConversation.g.cs | 29 +++- ...enAI.ConversationsClient.DeleteAnItem.g.cs | 29 +++- ....OpenAI.ConversationsClient.ListItems.g.cs | 29 +++- ...ersationsClient.RetrieveAConversation.g.cs | 29 +++- ...AI.ConversationsClient.RetrieveAnItem.g.cs | 29 +++- ...nversationsClient.UpdateAConversation.g.cs | 29 +++- ...nAI.EmbeddingsClient.CreateEmbeddings.g.cs | 29 +++- ...yAGI.OpenAI.EvalsClient.CancelEvalRun.g.cs | 29 +++- .../tryAGI.OpenAI.EvalsClient.CreateEval.g.cs | 29 +++- ...yAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs | 29 +++- ...ryAGI.OpenAI.EvalsClient.DeleteAnEval.g.cs | 29 +++- ...yAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs | 29 +++- .../tryAGI.OpenAI.EvalsClient.GetAnEval.g.cs | 29 +++- ...ryAGI.OpenAI.EvalsClient.GetAnEvalRun.g.cs | 29 +++- ...valsClient.GetAnOutputItemOfAnEvalRun.g.cs | 29 +++- ...nAI.EvalsClient.GetEvalRunOutputItems.g.cs | 29 +++- ...tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs | 29 +++- .../tryAGI.OpenAI.EvalsClient.ListEvals.g.cs | 29 +++- ...ryAGI.OpenAI.EvalsClient.UpdateAnEval.g.cs | 29 +++- .../tryAGI.OpenAI.FilesClient.DeleteFile.g.cs | 29 +++- .../tryAGI.OpenAI.FilesClient.ListFiles.g.cs | 29 +++- ...ryAGI.OpenAI.FilesClient.RetrieveFile.g.cs | 29 +++- ...penAI.FilesClient.RetrieveFileContent.g.cs | 29 +++- .../tryAGI.OpenAI.FilesClient.UploadFile.g.cs | 29 +++- ...nAI.FineTuningClient.CancelFineTuning.g.cs | 29 +++- ...ingClient.CreateCheckpointPermissions.g.cs | 29 +++- ....FineTuningClient.CreateFineTuningJob.g.cs | 29 +++- ...ningClient.DeleteCheckpointPermission.g.cs | 29 +++- ...uningClient.ListCheckpointPermissions.g.cs | 29 +++- ...uningClient.ListFineTuningCheckpoints.g.cs | 29 +++- ...FineTuningClient.ListFineTuningEvents.g.cs | 29 +++- ...I.FineTuningClient.ListFineTuningJobs.g.cs | 29 +++- ...enAI.FineTuningClient.PauseFineTuning.g.cs | 29 +++- ...nAI.FineTuningClient.ResumeFineTuning.g.cs | 29 +++- ...ineTuningClient.RetrieveFineTuningJob.g.cs | 29 +++- ...AGI.OpenAI.FineTuningClient.RunGrader.g.cs | 29 +++- ...penAI.FineTuningClient.ValidateGrader.g.cs | 29 +++- ...sClient.AssignOrganizationRoleToGroup.g.cs | 29 +++- ....ListGroupOrganizationRoleAssignments.g.cs | 29 +++- ...ent.UnassignOrganizationRoleFromGroup.g.cs | 29 +++- ....OpenAI.GroupUsersClient.AddGroupUser.g.cs | 29 +++- ...penAI.GroupUsersClient.ListGroupUsers.g.cs | 29 +++- ...enAI.GroupUsersClient.RemoveGroupUser.g.cs | 29 +++- ...ryAGI.OpenAI.GroupsClient.CreateGroup.g.cs | 29 +++- ...ryAGI.OpenAI.GroupsClient.DeleteGroup.g.cs | 29 +++- ...tryAGI.OpenAI.GroupsClient.ListGroups.g.cs | 29 +++- ...ryAGI.OpenAI.GroupsClient.UpdateGroup.g.cs | 29 +++- ...I.IOpenAiClient.Authorizations.Bearer.g.cs | 1 + ...ryAGI.OpenAI.ImagesClient.CreateImage.g.cs | 29 +++- ...enAI.ImagesClient.CreateImageAsStream.g.cs | 29 +++- ...I.OpenAI.ImagesClient.CreateImageEdit.g.cs | 29 +++- ....ImagesClient.CreateImageEditAsStream.g.cs | 29 +++- ...nAI.ImagesClient.CreateImageVariation.g.cs | 29 +++- ...AGI.OpenAI.InvitesClient.CreateInvite.g.cs | 29 +++- ...AGI.OpenAI.InvitesClient.DeleteInvite.g.cs | 29 +++- ...yAGI.OpenAI.InvitesClient.ListInvites.g.cs | 29 +++- ...I.OpenAI.InvitesClient.RetrieveInvite.g.cs | 29 +++- ...AI.ModelsClient.DeleteAFineTunedModel.g.cs | 29 +++- ...tryAGI.OpenAI.ModelsClient.ListModels.g.cs | 29 +++- ...AGI.OpenAI.ModelsClient.RetrieveModel.g.cs | 29 +++- ...AI.ModerationsClient.CreateModeration.g.cs | 29 +++- ...AI.OpenAiClient.Authorizations.Bearer.g.cs | 12 +- ...OpenAI.OpenAiClient.CancelChatSession.g.cs | 29 +++- ....OpenAI.OpenAiClient.CompactAResponse.g.cs | 29 +++- ...enAI.OpenAiClient.Constructors.Bearer.g.cs | 1 + ...OpenAI.OpenAiClient.CreateAdminApiKey.g.cs | 29 +++- ...nAI.OpenAiClient.CreateChatKitSession.g.cs | 29 +++- ...I.OpenAI.OpenAiClient.CreateContainer.g.cs | 29 +++- ...enAI.OpenAiClient.CreateContainerFile.g.cs | 29 +++- ....OpenAI.OpenAiClient.DeleteAContainer.g.cs | 29 +++- ...nAI.OpenAiClient.DeleteAContainerFile.g.cs | 29 +++- ...OpenAI.OpenAiClient.DeleteAdminApiKey.g.cs | 29 +++- ...enAI.OpenAiClient.DeleteChatKitThread.g.cs | 29 +++- ...enAI.OpenAiClient.GetInputTokenCounts.g.cs | 29 +++- ....ListAllOrganizationAndProjectApiKeys.g.cs | 29 +++- ...I.OpenAiClient.ListChatKitThreadItems.g.cs | 29 +++- ...penAI.OpenAiClient.ListChatKitThreads.g.cs | 29 +++- ...penAI.OpenAiClient.ListContainerFiles.g.cs | 29 +++- ...GI.OpenAI.OpenAiClient.ListContainers.g.cs | 29 +++- ...enAI.OpenAiClient.RetrieveAdminApiKey.g.cs | 29 +++- ...AI.OpenAiClient.RetrieveChatKitThread.g.cs | 29 +++- ...OpenAI.OpenAiClient.RetrieveContainer.g.cs | 29 +++- ...AI.OpenAiClient.RetrieveContainerFile.g.cs | 29 +++- ...AiClient.RetrieveContainerFileContent.g.cs | 29 +++- .../Generated/tryAGI.OpenAI.PathBuilder.g.cs | 34 ++++ ...nmentsClient.AssignProjectRoleToGroup.g.cs | 29 +++- ...lient.ListProjectGroupRoleAssignments.g.cs | 29 +++- ...tsClient.UnassignProjectRoleFromGroup.g.cs | 29 +++- ...I.ProjectGroupsClient.AddProjectGroup.g.cs | 29 +++- ...ProjectGroupsClient.ListProjectGroups.g.cs | 29 +++- ...rojectGroupsClient.RemoveProjectGroup.g.cs | 29 +++- ...gnmentsClient.AssignProjectRoleToUser.g.cs | 29 +++- ...Client.ListProjectUserRoleAssignments.g.cs | 29 +++- ...ntsClient.UnassignProjectRoleFromUser.g.cs | 29 +++- ....OpenAI.ProjectsClient.ArchiveProject.g.cs | 29 +++- ...I.OpenAI.ProjectsClient.CreateProject.g.cs | 29 +++- ...ctsClient.CreateProjectServiceAccount.g.cs | 29 +++- ...enAI.ProjectsClient.CreateProjectUser.g.cs | 29 +++- ...AI.ProjectsClient.DeleteProjectApiKey.g.cs | 29 +++- ...ctsClient.DeleteProjectServiceAccount.g.cs | 29 +++- ...enAI.ProjectsClient.DeleteProjectUser.g.cs | 29 +++- ...nAI.ProjectsClient.ListProjectApiKeys.g.cs | 29 +++- ....ProjectsClient.ListProjectRateLimits.g.cs | 29 +++- ...ectsClient.ListProjectServiceAccounts.g.cs | 29 +++- ...penAI.ProjectsClient.ListProjectUsers.g.cs | 29 +++- ...GI.OpenAI.ProjectsClient.ListProjects.g.cs | 29 +++- ...I.OpenAI.ProjectsClient.ModifyProject.g.cs | 29 +++- ...ProjectsClient.ModifyProjectRateLimit.g.cs | 29 +++- ...enAI.ProjectsClient.ModifyProjectUser.g.cs | 29 +++- ...OpenAI.ProjectsClient.RetrieveProject.g.cs | 29 +++- ....ProjectsClient.RetrieveProjectApiKey.g.cs | 29 +++- ...sClient.RetrieveProjectServiceAccount.g.cs | 29 +++- ...AI.ProjectsClient.RetrieveProjectUser.g.cs | 29 +++- .../tryAGI.OpenAI.Realtime.PathBuilder.g.cs | 34 ++++ ...yAGI.OpenAI.RealtimeClient.AcceptCall.g.cs | 29 +++- ...yAGI.OpenAI.RealtimeClient.CreateCall.g.cs | 29 +++- ...nAI.RealtimeClient.CreateClientSecret.g.cs | 29 +++- ...I.OpenAI.RealtimeClient.CreateSession.g.cs | 29 +++- ...timeClient.CreateTranscriptionSession.g.cs | 29 +++- ...yAGI.OpenAI.RealtimeClient.HangUpCall.g.cs | 29 +++- ...ryAGI.OpenAI.RealtimeClient.ReferCall.g.cs | 29 +++- ...yAGI.OpenAI.RealtimeClient.RejectCall.g.cs | 29 +++- ...penAI.ResponsesClient.CancelAResponse.g.cs | 29 +++- ....ResponsesClient.CreateAModelResponse.g.cs | 29 +++- ...esClient.CreateAModelResponseAsStream.g.cs | 29 +++- ....ResponsesClient.DeleteAModelResponse.g.cs | 29 +++- ...nAI.ResponsesClient.GetAModelResponse.g.cs | 29 +++- ...OpenAI.ResponsesClient.ListInputItems.g.cs | 29 +++- ...AI.RolesClient.CreateOrganizationRole.g.cs | 29 +++- ....OpenAI.RolesClient.CreateProjectRole.g.cs | 29 +++- ...AI.RolesClient.DeleteOrganizationRole.g.cs | 29 +++- ....OpenAI.RolesClient.DeleteProjectRole.g.cs | 29 +++- ...nAI.RolesClient.ListOrganizationRoles.g.cs | 29 +++- ...I.OpenAI.RolesClient.ListProjectRoles.g.cs | 29 +++- ...AI.RolesClient.UpdateOrganizationRole.g.cs | 29 +++- ....OpenAI.RolesClient.UpdateProjectRole.g.cs | 29 +++- .../Generated/tryAGI.OpenAI.Security.g.cs | 145 ++++++++++++++++++ ...ryAGI.OpenAI.SkillsClient.CreateSkill.g.cs | 29 +++- ...penAI.SkillsClient.CreateSkillVersion.g.cs | 29 +++- ...ryAGI.OpenAI.SkillsClient.DeleteSkill.g.cs | 29 +++- ...penAI.SkillsClient.DeleteSkillVersion.g.cs | 29 +++- .../tryAGI.OpenAI.SkillsClient.GetSkill.g.cs | 29 +++- ...I.OpenAI.SkillsClient.GetSkillContent.g.cs | 29 +++- ...I.OpenAI.SkillsClient.GetSkillVersion.g.cs | 29 +++- ...I.SkillsClient.GetSkillVersionContent.g.cs | 29 +++- ...OpenAI.SkillsClient.ListSkillVersions.g.cs | 29 +++- ...tryAGI.OpenAI.SkillsClient.ListSkills.g.cs | 29 +++- ...killsClient.UpdateSkillDefaultVersion.g.cs | 29 +++- ...GI.OpenAI.UploadsClient.AddUploadPart.g.cs | 29 +++- ...AGI.OpenAI.UploadsClient.CancelUpload.g.cs | 29 +++- ...I.OpenAI.UploadsClient.CompleteUpload.g.cs | 29 +++- ...AGI.OpenAI.UploadsClient.CreateUpload.g.cs | 29 +++- ...yAGI.OpenAI.UsageClient.AudioSpeeches.g.cs | 29 +++- ...penAI.UsageClient.AudioTranscriptions.g.cs | 29 +++- ...I.UsageClient.CodeInterpreterSessions.g.cs | 29 +++- ...tryAGI.OpenAI.UsageClient.Completions.g.cs | 29 +++- .../tryAGI.OpenAI.UsageClient.Costs.g.cs | 29 +++- .../tryAGI.OpenAI.UsageClient.Embeddings.g.cs | 29 +++- .../tryAGI.OpenAI.UsageClient.Images.g.cs | 29 +++- ...tryAGI.OpenAI.UsageClient.Moderations.g.cs | 29 +++- ...ryAGI.OpenAI.UsageClient.VectorStores.g.cs | 29 +++- ...tsClient.AssignOrganizationRoleToUser.g.cs | 29 +++- ...t.ListUserOrganizationRoleAssignments.g.cs | 29 +++- ...ient.UnassignOrganizationRoleFromUser.g.cs | 29 +++- .../tryAGI.OpenAI.UsersClient.DeleteUser.g.cs | 29 +++- .../tryAGI.OpenAI.UsersClient.ListUsers.g.cs | 29 +++- .../tryAGI.OpenAI.UsersClient.ModifyUser.g.cs | 29 +++- ...ryAGI.OpenAI.UsersClient.RetrieveUser.g.cs | 29 +++- ...oresClient.CancelVectorStoreFileBatch.g.cs | 29 +++- ....VectorStoresClient.CreateVectorStore.g.cs | 29 +++- ...torStoresClient.CreateVectorStoreFile.g.cs | 29 +++- ...oresClient.CreateVectorStoreFileBatch.g.cs | 29 +++- ....VectorStoresClient.DeleteVectorStore.g.cs | 29 +++- ...torStoresClient.DeleteVectorStoreFile.g.cs | 29 +++- ...ctorStoresClient.ListVectorStoreFiles.g.cs | 29 +++- ...esClient.ListVectorStoreFilesInABatch.g.cs | 29 +++- ...I.VectorStoresClient.ListVectorStores.g.cs | 29 +++- ....VectorStoresClient.ModifyVectorStore.g.cs | 29 +++- ...ectorStoresClient.RetrieveVectorStore.g.cs | 29 +++- ...rStoresClient.RetrieveVectorStoreFile.g.cs | 29 +++- ...esClient.RetrieveVectorStoreFileBatch.g.cs | 29 +++- ...Client.RetrieveVectorStoreFileContent.g.cs | 29 +++- ....VectorStoresClient.SearchVectorStore.g.cs | 29 +++- ...lient.UpdateVectorStoreFileAttributes.g.cs | 29 +++- ...ryAGI.OpenAI.VideosClient.CreateVideo.g.cs | 29 +++- ...nAI.VideosClient.CreateVideoCharacter.g.cs | 29 +++- ...I.OpenAI.VideosClient.CreateVideoEdit.g.cs | 29 +++- ...OpenAI.VideosClient.CreateVideoExtend.g.cs | 29 +++- ...ryAGI.OpenAI.VideosClient.DeleteVideo.g.cs | 29 +++- ...OpenAI.VideosClient.GetVideoCharacter.g.cs | 29 +++- ...tryAGI.OpenAI.VideosClient.ListVideos.g.cs | 29 +++- ...tryAGI.OpenAI.VideosClient.RemixVideo.g.cs | 29 +++- ...AGI.OpenAI.VideosClient.RetrieveVideo.g.cs | 29 +++- ...nAI.VideosClient.RetrieveVideoContent.g.cs | 29 +++- 247 files changed, 6733 insertions(+), 483 deletions(-) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Security.g.cs 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 81b9da77d..5d6cde31f 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 03a486935..2a58a52a2 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 e2b582167..1a1802ac8 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 af0cc00c5..5a8f9f6bb 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 ed1d5d9ef..0003a0d4b 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 b4c1b5b09..1dbced9b3 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 7ea7d5cd0..17cb4cea0 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 711502815..751347f3e 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 a549dbd05..d56a48b06 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 e232953ea..af8183d99 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 4bd991422..897d27ee9 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 14d7f1449..ec7d74def 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 251ef8253..52f0466ca 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 982c33626..0d2532e04 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 41de1927d..ff5c258f6 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 5a0b3ddb0..ae1c590b6 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 05cb1af04..dc35b8af9 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 ded65c007..a169a124f 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 7ba53ce0f..0e5bf56fb 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 6630b944c..ff0aaa5fe 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 c2610081f..07e077340 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 0eb34ecd1..ec320bc0c 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 11482e3c7..c4121ca35 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 3319c3c35..22f96105c 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 24810a8bd..c48293e29 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 bd642e228..99a6b1f4f 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 fc696f5cf..82d4f802c 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 da60fcedb..fce304357 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 44cefa6a3..59073765c 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 aa1ec067d..4f4d676d9 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 98a2004fd..efca08f4a 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 3d55fda32..325efc0ce 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 24df99330..4c9a7e66f 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 c1674258a..a633d7daf 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 01094792e..cd0dac07c 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 48a1a4452..334945e22 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 33366ec8e..f57f4f184 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 062c33978..2c184ce2e 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 550e96dac..3e0f23dfc 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 7ba1402cd..46512b783 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 dd3395114..1dca6ce4e 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 0f231878f..363bd26bb 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 dac273df5..c15a0ec92 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 31bb6fc5f..64f565190 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 f4854ed07..38964f005 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 57895fb2f..ef3f6907c 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 adfd922a2..f9751309f 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 9780cf832..46f402317 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 1c4003639..0c7631be2 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 fe57d53cf..57d2fcf7d 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 755e6263c..0fcd5b393 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 4e112323e..7c4a35a71 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 4bd1a20fe..b3bc6ffc7 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 db1bff46b..18b44cabf 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 597c9c5c4..c89567867 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 1a80d229e..96e6141ca 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 ef7c512f3..1e5c7979b 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 6ccdc8e80..b1ce42b4c 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 bf97ca380..416efd72b 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 67d6692e7..c20affdfd 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 f145d47ed..6b3d250d9 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 f554900b7..0daf504d0 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 2380b553a..c4e224a78 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 f09497fa8..000e7ec48 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 a4473895e..6602bf4fa 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 7ca7bb3a0..1d7f5e8ab 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 8067c5ba1..343bfbe62 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 766f7cfc8..40f3a8ee0 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 62d249a9a..1c8d1dcde 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 f8cdb1481..06792b7c2 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 4017e6119..5d5fbc736 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 82afe30ff..8bd0c1d5c 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 7ff5a4661..af8fa9245 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 47491f0fd..6e3b28fc9 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 518dffe8c..a4ad05c41 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 b555afe3f..38f8b5bce 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 3ae04f150..b39fa2da8 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 a645093ed..808d7a823 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 f5d3910b9..515348ae6 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 2b0350039..2e2ec00ec 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 92d83eccb..87d3db8d0 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 517d3443b..001b1cafc 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 85bfc2b4e..a2020483b 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 d4635fdd2..86c3410e7 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 b8b35665a..9284a0ad8 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 1b0126836..d75d526ed 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 249af772b..148962650 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 226b712be..ca2083706 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 9d1eb207a..04379f8a0 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 9224ed6b3..ee5a3c131 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 9e4544bbe..896870bb4 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 b16816f49..fe0ae0005 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 f1f710e99..1e9a8a4b5 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 14163b748..97f7ce81a 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 85a75dc7b..1384a17b9 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 0550097f3..47c36e0f2 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 94c290d5c..61caf5470 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 d9a77873f..543904e4d 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 493033742..fb3f8565a 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 ba544ed48..980804ed9 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 5e90941ed..0e6a5a804 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 cc2fbbf2f..0b1545322 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 a5775f605..4764278fc 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 b0ca87e40..62b8d0c56 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 81c9c2fa5..cb179ffa3 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 82760b647..4230a742d 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 d32cc529b..826d9d463 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 f00983480..cc7ae3c16 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 3993455ae..e00cf0a3c 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 4dd72e146..aeff32e41 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 c4b1c2200..be441a471 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 38002121f..95337967a 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 22b5dfc65..96c06c08a 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 f9d65bcf9..48f64d36a 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 7921aff22..e1cd09edc 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 dba380e88..19559fbf1 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 58dfb8c11..c00077325 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 cec9161a4..464c6204f 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 574ee80f4..6d1344f2c 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 1401c019c..6c9038fe6 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 44c29058b..a967bbae0 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 a5f015383..52d873e5c 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 4a3a4358e..9c9bc2cd5 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 bf0fc40a5..1e704cf48 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 0fe6eada4..f1eabe924 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 16c6f5ce6..0e58a0350 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 7b89f61c3..0f57b5076 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 d86d98343..09dd50803 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 6a75d435b..f8523c757 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 739ea051f..d036e5644 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 535e8612a..0c4bb0fc4 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 903627aa0..18ba130cf 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 306e68d7c..39038e106 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 f3bed57dd..dcab58b7f 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 c9ec7c2a2..3a42110bb 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 7200505fd..93a722aae 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 79b9e537c..d42aec623 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 c0ba07b4f..51ce15827 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 f9acdb851..a9c5c3478 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 fa85f557f..3c012aff3 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 dacbba5ae..f390d3ada 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 4574c900b..bb2b0aa3c 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 feb0058c4..a45b487de 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 43b1304be..818b87de7 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 b7e3a169a..714a3dd5c 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 c160ec08c..060baaa44 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 1b1b1ba79..cc651a72e 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 aed558399..ddb25fd43 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 67e01a691..40df0f613 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 548ed0a23..d33c90993 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 8b53805ab..99cbdb885 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 919fd759b..e4967bc94 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 10b99c2c0..b730a4c95 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 7fa68eb4f..39e86c099 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 fc20e1fe8..5dc8673f9 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 b741025fc..bbe0b1e4b 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 910180669..e90ca4efb 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 9e95ca719..e4b0853f5 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 c8886e135..dc5c89c6d 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 81ce7fbeb..ce84d8a14 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 4ee322795..173d04ac7 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 700f06928..02ae03561 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 c4bb70100..481ae7655 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 8112eff98..5ecad37a1 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 6244e866c..dae86808e 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 2290284f2..760e40a06 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 5ce6cfa55..fb70b5b26 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 e1b6dd6c1..60b77c0b0 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 62f9dac7c..646d38e82 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 8be298e37..f0a3f0153 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 d0335ff72..1459da908 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 1dd1ed0ae..b5e908b30 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 acd424b0b..694996e39 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 3e0e5233c..b87a6159a 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 d67320324..60bcf335e 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 d9131d201..eee9d8abb 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 cbd75a656..22a47ade5 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 781587beb..f641107bb 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 7918d83a0..3aa852131 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 c48984bf3..eae31cee7 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 36fc4ccdb..d155c2f6b 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 f3ed215a6..a4675440f 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 5fcc7c505..6da1775ed 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 3578537f2..583b5450b 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 be5d408f8..465ddce41 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 71951a7ab..4425c9232 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 52cba09bd..0b96917d9 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 8afda66da..e7dce4c42 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 12066b737..d03c6b2de 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 000000000..d7087fbf3 --- /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 f0b7d7b12..0c03d5cc4 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 adae36ed0..a4e68afed 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 0669070fa..729d21172 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 34a35412d..84257bfd2 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 faf5888ba..353ce091c 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 6ace65e90..4bdc5a06a 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 19259508b..d9dcc864a 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 8cf1b4383..4d0a81120 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 128df6a57..1f310d061 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 22b333231..131d0ceb0 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 5fe9e6be6..8f1ec0c7b 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 d4fad4e71..589e75920 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 f18b6f8b1..c01f9a646 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 53076c4e1..2cc0afedc 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 1d6680239..e6cd94ce7 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 2ad59d805..3660f4d18 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 156ae5884..c7c39f832 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 21719ab93..1fcdeed5c 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 2efd437a2..598eb6a2d 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 790d1e0cc..7eb1783d7 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 2555531d0..ee97a9ac8 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 67146861c..e03f36bd6 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 ee09e8a2e..91fc63c99 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 e413fa96b..d90e3ccdc 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 c66502a3f..9fa84acc2 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 de05c9b04..41c431ded 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 b9e494c51..553e0a838 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 62d84218c..f8a583c40 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 067e76a18..b5401985f 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 b851597af..849483276 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 8a6068ade..c4da7deba 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 028b63a6f..fce009750 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 0eb4091d3..b985aca4f 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 09c0c0991..33aa0f823 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 06465b19f..8f459eb2c 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 f1283ed14..dcca7d70a 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 8b853d145..578b245f9 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 4e68e42d7..5d30cab53 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 6fd5985f7..720f5e129 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 732d00101..55b888bf8 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 4221079c7..cd5b497f4 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 3dab84d51..1dc0316de 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 9fd9aa883..13583f541 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 1e9fa72ee..b4a9c3e1c 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 29a165923..451712355 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 92d4b777e..67f99b157 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 6482c0520..ece1737f1 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 a59706a61..eead534c9 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 950b6d33c..bc65dc97b 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 f050ade16..1f4a9ceff 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 c020106b2..2ae7f7748 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 54129a75b..e704aa8b2 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 6da7e22c8..b6e79f373 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 cbe87478d..9fd09b89a 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 eed487c03..24c1eab72 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 1443da899..9e1e980e8 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 1e13db925..60e24fe6b 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")