From 3dd3b32655d45091b745c4cabffe84b0e95e4f04 Mon Sep 17 00:00:00 2001 From: OpenRouter SDK Bot Date: Thu, 3 Sep 2026 01:20:35 +0000 Subject: [PATCH] chore: update OpenAPI spec [sdk-bot] --- .speakeasy/in.openapi.yaml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 677baf59..88998089 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -34290,7 +34290,7 @@ paths: - 'API Keys' 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), or with a Connect client secret.' + 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.' operationId: 'createKeys' requestBody: content: @@ -34323,6 +34323,23 @@ paths: type: - 'string' - 'null' + external: + description: 'Optional partner-defined identity associated with the created API key.' + properties: + api_key: + description: 'Optional partner-supplied API key with a minimum length of 32 characters and sufficient entropy. Stored as a SHA-256 hash and never returned.' + maxLength: 512 + minLength: 32 + type: 'string' + user: + description: 'Partner''s end-user identifier for attribution.' + example: 'partner-user-123' + maxLength: 512 + minLength: 1 + type: 'string' + required: + - 'user' + type: 'object' include_byok_in_limit: description: 'Whether to include BYOK usage in the limit' example: true @@ -34642,7 +34659,7 @@ paths: x-speakeasy-name-override: 'create' /keys/{hash}: delete: - description: 'Delete an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys), or with a Connect client secret. A client secret reaches only the keys that same client created; any other key responds as if it does not exist.' + description: 'Delete an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).' operationId: 'deleteKeys' parameters: - description: 'The hash identifier of the API key to delete' @@ -34992,7 +35009,7 @@ paths: - 'API Keys' x-speakeasy-name-override: 'get' patch: - description: 'Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys), or with a Connect client secret. A client secret reaches only the keys that same client created; any other key responds as if it does not exist.' + description: 'Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).' operationId: 'updateKeys' parameters: - description: 'The hash identifier of the API key to update'