From d0d1719216a27db6d2a4635747c79d70e4af8607 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 12 Sep 2026 13:56:51 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../OpenRouter.ApiKeysClient.CreateKeys.g.cs | 10 +- .../OpenRouter.ApiKeysClient.UpdateKeys.g.cs | 10 +- ...er.BetaAnalyticsClient.QueryAnalytics.g.cs | 10 +- ... OpenRouter.ByokClient.CreateBYOKKey.g.cs} | 56 +++--- ... OpenRouter.ByokClient.DeleteBYOKKey.g.cs} | 52 +++--- ... => OpenRouter.ByokClient.GetBYOKKey.g.cs} | 52 +++--- ...> OpenRouter.ByokClient.ListBYOKKeys.g.cs} | 52 +++--- ... OpenRouter.ByokClient.UpdateBYOKKey.g.cs} | 56 +++--- ...ter.EmbeddingsClient.CreateEmbeddings.g.cs | 10 +- .../OpenRouter.FilesClient.UploadFile.g.cs | 14 +- .../OpenRouter.IApiKeysClient.CreateKeys.g.cs | 4 +- .../OpenRouter.IApiKeysClient.UpdateKeys.g.cs | 4 +- ...r.IBetaAnalyticsClient.QueryAnalytics.g.cs | 4 +- ...OpenRouter.IByokClient.CreateBYOKKey.g.cs} | 6 +- ...OpenRouter.IByokClient.DeleteBYOKKey.g.cs} | 4 +- ...=> OpenRouter.IByokClient.GetBYOKKey.g.cs} | 4 +- ... OpenRouter.IByokClient.ListBYOKKeys.g.cs} | 4 +- ...OpenRouter.IByokClient.UpdateBYOKKey.g.cs} | 6 +- ...er.IEmbeddingsClient.CreateEmbeddings.g.cs | 4 +- .../OpenRouter.IFilesClient.UploadFile.g.cs | 4 +- ...outer.IOAuthClient.CreateAuthKeysCode.g.cs | 4 +- ...AuthClient.ExchangeAuthCodeForAPIKey.g.cs} | 10 +- ...OpenRouter.IRerankClient.CreateRerank.g.cs | 4 +- .../OpenRouter.JsonSerializerContext.g.cs | 16 +- ...OpenRouter.JsonSerializerContextTypes.g.cs | 16 +- ...Models.ApiKeysCreateKeysRequest.Json.g.cs} | 26 +-- ...uter.Models.ApiKeysCreateKeysRequest.g.cs} | 10 +- ...Models.ApiKeysUpdateKeysRequest.Json.g.cs} | 26 +-- ...uter.Models.ApiKeysUpdateKeysRequest.g.cs} | 10 +- ...taAnalyticsQueryAnalyticsRequest.Json.g.cs | 141 ++++++++++++++ ...s.BetaAnalyticsQueryAnalyticsRequest.g.cs} | 10 +- ...beddingsCreateEmbeddingsRequest.Json.g.cs} | 26 +-- ...ls.EmbeddingsCreateEmbeddingsRequest.g.cs} | 10 +- ...ExchangeAuthCodeForApiKeyRequest.Json.g.cs | 141 -------------- ...r.Models.FilesUploadFileRequest.Json.g.cs} | 26 +-- ...Router.Models.FilesUploadFileRequest.g.cs} | 10 +- ....OAuthCreateAuthKeysCodeRequest.Json.g.cs} | 26 +-- ...odels.OAuthCreateAuthKeysCodeRequest.g.cs} | 10 +- ...ExchangeAuthCodeForAPIKeyRequest.Json.g.cs | 141 ++++++++++++++ ...AuthExchangeAuthCodeForAPIKeyRequest.g.cs} | 10 +- ...ter.Models.QueryAnalyticsRequest.Json.g.cs | 141 -------------- ...odels.RerankCreateRerankRequest.Json.g.cs} | 26 +-- ...ter.Models.RerankCreateRerankRequest.g.cs} | 10 +- ...Router.OAuthClient.CreateAuthKeysCode.g.cs | 10 +- ...AuthClient.ExchangeAuthCodeForAPIKey.g.cs} | 66 +++---- .../OpenRouter.RerankClient.CreateRerank.g.cs | 10 +- src/libs/OpenRouter/openapi.yaml | 176 +++++++++--------- 47 files changed, 739 insertions(+), 739 deletions(-) rename src/libs/OpenRouter/Generated/{OpenRouter.ByokClient.CreateByokKey.g.cs => OpenRouter.ByokClient.CreateBYOKKey.g.cs} (95%) rename src/libs/OpenRouter/Generated/{OpenRouter.ByokClient.DeleteByokKey.g.cs => OpenRouter.ByokClient.DeleteBYOKKey.g.cs} (95%) rename src/libs/OpenRouter/Generated/{OpenRouter.ByokClient.GetByokKey.g.cs => OpenRouter.ByokClient.GetBYOKKey.g.cs} (95%) rename src/libs/OpenRouter/Generated/{OpenRouter.ByokClient.ListByokKeys.g.cs => OpenRouter.ByokClient.ListBYOKKeys.g.cs} (95%) rename src/libs/OpenRouter/Generated/{OpenRouter.ByokClient.UpdateByokKey.g.cs => OpenRouter.ByokClient.UpdateBYOKKey.g.cs} (95%) rename src/libs/OpenRouter/Generated/{OpenRouter.IByokClient.CreateByokKey.g.cs => OpenRouter.IByokClient.CreateBYOKKey.g.cs} (97%) rename src/libs/OpenRouter/Generated/{OpenRouter.IByokClient.DeleteByokKey.g.cs => OpenRouter.IByokClient.DeleteBYOKKey.g.cs} (96%) rename src/libs/OpenRouter/Generated/{OpenRouter.IByokClient.GetByokKey.g.cs => OpenRouter.IByokClient.GetBYOKKey.g.cs} (93%) rename src/libs/OpenRouter/Generated/{OpenRouter.IByokClient.ListByokKeys.g.cs => OpenRouter.IByokClient.ListBYOKKeys.g.cs} (98%) rename src/libs/OpenRouter/Generated/{OpenRouter.IByokClient.UpdateByokKey.g.cs => OpenRouter.IByokClient.UpdateBYOKKey.g.cs} (97%) rename src/libs/OpenRouter/Generated/{OpenRouter.IOAuthClient.ExchangeAuthCodeForApiKey.g.cs => OpenRouter.IOAuthClient.ExchangeAuthCodeForAPIKey.g.cs} (89%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.CreateEmbeddingsRequest.Json.g.cs => OpenRouter.Models.ApiKeysCreateKeysRequest.Json.g.cs} (87%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.CreateKeysRequest.g.cs => OpenRouter.Models.ApiKeysCreateKeysRequest.g.cs} (93%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.CreateKeysRequest.Json.g.cs => OpenRouter.Models.ApiKeysUpdateKeysRequest.Json.g.cs} (87%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.UpdateKeysRequest.g.cs => OpenRouter.Models.ApiKeysUpdateKeysRequest.g.cs} (90%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.BetaAnalyticsQueryAnalyticsRequest.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.QueryAnalyticsRequest.g.cs => OpenRouter.Models.BetaAnalyticsQueryAnalyticsRequest.g.cs} (94%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.CreateRerankRequest.Json.g.cs => OpenRouter.Models.EmbeddingsCreateEmbeddingsRequest.Json.g.cs} (85%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.CreateEmbeddingsRequest.g.cs => OpenRouter.Models.EmbeddingsCreateEmbeddingsRequest.g.cs} (92%) delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ExchangeAuthCodeForApiKeyRequest.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.UpdateKeysRequest.Json.g.cs => OpenRouter.Models.FilesUploadFileRequest.Json.g.cs} (87%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.UploadFileRequest.g.cs => OpenRouter.Models.FilesUploadFileRequest.g.cs} (82%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.UploadFileRequest.Json.g.cs => OpenRouter.Models.OAuthCreateAuthKeysCodeRequest.Json.g.cs} (86%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.CreateAuthKeysCodeRequest.g.cs => OpenRouter.Models.OAuthCreateAuthKeysCodeRequest.g.cs} (93%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthExchangeAuthCodeForAPIKeyRequest.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ExchangeAuthCodeForApiKeyRequest.g.cs => OpenRouter.Models.OAuthExchangeAuthCodeForAPIKeyRequest.g.cs} (86%) delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.QueryAnalyticsRequest.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.CreateAuthKeysCodeRequest.Json.g.cs => OpenRouter.Models.RerankCreateRerankRequest.Json.g.cs} (88%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.CreateRerankRequest.g.cs => OpenRouter.Models.RerankCreateRerankRequest.g.cs} (91%) rename src/libs/OpenRouter/Generated/{OpenRouter.OAuthClient.ExchangeAuthCodeForApiKey.g.cs => OpenRouter.OAuthClient.ExchangeAuthCodeForAPIKey.g.cs} (95%) diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.CreateKeys.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.CreateKeys.g.cs index a6e4437a..8b6d4700 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.CreateKeys.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.CreateKeys.g.cs @@ -27,11 +27,11 @@ public partial class ApiKeysClient }; partial void PrepareCreateKeysArguments( global::System.Net.Http.HttpClient httpClient, - global::OpenRouter.CreateKeysRequest request); + global::OpenRouter.ApiKeysCreateKeysRequest request); partial void PrepareCreateKeysRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::OpenRouter.CreateKeysRequest request); + global::OpenRouter.ApiKeysCreateKeysRequest request); partial void ProcessCreateKeysResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -51,7 +51,7 @@ partial void ProcessCreateKeysResponseContent( /// public async global::System.Threading.Tasks.Task CreateKeysAsync( - global::OpenRouter.CreateKeysRequest request, + global::OpenRouter.ApiKeysCreateKeysRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -74,7 +74,7 @@ partial void ProcessCreateKeysResponseContent( /// public async global::System.Threading.Tasks.Task> CreateKeysAsResponseAsync( - global::OpenRouter.CreateKeysRequest request, + global::OpenRouter.ApiKeysCreateKeysRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -657,7 +657,7 @@ partial void ProcessCreateKeysResponseContent( global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::OpenRouter.CreateKeysRequest + var __request = new global::OpenRouter.ApiKeysCreateKeysRequest { CreatorUserId = creatorUserId, ExpiresAt = expiresAt, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.UpdateKeys.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.UpdateKeys.g.cs index 93a1ec25..82d33b61 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.UpdateKeys.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.UpdateKeys.g.cs @@ -28,12 +28,12 @@ public partial class ApiKeysClient partial void PrepareUpdateKeysArguments( global::System.Net.Http.HttpClient httpClient, ref string hash, - global::OpenRouter.UpdateKeysRequest request); + global::OpenRouter.ApiKeysUpdateKeysRequest request); partial void PrepareUpdateKeysRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string hash, - global::OpenRouter.UpdateKeysRequest request); + global::OpenRouter.ApiKeysUpdateKeysRequest request); partial void ProcessUpdateKeysResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -55,7 +55,7 @@ partial void ProcessUpdateKeysResponseContent( public async global::System.Threading.Tasks.Task UpdateKeysAsync( string hash, - global::OpenRouter.UpdateKeysRequest request, + global::OpenRouter.ApiKeysUpdateKeysRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -81,7 +81,7 @@ partial void ProcessUpdateKeysResponseContent( public async global::System.Threading.Tasks.Task> UpdateKeysAsResponseAsync( string hash, - global::OpenRouter.UpdateKeysRequest request, + global::OpenRouter.ApiKeysUpdateKeysRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -660,7 +660,7 @@ partial void ProcessUpdateKeysResponseContent( global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::OpenRouter.UpdateKeysRequest + var __request = new global::OpenRouter.ApiKeysUpdateKeysRequest { Disabled = disabled, IncludeByokInLimit = includeByokInLimit, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.BetaAnalyticsClient.QueryAnalytics.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.BetaAnalyticsClient.QueryAnalytics.g.cs index 757f86b7..0e89b59e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.BetaAnalyticsClient.QueryAnalytics.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.BetaAnalyticsClient.QueryAnalytics.g.cs @@ -27,11 +27,11 @@ public partial class BetaAnalyticsClient }; partial void PrepareQueryAnalyticsArguments( global::System.Net.Http.HttpClient httpClient, - global::OpenRouter.QueryAnalyticsRequest request); + global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest request); partial void PrepareQueryAnalyticsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::OpenRouter.QueryAnalyticsRequest request); + global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest request); partial void ProcessQueryAnalyticsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -51,7 +51,7 @@ partial void ProcessQueryAnalyticsResponseContent( /// public async global::System.Threading.Tasks.Task QueryAnalyticsAsync( - global::OpenRouter.QueryAnalyticsRequest request, + global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -74,7 +74,7 @@ partial void ProcessQueryAnalyticsResponseContent( /// public async global::System.Threading.Tasks.Task> QueryAnalyticsAsResponseAsync( - global::OpenRouter.QueryAnalyticsRequest request, + global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -659,7 +659,7 @@ partial void ProcessQueryAnalyticsResponseContent( global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::OpenRouter.QueryAnalyticsRequest + var __request = new global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest { ClassifierDimensions = classifierDimensions, ClassifierFilters = classifierFilters, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.CreateByokKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.CreateBYOKKey.g.cs similarity index 95% rename from src/libs/OpenRouter/Generated/OpenRouter.ByokClient.CreateByokKey.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.ByokClient.CreateBYOKKey.g.cs index af8506cc..23e8cebe 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.CreateByokKey.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.CreateBYOKKey.g.cs @@ -7,7 +7,7 @@ public partial class ByokClient { - private static readonly global::OpenRouter.EndPointSecurityRequirement s_CreateByokKeySecurityRequirement0 = + private static readonly global::OpenRouter.EndPointSecurityRequirement s_CreateBYOKKeySecurityRequirement0 = new global::OpenRouter.EndPointSecurityRequirement { Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] @@ -21,22 +21,22 @@ public partial class ByokClient }, }, }; - private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_CreateByokKeySecurityRequirements = + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_CreateBYOKKeySecurityRequirements = new global::OpenRouter.EndPointSecurityRequirement[] - { s_CreateByokKeySecurityRequirement0, + { s_CreateBYOKKeySecurityRequirement0, }; - partial void PrepareCreateByokKeyArguments( + partial void PrepareCreateBYOKKeyArguments( global::System.Net.Http.HttpClient httpClient, global::OpenRouter.CreateBYOKKeyRequest request); - partial void PrepareCreateByokKeyRequest( + partial void PrepareCreateBYOKKeyRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, global::OpenRouter.CreateBYOKKeyRequest request); - partial void ProcessCreateByokKeyResponse( + partial void ProcessCreateBYOKKeyResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateByokKeyResponseContent( + partial void ProcessCreateBYOKKeyResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -49,13 +49,13 @@ partial void ProcessCreateByokKeyResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateByokKeyAsync( + public async global::System.Threading.Tasks.Task CreateBYOKKeyAsync( global::OpenRouter.CreateBYOKKeyRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await CreateByokKeyAsResponseAsync( + var __response = await CreateBYOKKeyAsResponseAsync( request: request, requestOptions: requestOptions, @@ -72,7 +72,7 @@ partial void ProcessCreateByokKeyResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> CreateByokKeyAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateBYOKKeyAsResponseAsync( global::OpenRouter.CreateBYOKKeyRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, @@ -82,15 +82,15 @@ partial void ProcessCreateByokKeyResponseContent( PrepareArguments( client: HttpClient); - PrepareCreateByokKeyArguments( + PrepareCreateBYOKKeyArguments( httpClient: HttpClient, request: request); var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_CreateByokKeySecurityRequirements, - operationName: "CreateByokKeyAsync"); + securityRequirements: s_CreateBYOKKeySecurityRequirements, + operationName: "CreateBYOKKeyAsync"); using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -155,7 +155,7 @@ partial void ProcessCreateByokKeyResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareCreateByokKeyRequest( + PrepareCreateBYOKKeyRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -175,8 +175,8 @@ partial void ProcessCreateByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateByokKey", - methodName: "CreateByokKeyAsync", + operationId: "CreateBYOKKey", + methodName: "CreateBYOKKeyAsync", pathTemplate: "\"/byok\"", httpMethod: "POST", baseUri: BaseUri, @@ -209,8 +209,8 @@ partial void ProcessCreateByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateByokKey", - methodName: "CreateByokKeyAsync", + operationId: "CreateBYOKKey", + methodName: "CreateBYOKKeyAsync", pathTemplate: "\"/byok\"", httpMethod: "POST", baseUri: BaseUri, @@ -250,8 +250,8 @@ partial void ProcessCreateByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateByokKey", - methodName: "CreateByokKeyAsync", + operationId: "CreateBYOKKey", + methodName: "CreateBYOKKeyAsync", pathTemplate: "\"/byok\"", httpMethod: "POST", baseUri: BaseUri, @@ -290,7 +290,7 @@ partial void ProcessCreateByokKeyResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessCreateByokKeyResponse( + ProcessCreateBYOKKeyResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -298,8 +298,8 @@ partial void ProcessCreateByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateByokKey", - methodName: "CreateByokKeyAsync", + operationId: "CreateBYOKKey", + methodName: "CreateBYOKKeyAsync", pathTemplate: "\"/byok\"", httpMethod: "POST", baseUri: BaseUri, @@ -320,8 +320,8 @@ partial void ProcessCreateByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateByokKey", - methodName: "CreateByokKeyAsync", + operationId: "CreateBYOKKey", + methodName: "CreateBYOKKeyAsync", pathTemplate: "\"/byok\"", httpMethod: "POST", baseUri: BaseUri, @@ -498,7 +498,7 @@ partial void ProcessCreateByokKeyResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessCreateByokKeyResponseContent( + ProcessCreateBYOKKeyResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -612,7 +612,7 @@ partial void ProcessCreateByokKeyResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateByokKeyAsync( + public async global::System.Threading.Tasks.Task CreateBYOKKeyAsync( string key, global::OpenRouter.BYOKProviderSlug provider, global::System.Collections.Generic.IList? allowedModels = default, @@ -636,7 +636,7 @@ partial void ProcessCreateByokKeyResponseContent( WorkspaceId = workspaceId, }; - return await CreateByokKeyAsync( + return await CreateBYOKKeyAsync( request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.DeleteByokKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.DeleteBYOKKey.g.cs similarity index 95% rename from src/libs/OpenRouter/Generated/OpenRouter.ByokClient.DeleteByokKey.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.ByokClient.DeleteBYOKKey.g.cs index bf70e9d3..15aa7cd1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.DeleteByokKey.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.DeleteBYOKKey.g.cs @@ -7,7 +7,7 @@ public partial class ByokClient { - private static readonly global::OpenRouter.EndPointSecurityRequirement s_DeleteByokKeySecurityRequirement0 = + private static readonly global::OpenRouter.EndPointSecurityRequirement s_DeleteBYOKKeySecurityRequirement0 = new global::OpenRouter.EndPointSecurityRequirement { Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] @@ -21,22 +21,22 @@ public partial class ByokClient }, }, }; - private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_DeleteByokKeySecurityRequirements = + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_DeleteBYOKKeySecurityRequirements = new global::OpenRouter.EndPointSecurityRequirement[] - { s_DeleteByokKeySecurityRequirement0, + { s_DeleteBYOKKeySecurityRequirement0, }; - partial void PrepareDeleteByokKeyArguments( + partial void PrepareDeleteBYOKKeyArguments( global::System.Net.Http.HttpClient httpClient, ref global::System.Guid id); - partial void PrepareDeleteByokKeyRequest( + partial void PrepareDeleteBYOKKeyRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, global::System.Guid id); - partial void ProcessDeleteByokKeyResponse( + partial void ProcessDeleteBYOKKeyResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessDeleteByokKeyResponseContent( + partial void ProcessDeleteBYOKKeyResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -49,12 +49,12 @@ partial void ProcessDeleteByokKeyResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task DeleteByokKeyAsync( + public async global::System.Threading.Tasks.Task DeleteBYOKKeyAsync( global::System.Guid id, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await DeleteByokKeyAsResponseAsync( + var __response = await DeleteBYOKKeyAsResponseAsync( id: id, requestOptions: requestOptions, cancellationToken: cancellationToken @@ -70,22 +70,22 @@ partial void ProcessDeleteByokKeyResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> DeleteByokKeyAsResponseAsync( + public async global::System.Threading.Tasks.Task> DeleteBYOKKeyAsResponseAsync( global::System.Guid id, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareDeleteByokKeyArguments( + PrepareDeleteBYOKKeyArguments( httpClient: HttpClient, id: ref id); var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_DeleteByokKeySecurityRequirements, - operationName: "DeleteByokKeyAsync"); + securityRequirements: s_DeleteBYOKKeySecurityRequirements, + operationName: "DeleteBYOKKeyAsync"); using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -144,7 +144,7 @@ partial void ProcessDeleteByokKeyResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareDeleteByokKeyRequest( + PrepareDeleteBYOKKeyRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, id: id!); @@ -164,8 +164,8 @@ partial void ProcessDeleteByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteByokKey", - methodName: "DeleteByokKeyAsync", + operationId: "DeleteBYOKKey", + methodName: "DeleteBYOKKeyAsync", pathTemplate: "$\"/byok/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -198,8 +198,8 @@ partial void ProcessDeleteByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteByokKey", - methodName: "DeleteByokKeyAsync", + operationId: "DeleteBYOKKey", + methodName: "DeleteBYOKKeyAsync", pathTemplate: "$\"/byok/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -239,8 +239,8 @@ partial void ProcessDeleteByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteByokKey", - methodName: "DeleteByokKeyAsync", + operationId: "DeleteBYOKKey", + methodName: "DeleteBYOKKeyAsync", pathTemplate: "$\"/byok/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -279,7 +279,7 @@ partial void ProcessDeleteByokKeyResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessDeleteByokKeyResponse( + ProcessDeleteBYOKKeyResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -287,8 +287,8 @@ partial void ProcessDeleteByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteByokKey", - methodName: "DeleteByokKeyAsync", + operationId: "DeleteBYOKKey", + methodName: "DeleteBYOKKeyAsync", pathTemplate: "$\"/byok/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -309,8 +309,8 @@ partial void ProcessDeleteByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteByokKey", - methodName: "DeleteByokKeyAsync", + operationId: "DeleteBYOKKey", + methodName: "DeleteBYOKKeyAsync", pathTemplate: "$\"/byok/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -450,7 +450,7 @@ partial void ProcessDeleteByokKeyResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessDeleteByokKeyResponseContent( + ProcessDeleteBYOKKeyResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.GetByokKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.GetBYOKKey.g.cs similarity index 95% rename from src/libs/OpenRouter/Generated/OpenRouter.ByokClient.GetByokKey.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.ByokClient.GetBYOKKey.g.cs index 99b62d2a..3737edfa 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.GetByokKey.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.GetBYOKKey.g.cs @@ -7,7 +7,7 @@ public partial class ByokClient { - private static readonly global::OpenRouter.EndPointSecurityRequirement s_GetByokKeySecurityRequirement0 = + private static readonly global::OpenRouter.EndPointSecurityRequirement s_GetBYOKKeySecurityRequirement0 = new global::OpenRouter.EndPointSecurityRequirement { Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] @@ -21,22 +21,22 @@ public partial class ByokClient }, }, }; - private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_GetByokKeySecurityRequirements = + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_GetBYOKKeySecurityRequirements = new global::OpenRouter.EndPointSecurityRequirement[] - { s_GetByokKeySecurityRequirement0, + { s_GetBYOKKeySecurityRequirement0, }; - partial void PrepareGetByokKeyArguments( + partial void PrepareGetBYOKKeyArguments( global::System.Net.Http.HttpClient httpClient, ref global::System.Guid id); - partial void PrepareGetByokKeyRequest( + partial void PrepareGetBYOKKeyRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, global::System.Guid id); - partial void ProcessGetByokKeyResponse( + partial void ProcessGetBYOKKeyResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetByokKeyResponseContent( + partial void ProcessGetBYOKKeyResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -49,12 +49,12 @@ partial void ProcessGetByokKeyResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GetByokKeyAsync( + public async global::System.Threading.Tasks.Task GetBYOKKeyAsync( global::System.Guid id, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetByokKeyAsResponseAsync( + var __response = await GetBYOKKeyAsResponseAsync( id: id, requestOptions: requestOptions, cancellationToken: cancellationToken @@ -70,22 +70,22 @@ partial void ProcessGetByokKeyResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> GetByokKeyAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetBYOKKeyAsResponseAsync( global::System.Guid id, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareGetByokKeyArguments( + PrepareGetBYOKKeyArguments( httpClient: HttpClient, id: ref id); var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetByokKeySecurityRequirements, - operationName: "GetByokKeyAsync"); + securityRequirements: s_GetBYOKKeySecurityRequirements, + operationName: "GetBYOKKeyAsync"); using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -144,7 +144,7 @@ partial void ProcessGetByokKeyResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetByokKeyRequest( + PrepareGetBYOKKeyRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, id: id!); @@ -164,8 +164,8 @@ partial void ProcessGetByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetByokKey", - methodName: "GetByokKeyAsync", + operationId: "GetBYOKKey", + methodName: "GetBYOKKeyAsync", pathTemplate: "$\"/byok/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -198,8 +198,8 @@ partial void ProcessGetByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetByokKey", - methodName: "GetByokKeyAsync", + operationId: "GetBYOKKey", + methodName: "GetBYOKKeyAsync", pathTemplate: "$\"/byok/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -239,8 +239,8 @@ partial void ProcessGetByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetByokKey", - methodName: "GetByokKeyAsync", + operationId: "GetBYOKKey", + methodName: "GetBYOKKeyAsync", pathTemplate: "$\"/byok/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -279,7 +279,7 @@ partial void ProcessGetByokKeyResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessGetByokKeyResponse( + ProcessGetBYOKKeyResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -287,8 +287,8 @@ partial void ProcessGetByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetByokKey", - methodName: "GetByokKeyAsync", + operationId: "GetBYOKKey", + methodName: "GetBYOKKeyAsync", pathTemplate: "$\"/byok/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -309,8 +309,8 @@ partial void ProcessGetByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetByokKey", - methodName: "GetByokKeyAsync", + operationId: "GetBYOKKey", + methodName: "GetBYOKKeyAsync", pathTemplate: "$\"/byok/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -450,7 +450,7 @@ partial void ProcessGetByokKeyResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessGetByokKeyResponseContent( + ProcessGetBYOKKeyResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.ListByokKeys.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.ListBYOKKeys.g.cs similarity index 95% rename from src/libs/OpenRouter/Generated/OpenRouter.ByokClient.ListByokKeys.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.ByokClient.ListBYOKKeys.g.cs index caf87072..7301e618 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.ListByokKeys.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.ListBYOKKeys.g.cs @@ -7,7 +7,7 @@ public partial class ByokClient { - private static readonly global::OpenRouter.EndPointSecurityRequirement s_ListByokKeysSecurityRequirement0 = + private static readonly global::OpenRouter.EndPointSecurityRequirement s_ListBYOKKeysSecurityRequirement0 = new global::OpenRouter.EndPointSecurityRequirement { Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] @@ -21,28 +21,28 @@ public partial class ByokClient }, }, }; - private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_ListByokKeysSecurityRequirements = + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_ListBYOKKeysSecurityRequirements = new global::OpenRouter.EndPointSecurityRequirement[] - { s_ListByokKeysSecurityRequirement0, + { s_ListBYOKKeysSecurityRequirement0, }; - partial void PrepareListByokKeysArguments( + partial void PrepareListBYOKKeysArguments( global::System.Net.Http.HttpClient httpClient, ref int? offset, ref int? limit, ref global::System.Guid? workspaceId, ref global::OpenRouter.ByokGetParametersProvider? provider); - partial void PrepareListByokKeysRequest( + partial void PrepareListBYOKKeysRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, int? offset, int? limit, global::System.Guid? workspaceId, global::OpenRouter.ByokGetParametersProvider? provider); - partial void ProcessListByokKeysResponse( + partial void ProcessListBYOKKeysResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessListByokKeysResponseContent( + partial void ProcessListBYOKKeysResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -64,7 +64,7 @@ partial void ProcessListByokKeysResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ListByokKeysAsync( + public async global::System.Threading.Tasks.Task ListBYOKKeysAsync( int? offset = default, int? limit = default, global::System.Guid? workspaceId = default, @@ -72,7 +72,7 @@ partial void ProcessListByokKeysResponseContent( global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await ListByokKeysAsResponseAsync( + var __response = await ListBYOKKeysAsResponseAsync( offset: offset, limit: limit, workspaceId: workspaceId, @@ -100,7 +100,7 @@ partial void ProcessListByokKeysResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ListByokKeysAsResponseAsync( + public async global::System.Threading.Tasks.Task> ListBYOKKeysAsResponseAsync( int? offset = default, int? limit = default, global::System.Guid? workspaceId = default, @@ -110,7 +110,7 @@ partial void ProcessListByokKeysResponseContent( { PrepareArguments( client: HttpClient); - PrepareListByokKeysArguments( + PrepareListBYOKKeysArguments( httpClient: HttpClient, offset: ref offset, limit: ref limit, @@ -120,8 +120,8 @@ partial void ProcessListByokKeysResponseContent( var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ListByokKeysSecurityRequirements, - operationName: "ListByokKeysAsync"); + securityRequirements: s_ListBYOKKeysSecurityRequirements, + operationName: "ListBYOKKeysAsync"); using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -186,7 +186,7 @@ partial void ProcessListByokKeysResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareListByokKeysRequest( + PrepareListBYOKKeysRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, offset: offset, @@ -209,8 +209,8 @@ partial void ProcessListByokKeysResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListByokKeys", - methodName: "ListByokKeysAsync", + operationId: "ListBYOKKeys", + methodName: "ListBYOKKeysAsync", pathTemplate: "\"/byok\"", httpMethod: "GET", baseUri: BaseUri, @@ -243,8 +243,8 @@ partial void ProcessListByokKeysResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListByokKeys", - methodName: "ListByokKeysAsync", + operationId: "ListBYOKKeys", + methodName: "ListBYOKKeysAsync", pathTemplate: "\"/byok\"", httpMethod: "GET", baseUri: BaseUri, @@ -284,8 +284,8 @@ partial void ProcessListByokKeysResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListByokKeys", - methodName: "ListByokKeysAsync", + operationId: "ListBYOKKeys", + methodName: "ListBYOKKeysAsync", pathTemplate: "\"/byok\"", httpMethod: "GET", baseUri: BaseUri, @@ -324,7 +324,7 @@ partial void ProcessListByokKeysResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessListByokKeysResponse( + ProcessListBYOKKeysResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -332,8 +332,8 @@ partial void ProcessListByokKeysResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListByokKeys", - methodName: "ListByokKeysAsync", + operationId: "ListBYOKKeys", + methodName: "ListBYOKKeysAsync", pathTemplate: "\"/byok\"", httpMethod: "GET", baseUri: BaseUri, @@ -354,8 +354,8 @@ partial void ProcessListByokKeysResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListByokKeys", - methodName: "ListByokKeysAsync", + operationId: "ListBYOKKeys", + methodName: "ListBYOKKeysAsync", pathTemplate: "\"/byok\"", httpMethod: "GET", baseUri: BaseUri, @@ -458,7 +458,7 @@ partial void ProcessListByokKeysResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessListByokKeysResponseContent( + ProcessListBYOKKeysResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.UpdateByokKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.UpdateBYOKKey.g.cs similarity index 95% rename from src/libs/OpenRouter/Generated/OpenRouter.ByokClient.UpdateByokKey.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.ByokClient.UpdateBYOKKey.g.cs index 73fddfb6..521e0b54 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.UpdateByokKey.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ByokClient.UpdateBYOKKey.g.cs @@ -7,7 +7,7 @@ public partial class ByokClient { - private static readonly global::OpenRouter.EndPointSecurityRequirement s_UpdateByokKeySecurityRequirement0 = + private static readonly global::OpenRouter.EndPointSecurityRequirement s_UpdateBYOKKeySecurityRequirement0 = new global::OpenRouter.EndPointSecurityRequirement { Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] @@ -21,24 +21,24 @@ public partial class ByokClient }, }, }; - private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_UpdateByokKeySecurityRequirements = + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_UpdateBYOKKeySecurityRequirements = new global::OpenRouter.EndPointSecurityRequirement[] - { s_UpdateByokKeySecurityRequirement0, + { s_UpdateBYOKKeySecurityRequirement0, }; - partial void PrepareUpdateByokKeyArguments( + partial void PrepareUpdateBYOKKeyArguments( global::System.Net.Http.HttpClient httpClient, ref global::System.Guid id, global::OpenRouter.UpdateBYOKKeyRequest request); - partial void PrepareUpdateByokKeyRequest( + partial void PrepareUpdateBYOKKeyRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, global::System.Guid id, global::OpenRouter.UpdateBYOKKeyRequest request); - partial void ProcessUpdateByokKeyResponse( + partial void ProcessUpdateBYOKKeyResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessUpdateByokKeyResponseContent( + partial void ProcessUpdateBYOKKeyResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -52,14 +52,14 @@ partial void ProcessUpdateByokKeyResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task UpdateByokKeyAsync( + public async global::System.Threading.Tasks.Task UpdateBYOKKeyAsync( global::System.Guid id, global::OpenRouter.UpdateBYOKKeyRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await UpdateByokKeyAsResponseAsync( + var __response = await UpdateBYOKKeyAsResponseAsync( id: id, request: request, @@ -78,7 +78,7 @@ partial void ProcessUpdateByokKeyResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> UpdateByokKeyAsResponseAsync( + public async global::System.Threading.Tasks.Task> UpdateBYOKKeyAsResponseAsync( global::System.Guid id, global::OpenRouter.UpdateBYOKKeyRequest request, @@ -89,7 +89,7 @@ partial void ProcessUpdateByokKeyResponseContent( PrepareArguments( client: HttpClient); - PrepareUpdateByokKeyArguments( + PrepareUpdateBYOKKeyArguments( httpClient: HttpClient, id: ref id, request: request); @@ -97,8 +97,8 @@ partial void ProcessUpdateByokKeyResponseContent( var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_UpdateByokKeySecurityRequirements, - operationName: "UpdateByokKeyAsync"); + securityRequirements: s_UpdateBYOKKeySecurityRequirements, + operationName: "UpdateBYOKKeyAsync"); using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -163,7 +163,7 @@ partial void ProcessUpdateByokKeyResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareUpdateByokKeyRequest( + PrepareUpdateBYOKKeyRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, id: id!, @@ -184,8 +184,8 @@ partial void ProcessUpdateByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateByokKey", - methodName: "UpdateByokKeyAsync", + operationId: "UpdateBYOKKey", + methodName: "UpdateBYOKKeyAsync", pathTemplate: "$\"/byok/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -218,8 +218,8 @@ partial void ProcessUpdateByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateByokKey", - methodName: "UpdateByokKeyAsync", + operationId: "UpdateBYOKKey", + methodName: "UpdateBYOKKeyAsync", pathTemplate: "$\"/byok/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -259,8 +259,8 @@ partial void ProcessUpdateByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateByokKey", - methodName: "UpdateByokKeyAsync", + operationId: "UpdateBYOKKey", + methodName: "UpdateBYOKKeyAsync", pathTemplate: "$\"/byok/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -299,7 +299,7 @@ partial void ProcessUpdateByokKeyResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessUpdateByokKeyResponse( + ProcessUpdateBYOKKeyResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -307,8 +307,8 @@ partial void ProcessUpdateByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateByokKey", - methodName: "UpdateByokKeyAsync", + operationId: "UpdateBYOKKey", + methodName: "UpdateBYOKKeyAsync", pathTemplate: "$\"/byok/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -329,8 +329,8 @@ partial void ProcessUpdateByokKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateByokKey", - methodName: "UpdateByokKeyAsync", + operationId: "UpdateBYOKKey", + methodName: "UpdateBYOKKeyAsync", pathTemplate: "$\"/byok/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -507,7 +507,7 @@ partial void ProcessUpdateByokKeyResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessUpdateByokKeyResponseContent( + ProcessUpdateBYOKKeyResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -616,7 +616,7 @@ partial void ProcessUpdateByokKeyResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task UpdateByokKeyAsync( + public async global::System.Threading.Tasks.Task UpdateBYOKKeyAsync( global::System.Guid id, global::System.Collections.Generic.IList? allowedModels = default, global::System.Collections.Generic.IList? allowedUserIds = default, @@ -637,7 +637,7 @@ partial void ProcessUpdateByokKeyResponseContent( Name = name, }; - return await UpdateByokKeyAsync( + return await UpdateBYOKKeyAsync( id: id, request: __request, requestOptions: requestOptions, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.EmbeddingsClient.CreateEmbeddings.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.EmbeddingsClient.CreateEmbeddings.g.cs index 879f8835..c70e018f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.EmbeddingsClient.CreateEmbeddings.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.EmbeddingsClient.CreateEmbeddings.g.cs @@ -27,11 +27,11 @@ public partial class EmbeddingsClient }; partial void PrepareCreateEmbeddingsArguments( global::System.Net.Http.HttpClient httpClient, - global::OpenRouter.CreateEmbeddingsRequest request); + global::OpenRouter.EmbeddingsCreateEmbeddingsRequest request); partial void PrepareCreateEmbeddingsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::OpenRouter.CreateEmbeddingsRequest request); + global::OpenRouter.EmbeddingsCreateEmbeddingsRequest request); partial void ProcessCreateEmbeddingsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -51,7 +51,7 @@ partial void ProcessCreateEmbeddingsResponseContent( /// public async global::System.Threading.Tasks.Task CreateEmbeddingsAsync( - global::OpenRouter.CreateEmbeddingsRequest request, + global::OpenRouter.EmbeddingsCreateEmbeddingsRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -74,7 +74,7 @@ partial void ProcessCreateEmbeddingsResponseContent( /// public async global::System.Threading.Tasks.Task> CreateEmbeddingsAsResponseAsync( - global::OpenRouter.CreateEmbeddingsRequest request, + global::OpenRouter.EmbeddingsCreateEmbeddingsRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -768,7 +768,7 @@ partial void ProcessCreateEmbeddingsResponseContent( global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::OpenRouter.CreateEmbeddingsRequest + var __request = new global::OpenRouter.EmbeddingsCreateEmbeddingsRequest { Dimensions = dimensions, EncodingFormat = encodingFormat, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.FilesClient.UploadFile.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.FilesClient.UploadFile.g.cs index 8e94b3a4..8dce490a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.FilesClient.UploadFile.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.FilesClient.UploadFile.g.cs @@ -28,12 +28,12 @@ public partial class FilesClient partial void PrepareUploadFileArguments( global::System.Net.Http.HttpClient httpClient, ref global::System.Guid? workspaceId, - global::OpenRouter.UploadFileRequest request); + global::OpenRouter.FilesUploadFileRequest request); partial void PrepareUploadFileRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, global::System.Guid? workspaceId, - global::OpenRouter.UploadFileRequest request); + global::OpenRouter.FilesUploadFileRequest request); partial void ProcessUploadFileResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -54,7 +54,7 @@ partial void ProcessUploadFileResponseContent( /// public async global::System.Threading.Tasks.Task UploadFileAsync( - global::OpenRouter.UploadFileRequest request, + global::OpenRouter.FilesUploadFileRequest request, global::System.Guid? workspaceId = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -80,7 +80,7 @@ partial void ProcessUploadFileResponseContent( /// public async global::System.Threading.Tasks.Task> UploadFileAsResponseAsync( - global::OpenRouter.UploadFileRequest request, + global::OpenRouter.FilesUploadFileRequest request, global::System.Guid? workspaceId = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -720,7 +720,7 @@ request.Filename is null global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::OpenRouter.UploadFileRequest + var __request = new global::OpenRouter.FilesUploadFileRequest { File = file, Filename = filename, @@ -754,7 +754,7 @@ request.Filename is null { file = file ?? throw new global::System.ArgumentNullException(nameof(file)); - var request = new global::OpenRouter.UploadFileRequest + var request = new global::OpenRouter.FilesUploadFileRequest { File = global::System.Array.Empty(), Filename = filename, @@ -1388,7 +1388,7 @@ request.Filename is null { file = file ?? throw new global::System.ArgumentNullException(nameof(file)); - var request = new global::OpenRouter.UploadFileRequest + var request = new global::OpenRouter.FilesUploadFileRequest { File = global::System.Array.Empty(), Filename = filename, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.CreateKeys.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.CreateKeys.g.cs index 34230d7b..55e2b69f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.CreateKeys.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.CreateKeys.g.cs @@ -14,7 +14,7 @@ public partial interface IApiKeysClient /// global::System.Threading.Tasks.Task CreateKeysAsync( - global::OpenRouter.CreateKeysRequest request, + global::OpenRouter.ApiKeysCreateKeysRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -27,7 +27,7 @@ public partial interface IApiKeysClient /// global::System.Threading.Tasks.Task> CreateKeysAsResponseAsync( - global::OpenRouter.CreateKeysRequest request, + global::OpenRouter.ApiKeysCreateKeysRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.UpdateKeys.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.UpdateKeys.g.cs index a1208130..8a7ca32e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.UpdateKeys.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.UpdateKeys.g.cs @@ -16,7 +16,7 @@ public partial interface IApiKeysClient global::System.Threading.Tasks.Task UpdateKeysAsync( string hash, - global::OpenRouter.UpdateKeysRequest request, + global::OpenRouter.ApiKeysUpdateKeysRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -31,7 +31,7 @@ public partial interface IApiKeysClient global::System.Threading.Tasks.Task> UpdateKeysAsResponseAsync( string hash, - global::OpenRouter.UpdateKeysRequest request, + global::OpenRouter.ApiKeysUpdateKeysRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IBetaAnalyticsClient.QueryAnalytics.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IBetaAnalyticsClient.QueryAnalytics.g.cs index fb9ab50b..a1713acf 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IBetaAnalyticsClient.QueryAnalytics.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IBetaAnalyticsClient.QueryAnalytics.g.cs @@ -14,7 +14,7 @@ public partial interface IBetaAnalyticsClient /// global::System.Threading.Tasks.Task QueryAnalyticsAsync( - global::OpenRouter.QueryAnalyticsRequest request, + global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -27,7 +27,7 @@ public partial interface IBetaAnalyticsClient /// global::System.Threading.Tasks.Task> QueryAnalyticsAsResponseAsync( - global::OpenRouter.QueryAnalyticsRequest request, + global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.CreateByokKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.CreateBYOKKey.g.cs similarity index 97% rename from src/libs/OpenRouter/Generated/OpenRouter.IByokClient.CreateByokKey.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.IByokClient.CreateBYOKKey.g.cs index a1ef0ec9..464f86ab 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.CreateByokKey.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.CreateBYOKKey.g.cs @@ -12,7 +12,7 @@ public partial interface IByokClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateByokKeyAsync( + global::System.Threading.Tasks.Task CreateBYOKKeyAsync( global::OpenRouter.CreateBYOKKeyRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, @@ -25,7 +25,7 @@ public partial interface IByokClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> CreateByokKeyAsResponseAsync( + global::System.Threading.Tasks.Task> CreateBYOKKeyAsResponseAsync( global::OpenRouter.CreateBYOKKeyRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, @@ -61,7 +61,7 @@ public partial interface IByokClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateByokKeyAsync( + global::System.Threading.Tasks.Task CreateBYOKKeyAsync( string key, global::OpenRouter.BYOKProviderSlug provider, global::System.Collections.Generic.IList? allowedModels = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.DeleteByokKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.DeleteBYOKKey.g.cs similarity index 96% rename from src/libs/OpenRouter/Generated/OpenRouter.IByokClient.DeleteByokKey.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.IByokClient.DeleteBYOKKey.g.cs index 897e582c..89a7c3b9 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.DeleteByokKey.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.DeleteBYOKKey.g.cs @@ -12,7 +12,7 @@ public partial interface IByokClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task DeleteByokKeyAsync( + global::System.Threading.Tasks.Task DeleteBYOKKeyAsync( global::System.Guid id, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -24,7 +24,7 @@ public partial interface IByokClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> DeleteByokKeyAsResponseAsync( + global::System.Threading.Tasks.Task> DeleteBYOKKeyAsResponseAsync( global::System.Guid id, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.GetByokKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.GetBYOKKey.g.cs similarity index 93% rename from src/libs/OpenRouter/Generated/OpenRouter.IByokClient.GetByokKey.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.IByokClient.GetBYOKKey.g.cs index bb929400..9059a35e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.GetByokKey.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.GetBYOKKey.g.cs @@ -12,7 +12,7 @@ public partial interface IByokClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task GetByokKeyAsync( + global::System.Threading.Tasks.Task GetBYOKKeyAsync( global::System.Guid id, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -24,7 +24,7 @@ public partial interface IByokClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> GetByokKeyAsResponseAsync( + global::System.Threading.Tasks.Task> GetBYOKKeyAsResponseAsync( global::System.Guid id, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.ListByokKeys.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.ListBYOKKeys.g.cs similarity index 98% rename from src/libs/OpenRouter/Generated/OpenRouter.IByokClient.ListByokKeys.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.IByokClient.ListBYOKKeys.g.cs index fd07f821..cf0e8b44 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.ListByokKeys.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.ListBYOKKeys.g.cs @@ -21,7 +21,7 @@ public partial interface IByokClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ListByokKeysAsync( + global::System.Threading.Tasks.Task ListBYOKKeysAsync( int? offset = default, int? limit = default, global::System.Guid? workspaceId = default, @@ -45,7 +45,7 @@ public partial interface IByokClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ListByokKeysAsResponseAsync( + global::System.Threading.Tasks.Task> ListBYOKKeysAsResponseAsync( int? offset = default, int? limit = default, global::System.Guid? workspaceId = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.UpdateByokKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.UpdateBYOKKey.g.cs similarity index 97% rename from src/libs/OpenRouter/Generated/OpenRouter.IByokClient.UpdateByokKey.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.IByokClient.UpdateBYOKKey.g.cs index 7939adc3..99bc944f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.UpdateByokKey.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IByokClient.UpdateBYOKKey.g.cs @@ -13,7 +13,7 @@ public partial interface IByokClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task UpdateByokKeyAsync( + global::System.Threading.Tasks.Task UpdateBYOKKeyAsync( global::System.Guid id, global::OpenRouter.UpdateBYOKKeyRequest request, @@ -28,7 +28,7 @@ public partial interface IByokClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> UpdateByokKeyAsResponseAsync( + global::System.Threading.Tasks.Task> UpdateBYOKKeyAsResponseAsync( global::System.Guid id, global::OpenRouter.UpdateBYOKKeyRequest request, @@ -60,7 +60,7 @@ public partial interface IByokClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task UpdateByokKeyAsync( + global::System.Threading.Tasks.Task UpdateBYOKKeyAsync( global::System.Guid id, global::System.Collections.Generic.IList? allowedModels = default, global::System.Collections.Generic.IList? allowedUserIds = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IEmbeddingsClient.CreateEmbeddings.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IEmbeddingsClient.CreateEmbeddings.g.cs index 096bd865..ec9125b2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IEmbeddingsClient.CreateEmbeddings.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IEmbeddingsClient.CreateEmbeddings.g.cs @@ -14,7 +14,7 @@ public partial interface IEmbeddingsClient /// global::System.Threading.Tasks.Task CreateEmbeddingsAsync( - global::OpenRouter.CreateEmbeddingsRequest request, + global::OpenRouter.EmbeddingsCreateEmbeddingsRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -27,7 +27,7 @@ public partial interface IEmbeddingsClient /// global::System.Threading.Tasks.Task> CreateEmbeddingsAsResponseAsync( - global::OpenRouter.CreateEmbeddingsRequest request, + global::OpenRouter.EmbeddingsCreateEmbeddingsRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IFilesClient.UploadFile.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IFilesClient.UploadFile.g.cs index 1f09e687..85aed20a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IFilesClient.UploadFile.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IFilesClient.UploadFile.g.cs @@ -15,7 +15,7 @@ public partial interface IFilesClient /// global::System.Threading.Tasks.Task UploadFileAsync( - global::OpenRouter.UploadFileRequest request, + global::OpenRouter.FilesUploadFileRequest request, global::System.Guid? workspaceId = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -30,7 +30,7 @@ public partial interface IFilesClient /// global::System.Threading.Tasks.Task> UploadFileAsResponseAsync( - global::OpenRouter.UploadFileRequest request, + global::OpenRouter.FilesUploadFileRequest request, global::System.Guid? workspaceId = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.CreateAuthKeysCode.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.CreateAuthKeysCode.g.cs index 1d0af937..9ad40744 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.CreateAuthKeysCode.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.CreateAuthKeysCode.g.cs @@ -14,7 +14,7 @@ public partial interface IOAuthClient /// global::System.Threading.Tasks.Task CreateAuthKeysCodeAsync( - global::OpenRouter.CreateAuthKeysCodeRequest request, + global::OpenRouter.OAuthCreateAuthKeysCodeRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -27,7 +27,7 @@ public partial interface IOAuthClient /// global::System.Threading.Tasks.Task> CreateAuthKeysCodeAsResponseAsync( - global::OpenRouter.CreateAuthKeysCodeRequest request, + global::OpenRouter.OAuthCreateAuthKeysCodeRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.ExchangeAuthCodeForApiKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.ExchangeAuthCodeForAPIKey.g.cs similarity index 89% rename from src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.ExchangeAuthCodeForApiKey.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.ExchangeAuthCodeForAPIKey.g.cs index 271b7566..740b907b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.ExchangeAuthCodeForApiKey.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IOAuthClient.ExchangeAuthCodeForAPIKey.g.cs @@ -12,9 +12,9 @@ public partial interface IOAuthClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ExchangeAuthCodeForApiKeyAsync( + global::System.Threading.Tasks.Task ExchangeAuthCodeForAPIKeyAsync( - global::OpenRouter.ExchangeAuthCodeForApiKeyRequest request, + global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -25,9 +25,9 @@ public partial interface IOAuthClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ExchangeAuthCodeForApiKeyAsResponseAsync( + global::System.Threading.Tasks.Task> ExchangeAuthCodeForAPIKeyAsResponseAsync( - global::OpenRouter.ExchangeAuthCodeForApiKeyRequest request, + global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -46,7 +46,7 @@ public partial interface IOAuthClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ExchangeAuthCodeForApiKeyAsync( + global::System.Threading.Tasks.Task ExchangeAuthCodeForAPIKeyAsync( string code, global::OpenRouter.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? codeChallengeMethod = default, string? codeVerifier = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IRerankClient.CreateRerank.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IRerankClient.CreateRerank.g.cs index c8cb6216..d219b543 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IRerankClient.CreateRerank.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IRerankClient.CreateRerank.g.cs @@ -14,7 +14,7 @@ public partial interface IRerankClient /// global::System.Threading.Tasks.Task CreateRerankAsync( - global::OpenRouter.CreateRerankRequest request, + global::OpenRouter.RerankCreateRerankRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -27,7 +27,7 @@ public partial interface IRerankClient /// global::System.Threading.Tasks.Task> CreateRerankAsResponseAsync( - global::OpenRouter.CreateRerankRequest request, + global::OpenRouter.RerankCreateRerankRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs index 36925fac..a61e90b5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs @@ -1935,16 +1935,16 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkAddWorkspaceMembersResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkRemoveWorkspaceMembersRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkRemoveWorkspaceMembersResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExchangeAuthCodeForApiKeyRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateAuthKeysCodeRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.QueryAnalyticsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OAuthCreateAuthKeysCodeRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UploadFileRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EmbeddingsCreateEmbeddingsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FilesUploadFileRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateKeysRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateKeysRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateRerankRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApiKeysCreateKeysRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ApiKeysUpdateKeysRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankCreateRerankRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.MetadataLevel?), TypeInfoPropertyName = "NullableMetadataLevel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCacheControlTtl?), TypeInfoPropertyName = "NullableAnthropicCacheControlTtl2")] diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs index c4e3872a..943396d2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs @@ -7561,15 +7561,15 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1882 { get; set; } + public global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest? Type1882 { get; set; } /// /// /// - public global::OpenRouter.CreateAuthKeysCodeRequest? Type1883 { get; set; } + public global::OpenRouter.OAuthCreateAuthKeysCodeRequest? Type1883 { get; set; } /// /// /// - public global::OpenRouter.QueryAnalyticsRequest? Type1884 { get; set; } + public global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest? Type1884 { get; set; } /// /// /// @@ -7577,11 +7577,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.CreateEmbeddingsRequest? Type1886 { get; set; } + public global::OpenRouter.EmbeddingsCreateEmbeddingsRequest? Type1886 { get; set; } /// /// /// - public global::OpenRouter.UploadFileRequest? Type1887 { get; set; } + public global::OpenRouter.FilesUploadFileRequest? Type1887 { get; set; } /// /// /// @@ -7589,15 +7589,15 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.CreateKeysRequest? Type1889 { get; set; } + public global::OpenRouter.ApiKeysCreateKeysRequest? Type1889 { get; set; } /// /// /// - public global::OpenRouter.UpdateKeysRequest? Type1890 { get; set; } + public global::OpenRouter.ApiKeysUpdateKeysRequest? Type1890 { get; set; } /// /// /// - public global::OpenRouter.CreateRerankRequest? Type1891 { get; set; } + public global::OpenRouter.RerankCreateRerankRequest? Type1891 { get; set; } /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateEmbeddingsRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysCreateKeysRequest.Json.g.cs similarity index 87% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.CreateEmbeddingsRequest.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysCreateKeysRequest.Json.g.cs index 188b37d7..e757ba3a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateEmbeddingsRequest.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysCreateKeysRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class CreateEmbeddingsRequest + public sealed partial class ApiKeysCreateKeysRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.CreateEmbeddingsRequest? FromJson( + public static global::OpenRouter.ApiKeysCreateKeysRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.CreateEmbeddingsRequest), - jsonSerializerContext) as global::OpenRouter.CreateEmbeddingsRequest; + typeof(global::OpenRouter.ApiKeysCreateKeysRequest), + jsonSerializerContext) as global::OpenRouter.ApiKeysCreateKeysRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::OpenRouter.CreateEmbeddingsRequest? FromJson( + public static global::OpenRouter.ApiKeysCreateKeysRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.CreateEmbeddingsRequest? FromJson( + public static global::OpenRouter.ApiKeysCreateKeysRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.CreateEmbeddingsRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateEmbeddingsRequest; + typeof(global::OpenRouter.ApiKeysCreateKeysRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ApiKeysCreateKeysRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysCreateKeysRequest.g.cs similarity index 93% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysCreateKeysRequest.g.cs index deeba92a..ee2fb60f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysCreateKeysRequest.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class CreateKeysRequest + public sealed partial class ApiKeysCreateKeysRequest { /// /// Optional user ID of the key creator. Only meaningful for organization-owned keys where a specific member is creating the key. @@ -59,7 +59,7 @@ public sealed partial class CreateKeysRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Name for the new API key @@ -85,7 +85,7 @@ public sealed partial class CreateKeysRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateKeysRequest( + public ApiKeysCreateKeysRequest( string name, string? creatorUserId, global::System.DateTime? expiresAt, @@ -104,9 +104,9 @@ public CreateKeysRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateKeysRequest() + public ApiKeysCreateKeysRequest() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysUpdateKeysRequest.Json.g.cs similarity index 87% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysUpdateKeysRequest.Json.g.cs index e9547eab..56b129d2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateKeysRequest.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysUpdateKeysRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class CreateKeysRequest + public sealed partial class ApiKeysUpdateKeysRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.CreateKeysRequest? FromJson( + public static global::OpenRouter.ApiKeysUpdateKeysRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.CreateKeysRequest), - jsonSerializerContext) as global::OpenRouter.CreateKeysRequest; + typeof(global::OpenRouter.ApiKeysUpdateKeysRequest), + jsonSerializerContext) as global::OpenRouter.ApiKeysUpdateKeysRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::OpenRouter.CreateKeysRequest? FromJson( + public static global::OpenRouter.ApiKeysUpdateKeysRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.CreateKeysRequest? FromJson( + public static global::OpenRouter.ApiKeysUpdateKeysRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.CreateKeysRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateKeysRequest; + typeof(global::OpenRouter.ApiKeysUpdateKeysRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ApiKeysUpdateKeysRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateKeysRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysUpdateKeysRequest.g.cs similarity index 90% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateKeysRequest.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysUpdateKeysRequest.g.cs index 59ecb4bf..948df54a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateKeysRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ApiKeysUpdateKeysRequest.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class UpdateKeysRequest + public sealed partial class ApiKeysUpdateKeysRequest { /// /// Whether to disable the API key @@ -46,7 +46,7 @@ public sealed partial class UpdateKeysRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Whether to disable the API key @@ -66,7 +66,7 @@ public sealed partial class UpdateKeysRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UpdateKeysRequest( + public ApiKeysUpdateKeysRequest( bool? disabled, bool? includeByokInLimit, double? limit, @@ -81,9 +81,9 @@ public UpdateKeysRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UpdateKeysRequest() + public ApiKeysUpdateKeysRequest() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.BetaAnalyticsQueryAnalyticsRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.BetaAnalyticsQueryAnalyticsRequest.Json.g.cs new file mode 100644 index 00000000..2d2acf08 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.BetaAnalyticsQueryAnalyticsRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class BetaAnalyticsQueryAnalyticsRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest), + jsonSerializerContext) as global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.BetaAnalyticsQueryAnalyticsRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.QueryAnalyticsRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.BetaAnalyticsQueryAnalyticsRequest.g.cs similarity index 94% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.QueryAnalyticsRequest.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.BetaAnalyticsQueryAnalyticsRequest.g.cs index 148d3448..a74fd930 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.QueryAnalyticsRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.BetaAnalyticsQueryAnalyticsRequest.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class QueryAnalyticsRequest + public sealed partial class BetaAnalyticsQueryAnalyticsRequest { /// /// Group results by custom classifier tags, breaking down metrics by the specified dimension values. Requires an active classifier on the workspace. @@ -76,7 +76,7 @@ public sealed partial class QueryAnalyticsRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -101,7 +101,7 @@ public sealed partial class QueryAnalyticsRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public QueryAnalyticsRequest( + public BetaAnalyticsQueryAnalyticsRequest( global::System.Collections.Generic.IList metrics, global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierDimensions? classifierDimensions, global::OpenRouter.AnalyticsQueryPostRequestBodyContentApplicationJsonSchemaClassifierFilters? classifierFilters, @@ -126,9 +126,9 @@ public QueryAnalyticsRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public QueryAnalyticsRequest() + public BetaAnalyticsQueryAnalyticsRequest() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateRerankRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsCreateEmbeddingsRequest.Json.g.cs similarity index 85% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.CreateRerankRequest.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsCreateEmbeddingsRequest.Json.g.cs index 21294712..0669a5b6 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateRerankRequest.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsCreateEmbeddingsRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class CreateRerankRequest + public sealed partial class EmbeddingsCreateEmbeddingsRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.CreateRerankRequest? FromJson( + public static global::OpenRouter.EmbeddingsCreateEmbeddingsRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.CreateRerankRequest), - jsonSerializerContext) as global::OpenRouter.CreateRerankRequest; + typeof(global::OpenRouter.EmbeddingsCreateEmbeddingsRequest), + jsonSerializerContext) as global::OpenRouter.EmbeddingsCreateEmbeddingsRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::OpenRouter.CreateRerankRequest? FromJson( + public static global::OpenRouter.EmbeddingsCreateEmbeddingsRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.CreateRerankRequest? FromJson( + public static global::OpenRouter.EmbeddingsCreateEmbeddingsRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.CreateRerankRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateRerankRequest; + typeof(global::OpenRouter.EmbeddingsCreateEmbeddingsRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.EmbeddingsCreateEmbeddingsRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateEmbeddingsRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsCreateEmbeddingsRequest.g.cs similarity index 92% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.CreateEmbeddingsRequest.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsCreateEmbeddingsRequest.g.cs index a19ac264..fa996ea1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateEmbeddingsRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.EmbeddingsCreateEmbeddingsRequest.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class CreateEmbeddingsRequest + public sealed partial class EmbeddingsCreateEmbeddingsRequest { /// /// The number of dimensions for the output embeddings @@ -61,7 +61,7 @@ public sealed partial class CreateEmbeddingsRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Text, token, or multimodal input(s) to embed @@ -87,7 +87,7 @@ public sealed partial class CreateEmbeddingsRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateEmbeddingsRequest( + public EmbeddingsCreateEmbeddingsRequest( global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput input, string model, int? dimensions, @@ -106,9 +106,9 @@ public CreateEmbeddingsRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateEmbeddingsRequest() + public EmbeddingsCreateEmbeddingsRequest() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExchangeAuthCodeForApiKeyRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ExchangeAuthCodeForApiKeyRequest.Json.g.cs deleted file mode 100644 index e8507e2f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExchangeAuthCodeForApiKeyRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ExchangeAuthCodeForApiKeyRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ExchangeAuthCodeForApiKeyRequest), - jsonSerializerContext) as global::OpenRouter.ExchangeAuthCodeForApiKeyRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::OpenRouter.ExchangeAuthCodeForApiKeyRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ExchangeAuthCodeForApiKeyRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateKeysRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.FilesUploadFileRequest.Json.g.cs similarity index 87% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateKeysRequest.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.FilesUploadFileRequest.Json.g.cs index 3a3d213b..03e446a7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateKeysRequest.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.FilesUploadFileRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class UpdateKeysRequest + public sealed partial class FilesUploadFileRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.UpdateKeysRequest? FromJson( + public static global::OpenRouter.FilesUploadFileRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.UpdateKeysRequest), - jsonSerializerContext) as global::OpenRouter.UpdateKeysRequest; + typeof(global::OpenRouter.FilesUploadFileRequest), + jsonSerializerContext) as global::OpenRouter.FilesUploadFileRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::OpenRouter.UpdateKeysRequest? FromJson( + public static global::OpenRouter.FilesUploadFileRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.UpdateKeysRequest? FromJson( + public static global::OpenRouter.FilesUploadFileRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.UpdateKeysRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateKeysRequest; + typeof(global::OpenRouter.FilesUploadFileRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.FilesUploadFileRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UploadFileRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.FilesUploadFileRequest.g.cs similarity index 82% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.UploadFileRequest.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.FilesUploadFileRequest.g.cs index da845d3b..2560c9dc 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UploadFileRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.FilesUploadFileRequest.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class UploadFileRequest + public sealed partial class FilesUploadFileRequest { /// /// @@ -29,14 +29,14 @@ public sealed partial class UploadFileRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public UploadFileRequest( + public FilesUploadFileRequest( byte[] file, string filename) { @@ -45,9 +45,9 @@ public UploadFileRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public UploadFileRequest() + public FilesUploadFileRequest() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UploadFileRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthCreateAuthKeysCodeRequest.Json.g.cs similarity index 86% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.UploadFileRequest.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthCreateAuthKeysCodeRequest.Json.g.cs index cbe8f051..a281c116 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.UploadFileRequest.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthCreateAuthKeysCodeRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class UploadFileRequest + public sealed partial class OAuthCreateAuthKeysCodeRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.UploadFileRequest? FromJson( + public static global::OpenRouter.OAuthCreateAuthKeysCodeRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.UploadFileRequest), - jsonSerializerContext) as global::OpenRouter.UploadFileRequest; + typeof(global::OpenRouter.OAuthCreateAuthKeysCodeRequest), + jsonSerializerContext) as global::OpenRouter.OAuthCreateAuthKeysCodeRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::OpenRouter.UploadFileRequest? FromJson( + public static global::OpenRouter.OAuthCreateAuthKeysCodeRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.UploadFileRequest? FromJson( + public static global::OpenRouter.OAuthCreateAuthKeysCodeRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.UploadFileRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UploadFileRequest; + typeof(global::OpenRouter.OAuthCreateAuthKeysCodeRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OAuthCreateAuthKeysCodeRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateAuthKeysCodeRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthCreateAuthKeysCodeRequest.g.cs similarity index 93% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.CreateAuthKeysCodeRequest.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthCreateAuthKeysCodeRequest.g.cs index 637edd4a..1a06161e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateAuthKeysCodeRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthCreateAuthKeysCodeRequest.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class CreateAuthKeysCodeRequest + public sealed partial class OAuthCreateAuthKeysCodeRequest { /// /// The callback URL to redirect to after authorization. Supports https URLs and localhost/127.0.0.1 URLs on any port for local CLI tools. @@ -66,7 +66,7 @@ public sealed partial class CreateAuthKeysCodeRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The callback URL to redirect to after authorization. Supports https URLs and localhost/127.0.0.1 URLs on any port for local CLI tools. @@ -95,7 +95,7 @@ public sealed partial class CreateAuthKeysCodeRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateAuthKeysCodeRequest( + public OAuthCreateAuthKeysCodeRequest( string callbackUrl, string? codeChallenge, global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? codeChallengeMethod, @@ -116,9 +116,9 @@ public CreateAuthKeysCodeRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateAuthKeysCodeRequest() + public OAuthCreateAuthKeysCodeRequest() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthExchangeAuthCodeForAPIKeyRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthExchangeAuthCodeForAPIKeyRequest.Json.g.cs new file mode 100644 index 00000000..45c5a1d8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthExchangeAuthCodeForAPIKeyRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class OAuthExchangeAuthCodeForAPIKeyRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest), + jsonSerializerContext) as global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest? FromJson( + string json) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::OpenRouter.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExchangeAuthCodeForApiKeyRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthExchangeAuthCodeForAPIKeyRequest.g.cs similarity index 86% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ExchangeAuthCodeForApiKeyRequest.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthExchangeAuthCodeForAPIKeyRequest.g.cs index f2e9e9c0..e57e6b08 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ExchangeAuthCodeForApiKeyRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.OAuthExchangeAuthCodeForAPIKeyRequest.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ExchangeAuthCodeForApiKeyRequest + public sealed partial class OAuthExchangeAuthCodeForAPIKeyRequest { /// /// The authorization code received from the OAuth redirect @@ -35,7 +35,7 @@ public sealed partial class ExchangeAuthCodeForApiKeyRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The authorization code received from the OAuth redirect @@ -49,7 +49,7 @@ public sealed partial class ExchangeAuthCodeForApiKeyRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ExchangeAuthCodeForApiKeyRequest( + public OAuthExchangeAuthCodeForAPIKeyRequest( string code, global::OpenRouter.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? codeChallengeMethod, string? codeVerifier) @@ -60,9 +60,9 @@ public ExchangeAuthCodeForApiKeyRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ExchangeAuthCodeForApiKeyRequest() + public OAuthExchangeAuthCodeForAPIKeyRequest() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.QueryAnalyticsRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.QueryAnalyticsRequest.Json.g.cs deleted file mode 100644 index afe95995..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.QueryAnalyticsRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class QueryAnalyticsRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.QueryAnalyticsRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.QueryAnalyticsRequest), - jsonSerializerContext) as global::OpenRouter.QueryAnalyticsRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::OpenRouter.QueryAnalyticsRequest? FromJson( - string json) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::OpenRouter.QueryAnalyticsRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::OpenRouter.QueryAnalyticsRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.QueryAnalyticsRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::OpenRouter.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateAuthKeysCodeRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankCreateRerankRequest.Json.g.cs similarity index 88% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.CreateAuthKeysCodeRequest.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.RerankCreateRerankRequest.Json.g.cs index 5f9f6a9e..412e4cb8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateAuthKeysCodeRequest.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankCreateRerankRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class CreateAuthKeysCodeRequest + public sealed partial class RerankCreateRerankRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.CreateAuthKeysCodeRequest? FromJson( + public static global::OpenRouter.RerankCreateRerankRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.CreateAuthKeysCodeRequest), - jsonSerializerContext) as global::OpenRouter.CreateAuthKeysCodeRequest; + typeof(global::OpenRouter.RerankCreateRerankRequest), + jsonSerializerContext) as global::OpenRouter.RerankCreateRerankRequest; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::OpenRouter.CreateAuthKeysCodeRequest? FromJson( + public static global::OpenRouter.RerankCreateRerankRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.CreateAuthKeysCodeRequest? FromJson( + public static global::OpenRouter.RerankCreateRerankRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.CreateAuthKeysCodeRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateAuthKeysCodeRequest; + typeof(global::OpenRouter.RerankCreateRerankRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.RerankCreateRerankRequest; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::OpenRouter.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateRerankRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankCreateRerankRequest.g.cs similarity index 91% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.CreateRerankRequest.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.RerankCreateRerankRequest.g.cs index a38b87b2..75323bdc 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateRerankRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.RerankCreateRerankRequest.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class CreateRerankRequest + public sealed partial class RerankCreateRerankRequest { /// /// The list of documents to rerank. Documents may be plain strings, or structured objects with `text` and/or `image` for multimodal models. @@ -48,7 +48,7 @@ public sealed partial class CreateRerankRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The list of documents to rerank. Documents may be plain strings, or structured objects with `text` and/or `image` for multimodal models. @@ -68,7 +68,7 @@ public sealed partial class CreateRerankRequest #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateRerankRequest( + public RerankCreateRerankRequest( global::System.Collections.Generic.IList documents, string model, string query, @@ -83,9 +83,9 @@ public CreateRerankRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateRerankRequest() + public RerankCreateRerankRequest() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.CreateAuthKeysCode.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.CreateAuthKeysCode.g.cs index b7b59b61..3f271c31 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.CreateAuthKeysCode.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.CreateAuthKeysCode.g.cs @@ -27,11 +27,11 @@ public partial class OAuthClient }; partial void PrepareCreateAuthKeysCodeArguments( global::System.Net.Http.HttpClient httpClient, - global::OpenRouter.CreateAuthKeysCodeRequest request); + global::OpenRouter.OAuthCreateAuthKeysCodeRequest request); partial void PrepareCreateAuthKeysCodeRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::OpenRouter.CreateAuthKeysCodeRequest request); + global::OpenRouter.OAuthCreateAuthKeysCodeRequest request); partial void ProcessCreateAuthKeysCodeResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -51,7 +51,7 @@ partial void ProcessCreateAuthKeysCodeResponseContent( /// public async global::System.Threading.Tasks.Task CreateAuthKeysCodeAsync( - global::OpenRouter.CreateAuthKeysCodeRequest request, + global::OpenRouter.OAuthCreateAuthKeysCodeRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -74,7 +74,7 @@ partial void ProcessCreateAuthKeysCodeResponseContent( /// public async global::System.Threading.Tasks.Task> CreateAuthKeysCodeAsResponseAsync( - global::OpenRouter.CreateAuthKeysCodeRequest request, + global::OpenRouter.OAuthCreateAuthKeysCodeRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -661,7 +661,7 @@ partial void ProcessCreateAuthKeysCodeResponseContent( global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::OpenRouter.CreateAuthKeysCodeRequest + var __request = new global::OpenRouter.OAuthCreateAuthKeysCodeRequest { CallbackUrl = callbackUrl, CodeChallenge = codeChallenge, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.ExchangeAuthCodeForApiKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.ExchangeAuthCodeForAPIKey.g.cs similarity index 95% rename from src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.ExchangeAuthCodeForApiKey.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.ExchangeAuthCodeForAPIKey.g.cs index 4f4f1ccb..c32d95b2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.ExchangeAuthCodeForApiKey.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.OAuthClient.ExchangeAuthCodeForAPIKey.g.cs @@ -7,7 +7,7 @@ public partial class OAuthClient { - private static readonly global::OpenRouter.EndPointSecurityRequirement s_ExchangeAuthCodeForApiKeySecurityRequirement0 = + private static readonly global::OpenRouter.EndPointSecurityRequirement s_ExchangeAuthCodeForAPIKeySecurityRequirement0 = new global::OpenRouter.EndPointSecurityRequirement { Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] @@ -21,22 +21,22 @@ public partial class OAuthClient }, }, }; - private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_ExchangeAuthCodeForApiKeySecurityRequirements = + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_ExchangeAuthCodeForAPIKeySecurityRequirements = new global::OpenRouter.EndPointSecurityRequirement[] - { s_ExchangeAuthCodeForApiKeySecurityRequirement0, + { s_ExchangeAuthCodeForAPIKeySecurityRequirement0, }; - partial void PrepareExchangeAuthCodeForApiKeyArguments( + partial void PrepareExchangeAuthCodeForAPIKeyArguments( global::System.Net.Http.HttpClient httpClient, - global::OpenRouter.ExchangeAuthCodeForApiKeyRequest request); - partial void PrepareExchangeAuthCodeForApiKeyRequest( + global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest request); + partial void PrepareExchangeAuthCodeForAPIKeyRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::OpenRouter.ExchangeAuthCodeForApiKeyRequest request); - partial void ProcessExchangeAuthCodeForApiKeyResponse( + global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest request); + partial void ProcessExchangeAuthCodeForAPIKeyResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessExchangeAuthCodeForApiKeyResponseContent( + partial void ProcessExchangeAuthCodeForAPIKeyResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -49,13 +49,13 @@ partial void ProcessExchangeAuthCodeForApiKeyResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ExchangeAuthCodeForApiKeyAsync( + public async global::System.Threading.Tasks.Task ExchangeAuthCodeForAPIKeyAsync( - global::OpenRouter.ExchangeAuthCodeForApiKeyRequest request, + global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await ExchangeAuthCodeForApiKeyAsResponseAsync( + var __response = await ExchangeAuthCodeForAPIKeyAsResponseAsync( request: request, requestOptions: requestOptions, @@ -72,9 +72,9 @@ partial void ProcessExchangeAuthCodeForApiKeyResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ExchangeAuthCodeForApiKeyAsResponseAsync( + public async global::System.Threading.Tasks.Task> ExchangeAuthCodeForAPIKeyAsResponseAsync( - global::OpenRouter.ExchangeAuthCodeForApiKeyRequest request, + global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -82,15 +82,15 @@ partial void ProcessExchangeAuthCodeForApiKeyResponseContent( PrepareArguments( client: HttpClient); - PrepareExchangeAuthCodeForApiKeyArguments( + PrepareExchangeAuthCodeForAPIKeyArguments( httpClient: HttpClient, request: request); var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ExchangeAuthCodeForApiKeySecurityRequirements, - operationName: "ExchangeAuthCodeForApiKeyAsync"); + securityRequirements: s_ExchangeAuthCodeForAPIKeySecurityRequirements, + operationName: "ExchangeAuthCodeForAPIKeyAsync"); using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -155,7 +155,7 @@ partial void ProcessExchangeAuthCodeForApiKeyResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareExchangeAuthCodeForApiKeyRequest( + PrepareExchangeAuthCodeForAPIKeyRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -175,8 +175,8 @@ partial void ProcessExchangeAuthCodeForApiKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ExchangeAuthCodeForApiKey", - methodName: "ExchangeAuthCodeForApiKeyAsync", + operationId: "ExchangeAuthCodeForAPIKey", + methodName: "ExchangeAuthCodeForAPIKeyAsync", pathTemplate: "\"/auth/keys\"", httpMethod: "POST", baseUri: BaseUri, @@ -209,8 +209,8 @@ partial void ProcessExchangeAuthCodeForApiKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ExchangeAuthCodeForApiKey", - methodName: "ExchangeAuthCodeForApiKeyAsync", + operationId: "ExchangeAuthCodeForAPIKey", + methodName: "ExchangeAuthCodeForAPIKeyAsync", pathTemplate: "\"/auth/keys\"", httpMethod: "POST", baseUri: BaseUri, @@ -250,8 +250,8 @@ partial void ProcessExchangeAuthCodeForApiKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ExchangeAuthCodeForApiKey", - methodName: "ExchangeAuthCodeForApiKeyAsync", + operationId: "ExchangeAuthCodeForAPIKey", + methodName: "ExchangeAuthCodeForAPIKeyAsync", pathTemplate: "\"/auth/keys\"", httpMethod: "POST", baseUri: BaseUri, @@ -290,7 +290,7 @@ partial void ProcessExchangeAuthCodeForApiKeyResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessExchangeAuthCodeForApiKeyResponse( + ProcessExchangeAuthCodeForAPIKeyResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -298,8 +298,8 @@ partial void ProcessExchangeAuthCodeForApiKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ExchangeAuthCodeForApiKey", - methodName: "ExchangeAuthCodeForApiKeyAsync", + operationId: "ExchangeAuthCodeForAPIKey", + methodName: "ExchangeAuthCodeForAPIKeyAsync", pathTemplate: "\"/auth/keys\"", httpMethod: "POST", baseUri: BaseUri, @@ -320,8 +320,8 @@ partial void ProcessExchangeAuthCodeForApiKeyResponseContent( await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ExchangeAuthCodeForApiKey", - methodName: "ExchangeAuthCodeForApiKeyAsync", + operationId: "ExchangeAuthCodeForAPIKey", + methodName: "ExchangeAuthCodeForAPIKeyAsync", pathTemplate: "\"/auth/keys\"", httpMethod: "POST", baseUri: BaseUri, @@ -461,7 +461,7 @@ partial void ProcessExchangeAuthCodeForApiKeyResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessExchangeAuthCodeForApiKeyResponseContent( + ProcessExchangeAuthCodeForAPIKeyResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -560,21 +560,21 @@ partial void ProcessExchangeAuthCodeForApiKeyResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ExchangeAuthCodeForApiKeyAsync( + public async global::System.Threading.Tasks.Task ExchangeAuthCodeForAPIKeyAsync( string code, global::OpenRouter.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? codeChallengeMethod = default, string? codeVerifier = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::OpenRouter.ExchangeAuthCodeForApiKeyRequest + var __request = new global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyRequest { Code = code, CodeChallengeMethod = codeChallengeMethod, CodeVerifier = codeVerifier, }; - return await ExchangeAuthCodeForApiKeyAsync( + return await ExchangeAuthCodeForAPIKeyAsync( request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.RerankClient.CreateRerank.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.RerankClient.CreateRerank.g.cs index 4d97a8e8..9a91ec65 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.RerankClient.CreateRerank.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.RerankClient.CreateRerank.g.cs @@ -27,11 +27,11 @@ public partial class RerankClient }; partial void PrepareCreateRerankArguments( global::System.Net.Http.HttpClient httpClient, - global::OpenRouter.CreateRerankRequest request); + global::OpenRouter.RerankCreateRerankRequest request); partial void PrepareCreateRerankRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::OpenRouter.CreateRerankRequest request); + global::OpenRouter.RerankCreateRerankRequest request); partial void ProcessCreateRerankResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -51,7 +51,7 @@ partial void ProcessCreateRerankResponseContent( /// public async global::System.Threading.Tasks.Task CreateRerankAsync( - global::OpenRouter.CreateRerankRequest request, + global::OpenRouter.RerankCreateRerankRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -74,7 +74,7 @@ partial void ProcessCreateRerankResponseContent( /// public async global::System.Threading.Tasks.Task> CreateRerankAsResponseAsync( - global::OpenRouter.CreateRerankRequest request, + global::OpenRouter.RerankCreateRerankRequest request, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -760,7 +760,7 @@ partial void ProcessCreateRerankResponseContent( global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::OpenRouter.CreateRerankRequest + var __request = new global::OpenRouter.RerankCreateRerankRequest { Documents = documents, Model = model, diff --git a/src/libs/OpenRouter/openapi.yaml b/src/libs/OpenRouter/openapi.yaml index c9aee1f4..a94469a6 100644 --- a/src/libs/OpenRouter/openapi.yaml +++ b/src/libs/OpenRouter/openapi.yaml @@ -7,7 +7,7 @@ "paths": { "/responses": { "post": { - "operationId": "create-responses", + "operationId": "betaResponses_createResponses", "summary": "Create a response", "description": "Creates a streaming or non-streaming response using OpenResponses API format", "tags": [ @@ -169,7 +169,7 @@ }, "/auth/keys": { "post": { - "operationId": "exchange-auth-code-for-api-key", + "operationId": "oAuth_exchangeAuthCodeForAPIKey", "summary": "Exchange authorization code for API key", "description": "Exchange an authorization code from the PKCE flow for a user-controlled API key", "tags": [ @@ -248,7 +248,7 @@ }, "/auth/keys/code": { "post": { - "operationId": "create-auth-keys-code", + "operationId": "oAuth_createAuthKeysCode", "summary": "Create authorization code", "description": "Create an authorization code for the PKCE flow to generate a user-controlled API key", "tags": [ @@ -375,7 +375,7 @@ }, "/images": { "post": { - "operationId": "create-images", + "operationId": "images_createImages", "summary": "Generate an image", "description": "Generates an image from a text prompt via the image generation router", "tags": [ @@ -497,7 +497,7 @@ }, "/images/models": { "get": { - "operationId": "list-image-models", + "operationId": "images_listImageModels", "summary": "List image generation models", "description": "Lists every image generation model with its top-level supported-parameter superset and a URL to its full per-endpoint records.", "tags": [ @@ -530,7 +530,7 @@ }, "/images/models/{author}/{slug}/endpoints": { "get": { - "operationId": "list-image-model-endpoints", + "operationId": "images_listImageModelEndpoints", "summary": "List endpoints for an image model", "description": "Returns the full per-endpoint records for an image model: each endpoint's definitive supported parameters, pricing, and passthrough allowlist.", "tags": [ @@ -592,7 +592,7 @@ }, "/audio/speech": { "post": { - "operationId": "create-audio-speech", + "operationId": "tts_createAudioSpeech", "summary": "Create speech", "description": "Synthesizes audio from the input text. Returns a raw audio bytestream in the requested format (e.g. mp3, pcm, wav).", "tags": [ @@ -705,7 +705,7 @@ }, "/audio/transcriptions": { "post": { - "operationId": "create-audio-transcriptions", + "operationId": "stt_createAudioTranscriptions", "summary": "Create transcription", "description": "Transcribes audio into text. Accepts base64-encoded audio input as JSON or an OpenAI-style multipart/form-data file upload, and returns the transcribed text.", "tags": [ @@ -817,7 +817,7 @@ }, "/activity": { "get": { - "operationId": "get-user-activity", + "operationId": "analytics_getUserActivity", "summary": "Get user activity grouped by endpoint", "description": "Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -918,7 +918,7 @@ }, "/analytics/meta": { "get": { - "operationId": "get-analytics-meta", + "operationId": "betaAnalytics_getAnalyticsMeta", "summary": "Get available analytics metrics and dimensions", "description": "Returns the available metrics, dimensions, filter operators, and granularities for the analytics query endpoint. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -971,7 +971,7 @@ }, "/analytics/query": { "post": { - "operationId": "query-analytics", + "operationId": "betaAnalytics_queryAnalytics", "summary": "Query analytics data", "description": "Execute an analytics query with specified metrics, dimensions, filters, and time range. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -1102,7 +1102,7 @@ }, "/benchmarks": { "get": { - "operationId": "get-benchmarks", + "operationId": "benchmarks_getBenchmarks", "summary": "List Benchmarks", "description": "Unified benchmark endpoint that aggregates scores from multiple benchmark sources (Artificial Analysis, Design Arena). Filter by source to reproduce the exact shapes from the legacy per-source endpoints, or use task_type to find models suited for specific workloads. Authenticate with any valid OpenRouter API key. Rate-limited to 30 requests/minute per key and 500 requests/day per account.", "tags": [ @@ -1212,7 +1212,7 @@ }, "/byok": { "get": { - "operationId": "list-byok-keys", + "operationId": "byok_listBYOKKeys", "summary": "List BYOK provider credentials", "description": "List the bring-your-own-key (BYOK) provider credentials for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace, or the `provider` query parameter to filter by upstream provider. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -1299,7 +1299,7 @@ } }, "post": { - "operationId": "create-byok-key", + "operationId": "byok_createBYOKKey", "summary": "Create a BYOK provider credential", "description": "Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. Treat the raw key as write-only; it is never returned after creation. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -1371,7 +1371,7 @@ }, "/byok/{id}": { "get": { - "operationId": "get-byok-key", + "operationId": "byok_getBYOKKey", "summary": "Get a BYOK provider credential", "description": "Get a single bring-your-own-key (BYOK) provider credential by its `id`. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -1433,7 +1433,7 @@ } }, "delete": { - "operationId": "delete-byok-key", + "operationId": "byok_deleteBYOKKey", "summary": "Delete a BYOK provider credential", "description": "Delete (soft-delete) a bring-your-own-key (BYOK) provider credential by its `id`. The encrypted key material is wiped and the record is marked as deleted. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -1495,7 +1495,7 @@ } }, "patch": { - "operationId": "update-byok-key", + "operationId": "byok_updateBYOKKey", "summary": "Update a BYOK provider credential", "description": "Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -1578,7 +1578,7 @@ }, "/chat/completions": { "post": { - "operationId": "send-chat-completion-request", + "operationId": "chat_sendChatCompletionRequest", "summary": "Create a chat completion", "description": "Sends a request for a model response for the given chat conversation. Supports both streaming and non-streaming modes.", "tags": [ @@ -1740,7 +1740,7 @@ }, "/classifications/task": { "get": { - "operationId": "get-task-classifications", + "operationId": "classifications_getTaskClassifications", "summary": "Task classification market share", "description": "Returns the market-share breakdown of OpenRouter traffic by task classification\n(e.g. code generation, web search, summarization) over a trailing time window.\n\nEach classification reports its share of classified sampled requests (`usage_share`)\nand classified sampled token volume (`token_share`) as fractions between 0 and 1.\nThe unclassified `other` bucket is excluded. Absolute volumes are not exposed\nbecause the underlying data is sampled.\n\nEach classification also includes a `models` array listing the top models by\nrequest volume within that classification, with their within-tag usage and token shares.\n\nClassifications are grouped into macro-categories (Code, Data, Agent, General)\nwith aggregate shares provided for each.\n\nAuthenticate with any valid OpenRouter API key (same key used for inference).\nRate-limited to 30 requests/minute per key and 500 requests/day per account.\n\nWhen republishing or quoting this data, cite as:\n\"Source: OpenRouter (openrouter.ai/rankings), as of {as_of}.\"", "tags": [ @@ -1813,7 +1813,7 @@ }, "/credits": { "get": { - "operationId": "get-credits", + "operationId": "credits_getCredits", "summary": "Get remaining credits", "description": "Get total credits purchased and used for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -1866,7 +1866,7 @@ }, "/datasets/app-rankings": { "get": { - "operationId": "get-app-rankings", + "operationId": "datasets_getAppRankings", "summary": "Top apps by token usage", "description": "Returns the top public apps on OpenRouter ranked by token usage inside the requested\ndate window, matching the public apps marketplace on openrouter.ai/apps. Token totals\nare `prompt_tokens + completion_tokens`; hidden and private apps are excluded and\ntraffic from related app aliases is merged into the canonical visible app.\n\n`sort=popular` (default) ranks by total token volume inside the window.\n`sort=trending` ranks by absolute excess token growth: window volume minus the average\nvolume of the three equal-length periods immediately preceding the window. Apps with\nno excess growth are omitted, so `trending` may return fewer than `limit` rows.\n\nFilter with `category` (marketplace category group, e.g. `coding`) or `subcategory`\n(e.g. `cli-agent`). Ranks are re-numbered 1..N after filtering. Page with `offset` —\n`rank` stays absolute, so the first row of `offset=50` is `rank: 51`.\n\nAuthenticate with any valid OpenRouter API key (same key used for inference).\nRate-limited to 30 requests/minute per key and 500 requests/day per account.\n\nWhen republishing or quoting this dataset, OpenRouter must be cited as:\n\"Source: OpenRouter (openrouter.ai/apps), as of {as_of}.\"\n\nToken counts come from each upstream provider's own tokenizer, so a token attributed\nto one app is not directly comparable to a token attributed to another app whose\ntraffic flows through a different provider.", "tags": [ @@ -2004,7 +2004,7 @@ }, "/datasets/rankings-daily": { "get": { - "operationId": "get-rankings-daily", + "operationId": "datasets_getRankingsDaily", "summary": "Daily token totals for top 50 models", "description": "Returns the top 50 public models per day by total token usage on OpenRouter, plus a\nsingle aggregated `other` row per day that sums every model outside that top 50.\nToken totals are `prompt_tokens + completion_tokens`, matching the public rankings\nchart on openrouter.ai/rankings.\n\nEach row is a distinct `(date, model_permaslug)` pair. The `other` row uses the\nreserved permaslug `other` and is always returned last within its date, so callers\ncan compute `top-50 traffic / total daily traffic` without a second request.\n\nOptional filters slice the dataset. `period` (`day`/`week`/`month`) sets the time\ngrain. `modality` and `context_bucket` narrow the exact dataset by output/input\nmodality (or tool-calling activity) and request context length. `category` and\n`language_type` instead read a sampled, upsampled dataset whose `total_tokens` are\nweekly-grain estimates — they cannot be combined with each other or with the exact\nfilters, and reject `period=day` with a 400.\n\nAuthenticate with any valid OpenRouter API key (same key used for inference).\nRate-limited to 30 requests/minute per key and 500 requests/day per account.\n\nWhen republishing or quoting this dataset, OpenRouter must be cited as:\n\"Source: OpenRouter (openrouter.ai/rankings), as of {as_of}.\"\n\nToken counts come from each upstream provider's own tokenizer (Anthropic counts\nare as reported by Anthropic, OpenAI counts are as reported by OpenAI, etc.), so\na token in one row is not directly comparable to a token in another row from a\ndifferent provider.", "tags": [ @@ -2133,7 +2133,7 @@ }, "/embeddings": { "post": { - "operationId": "create-embeddings", + "operationId": "embeddings_createEmbeddings", "summary": "Submit an embedding request", "description": "Submits an embedding request to the embeddings router", "tags": [ @@ -2280,7 +2280,7 @@ }, "/embeddings/models": { "get": { - "operationId": "list-embeddings-models", + "operationId": "embeddings_listEmbeddingsModels", "summary": "List all embeddings models", "description": "Returns a list of all available embeddings models and their properties", "tags": [ @@ -2350,7 +2350,7 @@ }, "/endpoints/zdr": { "get": { - "operationId": "list-endpoints-zdr", + "operationId": "endpoints_listEndpointsZdr", "summary": "Preview the impact of ZDR on the available endpoints", "tags": [ "endpoints" @@ -2382,7 +2382,7 @@ }, "/models/{author}/{slug}/endpoints": { "get": { - "operationId": "list-endpoints", + "operationId": "endpoints_listEndpoints", "summary": "List all endpoints for a model", "tags": [ "endpoints" @@ -2443,7 +2443,7 @@ }, "/files": { "get": { - "operationId": "list-files", + "operationId": "files_listFiles", "summary": "List files", "description": "Lists files belonging to the workspace of the authenticating API key.", "tags": [ @@ -2535,7 +2535,7 @@ } }, "post": { - "operationId": "upload-file", + "operationId": "files_uploadFile", "summary": "Upload a file", "description": "Uploads a file to be referenced in future API calls. The file is stored under the workspace of the authenticating API key. Maximum file size: 100 MB.", "tags": [ @@ -2647,7 +2647,7 @@ }, "/files/{file_id}": { "get": { - "operationId": "get-file-metadata", + "operationId": "files_getFileMetadata", "summary": "Get file metadata", "description": "Retrieves metadata for a single file owned by the requesting workspace.", "tags": [ @@ -2727,7 +2727,7 @@ } }, "delete": { - "operationId": "delete-file", + "operationId": "files_deleteFile", "summary": "Delete a file", "description": "Deletes a file owned by the requesting workspace. Deletion is irreversible.", "tags": [ @@ -2809,7 +2809,7 @@ }, "/files/{file_id}/content": { "get": { - "operationId": "download-file-content", + "operationId": "files_downloadFileContent", "summary": "Download file content", "description": "Downloads the raw bytes of a file. Only files created server-side are downloadable; uploaded files return 400.", "tags": [ @@ -2902,7 +2902,7 @@ }, "/generation": { "get": { - "operationId": "get-generation", + "operationId": "generations_getGeneration", "summary": "Get request & usage metadata for a generation", "tags": [ "generations" @@ -2995,7 +2995,7 @@ }, "/generation/content": { "get": { - "operationId": "list-generation-content", + "operationId": "generations_listGenerationContent", "summary": "Get stored prompt and completion content for a generation", "tags": [ "generations" @@ -3088,7 +3088,7 @@ }, "/generation/feedback": { "post": { - "operationId": "submit-generation-feedback", + "operationId": "generations_submitGenerationFeedback", "summary": "Submit feedback for a generation", "description": "Submit structured feedback on a generation the authenticated user made. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -3170,7 +3170,7 @@ }, "/guardrails": { "get": { - "operationId": "list-guardrails", + "operationId": "guardrails_listGuardrails", "summary": "List guardrails", "description": "List all guardrails for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -3248,7 +3248,7 @@ } }, "post": { - "operationId": "create-guardrail", + "operationId": "guardrails_createGuardrail", "summary": "Create a guardrail", "description": "Create a new guardrail for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -3320,7 +3320,7 @@ }, "/guardrails/{id}": { "get": { - "operationId": "get-guardrail", + "operationId": "guardrails_getGuardrail", "summary": "Get a guardrail", "description": "Get a single guardrail by ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -3382,7 +3382,7 @@ } }, "delete": { - "operationId": "delete-guardrail", + "operationId": "guardrails_deleteGuardrail", "summary": "Delete a guardrail", "description": "Delete an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -3444,7 +3444,7 @@ } }, "patch": { - "operationId": "update-guardrail", + "operationId": "guardrails_updateGuardrail", "summary": "Update a guardrail", "description": "Update an existing guardrail. Collection fields use replace semantics: send the full desired set on every update. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -3527,7 +3527,7 @@ }, "/guardrails/{id}/assignments/keys": { "get": { - "operationId": "list-guardrail-key-assignments", + "operationId": "guardrails_listGuardrailKeyAssignments", "summary": "List key assignments for a guardrail", "description": "List all API key assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -3615,7 +3615,7 @@ } }, "post": { - "operationId": "bulk-assign-keys-to-guardrail", + "operationId": "guardrails_bulkAssignKeysToGuardrail", "summary": "Bulk assign keys to a guardrail", "description": "Assign multiple API keys to a specific guardrail. A key may hold at most one guardrail; assigning replaces any existing assignment. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -3698,7 +3698,7 @@ }, "/guardrails/{id}/assignments/keys/remove": { "post": { - "operationId": "bulk-unassign-keys-from-guardrail", + "operationId": "guardrails_bulkUnassignKeysFromGuardrail", "summary": "Bulk unassign keys from a guardrail", "description": "Unassign multiple API keys from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -3781,7 +3781,7 @@ }, "/guardrails/{id}/assignments/members": { "get": { - "operationId": "list-guardrail-member-assignments", + "operationId": "guardrails_listGuardrailMemberAssignments", "summary": "List member assignments for a guardrail", "description": "List all organization member assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -3869,7 +3869,7 @@ } }, "post": { - "operationId": "bulk-assign-members-to-guardrail", + "operationId": "guardrails_bulkAssignMembersToGuardrail", "summary": "Bulk assign members to a guardrail", "description": "Assign multiple organization members to a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -3952,7 +3952,7 @@ }, "/guardrails/{id}/assignments/members/remove": { "post": { - "operationId": "bulk-unassign-members-from-guardrail", + "operationId": "guardrails_bulkUnassignMembersFromGuardrail", "summary": "Bulk unassign members from a guardrail", "description": "Unassign multiple organization members from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -4035,7 +4035,7 @@ }, "/guardrails/assignments/keys": { "get": { - "operationId": "list-key-assignments", + "operationId": "guardrails_listKeyAssignments", "summary": "List all key assignments", "description": "List all API key guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -4105,7 +4105,7 @@ }, "/guardrails/assignments/members": { "get": { - "operationId": "list-member-assignments", + "operationId": "guardrails_listMemberAssignments", "summary": "List all member assignments", "description": "List all organization member guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -4175,7 +4175,7 @@ }, "/key": { "get": { - "operationId": "get-current-key", + "operationId": "apiKeys_getCurrentKey", "summary": "Get current API key", "description": "Get information on the API key associated with the current authentication session", "tags": [ @@ -4218,7 +4218,7 @@ }, "/keys": { "get": { - "operationId": "list", + "operationId": "apiKeys_list", "summary": "List API keys", "description": "List all API keys for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -4302,7 +4302,7 @@ } }, "post": { - "operationId": "create-keys", + "operationId": "apiKeys_createKeys", "summary": "Create a new API key", "description": "Create a new API key for the authenticated user. The plaintext `key` is returned only in this response. Treat it as a write-only, sensitive value; it cannot be retrieved later. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -4431,7 +4431,7 @@ }, "/keys/{hash}": { "get": { - "operationId": "get-key", + "operationId": "apiKeys_getKey", "summary": "Get a single API key", "description": "Get a single API key by hash. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -4502,7 +4502,7 @@ } }, "delete": { - "operationId": "delete-keys", + "operationId": "apiKeys_deleteKeys", "summary": "Delete an API key", "description": "Delete an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -4573,7 +4573,7 @@ } }, "patch": { - "operationId": "update-keys", + "operationId": "apiKeys_updateKeys", "summary": "Update an API key", "description": "Update an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -4691,7 +4691,7 @@ }, "/messages": { "post": { - "operationId": "create-messages", + "operationId": "anthropicMessages_createMessages", "summary": "Create a message", "description": "Creates a message using the Anthropic Messages API format. Supports text, images, PDFs, tools, and extended thinking.", "tags": [ @@ -4803,7 +4803,7 @@ }, "/model/{author}/{slug}": { "get": { - "operationId": "get-model", + "operationId": "models_getModel", "summary": "Get a model by its slug", "description": "Returns full details for a single model identified by its author and slug (e.g. openai/gpt-4). Supports variant suffixes (e.g. openai/gpt-4:free) and resolves known slug aliases.", "tags": [ @@ -4865,7 +4865,7 @@ }, "/models": { "get": { - "operationId": "get-models", + "operationId": "models_getModels", "summary": "List all models and their properties", "tags": [ "models" @@ -5266,7 +5266,7 @@ }, "/models/count": { "get": { - "operationId": "list-models-count", + "operationId": "models_listModelsCount", "summary": "Get total count of available models", "tags": [ "models" @@ -5318,7 +5318,7 @@ }, "/models/user": { "get": { - "operationId": "list-models-user", + "operationId": "models_listModelsUser", "summary": "List models filtered by user provider preferences, privacy settings, and guardrails", "description": "List models filtered by user provider preferences, [privacy settings](https://openrouter.ai/docs/guides/privacy/provider-logging), and [guardrails](https://openrouter.ai/docs/guides/features/guardrails). If requesting through `eu.openrouter.ai/api/v1/...` the results will be filtered to models that satisfy [EU in-region routing](https://openrouter.ai/docs/guides/privacy/provider-logging#enterprise-eu-in-region-routing).", "tags": [ @@ -5398,7 +5398,7 @@ }, "/observability/destinations": { "get": { - "operationId": "list-observability-destinations", + "operationId": "observability_listObservabilityDestinations", "summary": "List observability destinations", "description": "List the observability destinations configured for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace. Only destinations with stable release status are surfaced — destinations of other types are excluded. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -5476,7 +5476,7 @@ } }, "post": { - "operationId": "create-observability-destination", + "operationId": "observability_createObservabilityDestination", "summary": "Create an observability destination", "description": "Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -5558,7 +5558,7 @@ }, "/observability/destinations/{id}": { "get": { - "operationId": "get-observability-destination", + "operationId": "observability_getObservabilityDestination", "summary": "Get an observability destination", "description": "Fetch a single observability destination by its UUID. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -5620,7 +5620,7 @@ } }, "delete": { - "operationId": "delete-observability-destination", + "operationId": "observability_deleteObservabilityDestination", "summary": "Delete an observability destination", "description": "Delete an existing observability destination. This performs a soft delete. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -5682,7 +5682,7 @@ } }, "patch": { - "operationId": "update-observability-destination", + "operationId": "observability_updateObservabilityDestination", "summary": "Update an observability destination", "description": "Update an existing observability destination. Only the fields provided in the request body are updated. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -5775,7 +5775,7 @@ }, "/organization/members": { "get": { - "operationId": "list-organization-members", + "operationId": "organization_listOrganizationMembers", "summary": "List organization members", "description": "List all members of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -5855,7 +5855,7 @@ }, "/presets": { "get": { - "operationId": "list-presets", + "operationId": "presets_listPresets", "summary": "List presets", "description": "Lists all presets for the authenticated user, ordered by most recently updated first.", "tags": [ @@ -5935,7 +5935,7 @@ }, "/presets/{slug}": { "get": { - "operationId": "get-preset", + "operationId": "presets_getPreset", "summary": "Get a preset", "description": "Retrieves a preset by its slug with its currently designated version inline.", "tags": [ @@ -6009,7 +6009,7 @@ }, "/presets/{slug}/chat/completions": { "post": { - "operationId": "create-presets-chat-completions", + "operationId": "presets_createPresetsChatCompletions", "summary": "Create a preset from a chat-completions request body", "description": "Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.", "tags": [ @@ -6112,7 +6112,7 @@ }, "/presets/{slug}/messages": { "post": { - "operationId": "create-presets-messages", + "operationId": "presets_createPresetsMessages", "summary": "Create a preset from a messages request body", "description": "Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.", "tags": [ @@ -6215,7 +6215,7 @@ }, "/presets/{slug}/responses": { "post": { - "operationId": "create-presets-responses", + "operationId": "presets_createPresetsResponses", "summary": "Create a preset from a responses request body", "description": "Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.", "tags": [ @@ -6318,7 +6318,7 @@ }, "/presets/{slug}/versions": { "get": { - "operationId": "list-preset-versions", + "operationId": "presets_listPresetVersions", "summary": "List versions of a preset", "description": "Lists all versions of a preset, ordered by version number ascending (oldest first).", "tags": [ @@ -6418,7 +6418,7 @@ }, "/presets/{slug}/versions/{version}": { "get": { - "operationId": "get-preset-version", + "operationId": "presets_getPresetVersion", "summary": "Get a specific version of a preset", "description": "Retrieves a specific version of a preset by its slug and version number.", "tags": [ @@ -6502,7 +6502,7 @@ }, "/providers": { "get": { - "operationId": "list-providers", + "operationId": "providers_listProviders", "summary": "List all providers", "tags": [ "providers" @@ -6534,7 +6534,7 @@ }, "/rerank": { "post": { - "operationId": "create-rerank", + "operationId": "rerank_createRerank", "summary": "Submit a rerank request", "description": "Submits a rerank request to the rerank router", "tags": [ @@ -6677,7 +6677,7 @@ }, "/videos": { "post": { - "operationId": "create-videos", + "operationId": "videoGeneration_createVideos", "summary": "Submit a video generation request", "description": "Submits a video generation request and returns a polling URL to check status", "tags": [ @@ -6769,7 +6769,7 @@ }, "/videos/{jobId}": { "get": { - "operationId": "get-videos", + "operationId": "videoGeneration_getVideos", "summary": "Poll video generation status", "description": "Returns job status and content URLs when completed", "tags": [ @@ -6832,7 +6832,7 @@ }, "/videos/{jobId}/content": { "get": { - "operationId": "list-videos-content", + "operationId": "videoGeneration_listVideosContent", "summary": "Download generated video content", "description": "Streams the generated video content from the upstream provider", "tags": [ @@ -6929,7 +6929,7 @@ }, "/videos/models": { "get": { - "operationId": "list-videos-models", + "operationId": "videoGeneration_listVideosModels", "summary": "List all video generation models", "description": "Returns a list of all available video generation models and their properties", "tags": [ @@ -6972,7 +6972,7 @@ }, "/workspaces": { "get": { - "operationId": "list-workspaces", + "operationId": "workspaces_listWorkspaces", "summary": "List workspaces", "description": "List all workspaces for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -7040,7 +7040,7 @@ } }, "post": { - "operationId": "create-workspace", + "operationId": "workspaces_createWorkspace", "summary": "Create a workspace", "description": "Create a new workspace for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -7112,7 +7112,7 @@ }, "/workspaces/{id}": { "get": { - "operationId": "get-workspace", + "operationId": "workspaces_getWorkspace", "summary": "Get a workspace", "description": "Get a single workspace by ID or slug. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -7174,7 +7174,7 @@ } }, "delete": { - "operationId": "delete-workspace", + "operationId": "workspaces_deleteWorkspace", "summary": "Delete a workspace", "description": "Delete an existing workspace. The default workspace cannot be deleted. Workspaces with active API keys cannot be deleted; remove the keys first. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -7256,7 +7256,7 @@ } }, "patch": { - "operationId": "update-workspace", + "operationId": "workspaces_updateWorkspace", "summary": "Update a workspace", "description": "Update an existing workspace by ID or slug. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -7349,7 +7349,7 @@ }, "/workspaces/{id}/budgets": { "get": { - "operationId": "list-workspace-budgets", + "operationId": "workspaces_listWorkspaceBudgets", "summary": "List workspace budgets", "description": "List all budgets configured for a workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -7413,7 +7413,7 @@ }, "/workspaces/{id}/budgets/{interval}": { "put": { - "operationId": "upsert-workspace-budget", + "operationId": "workspaces_upsertWorkspaceBudget", "summary": "Create or update a workspace budget", "description": "Create or update the budget for a given interval. Budget limits must strictly decrease as the interval narrows (lifetime > monthly > weekly > daily). [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -7503,7 +7503,7 @@ } }, "delete": { - "operationId": "delete-workspace-budget", + "operationId": "workspaces_deleteWorkspaceBudget", "summary": "Delete a workspace budget", "description": "Remove the budget for a given interval. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -7576,7 +7576,7 @@ }, "/workspaces/{id}/members": { "get": { - "operationId": "list-workspace-members", + "operationId": "workspaces_listWorkspaceMembers", "summary": "List workspace members", "description": "List all members of a workspace. Returns paginated results. For the default workspace, returns all organization members (implicit membership). [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -7676,7 +7676,7 @@ }, "/workspaces/{id}/members/add": { "post": { - "operationId": "bulk-add-workspace-members", + "operationId": "workspaces_bulkAddWorkspaceMembers", "summary": "Bulk add members to a workspace", "description": "Add multiple organization members to a workspace. Members are assigned the same role they hold in the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ @@ -7769,7 +7769,7 @@ }, "/workspaces/{id}/members/remove": { "post": { - "operationId": "bulk-remove-workspace-members", + "operationId": "workspaces_bulkRemoveWorkspaceMembers", "summary": "Bulk remove members from a workspace", "description": "Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. SCIM-managed members cannot be removed; changes must be made in your identity provider. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [