diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.List.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.List.g.cs index fe8a0d34..5ffbab30 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.List.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.List.g.cs @@ -27,18 +27,16 @@ public partial class ApiKeysClient }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, - ref int? offset, - ref int? limit, ref bool? includeDisabled, ref bool? includeExpired, + ref int? offset, ref global::System.Guid? workspaceId); partial void PrepareListRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int? offset, - int? limit, bool? includeDisabled, bool? includeExpired, + int? offset, global::System.Guid? workspaceId); partial void ProcessListResponse( global::System.Net.Http.HttpClient httpClient, @@ -53,16 +51,6 @@ partial void ProcessListResponseContent( /// List API keys
/// List all API keys for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// Number of records to skip for pagination
- /// Default Value: 0
- /// Example: 0 - /// - /// - /// Maximum number of records to return (max 100)
- /// Default Value: 100
- /// Example: 100 - /// /// /// Whether to include disabled API keys in the response
/// Example: false @@ -71,6 +59,10 @@ partial void ProcessListResponseContent( /// Whether to include expired API keys in the response. Expired keys are excluded by default and returned only when this is true.
/// Example: false /// + /// + /// Number of API keys to skip for pagination
+ /// Example: 0 + /// /// /// Filter API keys by workspace ID. By default, keys in the default workspace are returned.
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11 @@ -79,19 +71,17 @@ partial void ProcessListResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ListAsync( - int? offset = default, - int? limit = default, bool? includeDisabled = default, bool? includeExpired = default, + int? offset = default, global::System.Guid? workspaceId = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __response = await ListAsResponseAsync( - offset: offset, - limit: limit, includeDisabled: includeDisabled, includeExpired: includeExpired, + offset: offset, workspaceId: workspaceId, requestOptions: requestOptions, cancellationToken: cancellationToken @@ -103,16 +93,6 @@ partial void ProcessListResponseContent( /// List API keys
/// List all API keys for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// Number of records to skip for pagination
- /// Default Value: 0
- /// Example: 0 - /// - /// - /// Maximum number of records to return (max 100)
- /// Default Value: 100
- /// Example: 100 - /// /// /// Whether to include disabled API keys in the response
/// Example: false @@ -121,6 +101,10 @@ partial void ProcessListResponseContent( /// Whether to include expired API keys in the response. Expired keys are excluded by default and returned only when this is true.
/// Example: false /// + /// + /// Number of API keys to skip for pagination
+ /// Example: 0 + /// /// /// Filter API keys by workspace ID. By default, keys in the default workspace are returned.
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11 @@ -129,10 +113,9 @@ partial void ProcessListResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> ListAsResponseAsync( - int? offset = default, - int? limit = default, bool? includeDisabled = default, bool? includeExpired = default, + int? offset = default, global::System.Guid? workspaceId = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -141,10 +124,9 @@ partial void ProcessListResponseContent( client: HttpClient); PrepareListArguments( httpClient: HttpClient, - offset: ref offset, - limit: ref limit, includeDisabled: ref includeDisabled, includeExpired: ref includeExpired, + offset: ref offset, workspaceId: ref workspaceId); @@ -174,10 +156,9 @@ partial void ProcessListResponseContent( path: "/keys", baseUri: HttpClient.BaseAddress ?? new global::System.Uri("https://openrouter.ai/api/v1", global::System.UriKind.RelativeOrAbsolute)); __pathBuilder - .AddOptionalParameter("offset", offset?.ToString()) - .AddOptionalParameter("limit", limit?.ToString()) .AddOptionalParameter("include_disabled", includeDisabled?.ToString().ToLowerInvariant()) .AddOptionalParameter("include_expired", includeExpired?.ToString().ToLowerInvariant()) + .AddOptionalParameter("offset", offset?.ToString()) .AddOptionalParameter("workspace_id", workspaceId?.ToString()) ; var __path = __pathBuilder.ToString(); @@ -220,10 +201,9 @@ partial void ProcessListResponseContent( PrepareListRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - offset: offset, - limit: limit, includeDisabled: includeDisabled, includeExpired: includeExpired, + offset: offset, workspaceId: workspaceId); return __httpRequest; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.List.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.List.g.cs index 5ccc30e4..57a31410 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.List.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.List.g.cs @@ -8,16 +8,6 @@ public partial interface IApiKeysClient /// List API keys
/// List all API keys for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// Number of records to skip for pagination
- /// Default Value: 0
- /// Example: 0 - /// - /// - /// Maximum number of records to return (max 100)
- /// Default Value: 100
- /// Example: 100 - /// /// /// Whether to include disabled API keys in the response
/// Example: false @@ -26,6 +16,10 @@ public partial interface IApiKeysClient /// Whether to include expired API keys in the response. Expired keys are excluded by default and returned only when this is true.
/// Example: false /// + /// + /// Number of API keys to skip for pagination
+ /// Example: 0 + /// /// /// Filter API keys by workspace ID. By default, keys in the default workspace are returned.
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11 @@ -34,10 +28,9 @@ public partial interface IApiKeysClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ListAsync( - int? offset = default, - int? limit = default, bool? includeDisabled = default, bool? includeExpired = default, + int? offset = default, global::System.Guid? workspaceId = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -45,16 +38,6 @@ public partial interface IApiKeysClient /// List API keys
/// List all API keys for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. /// - /// - /// Number of records to skip for pagination
- /// Default Value: 0
- /// Example: 0 - /// - /// - /// Maximum number of records to return (max 100)
- /// Default Value: 100
- /// Example: 100 - /// /// /// Whether to include disabled API keys in the response
/// Example: false @@ -63,6 +46,10 @@ public partial interface IApiKeysClient /// Whether to include expired API keys in the response. Expired keys are excluded by default and returned only when this is true.
/// Example: false /// + /// + /// Number of API keys to skip for pagination
+ /// Example: 0 + /// /// /// Filter API keys by workspace ID. By default, keys in the default workspace are returned.
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11 @@ -71,10 +58,9 @@ public partial interface IApiKeysClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task> ListAsResponseAsync( - int? offset = default, - int? limit = default, bool? includeDisabled = default, bool? includeExpired = default, + int? offset = default, global::System.Guid? workspaceId = default, global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/OpenRouter/openapi.yaml b/src/libs/OpenRouter/openapi.yaml index ef33ed84..c3dc1d62 100644 --- a/src/libs/OpenRouter/openapi.yaml +++ b/src/libs/OpenRouter/openapi.yaml @@ -60434,36 +60434,6 @@ "description": "List all API keys for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "operationId": "list", "parameters": [ - { - "description": "Number of records to skip for pagination", - "in": "query", - "name": "offset", - "required": false, - "schema": { - "default": 0, - "description": "Number of records to skip for pagination", - "example": 0, - "minimum": 0, - "type": [ - "integer", - "null" - ] - } - }, - { - "description": "Maximum number of records to return (max 100)", - "in": "query", - "name": "limit", - "required": false, - "schema": { - "default": 100, - "description": "Maximum number of records to return (max 100)", - "example": 100, - "maximum": 100, - "minimum": 1, - "type": "integer" - } - }, { "description": "Whether to include disabled API keys in the response", "in": "query", @@ -60488,6 +60458,21 @@ "x-openrouter-type": "boolean" } }, + { + "description": "Number of API keys to skip for pagination", + "in": "query", + "name": "offset", + "required": false, + "schema": { + "description": "Number of API keys to skip for pagination", + "example": 0, + "minimum": 0, + "type": [ + "integer", + "null" + ] + } + }, { "description": "Filter API keys by workspace ID. By default, keys in the default workspace are returned.", "in": "query", @@ -60868,25 +60853,7 @@ "tags": [ "API Keys" ], - "x-speakeasy-name-override": "list", - "x-speakeasy-pagination": { - "inputs": [ - { - "in": "parameters", - "name": "offset", - "type": "offset" - }, - { - "in": "parameters", - "name": "limit", - "type": "limit" - } - ], - "outputs": { - "results": "$.data" - }, - "type": "offsetLimit" - } + "x-speakeasy-name-override": "list" }, "post": { "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. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys). The optional `external` object associates the key with a partner-defined user and lookup key.",