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
85 changes: 43 additions & 42 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
version: 1.1.78
version: 1.1.79
additionalDependencies:
dev: {}
main: {}
Expand Down
46 changes: 44 additions & 2 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33545,6 +33545,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'
Expand All @@ -33571,6 +33572,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'
Expand Down Expand Up @@ -33626,6 +33628,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'
Expand Down Expand Up @@ -33711,6 +33719,7 @@ paths:
- 'byok_usage_monthly'
- 'created_at'
- 'updated_at'
- 'external_user'
- 'creator_user_id'
- 'workspace_id'
type: 'object'
Expand Down Expand Up @@ -33764,7 +33773,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:
Expand Down Expand Up @@ -33798,7 +33807,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'
Expand Down Expand Up @@ -33853,6 +33867,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'
Expand All @@ -33878,6 +33893,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'
Expand All @@ -33904,6 +33920,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'
Expand Down Expand Up @@ -33959,6 +33976,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'
Expand Down Expand Up @@ -34044,6 +34067,7 @@ paths:
- 'byok_usage_monthly'
- 'created_at'
- 'updated_at'
- 'external_user'
- 'creator_user_id'
- 'workspace_id'
type: 'object'
Expand Down Expand Up @@ -34240,6 +34264,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'
Expand All @@ -34265,6 +34290,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'
Expand Down Expand Up @@ -34320,6 +34346,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'
Expand Down Expand Up @@ -34405,6 +34437,7 @@ paths:
- 'byok_usage_monthly'
- 'created_at'
- 'updated_at'
- 'external_user'
- 'creator_user_id'
- 'workspace_id'
type: 'object'
Expand Down Expand Up @@ -34556,6 +34589,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'
Expand All @@ -34581,6 +34615,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'
Expand Down Expand Up @@ -34636,6 +34671,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'
Expand Down Expand Up @@ -34721,6 +34762,7 @@ paths:
- 'byok_usage_monthly'
- 'created_at'
- 'updated_at'
- 'external_user'
- 'creator_user_id'
- 'workspace_id'
type: 'object'
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.787.0
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:a0c8071526156321d4808bf8ae5aa9231043e82cb7d3dafc56374eb0f0339206
sourceBlobDigest: sha256:8ad77bace16445242fe39dba2e0c36dbfb6b66e8c50c59fcf4155b41d65b318f
sourceRevisionDigest: sha256:36607bb1ee0f8771c1af0da1b9a9fe072e5761cf4604980b25ab981833a26569
sourceBlobDigest: sha256:feb9ccfde88d5358904e6a3b8ae255e6183ba70c6f5cd8078906aa54f572ee50
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:a0c8071526156321d4808bf8ae5aa9231043e82cb7d3dafc56374eb0f0339206
sourceBlobDigest: sha256:8ad77bace16445242fe39dba2e0c36dbfb6b66e8c50c59fcf4155b41d65b318f
sourceRevisionDigest: sha256:36607bb1ee0f8771c1af0da1b9a9fe072e5761cf4604980b25ab981833a26569
sourceBlobDigest: sha256:feb9ccfde88d5358904e6a3b8ae255e6183ba70c6f5cd8078906aa54f572ee50
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:cfca39323f743a723a62fc64413774cf84f5d1b1556f70b04d8655864d205278
codeSamplesRevisionDigest: sha256:5c7956c63c0575911fdfb8a083ed89ac9153a446d4396a0372b4dee36a360108
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.787.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1569,4 +1569,14 @@ Based on:
### Generated
- [python v1.1.78] .
### Releases
- [PyPI v1.1.78] https://pypi.org/project/openrouter/1.1.78 - .
- [PyPI v1.1.78] https://pypi.org/project/openrouter/1.1.78 - .

## 2026-08-24 16:47:41
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.1.79] .
### Releases
- [PyPI v1.1.79] https://pypi.org/project/openrouter/1.1.79 - .
1 change: 1 addition & 0 deletions docs/operations/createkeysdata.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The created API key information
| `creator_user_id` | *Nullable[str]* | :heavy_check_mark: | The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID. | user_2dHFtVWx2n56w6HkM0000000000 |
| `disabled` | *bool* | :heavy_check_mark: | Whether the API key is disabled | false |
| `expires_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | ISO 8601 UTC timestamp when the API key expires, or null if no expiration | 2027-12-31T23:59:59Z |
| `external_user` | *Nullable[str]* | :heavy_check_mark: | Partner's end-user identifier used for attribution. | null |
| `hash` | *str* | :heavy_check_mark: | Unique hash identifier for the API key | f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943 |
| `include_byok_in_limit` | *bool* | :heavy_check_mark: | Whether to include external BYOK usage in the credit limit | false |
| `label` | *str* | :heavy_check_mark: | Human-readable label for the API key | sk-or-v1-0e6...1c96 |
Expand Down
Loading
Loading