From e1a69ec3ca203f92693d4c1b2a11a5322eb55e85 Mon Sep 17 00:00:00 2001 From: OpenRouter SDK Bot Date: Mon, 24 Aug 2026 16:45:34 +0000 Subject: [PATCH] chore: update OpenAPI spec [sdk-bot] --- .speakeasy/in.openapi.yaml | 46 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 41cb66cd..a426234f 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -33155,6 +33155,7 @@ paths: creator_user_id: 'user_2dHFtVWx2n56w6HkM0000000000' disabled: false expires_at: '2027-12-31T23:59:59Z' + external_user: null hash: 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943' include_byok_in_limit: false label: 'Production API Key' @@ -33181,6 +33182,7 @@ paths: creator_user_id: 'user_2dHFtVWx2n56w6HkM0000000000' disabled: false expires_at: '2027-12-31T23:59:59Z' + external_user: null hash: 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943' include_byok_in_limit: false label: 'sk-or-v1-0e6...1c96' @@ -33236,6 +33238,12 @@ paths: type: - 'string' - 'null' + external_user: + description: 'Partner''s end-user identifier used for attribution.' + example: null + type: + - 'string' + - 'null' hash: description: 'Unique hash identifier for the API key' example: 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943' @@ -33321,6 +33329,7 @@ paths: - 'byok_usage_monthly' - 'created_at' - 'updated_at' + - 'external_user' - 'creator_user_id' - 'workspace_id' type: 'object' @@ -33374,7 +33383,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. [Management key](/docs/guides/overview/auth/management-api-keys) required.' + 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. `external_user` and `external_api_key` are accepted only with a client secret, and `external_user` is required there; supplying either field with a management key is rejected with 403.' operationId: 'createKeys' requestBody: content: @@ -33408,7 +33417,12 @@ paths: - 'string' - 'null' external_api_key: - description: 'Optional partner-supplied API key. Stored as a SHA-256 hash and never returned. Accepted only when authenticating with a Connect client secret.' + description: 'Optional partner-supplied API key. Stored as a SHA-256 hash and never returned. Accepted only when authenticating with a Connect client secret; supplying it with a management key is rejected with 403.' + maxLength: 512 + minLength: 1 + type: 'string' + external_user: + description: 'Partner''s end-user identifier for attribution, between 1 and 512 characters. Accepted only when authenticating with a Connect client secret, where it is required; supplying it with a management key is rejected with 403.' maxLength: 512 minLength: 1 type: 'string' @@ -33462,6 +33476,7 @@ paths: creator_user_id: 'user_2dHFtVWx2n56w6HkM0000000000' disabled: false expires_at: '2027-12-31T23:59:59Z' + external_user: null hash: 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943' include_byok_in_limit: true label: 'My New API Key' @@ -33487,6 +33502,7 @@ paths: creator_user_id: 'user_2dHFtVWx2n56w6HkM0000000000' disabled: false expires_at: '2027-12-31T23:59:59Z' + external_user: null hash: 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943' include_byok_in_limit: true label: 'My New API Key' @@ -33513,6 +33529,7 @@ paths: creator_user_id: 'user_2dHFtVWx2n56w6HkM0000000000' disabled: false expires_at: '2027-12-31T23:59:59Z' + external_user: null hash: 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943' include_byok_in_limit: false label: 'sk-or-v1-0e6...1c96' @@ -33568,6 +33585,12 @@ paths: type: - 'string' - 'null' + external_user: + description: 'Partner''s end-user identifier used for attribution.' + example: null + type: + - 'string' + - 'null' hash: description: 'Unique hash identifier for the API key' example: 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943' @@ -33653,6 +33676,7 @@ paths: - 'byok_usage_monthly' - 'created_at' - 'updated_at' + - 'external_user' - 'creator_user_id' - 'workspace_id' type: 'object' @@ -33845,6 +33869,7 @@ paths: creator_user_id: 'user_2dHFtVWx2n56w6HkM0000000000' disabled: false expires_at: '2027-12-31T23:59:59Z' + external_user: null hash: 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943' include_byok_in_limit: false label: 'Production API Key' @@ -33870,6 +33895,7 @@ paths: creator_user_id: 'user_2dHFtVWx2n56w6HkM0000000000' disabled: false expires_at: '2027-12-31T23:59:59Z' + external_user: null hash: 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943' include_byok_in_limit: false label: 'sk-or-v1-0e6...1c96' @@ -33925,6 +33951,12 @@ paths: type: - 'string' - 'null' + external_user: + description: 'Partner''s end-user identifier used for attribution.' + example: null + type: + - 'string' + - 'null' hash: description: 'Unique hash identifier for the API key' example: 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943' @@ -34010,6 +34042,7 @@ paths: - 'byok_usage_monthly' - 'created_at' - 'updated_at' + - 'external_user' - 'creator_user_id' - 'workspace_id' type: 'object' @@ -34160,6 +34193,7 @@ paths: creator_user_id: 'user_2dHFtVWx2n56w6HkM0000000000' disabled: false expires_at: null + external_user: null hash: 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943' include_byok_in_limit: true label: 'Updated API Key Name' @@ -34185,6 +34219,7 @@ paths: creator_user_id: 'user_2dHFtVWx2n56w6HkM0000000000' disabled: false expires_at: '2027-12-31T23:59:59Z' + external_user: null hash: 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943' include_byok_in_limit: false label: 'sk-or-v1-0e6...1c96' @@ -34240,6 +34275,12 @@ paths: type: - 'string' - 'null' + external_user: + description: 'Partner''s end-user identifier used for attribution.' + example: null + type: + - 'string' + - 'null' hash: description: 'Unique hash identifier for the API key' example: 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943' @@ -34325,6 +34366,7 @@ paths: - 'byok_usage_monthly' - 'created_at' - 'updated_at' + - 'external_user' - 'creator_user_id' - 'workspace_id' type: 'object'