diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.CallAgent.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.CallAgent.g.cs index 42a5043..31c78ab 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.CallAgent.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.CallAgent.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class AgentsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_CallAgentSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_CallAgentSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_CallAgentSecurityRequirement0, + }; partial void PrepareCallAgentArguments( global::System.Net.Http.HttpClient httpClient, global::tryAGI.Humanloop.AgentCallRequest request); @@ -40,9 +59,15 @@ partial void ProcessCallAgentResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CallAgentSecurityRequirements, + operationName: "CallAgentAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/agents/call", - baseUri: 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 ProcessCallAgentResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.DeleteAgent.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.DeleteAgent.g.cs index cd16c7b..baaceb6 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.DeleteAgent.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.DeleteAgent.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class AgentsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_DeleteAgentSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_DeleteAgentSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_DeleteAgentSecurityRequirement0, + }; partial void PrepareDeleteAgentArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -32,9 +51,15 @@ partial void ProcessDeleteAgentResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteAgentSecurityRequirements, + operationName: "DeleteAgentAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/agents/{id}", - baseUri: 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, @@ -44,7 +69,7 @@ partial void ProcessDeleteAgentResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.GetAgent.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.GetAgent.g.cs index a81c0db..0f4a543 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.GetAgent.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.GetAgent.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class AgentsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_GetAgentSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_GetAgentSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_GetAgentSecurityRequirement0, + }; partial void PrepareGetAgentArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -42,12 +61,18 @@ partial void ProcessGetAgentResponseContent( id: ref id, versionId: ref versionId); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetAgentSecurityRequirements, + operationName: "GetAgentAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/agents/{id}", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("versionId", versionId) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -57,7 +82,7 @@ partial void ProcessGetAgentResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgentVersions.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgentVersions.g.cs index f049249..6fdf520 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgentVersions.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgentVersions.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class AgentsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_ListAgentVersionsSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_ListAgentVersionsSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_ListAgentVersionsSecurityRequirement0, + }; partial void PrepareListAgentVersionsArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -37,9 +56,15 @@ partial void ProcessListAgentVersionsResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListAgentVersionsSecurityRequirements, + operationName: "ListAgentVersionsAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/agents/{id}/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.Get, @@ -49,7 +74,7 @@ partial void ProcessListAgentVersionsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgents.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgents.g.cs index 7b09fdd..5f997d0 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgents.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.ListAgents.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class AgentsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_ListAgentsSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_ListAgentsSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_ListAgentsSecurityRequirement0, + }; partial void PrepareListAgentsArguments( global::System.Net.Http.HttpClient httpClient, ref int? page, @@ -57,6 +76,12 @@ partial void ProcessListAgentsResponseContent( sortBy: ref sortBy, order: ref order); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListAgentsSecurityRequirements, + operationName: "ListAgentsAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/agents", baseUri: HttpClient.BaseAddress); @@ -66,7 +91,7 @@ partial void ProcessListAgentsResponseContent( .AddOptionalParameter("name", name) .AddOptionalParameter("sortBy", sortBy) .AddOptionalParameter("order", order?.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 ProcessListAgentsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.LogAgent.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.LogAgent.g.cs index 2331bad..d65de15 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.LogAgent.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.LogAgent.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class AgentsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_LogAgentSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_LogAgentSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_LogAgentSecurityRequirement0, + }; partial void PrepareLogAgentArguments( global::System.Net.Http.HttpClient httpClient, global::tryAGI.Humanloop.LogAgentRequest request); @@ -40,9 +59,15 @@ partial void ProcessLogAgentResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_LogAgentSecurityRequirements, + operationName: "LogAgentAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/agents/log", - baseUri: 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 ProcessLogAgentResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.MoveAgent.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.MoveAgent.g.cs index 1bee471..cdec632 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.MoveAgent.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.MoveAgent.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class AgentsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_MoveAgentSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_MoveAgentSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_MoveAgentSecurityRequirement0, + }; partial void PrepareMoveAgentArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -45,9 +64,15 @@ partial void ProcessMoveAgentResponseContent( id: ref id, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_MoveAgentSecurityRequirements, + operationName: "MoveAgentAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/agents/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -57,7 +82,7 @@ partial void ProcessMoveAgentResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.RemoveAgentDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.RemoveAgentDeployment.g.cs index 93fee30..354c40b 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.RemoveAgentDeployment.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.RemoveAgentDeployment.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class AgentsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_RemoveAgentDeploymentSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_RemoveAgentDeploymentSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_RemoveAgentDeploymentSecurityRequirement0, + }; partial void PrepareRemoveAgentDeploymentArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -37,9 +56,15 @@ partial void ProcessRemoveAgentDeploymentResponse( id: ref id, environmentId: ref environmentId); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RemoveAgentDeploymentSecurityRequirements, + operationName: "RemoveAgentDeploymentAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/agents/{id}/environments/{environmentId}", - baseUri: 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 ProcessRemoveAgentDeploymentResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.SetAgentDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.SetAgentDeployment.g.cs index 9ad4822..6c66247 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.SetAgentDeployment.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.SetAgentDeployment.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class AgentsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_SetAgentDeploymentSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_SetAgentDeploymentSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_SetAgentDeploymentSecurityRequirement0, + }; partial void PrepareSetAgentDeploymentArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -50,9 +69,15 @@ partial void ProcessSetAgentDeploymentResponseContent( environmentId: ref environmentId, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SetAgentDeploymentSecurityRequirements, + operationName: "SetAgentDeploymentAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/agents/{id}/environments/{environmentId}", - baseUri: 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 ProcessSetAgentDeploymentResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpdateAgentMonitoring.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpdateAgentMonitoring.g.cs index d030ebd..e9d7b8f 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpdateAgentMonitoring.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpdateAgentMonitoring.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class AgentsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_UpdateAgentMonitoringSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_UpdateAgentMonitoringSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_UpdateAgentMonitoringSecurityRequirement0, + }; partial void PrepareUpdateAgentMonitoringArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -45,9 +64,15 @@ partial void ProcessUpdateAgentMonitoringResponseContent( id: ref id, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateAgentMonitoringSecurityRequirements, + operationName: "UpdateAgentMonitoringAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/agents/{id}/evaluators", - baseUri: 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 ProcessUpdateAgentMonitoringResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpsertAgent.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpsertAgent.g.cs index 4b97278..f536fbc 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpsertAgent.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.AgentsClient.UpsertAgent.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class AgentsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_UpsertAgentSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_UpsertAgentSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_UpsertAgentSecurityRequirement0, + }; partial void PrepareUpsertAgentArguments( global::System.Net.Http.HttpClient httpClient, global::tryAGI.Humanloop.AgentRequest request); @@ -40,9 +59,15 @@ partial void ProcessUpsertAgentResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpsertAgentSecurityRequirements, + operationName: "UpsertAgentAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/agents", - baseUri: 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 ProcessUpsertAgentResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.DeleteDataset.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.DeleteDataset.g.cs index e5e19d7..1740ac4 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.DeleteDataset.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.DeleteDataset.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class DatasetsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_DeleteDatasetSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_DeleteDatasetSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_DeleteDatasetSecurityRequirement0, + }; partial void PrepareDeleteDatasetArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -32,9 +51,15 @@ partial void ProcessDeleteDatasetResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteDatasetSecurityRequirements, + operationName: "DeleteDatasetAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/datasets/{id}", - baseUri: 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, @@ -44,7 +69,7 @@ partial void ProcessDeleteDatasetResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.GetDataset.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.GetDataset.g.cs index 56291aa..d36e9ee 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.GetDataset.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.GetDataset.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class DatasetsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_GetDatasetSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_GetDatasetSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_GetDatasetSecurityRequirement0, + }; partial void PrepareGetDatasetArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -47,13 +66,19 @@ partial void ProcessGetDatasetResponseContent( versionId: ref versionId, includeDatapoints: ref includeDatapoints); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetDatasetSecurityRequirements, + operationName: "GetDatasetAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/datasets/{id}", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("versionId", versionId) .AddOptionalParameter("includeDatapoints", includeDatapoints?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -63,7 +88,7 @@ partial void ProcessGetDatasetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasetVersions.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasetVersions.g.cs index 91954f4..ccbdb96 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasetVersions.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasetVersions.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class DatasetsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_ListDatasetVersionsSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_ListDatasetVersionsSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_ListDatasetVersionsSecurityRequirement0, + }; partial void PrepareListDatasetVersionsArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -37,9 +56,15 @@ partial void ProcessListDatasetVersionsResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListDatasetVersionsSecurityRequirements, + operationName: "ListDatasetVersionsAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/datasets/{id}/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.Get, @@ -49,7 +74,7 @@ partial void ProcessListDatasetVersionsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasets.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasets.g.cs index 884fb8f..912b7d9 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasets.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.ListDatasets.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class DatasetsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_ListDatasetsSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_ListDatasetsSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_ListDatasetsSecurityRequirement0, + }; partial void PrepareListDatasetsArguments( global::System.Net.Http.HttpClient httpClient, ref int? page, @@ -57,6 +76,12 @@ partial void ProcessListDatasetsResponseContent( sortBy: ref sortBy, order: ref order); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListDatasetsSecurityRequirements, + operationName: "ListDatasetsAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/datasets", baseUri: HttpClient.BaseAddress); @@ -66,7 +91,7 @@ partial void ProcessListDatasetsResponseContent( .AddOptionalParameter("name", name) .AddOptionalParameter("sortBy", sortBy) .AddOptionalParameter("order", order?.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 ProcessListDatasetsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.MoveDataset.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.MoveDataset.g.cs index 31163bc..40c8ed0 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.MoveDataset.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.MoveDataset.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class DatasetsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_MoveDatasetSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_MoveDatasetSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_MoveDatasetSecurityRequirement0, + }; partial void PrepareMoveDatasetArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -45,9 +64,15 @@ partial void ProcessMoveDatasetResponseContent( id: ref id, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_MoveDatasetSecurityRequirements, + operationName: "MoveDatasetAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/datasets/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -57,7 +82,7 @@ partial void ProcessMoveDatasetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.RemoveDatasetDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.RemoveDatasetDeployment.g.cs index 9560188..c9d2afa 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.RemoveDatasetDeployment.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.RemoveDatasetDeployment.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class DatasetsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_RemoveDatasetDeploymentSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_RemoveDatasetDeploymentSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_RemoveDatasetDeploymentSecurityRequirement0, + }; partial void PrepareRemoveDatasetDeploymentArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -37,9 +56,15 @@ partial void ProcessRemoveDatasetDeploymentResponse( id: ref id, environmentId: ref environmentId); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RemoveDatasetDeploymentSecurityRequirements, + operationName: "RemoveDatasetDeploymentAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/datasets/{id}/environments/{environmentId}", - baseUri: 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 ProcessRemoveDatasetDeploymentResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.SetDatasetDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.SetDatasetDeployment.g.cs index aef2f3c..f693b50 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.SetDatasetDeployment.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.SetDatasetDeployment.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class DatasetsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_SetDatasetDeploymentSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_SetDatasetDeploymentSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_SetDatasetDeploymentSecurityRequirement0, + }; partial void PrepareSetDatasetDeploymentArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -50,9 +69,15 @@ partial void ProcessSetDatasetDeploymentResponseContent( environmentId: ref environmentId, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SetDatasetDeploymentSecurityRequirements, + operationName: "SetDatasetDeploymentAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/datasets/{id}/environments/{environmentId}", - baseUri: 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 ProcessSetDatasetDeploymentResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.UpsertDataset.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.UpsertDataset.g.cs index 4a9c640..30af946 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.UpsertDataset.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DatasetsClient.UpsertDataset.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class DatasetsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_UpsertDatasetSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_UpsertDatasetSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_UpsertDatasetSecurityRequirement0, + }; partial void PrepareUpsertDatasetArguments( global::System.Net.Http.HttpClient httpClient, global::tryAGI.Humanloop.DatasetRequest request); @@ -40,9 +59,15 @@ partial void ProcessUpsertDatasetResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpsertDatasetSecurityRequirements, + operationName: "UpsertDatasetAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/datasets", - baseUri: 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 ProcessUpsertDatasetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.CreateDirectory.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.CreateDirectory.g.cs index 9c94ae9..6485e3f 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.CreateDirectory.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.CreateDirectory.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class DirectoriesClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_CreateDirectorySecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_CreateDirectorySecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_CreateDirectorySecurityRequirement0, + }; partial void PrepareCreateDirectoryArguments( global::System.Net.Http.HttpClient httpClient, global::tryAGI.Humanloop.CreateDirectoryRequest request); @@ -40,9 +59,15 @@ partial void ProcessCreateDirectoryResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateDirectorySecurityRequirements, + operationName: "CreateDirectoryAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/directories", - baseUri: 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 ProcessCreateDirectoryResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.DeleteDirectory.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.DeleteDirectory.g.cs index bf53d22..3f1e5df 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.DeleteDirectory.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.DeleteDirectory.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class DirectoriesClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_DeleteDirectorySecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_DeleteDirectorySecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_DeleteDirectorySecurityRequirement0, + }; partial void PrepareDeleteDirectoryArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -32,9 +51,15 @@ partial void ProcessDeleteDirectoryResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteDirectorySecurityRequirements, + operationName: "DeleteDirectoryAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/directories/{id}", - baseUri: 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, @@ -44,7 +69,7 @@ partial void ProcessDeleteDirectoryResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.GetDirectory.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.GetDirectory.g.cs index abcb186..5699ecb 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.GetDirectory.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.GetDirectory.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class DirectoriesClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_GetDirectorySecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_GetDirectorySecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_GetDirectorySecurityRequirement0, + }; partial void PrepareGetDirectoryArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -37,9 +56,15 @@ partial void ProcessGetDirectoryResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetDirectorySecurityRequirements, + operationName: "GetDirectoryAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/directories/{id}", - baseUri: 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 ProcessGetDirectoryResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.ListDirectories.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.ListDirectories.g.cs index 9f20a3e..5bb54b4 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.ListDirectories.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.ListDirectories.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class DirectoriesClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_ListDirectoriesSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_ListDirectoriesSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_ListDirectoriesSecurityRequirement0, + }; partial void PrepareListDirectoriesArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareListDirectoriesRequest( @@ -32,9 +51,15 @@ partial void ProcessListDirectoriesResponseContent( PrepareListDirectoriesArguments( httpClient: HttpClient); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListDirectoriesSecurityRequirements, + operationName: "ListDirectoriesAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/directories", - baseUri: 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 ProcessListDirectoriesResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.UpdateDirectory.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.UpdateDirectory.g.cs index 84deafa..93cb52d 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.UpdateDirectory.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.DirectoriesClient.UpdateDirectory.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class DirectoriesClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_UpdateDirectorySecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_UpdateDirectorySecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_UpdateDirectorySecurityRequirement0, + }; partial void PrepareUpdateDirectoryArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -45,9 +64,15 @@ partial void ProcessUpdateDirectoryResponseContent( id: ref id, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateDirectorySecurityRequirements, + operationName: "UpdateDirectoryAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/directories/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -57,7 +82,7 @@ partial void ProcessUpdateDirectoryResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.CreateEvaluation.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.CreateEvaluation.g.cs index adc826a..82067de 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.CreateEvaluation.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.CreateEvaluation.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class EvaluationsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_CreateEvaluationSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_CreateEvaluationSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_CreateEvaluationSecurityRequirement0, + }; partial void PrepareCreateEvaluationArguments( global::System.Net.Http.HttpClient httpClient, global::tryAGI.Humanloop.EvaluationRequest request); @@ -40,9 +59,15 @@ partial void ProcessCreateEvaluationResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateEvaluationSecurityRequirements, + operationName: "CreateEvaluationAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/evaluations", - baseUri: 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 ProcessCreateEvaluationResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.GetEvaluation.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.GetEvaluation.g.cs index e3b357b..c949e02 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.GetEvaluation.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.GetEvaluation.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class EvaluationsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_GetEvaluationSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_GetEvaluationSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_GetEvaluationSecurityRequirement0, + }; partial void PrepareGetEvaluationArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -37,9 +56,15 @@ partial void ProcessGetEvaluationResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetEvaluationSecurityRequirements, + operationName: "GetEvaluationAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/evaluations/{id}", - baseUri: 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 ProcessGetEvaluationResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationLogs.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationLogs.g.cs index d1445ee..94a72b1 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationLogs.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationLogs.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class EvaluationsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_ListEvaluationLogsSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_ListEvaluationLogsSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_ListEvaluationLogsSecurityRequirement0, + }; partial void PrepareListEvaluationLogsArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -47,13 +66,19 @@ partial void ProcessListEvaluationLogsResponseContent( page: ref page, size: ref size); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListEvaluationLogsSecurityRequirements, + operationName: "ListEvaluationLogsAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/evaluations/{id}/logs", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("page", page?.ToString()) .AddOptionalParameter("size", size?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -63,7 +88,7 @@ partial void ProcessListEvaluationLogsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationRuns.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationRuns.g.cs index b638c5f..377f9de 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationRuns.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluationRuns.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class EvaluationsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_ListEvaluationRunsSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_ListEvaluationRunsSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_ListEvaluationRunsSecurityRequirement0, + }; partial void PrepareListEvaluationRunsArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -37,9 +56,15 @@ partial void ProcessListEvaluationRunsResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListEvaluationRunsSecurityRequirements, + operationName: "ListEvaluationRunsAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/evaluations/{id}/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.Get, @@ -49,7 +74,7 @@ partial void ProcessListEvaluationRunsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluations.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluations.g.cs index 9eafafc..88f9c73 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluations.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.ListEvaluations.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class EvaluationsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_ListEvaluationsSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_ListEvaluationsSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_ListEvaluationsSecurityRequirement0, + }; partial void PrepareListEvaluationsArguments( global::System.Net.Http.HttpClient httpClient, ref int? page, @@ -47,6 +66,12 @@ partial void ProcessListEvaluationsResponseContent( size: ref size, fileId: ref fileId); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListEvaluationsSecurityRequirements, + operationName: "ListEvaluationsAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/evaluations", baseUri: HttpClient.BaseAddress); @@ -54,7 +79,7 @@ partial void ProcessListEvaluationsResponseContent( .AddOptionalParameter("page", page?.ToString()) .AddOptionalParameter("size", size?.ToString()) .AddOptionalParameter("fileId", fileId) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -64,7 +89,7 @@ partial void ProcessListEvaluationsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.UpdateEvaluation.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.UpdateEvaluation.g.cs index 2e1f3bc..1053dce 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.UpdateEvaluation.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluationsClient.UpdateEvaluation.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class EvaluationsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_UpdateEvaluationSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_UpdateEvaluationSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_UpdateEvaluationSecurityRequirement0, + }; partial void PrepareUpdateEvaluationArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -45,9 +64,15 @@ partial void ProcessUpdateEvaluationResponseContent( id: ref id, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateEvaluationSecurityRequirements, + operationName: "UpdateEvaluationAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/evaluations/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -57,7 +82,7 @@ partial void ProcessUpdateEvaluationResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.DeleteEvaluator.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.DeleteEvaluator.g.cs index edbc209..8b527ea 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.DeleteEvaluator.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.DeleteEvaluator.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class EvaluatorsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_DeleteEvaluatorSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_DeleteEvaluatorSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_DeleteEvaluatorSecurityRequirement0, + }; partial void PrepareDeleteEvaluatorArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -32,9 +51,15 @@ partial void ProcessDeleteEvaluatorResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteEvaluatorSecurityRequirements, + operationName: "DeleteEvaluatorAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/evaluators/{id}", - baseUri: 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, @@ -44,7 +69,7 @@ partial void ProcessDeleteEvaluatorResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.GetEvaluator.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.GetEvaluator.g.cs index 9837297..da355ff 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.GetEvaluator.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.GetEvaluator.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class EvaluatorsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_GetEvaluatorSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_GetEvaluatorSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_GetEvaluatorSecurityRequirement0, + }; partial void PrepareGetEvaluatorArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -42,12 +61,18 @@ partial void ProcessGetEvaluatorResponseContent( id: ref id, versionId: ref versionId); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetEvaluatorSecurityRequirements, + operationName: "GetEvaluatorAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/evaluators/{id}", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("versionId", versionId) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -57,7 +82,7 @@ partial void ProcessGetEvaluatorResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluatorVersions.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluatorVersions.g.cs index f4916b5..f9b0a90 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluatorVersions.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluatorVersions.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class EvaluatorsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_ListEvaluatorVersionsSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_ListEvaluatorVersionsSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_ListEvaluatorVersionsSecurityRequirement0, + }; partial void PrepareListEvaluatorVersionsArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -37,9 +56,15 @@ partial void ProcessListEvaluatorVersionsResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListEvaluatorVersionsSecurityRequirements, + operationName: "ListEvaluatorVersionsAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/evaluators/{id}/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.Get, @@ -49,7 +74,7 @@ partial void ProcessListEvaluatorVersionsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluators.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluators.g.cs index 2cd2fca..65d8f60 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluators.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.ListEvaluators.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class EvaluatorsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_ListEvaluatorsSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_ListEvaluatorsSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_ListEvaluatorsSecurityRequirement0, + }; partial void PrepareListEvaluatorsArguments( global::System.Net.Http.HttpClient httpClient, ref int? page, @@ -57,6 +76,12 @@ partial void ProcessListEvaluatorsResponseContent( sortBy: ref sortBy, order: ref order); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListEvaluatorsSecurityRequirements, + operationName: "ListEvaluatorsAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/evaluators", baseUri: HttpClient.BaseAddress); @@ -66,7 +91,7 @@ partial void ProcessListEvaluatorsResponseContent( .AddOptionalParameter("name", name) .AddOptionalParameter("sortBy", sortBy) .AddOptionalParameter("order", order?.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 ProcessListEvaluatorsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.LogEvaluator.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.LogEvaluator.g.cs index 9c87120..7206588 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.LogEvaluator.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.LogEvaluator.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class EvaluatorsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_LogEvaluatorSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_LogEvaluatorSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_LogEvaluatorSecurityRequirement0, + }; partial void PrepareLogEvaluatorArguments( global::System.Net.Http.HttpClient httpClient, global::tryAGI.Humanloop.LogEvaluatorRequest request); @@ -40,9 +59,15 @@ partial void ProcessLogEvaluatorResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_LogEvaluatorSecurityRequirements, + operationName: "LogEvaluatorAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/evaluators/log", - baseUri: 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 ProcessLogEvaluatorResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.MoveEvaluator.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.MoveEvaluator.g.cs index 0ec287f..0d210aa 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.MoveEvaluator.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.MoveEvaluator.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class EvaluatorsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_MoveEvaluatorSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_MoveEvaluatorSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_MoveEvaluatorSecurityRequirement0, + }; partial void PrepareMoveEvaluatorArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -45,9 +64,15 @@ partial void ProcessMoveEvaluatorResponseContent( id: ref id, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_MoveEvaluatorSecurityRequirements, + operationName: "MoveEvaluatorAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/evaluators/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -57,7 +82,7 @@ partial void ProcessMoveEvaluatorResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.RemoveEvaluatorDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.RemoveEvaluatorDeployment.g.cs index 85ab940..bbba1a6 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.RemoveEvaluatorDeployment.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.RemoveEvaluatorDeployment.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class EvaluatorsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_RemoveEvaluatorDeploymentSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_RemoveEvaluatorDeploymentSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_RemoveEvaluatorDeploymentSecurityRequirement0, + }; partial void PrepareRemoveEvaluatorDeploymentArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -37,9 +56,15 @@ partial void ProcessRemoveEvaluatorDeploymentResponse( id: ref id, environmentId: ref environmentId); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RemoveEvaluatorDeploymentSecurityRequirements, + operationName: "RemoveEvaluatorDeploymentAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/evaluators/{id}/environments/{environmentId}", - baseUri: 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 ProcessRemoveEvaluatorDeploymentResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.SetEvaluatorDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.SetEvaluatorDeployment.g.cs index a21370d..1b648a7 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.SetEvaluatorDeployment.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.SetEvaluatorDeployment.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class EvaluatorsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_SetEvaluatorDeploymentSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_SetEvaluatorDeploymentSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_SetEvaluatorDeploymentSecurityRequirement0, + }; partial void PrepareSetEvaluatorDeploymentArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -50,9 +69,15 @@ partial void ProcessSetEvaluatorDeploymentResponseContent( environmentId: ref environmentId, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SetEvaluatorDeploymentSecurityRequirements, + operationName: "SetEvaluatorDeploymentAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/evaluators/{id}/environments/{environmentId}", - baseUri: 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 ProcessSetEvaluatorDeploymentResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpdateEvaluatorMonitoring.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpdateEvaluatorMonitoring.g.cs index 0396fd4..df27210 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpdateEvaluatorMonitoring.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpdateEvaluatorMonitoring.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class EvaluatorsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_UpdateEvaluatorMonitoringSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_UpdateEvaluatorMonitoringSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_UpdateEvaluatorMonitoringSecurityRequirement0, + }; partial void PrepareUpdateEvaluatorMonitoringArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -45,9 +64,15 @@ partial void ProcessUpdateEvaluatorMonitoringResponseContent( id: ref id, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateEvaluatorMonitoringSecurityRequirements, + operationName: "UpdateEvaluatorMonitoringAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/evaluators/{id}/evaluators", - baseUri: 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 ProcessUpdateEvaluatorMonitoringResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpsertEvaluator.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpsertEvaluator.g.cs index 6de5c7b..0914799 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpsertEvaluator.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.EvaluatorsClient.UpsertEvaluator.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class EvaluatorsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_UpsertEvaluatorSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_UpsertEvaluatorSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_UpsertEvaluatorSecurityRequirement0, + }; partial void PrepareUpsertEvaluatorArguments( global::System.Net.Http.HttpClient httpClient, global::tryAGI.Humanloop.EvaluatorRequest request); @@ -40,9 +59,15 @@ partial void ProcessUpsertEvaluatorResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpsertEvaluatorSecurityRequirements, + operationName: "UpsertEvaluatorAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/evaluators", - baseUri: 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 ProcessUpsertEvaluatorResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.GetFileByPath.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.GetFileByPath.g.cs index 6ffa051..d94a002 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.GetFileByPath.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.GetFileByPath.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class FilesClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_GetFileByPathSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_GetFileByPathSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_GetFileByPathSecurityRequirement0, + }; partial void PrepareGetFileByPathArguments( global::System.Net.Http.HttpClient httpClient, ref string path); @@ -37,12 +56,18 @@ partial void ProcessGetFileByPathResponseContent( httpClient: HttpClient, path: ref path); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetFileByPathSecurityRequirements, + operationName: "GetFileByPathAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/files/by-path", baseUri: HttpClient.BaseAddress); __pathBuilder .AddRequiredParameter("path", path) - ; + ; 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 ProcessGetFileByPathResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.ListFiles.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.ListFiles.g.cs index 1d799b9..90639e1 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.ListFiles.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FilesClient.ListFiles.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class FilesClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_ListFilesSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_ListFilesSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_ListFilesSecurityRequirement0, + }; partial void PrepareListFilesArguments( global::System.Net.Http.HttpClient httpClient, ref int? page, @@ -62,6 +81,12 @@ partial void ProcessListFilesResponseContent( sortBy: ref sortBy, order: ref order); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListFilesSecurityRequirements, + operationName: "ListFilesAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/files", baseUri: HttpClient.BaseAddress); @@ -72,7 +97,7 @@ partial void ProcessListFilesResponseContent( .AddOptionalParameter("type", type?.ToValueString()) .AddOptionalParameter("sortBy", sortBy) .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 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/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.DeleteFlow.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.DeleteFlow.g.cs index 6cce183..81755b5 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.DeleteFlow.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.DeleteFlow.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class FlowsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_DeleteFlowSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_DeleteFlowSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_DeleteFlowSecurityRequirement0, + }; partial void PrepareDeleteFlowArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -32,9 +51,15 @@ partial void ProcessDeleteFlowResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteFlowSecurityRequirements, + operationName: "DeleteFlowAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/flows/{id}", - baseUri: 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, @@ -44,7 +69,7 @@ partial void ProcessDeleteFlowResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.GetFlow.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.GetFlow.g.cs index d53310f..ee801f1 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.GetFlow.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.GetFlow.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class FlowsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_GetFlowSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_GetFlowSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_GetFlowSecurityRequirement0, + }; partial void PrepareGetFlowArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -42,12 +61,18 @@ partial void ProcessGetFlowResponseContent( id: ref id, versionId: ref versionId); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetFlowSecurityRequirements, + operationName: "GetFlowAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/flows/{id}", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("versionId", versionId) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -57,7 +82,7 @@ partial void ProcessGetFlowResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlowVersions.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlowVersions.g.cs index 7287bb5..23a590b 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlowVersions.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlowVersions.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class FlowsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_ListFlowVersionsSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_ListFlowVersionsSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_ListFlowVersionsSecurityRequirement0, + }; partial void PrepareListFlowVersionsArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -37,9 +56,15 @@ partial void ProcessListFlowVersionsResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListFlowVersionsSecurityRequirements, + operationName: "ListFlowVersionsAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/flows/{id}/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.Get, @@ -49,7 +74,7 @@ partial void ProcessListFlowVersionsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlows.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlows.g.cs index 226d2fb..0642c86 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlows.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.ListFlows.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class FlowsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_ListFlowsSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_ListFlowsSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_ListFlowsSecurityRequirement0, + }; partial void PrepareListFlowsArguments( global::System.Net.Http.HttpClient httpClient, ref int? page, @@ -57,6 +76,12 @@ partial void ProcessListFlowsResponseContent( sortBy: ref sortBy, order: ref order); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListFlowsSecurityRequirements, + operationName: "ListFlowsAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/flows", baseUri: HttpClient.BaseAddress); @@ -66,7 +91,7 @@ partial void ProcessListFlowsResponseContent( .AddOptionalParameter("name", name) .AddOptionalParameter("sortBy", sortBy) .AddOptionalParameter("order", order?.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 ProcessListFlowsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.LogFlow.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.LogFlow.g.cs index 1e3a8be..4bfe916 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.LogFlow.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.LogFlow.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class FlowsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_LogFlowSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_LogFlowSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_LogFlowSecurityRequirement0, + }; partial void PrepareLogFlowArguments( global::System.Net.Http.HttpClient httpClient, global::tryAGI.Humanloop.LogFlowRequest request); @@ -40,9 +59,15 @@ partial void ProcessLogFlowResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_LogFlowSecurityRequirements, + operationName: "LogFlowAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/flows/log", - baseUri: 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 ProcessLogFlowResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.MoveFlow.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.MoveFlow.g.cs index 9be1e25..1b01076 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.MoveFlow.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.MoveFlow.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class FlowsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_MoveFlowSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_MoveFlowSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_MoveFlowSecurityRequirement0, + }; partial void PrepareMoveFlowArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -45,9 +64,15 @@ partial void ProcessMoveFlowResponseContent( id: ref id, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_MoveFlowSecurityRequirements, + operationName: "MoveFlowAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/flows/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -57,7 +82,7 @@ partial void ProcessMoveFlowResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.RemoveFlowDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.RemoveFlowDeployment.g.cs index c479a4d..21787fa 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.RemoveFlowDeployment.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.RemoveFlowDeployment.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class FlowsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_RemoveFlowDeploymentSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_RemoveFlowDeploymentSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_RemoveFlowDeploymentSecurityRequirement0, + }; partial void PrepareRemoveFlowDeploymentArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -37,9 +56,15 @@ partial void ProcessRemoveFlowDeploymentResponse( id: ref id, environmentId: ref environmentId); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RemoveFlowDeploymentSecurityRequirements, + operationName: "RemoveFlowDeploymentAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/flows/{id}/environments/{environmentId}", - baseUri: 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 ProcessRemoveFlowDeploymentResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.SetFlowDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.SetFlowDeployment.g.cs index e1beedd..512bb11 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.SetFlowDeployment.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.SetFlowDeployment.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class FlowsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_SetFlowDeploymentSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_SetFlowDeploymentSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_SetFlowDeploymentSecurityRequirement0, + }; partial void PrepareSetFlowDeploymentArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -50,9 +69,15 @@ partial void ProcessSetFlowDeploymentResponseContent( environmentId: ref environmentId, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SetFlowDeploymentSecurityRequirements, + operationName: "SetFlowDeploymentAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/flows/{id}/environments/{environmentId}", - baseUri: 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 ProcessSetFlowDeploymentResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpdateFlowMonitoring.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpdateFlowMonitoring.g.cs index cbd4d18..f3dd894 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpdateFlowMonitoring.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpdateFlowMonitoring.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class FlowsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_UpdateFlowMonitoringSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_UpdateFlowMonitoringSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_UpdateFlowMonitoringSecurityRequirement0, + }; partial void PrepareUpdateFlowMonitoringArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -45,9 +64,15 @@ partial void ProcessUpdateFlowMonitoringResponseContent( id: ref id, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateFlowMonitoringSecurityRequirements, + operationName: "UpdateFlowMonitoringAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/flows/{id}/evaluators", - baseUri: 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 ProcessUpdateFlowMonitoringResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpsertFlow.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpsertFlow.g.cs index da7bcf9..7e35c4b 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpsertFlow.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.FlowsClient.UpsertFlow.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class FlowsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_UpsertFlowSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_UpsertFlowSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_UpsertFlowSecurityRequirement0, + }; partial void PrepareUpsertFlowArguments( global::System.Net.Http.HttpClient httpClient, global::tryAGI.Humanloop.FlowRequest request); @@ -40,9 +59,15 @@ partial void ProcessUpsertFlowResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpsertFlowSecurityRequirements, + operationName: "UpsertFlowAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/flows", - baseUri: 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 ProcessUpsertFlowResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.HumanloopClient.Authorizations.Bearer.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.HumanloopClient.Authorizations.Bearer.g.cs index 75a5dac..cf13d06 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.HumanloopClient.Authorizations.Bearer.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.HumanloopClient.Authorizations.Bearer.g.cs @@ -5,13 +5,23 @@ namespace tryAGI.Humanloop { public sealed partial class HumanloopClient { + /// 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.Humanloop.EndPointAuthorization { Type = "Http", diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.HumanloopClient.Constructors.Bearer.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.HumanloopClient.Constructors.Bearer.g.cs index bf53e80..d0eb75b 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.HumanloopClient.Constructors.Bearer.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.HumanloopClient.Constructors.Bearer.g.cs @@ -6,6 +6,7 @@ namespace tryAGI.Humanloop public sealed partial class HumanloopClient { /// + public HumanloopClient( string apiKey, global::System.Net.Http.HttpClient? httpClient = null, diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IHumanloopClient.Authorizations.Bearer.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IHumanloopClient.Authorizations.Bearer.g.cs index 772cbfc..961bbd6 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.IHumanloopClient.Authorizations.Bearer.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.IHumanloopClient.Authorizations.Bearer.g.cs @@ -9,6 +9,7 @@ public partial interface IHumanloopClient /// Authorize using bearer authentication. /// /// + public void AuthorizeUsingBearer( string apiKey); } diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.DeleteLog.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.DeleteLog.g.cs index 7ae1b8f..52bf939 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.DeleteLog.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.DeleteLog.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class LogsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_DeleteLogSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_DeleteLogSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_DeleteLogSecurityRequirement0, + }; partial void PrepareDeleteLogArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -32,9 +51,15 @@ partial void ProcessDeleteLogResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteLogSecurityRequirements, + operationName: "DeleteLogAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/logs/{id}", - baseUri: 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, @@ -44,7 +69,7 @@ partial void ProcessDeleteLogResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.GetLog.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.GetLog.g.cs index a353e18..bde58d2 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.GetLog.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.GetLog.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class LogsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_GetLogSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_GetLogSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_GetLogSecurityRequirement0, + }; partial void PrepareGetLogArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -37,9 +56,15 @@ partial void ProcessGetLogResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetLogSecurityRequirements, + operationName: "GetLogAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/logs/{id}", - baseUri: 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 ProcessGetLogResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.ListLogs.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.ListLogs.g.cs index 5f60ee7..f5fdde3 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.ListLogs.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.LogsClient.ListLogs.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class LogsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_ListLogsSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_ListLogsSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_ListLogsSecurityRequirement0, + }; partial void PrepareListLogsArguments( global::System.Net.Http.HttpClient httpClient, ref int? page, @@ -57,6 +76,12 @@ partial void ProcessListLogsResponseContent( versionId: ref versionId, search: ref search); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListLogsSecurityRequirements, + operationName: "ListLogsAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/logs", baseUri: HttpClient.BaseAddress); @@ -66,7 +91,7 @@ partial void ProcessListLogsResponseContent( .AddOptionalParameter("fileId", fileId) .AddOptionalParameter("versionId", versionId) .AddOptionalParameter("search", search) - ; + ; 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 ProcessListLogsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PathBuilder.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PathBuilder.g.cs index 559664d..fefe7b2 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PathBuilder.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.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/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.CallPrompt.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.CallPrompt.g.cs index c2f2bb8..af4fbbb 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.CallPrompt.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.CallPrompt.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class PromptsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_CallPromptSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_CallPromptSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_CallPromptSecurityRequirement0, + }; partial void PrepareCallPromptArguments( global::System.Net.Http.HttpClient httpClient, global::tryAGI.Humanloop.PromptCallRequest request); @@ -41,9 +60,15 @@ partial void ProcessCallPromptResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CallPromptSecurityRequirements, + operationName: "CallPromptAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/prompts/call", - baseUri: 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 ProcessCallPromptResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeletePrompt.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeletePrompt.g.cs index 17081f6..f4604ff 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeletePrompt.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeletePrompt.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class PromptsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_DeletePromptSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_DeletePromptSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_DeletePromptSecurityRequirement0, + }; partial void PrepareDeletePromptArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -32,9 +51,15 @@ partial void ProcessDeletePromptResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeletePromptSecurityRequirements, + operationName: "DeletePromptAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/prompts/{id}", - baseUri: 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, @@ -44,7 +69,7 @@ partial void ProcessDeletePromptResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeletePromptVersion.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeletePromptVersion.g.cs index 56b9d6e..11e8cd2 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeletePromptVersion.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeletePromptVersion.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class PromptsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_DeletePromptVersionSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_DeletePromptVersionSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_DeletePromptVersionSecurityRequirement0, + }; partial void PrepareDeletePromptVersionArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -37,9 +56,15 @@ partial void ProcessDeletePromptVersionResponse( id: ref id, versionId: ref versionId); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeletePromptVersionSecurityRequirements, + operationName: "DeletePromptVersionAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/prompts/{id}/versions/{versionId}", - baseUri: 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 ProcessDeletePromptVersionResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeserializePrompt.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeserializePrompt.g.cs index 0ffc9d3..d6ccbdd 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeserializePrompt.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.DeserializePrompt.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class PromptsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_DeserializePromptSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_DeserializePromptSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_DeserializePromptSecurityRequirement0, + }; partial void PrepareDeserializePromptArguments( global::System.Net.Http.HttpClient httpClient, global::tryAGI.Humanloop.DeserializePromptRequest request); @@ -40,9 +59,15 @@ partial void ProcessDeserializePromptResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeserializePromptSecurityRequirements, + operationName: "DeserializePromptAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/prompts/deserialize", - baseUri: 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 ProcessDeserializePromptResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.GetPrompt.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.GetPrompt.g.cs index 484ba13..c71b6c8 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.GetPrompt.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.GetPrompt.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class PromptsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_GetPromptSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_GetPromptSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_GetPromptSecurityRequirement0, + }; partial void PrepareGetPromptArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -47,13 +66,19 @@ partial void ProcessGetPromptResponseContent( versionId: ref versionId, environment: ref environment); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetPromptSecurityRequirements, + operationName: "GetPromptAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/prompts/{id}", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("versionId", versionId) .AddOptionalParameter("environment", environment) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -63,7 +88,7 @@ partial void ProcessGetPromptResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptEnvironments.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptEnvironments.g.cs index 38d56c1..35b2d52 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptEnvironments.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptEnvironments.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class PromptsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_ListPromptEnvironmentsSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_ListPromptEnvironmentsSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_ListPromptEnvironmentsSecurityRequirement0, + }; partial void PrepareListPromptEnvironmentsArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -37,9 +56,15 @@ partial void ProcessListPromptEnvironmentsResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListPromptEnvironmentsSecurityRequirements, + operationName: "ListPromptEnvironmentsAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/prompts/{id}/environments", - baseUri: 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 ProcessListPromptEnvironmentsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptVersions.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptVersions.g.cs index fd6de2f..dd3c173 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptVersions.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPromptVersions.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class PromptsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_ListPromptVersionsSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_ListPromptVersionsSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_ListPromptVersionsSecurityRequirement0, + }; partial void PrepareListPromptVersionsArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -42,12 +61,18 @@ partial void ProcessListPromptVersionsResponseContent( id: ref id, status: ref status); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListPromptVersionsSecurityRequirements, + operationName: "ListPromptVersionsAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/prompts/{id}/versions", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("status", status) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -57,7 +82,7 @@ partial void ProcessListPromptVersionsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPrompts.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPrompts.g.cs index b94401d..07066b6 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPrompts.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.ListPrompts.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class PromptsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_ListPromptsSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_ListPromptsSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_ListPromptsSecurityRequirement0, + }; partial void PrepareListPromptsArguments( global::System.Net.Http.HttpClient httpClient, ref int? page, @@ -63,6 +82,12 @@ partial void ProcessListPromptsResponseContent( sortBy: ref sortBy, order: ref order); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListPromptsSecurityRequirements, + operationName: "ListPromptsAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/prompts", baseUri: HttpClient.BaseAddress); @@ -73,7 +98,7 @@ partial void ProcessListPromptsResponseContent( .AddOptionalParameter("userFilter", userFilter) .AddOptionalParameter("sortBy", sortBy) .AddOptionalParameter("order", order?.ToValueString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -83,7 +108,7 @@ partial void ProcessListPromptsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.LogPrompt.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.LogPrompt.g.cs index 80312b9..d133c10 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.LogPrompt.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.LogPrompt.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class PromptsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_LogPromptSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_LogPromptSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_LogPromptSecurityRequirement0, + }; partial void PrepareLogPromptArguments( global::System.Net.Http.HttpClient httpClient, global::tryAGI.Humanloop.PromptLogRequest request); @@ -40,9 +59,15 @@ partial void ProcessLogPromptResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_LogPromptSecurityRequirements, + operationName: "LogPromptAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/prompts/log", - baseUri: 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 ProcessLogPromptResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.MovePrompt.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.MovePrompt.g.cs index 989bc94..7027714 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.MovePrompt.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.MovePrompt.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class PromptsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_MovePromptSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_MovePromptSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_MovePromptSecurityRequirement0, + }; partial void PrepareMovePromptArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -45,9 +64,15 @@ partial void ProcessMovePromptResponseContent( id: ref id, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_MovePromptSecurityRequirements, + operationName: "MovePromptAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/prompts/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -57,7 +82,7 @@ partial void ProcessMovePromptResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.PopulatePrompt.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.PopulatePrompt.g.cs index 301e089..541fdea 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.PopulatePrompt.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.PopulatePrompt.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class PromptsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_PopulatePromptSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_PopulatePromptSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_PopulatePromptSecurityRequirement0, + }; partial void PreparePopulatePromptArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -45,9 +64,15 @@ partial void ProcessPopulatePromptResponseContent( id: ref id, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_PopulatePromptSecurityRequirements, + operationName: "PopulatePromptAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/prompts/{id}/populate", - baseUri: 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 ProcessPopulatePromptResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.RemovePromptDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.RemovePromptDeployment.g.cs index d93c479..fd45278 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.RemovePromptDeployment.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.RemovePromptDeployment.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class PromptsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_RemovePromptDeploymentSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_RemovePromptDeploymentSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_RemovePromptDeploymentSecurityRequirement0, + }; partial void PrepareRemovePromptDeploymentArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -37,9 +56,15 @@ partial void ProcessRemovePromptDeploymentResponse( id: ref id, environmentId: ref environmentId); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RemovePromptDeploymentSecurityRequirements, + operationName: "RemovePromptDeploymentAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/prompts/{id}/environments/{environmentId}", - baseUri: 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 ProcessRemovePromptDeploymentResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.SerializePrompt.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.SerializePrompt.g.cs index eba92f6..b85eadb 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.SerializePrompt.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.SerializePrompt.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class PromptsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_SerializePromptSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_SerializePromptSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_SerializePromptSecurityRequirement0, + }; partial void PrepareSerializePromptArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -47,13 +66,19 @@ partial void ProcessSerializePromptResponseContent( versionId: ref versionId, environment: ref environment); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SerializePromptSecurityRequirements, + operationName: "SerializePromptAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/prompts/{id}/serialize", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("versionId", versionId) .AddOptionalParameter("environment", environment) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -63,7 +88,7 @@ partial void ProcessSerializePromptResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.SetPromptDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.SetPromptDeployment.g.cs index 2755e1e..81e2f56 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.SetPromptDeployment.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.SetPromptDeployment.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class PromptsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_SetPromptDeploymentSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_SetPromptDeploymentSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_SetPromptDeploymentSecurityRequirement0, + }; partial void PrepareSetPromptDeploymentArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -50,9 +69,15 @@ partial void ProcessSetPromptDeploymentResponseContent( environmentId: ref environmentId, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SetPromptDeploymentSecurityRequirements, + operationName: "SetPromptDeploymentAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/prompts/{id}/environments/{environmentId}", - baseUri: 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 ProcessSetPromptDeploymentResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptLog.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptLog.g.cs index dfd4b01..0cefc41 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptLog.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptLog.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class PromptsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_UpdatePromptLogSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_UpdatePromptLogSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_UpdatePromptLogSecurityRequirement0, + }; partial void PrepareUpdatePromptLogArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -50,9 +69,15 @@ partial void ProcessUpdatePromptLogResponseContent( logId: ref logId, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdatePromptLogSecurityRequirements, + operationName: "UpdatePromptLogAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/prompts/{id}/log/{logId}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -62,7 +87,7 @@ partial void ProcessUpdatePromptLogResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptMonitoring.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptMonitoring.g.cs index a6d4db9..989514a 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptMonitoring.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptMonitoring.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class PromptsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_UpdatePromptMonitoringSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_UpdatePromptMonitoringSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_UpdatePromptMonitoringSecurityRequirement0, + }; partial void PrepareUpdatePromptMonitoringArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -45,9 +64,15 @@ partial void ProcessUpdatePromptMonitoringResponseContent( id: ref id, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdatePromptMonitoringSecurityRequirements, + operationName: "UpdatePromptMonitoringAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/prompts/{id}/evaluators", - baseUri: 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 ProcessUpdatePromptMonitoringResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptVersion.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptVersion.g.cs index a002739..dd794cb 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptVersion.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpdatePromptVersion.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class PromptsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_UpdatePromptVersionSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_UpdatePromptVersionSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_UpdatePromptVersionSecurityRequirement0, + }; partial void PrepareUpdatePromptVersionArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -50,9 +69,15 @@ partial void ProcessUpdatePromptVersionResponseContent( versionId: ref versionId, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdatePromptVersionSecurityRequirements, + operationName: "UpdatePromptVersionAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/prompts/{id}/versions/{versionId}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -62,7 +87,7 @@ partial void ProcessUpdatePromptVersionResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpsertPrompt.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpsertPrompt.g.cs index aac62a7..0018d4f 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpsertPrompt.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.PromptsClient.UpsertPrompt.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class PromptsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_UpsertPromptSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_UpsertPromptSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_UpsertPromptSecurityRequirement0, + }; partial void PrepareUpsertPromptArguments( global::System.Net.Http.HttpClient httpClient, global::tryAGI.Humanloop.PromptRequest request); @@ -41,9 +60,15 @@ partial void ProcessUpsertPromptResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpsertPromptSecurityRequirements, + operationName: "UpsertPromptAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/prompts", - baseUri: 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 ProcessUpsertPromptResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.Security.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Security.g.cs new file mode 100644 index 0000000..9ff9f41 --- /dev/null +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.Security.g.cs @@ -0,0 +1,145 @@ +#nullable enable + +namespace tryAGI.Humanloop +{ + 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/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.CallTool.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.CallTool.g.cs index 6508bad..0be1d80 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.CallTool.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.CallTool.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class ToolsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_CallToolSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_CallToolSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_CallToolSecurityRequirement0, + }; partial void PrepareCallToolArguments( global::System.Net.Http.HttpClient httpClient, global::tryAGI.Humanloop.CallToolRequest request); @@ -40,9 +59,15 @@ partial void ProcessCallToolResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CallToolSecurityRequirements, + operationName: "CallToolAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/tools/call", - baseUri: 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 ProcessCallToolResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.DeleteTool.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.DeleteTool.g.cs index deda908..b00d424 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.DeleteTool.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.DeleteTool.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class ToolsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_DeleteToolSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_DeleteToolSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_DeleteToolSecurityRequirement0, + }; partial void PrepareDeleteToolArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -32,9 +51,15 @@ partial void ProcessDeleteToolResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteToolSecurityRequirements, + operationName: "DeleteToolAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/tools/{id}", - baseUri: 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, @@ -44,7 +69,7 @@ partial void ProcessDeleteToolResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.GetTool.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.GetTool.g.cs index 9e95300..96f3d15 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.GetTool.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.GetTool.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class ToolsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_GetToolSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_GetToolSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_GetToolSecurityRequirement0, + }; partial void PrepareGetToolArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -42,12 +61,18 @@ partial void ProcessGetToolResponseContent( id: ref id, versionId: ref versionId); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetToolSecurityRequirements, + operationName: "GetToolAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/tools/{id}", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("versionId", versionId) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -57,7 +82,7 @@ partial void ProcessGetToolResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.ListToolVersions.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.ListToolVersions.g.cs index 46f4611..394b86f 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.ListToolVersions.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.ListToolVersions.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class ToolsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_ListToolVersionsSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_ListToolVersionsSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_ListToolVersionsSecurityRequirement0, + }; partial void PrepareListToolVersionsArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -37,9 +56,15 @@ partial void ProcessListToolVersionsResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListToolVersionsSecurityRequirements, + operationName: "ListToolVersionsAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/tools/{id}/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.Get, @@ -49,7 +74,7 @@ partial void ProcessListToolVersionsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.ListTools.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.ListTools.g.cs index 6dd3fc1..f22ecdb 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.ListTools.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.ListTools.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class ToolsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_ListToolsSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_ListToolsSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_ListToolsSecurityRequirement0, + }; partial void PrepareListToolsArguments( global::System.Net.Http.HttpClient httpClient, ref int? page, @@ -57,6 +76,12 @@ partial void ProcessListToolsResponseContent( sortBy: ref sortBy, order: ref order); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListToolsSecurityRequirements, + operationName: "ListToolsAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/tools", baseUri: HttpClient.BaseAddress); @@ -66,7 +91,7 @@ partial void ProcessListToolsResponseContent( .AddOptionalParameter("name", name) .AddOptionalParameter("sortBy", sortBy) .AddOptionalParameter("order", order?.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 ProcessListToolsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.LogTool.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.LogTool.g.cs index 2a12247..5e47acc 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.LogTool.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.LogTool.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class ToolsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_LogToolSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_LogToolSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_LogToolSecurityRequirement0, + }; partial void PrepareLogToolArguments( global::System.Net.Http.HttpClient httpClient, global::tryAGI.Humanloop.LogToolRequest request); @@ -40,9 +59,15 @@ partial void ProcessLogToolResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_LogToolSecurityRequirements, + operationName: "LogToolAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/tools/log", - baseUri: 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 ProcessLogToolResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.MoveTool.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.MoveTool.g.cs index f9eaf91..d9e52f9 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.MoveTool.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.MoveTool.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class ToolsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_MoveToolSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_MoveToolSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_MoveToolSecurityRequirement0, + }; partial void PrepareMoveToolArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -45,9 +64,15 @@ partial void ProcessMoveToolResponseContent( id: ref id, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_MoveToolSecurityRequirements, + operationName: "MoveToolAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/tools/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -57,7 +82,7 @@ partial void ProcessMoveToolResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.RemoveToolDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.RemoveToolDeployment.g.cs index 7ff0a64..fbb91df 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.RemoveToolDeployment.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.RemoveToolDeployment.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class ToolsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_RemoveToolDeploymentSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_RemoveToolDeploymentSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_RemoveToolDeploymentSecurityRequirement0, + }; partial void PrepareRemoveToolDeploymentArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -37,9 +56,15 @@ partial void ProcessRemoveToolDeploymentResponse( id: ref id, environmentId: ref environmentId); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RemoveToolDeploymentSecurityRequirements, + operationName: "RemoveToolDeploymentAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/tools/{id}/environments/{environmentId}", - baseUri: 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 ProcessRemoveToolDeploymentResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.SetToolDeployment.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.SetToolDeployment.g.cs index affed39..839ac4e 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.SetToolDeployment.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.SetToolDeployment.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class ToolsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_SetToolDeploymentSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_SetToolDeploymentSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_SetToolDeploymentSecurityRequirement0, + }; partial void PrepareSetToolDeploymentArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -50,9 +69,15 @@ partial void ProcessSetToolDeploymentResponseContent( environmentId: ref environmentId, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SetToolDeploymentSecurityRequirements, + operationName: "SetToolDeploymentAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/tools/{id}/environments/{environmentId}", - baseUri: 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 ProcessSetToolDeploymentResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.UpdateToolMonitoring.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.UpdateToolMonitoring.g.cs index 62b79d5..8678c58 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.UpdateToolMonitoring.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.UpdateToolMonitoring.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class ToolsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_UpdateToolMonitoringSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_UpdateToolMonitoringSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_UpdateToolMonitoringSecurityRequirement0, + }; partial void PrepareUpdateToolMonitoringArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -45,9 +64,15 @@ partial void ProcessUpdateToolMonitoringResponseContent( id: ref id, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateToolMonitoringSecurityRequirements, + operationName: "UpdateToolMonitoringAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: $"/tools/{id}/evaluators", - baseUri: 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 ProcessUpdateToolMonitoringResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.UpsertTool.g.cs b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.UpsertTool.g.cs index ceb87c0..222f00e 100644 --- a/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.UpsertTool.g.cs +++ b/src/libs/Humanloop/Generated/tryAGI.Humanloop.ToolsClient.UpsertTool.g.cs @@ -5,6 +5,25 @@ namespace tryAGI.Humanloop { public partial class ToolsClient { + + + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement s_UpsertToolSecurityRequirement0 = + new global::tryAGI.Humanloop.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.Humanloop.EndPointAuthorizationRequirement[] + { new global::tryAGI.Humanloop.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.Humanloop.EndPointSecurityRequirement[] s_UpsertToolSecurityRequirements = + new global::tryAGI.Humanloop.EndPointSecurityRequirement[] + { s_UpsertToolSecurityRequirement0, + }; partial void PrepareUpsertToolArguments( global::System.Net.Http.HttpClient httpClient, global::tryAGI.Humanloop.ToolRequest request); @@ -40,9 +59,15 @@ partial void ProcessUpsertToolResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::tryAGI.Humanloop.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpsertToolSecurityRequirements, + operationName: "UpsertToolAsync"); + var __pathBuilder = new global::tryAGI.Humanloop.PathBuilder( path: "/tools", - baseUri: 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 ProcessUpsertToolResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2")