Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 16 additions & 36 deletions src/libs/OpenRouter/Generated/OpenRouter.ApiKeysClient.List.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -53,16 +51,6 @@ partial void ProcessListResponseContent(
/// List API keys<br/>
/// List all API keys for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="offset">
/// Number of records to skip for pagination<br/>
/// Default Value: 0<br/>
/// Example: 0
/// </param>
/// <param name="limit">
/// Maximum number of records to return (max 100)<br/>
/// Default Value: 100<br/>
/// Example: 100
/// </param>
/// <param name="includeDisabled">
/// Whether to include disabled API keys in the response<br/>
/// Example: false
Expand All @@ -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.<br/>
/// Example: false
/// </param>
/// <param name="offset">
/// Number of API keys to skip for pagination<br/>
/// Example: 0
/// </param>
/// <param name="workspaceId">
/// Filter API keys by workspace ID. By default, keys in the default workspace are returned.<br/>
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11
Expand All @@ -79,19 +71,17 @@ partial void ProcessListResponseContent(
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::OpenRouter.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::OpenRouter.ListResponse> 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
Expand All @@ -103,16 +93,6 @@ partial void ProcessListResponseContent(
/// List API keys<br/>
/// List all API keys for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="offset">
/// Number of records to skip for pagination<br/>
/// Default Value: 0<br/>
/// Example: 0
/// </param>
/// <param name="limit">
/// Maximum number of records to return (max 100)<br/>
/// Default Value: 100<br/>
/// Example: 100
/// </param>
/// <param name="includeDisabled">
/// Whether to include disabled API keys in the response<br/>
/// Example: false
Expand All @@ -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.<br/>
/// Example: false
/// </param>
/// <param name="offset">
/// Number of API keys to skip for pagination<br/>
/// Example: 0
/// </param>
/// <param name="workspaceId">
/// Filter API keys by workspace ID. By default, keys in the default workspace are returned.<br/>
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11
Expand All @@ -129,10 +113,9 @@ partial void ProcessListResponseContent(
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::OpenRouter.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::OpenRouter.AutoSDKHttpResponse<global::OpenRouter.ListResponse>> 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)
Expand All @@ -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);


Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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;
Expand Down
34 changes: 10 additions & 24 deletions src/libs/OpenRouter/Generated/OpenRouter.IApiKeysClient.List.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@ public partial interface IApiKeysClient
/// List API keys<br/>
/// List all API keys for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="offset">
/// Number of records to skip for pagination<br/>
/// Default Value: 0<br/>
/// Example: 0
/// </param>
/// <param name="limit">
/// Maximum number of records to return (max 100)<br/>
/// Default Value: 100<br/>
/// Example: 100
/// </param>
/// <param name="includeDisabled">
/// Whether to include disabled API keys in the response<br/>
/// Example: false
Expand All @@ -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.<br/>
/// Example: false
/// </param>
/// <param name="offset">
/// Number of API keys to skip for pagination<br/>
/// Example: 0
/// </param>
/// <param name="workspaceId">
/// Filter API keys by workspace ID. By default, keys in the default workspace are returned.<br/>
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11
Expand All @@ -34,27 +28,16 @@ public partial interface IApiKeysClient
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::OpenRouter.ApiException"></exception>
global::System.Threading.Tasks.Task<global::OpenRouter.ListResponse> 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);
/// <summary>
/// List API keys<br/>
/// List all API keys for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
/// </summary>
/// <param name="offset">
/// Number of records to skip for pagination<br/>
/// Default Value: 0<br/>
/// Example: 0
/// </param>
/// <param name="limit">
/// Maximum number of records to return (max 100)<br/>
/// Default Value: 100<br/>
/// Example: 100
/// </param>
/// <param name="includeDisabled">
/// Whether to include disabled API keys in the response<br/>
/// Example: false
Expand All @@ -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.<br/>
/// Example: false
/// </param>
/// <param name="offset">
/// Number of API keys to skip for pagination<br/>
/// Example: 0
/// </param>
/// <param name="workspaceId">
/// Filter API keys by workspace ID. By default, keys in the default workspace are returned.<br/>
/// Example: 0df9e665-d932-5740-b2c7-b52af166bc11
Expand All @@ -71,10 +58,9 @@ public partial interface IApiKeysClient
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::OpenRouter.ApiException"></exception>
global::System.Threading.Tasks.Task<global::OpenRouter.AutoSDKHttpResponse<global::OpenRouter.ListResponse>> 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);
Expand Down
65 changes: 16 additions & 49 deletions src/libs/OpenRouter/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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.",
Expand Down
Loading