Skip to content

Commit a5ec7ec

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate (spec change merged) 1.1.71 (#693)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
1 parent 2053895 commit a5ec7ec

14 files changed

Lines changed: 142 additions & 64 deletions

File tree

.speakeasy/gen.lock

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: c48cf606-fb42-4a45-9c23-8f0555307828
33
management:
4-
docChecksum: 8ed3bce5631ad96347bbc340ae00f480
4+
docChecksum: d664cceac37f153c342d57d88340d3d7
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.1.70
9-
configChecksum: 05133456c74de87129259578572364ae
8+
releaseVersion: 1.1.71
9+
configChecksum: be09f1b7b3d40d9514d0173b2520cf47
1010
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
1111
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
1212
published: true
1313
persistentEdits:
14-
generation_id: 9c81eba8-3edd-490b-88fe-c604f9d912d0
15-
pristine_commit_hash: 2e7ce19453dd4bb87f46f0122a5e5a4dc981c8a6
16-
pristine_tree_hash: 763f77ddad320d306a8a22a9aa70f22a315c9bef
14+
generation_id: 429ea40d-52a2-4a40-80ed-19c66adcb71e
15+
pristine_commit_hash: 87b0c7e42555161909c4035cf8f185620f82415b
16+
pristine_tree_hash: 746b5e522470828ad8816313de83fafe9ead8a08
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -1546,8 +1546,8 @@ trackedFiles:
15461546
pristine_git_object: 753493b8d505e9317dcaca6fc897da7e30e91d0c
15471547
docs/components/createbyokkeyrequest.mdx:
15481548
id: 2af3019aa2a7
1549-
last_write_checksum: sha1:8043e06630237922eaccbf4f0cea0d9c306116ad
1550-
pristine_git_object: 1bb9f670ee89c79fa917de5d75960818e91a237a
1549+
last_write_checksum: sha1:a61a6569552f17904c29e6ed273c6e0faef04926
1550+
pristine_git_object: 4be6d94868a20068bb37cc469a87b9e07fd7d406
15511551
docs/components/createbyokkeyresponse.mdx:
15521552
id: 73f247dc0e33
15531553
last_write_checksum: sha1:c4dbcd1ccaf3465a42c9370ce785d1be420eda5c
@@ -5458,8 +5458,8 @@ trackedFiles:
54585458
pristine_git_object: 5a7e1816ae9370995ad90941ba4ba288d170d421
54595459
docs/components/updatebyokkeyrequest.mdx:
54605460
id: db0862ec6814
5461-
last_write_checksum: sha1:455ef2d62d3a47dc683e611a1e5b9943173f41d0
5462-
pristine_git_object: fcdb0bb2f50a9c63912e5dd911039e1f5d3b05a8
5461+
last_write_checksum: sha1:39b6ffc8a8ef18dd316deb68a2f4c5f91797d058
5462+
pristine_git_object: 2aa03a8b47c8d8b7f21d98d24384a64ea3d7fb1d
54635463
docs/components/updatebyokkeyresponse.mdx:
54645464
id: 9b4490c340b4
54655465
last_write_checksum: sha1:e80cd233e3de3358ea447fc32844fabb9ba121bf
@@ -7154,8 +7154,8 @@ trackedFiles:
71547154
pristine_git_object: 08ef8d73c050b6baab18ef6e246a1d074179b21f
71557155
docs/sdks/byok/README.mdx:
71567156
id: 17792f3b180d
7157-
last_write_checksum: sha1:1520e531278af50a90ab6fb38e06a36fad90138f
7158-
pristine_git_object: d86220a274db607e8f15025c7e173563e47f3794
7157+
last_write_checksum: sha1:d9948090ea7d2de3f60ea1743d3285056b44dbee
7158+
pristine_git_object: ff69431d7a24ef8ed82244feb3553257a86d78c6
71597159
docs/sdks/chat/README.mdx:
71607160
id: 1dd859c23fe1
71617161
last_write_checksum: sha1:75cf7ecf14bdaae4b3e2c767dc3d2c9d9e41d31c
@@ -7254,8 +7254,8 @@ trackedFiles:
72547254
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
72557255
pyproject.toml:
72567256
id: 5d07e7d72637
7257-
last_write_checksum: sha1:c62d176755cb2c7889ba3c916373b6da5467d6ab
7258-
pristine_git_object: ef0adf665003d73a26729beb01928d60e3312d4c
7257+
last_write_checksum: sha1:42baab7c320fb18f069970f37e2fd74f58945876
7258+
pristine_git_object: 9ca49fb9d0250444611fcc98af9283825a924da8
72597259
scripts/prepare_readme.py:
72607260
id: e0c5957a6035
72617261
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -7282,8 +7282,8 @@ trackedFiles:
72827282
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
72837283
src/openrouter/_version.py:
72847284
id: d8d15ad6c586
7285-
last_write_checksum: sha1:bca2b6914d6368541bcd4305996eb835294ccba8
7286-
pristine_git_object: 10b7f60d3125567d78817aa3431998e8f3df6261
7285+
last_write_checksum: sha1:4be82d99f28e1fc9d893a231a8fa3057458b05ff
7286+
pristine_git_object: 047bec54394175afee6aff5c79012fb2f911ce34
72877287
src/openrouter/analytics.py:
72887288
id: cb406b5aaabb
72897289
last_write_checksum: sha1:1e0004d8d1d5d797e2b54cd1cabeb7f9489d08e9
@@ -7310,8 +7310,8 @@ trackedFiles:
73107310
pristine_git_object: 412aed86e32b1fd166d27e06e562463fa2b04395
73117311
src/openrouter/byok.py:
73127312
id: bec352462ae1
7313-
last_write_checksum: sha1:cc8870e008a6a2b86ca173a99800792d06097205
7314-
pristine_git_object: 627c6084130e7c8a9821950b9dd62ae0f5ac1281
7313+
last_write_checksum: sha1:53ccad720a80810d843e241aff4b5ac457d4c8f5
7314+
pristine_git_object: 0d8c44d7b7d19d3b28b615723eed5a08340f489d
73157315
src/openrouter/chat.py:
73167316
id: 723fdce15c1d
73177317
last_write_checksum: sha1:1a4e5375fb95884be6db0f508e1c2c9cda27b20e
@@ -8002,8 +8002,8 @@ trackedFiles:
80028002
pristine_git_object: dbafc2878cb3185fac34919e2f789b26dc86f70e
80038003
src/openrouter/components/createbyokkeyrequest.py:
80048004
id: 238e868445b4
8005-
last_write_checksum: sha1:71d253f65eb95fd04de90ef120623375708592f7
8006-
pristine_git_object: d79f38d162da4661affe6dddc4eaf9e956b79582
8005+
last_write_checksum: sha1:5320d73056ed0e00b264e7dda3d7f6086fc6664a
8006+
pristine_git_object: 7d41b9f96d153a26a1ff101b9003abf4c4a5d38a
80078007
src/openrouter/components/createbyokkeyresponse.py:
80088008
id: 2b6c5e13270a
80098009
last_write_checksum: sha1:a7a2a40b9ac16a975a4c5ecc8802fc0b7785691c
@@ -9610,8 +9610,8 @@ trackedFiles:
96109610
pristine_git_object: 696d3c578c6b09f9768e52a7dd000284fb62f1b7
96119611
src/openrouter/components/updatebyokkeyrequest.py:
96129612
id: 5edad69c278d
9613-
last_write_checksum: sha1:c4c5bb57979e5251e5423cfe19b22036a6f8cb54
9614-
pristine_git_object: 865262ac26028a07c34a2d678882320af9f674fc
9613+
last_write_checksum: sha1:272d6d4f106330f1bec5b5b0d60efb9bbbb81755
9614+
pristine_git_object: c3c764755f4ea1b37dbcf12ac5a966ab4052e66b
96159615
src/openrouter/components/updatebyokkeyresponse.py:
96169616
id: 31338080f7cc
96179617
last_write_checksum: sha1:794d77355ae37451076a6b5754c6c8cc77063047
@@ -12175,3 +12175,7 @@ examples:
1217512175
"500":
1217612176
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
1217712177
examplesVersion: 1.0.2
12178+
releaseNotes: |
12179+
## Python SDK Changes:
12180+
* `open_router.byok.create()`: `request.allowed_api_key_hashes` **Added**
12181+
* `open_router.byok.update()`: `request.allowed_api_key_hashes` **Added**

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ generation:
3636
documentation: mintlify
3737
preApplyUnionDiscriminators: true
3838
python:
39-
version: 1.1.70
39+
version: 1.1.71
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

.speakeasy/out.openapi.yaml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6974,6 +6974,18 @@ components:
69746974
name: 'Production OpenAI Key'
69756975
provider: 'openai'
69766976
properties:
6977+
allowed_api_key_hashes:
6978+
description: 'Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction. Must contain at least one hash if provided. Hashes that do not belong to your account return a 400.'
6979+
example:
6980+
- 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943'
6981+
items:
6982+
pattern: '^[a-f0-9]{64}$'
6983+
type: 'string'
6984+
maxItems: 100
6985+
minItems: 1
6986+
type:
6987+
- 'array'
6988+
- 'null'
69776989
allowed_models:
69786990
description: 'Optional allowlist of model slugs this credential may be used for. `null` means no restriction.'
69796991
example: null
@@ -24958,6 +24970,18 @@ components:
2495824970
disabled: false
2495924971
name: 'Updated OpenAI Key'
2496024972
properties:
24973+
allowed_api_key_hashes:
24974+
description: 'Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` clears the restriction. Must contain at least one hash if provided. Hashes that do not belong to your account return a 400.'
24975+
example:
24976+
- 'f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943'
24977+
items:
24978+
pattern: '^[a-f0-9]{64}$'
24979+
type: 'string'
24980+
maxItems: 100
24981+
minItems: 1
24982+
type:
24983+
- 'array'
24984+
- 'null'
2496124985
allowed_models:
2496224986
description: 'Optional allowlist of model slugs this credential may be used for. `null` means no restriction.'
2496324987
example: null
@@ -28242,7 +28266,7 @@ paths:
2824228266
results: '$.data'
2824328267
type: 'offsetLimit'
2824428268
post:
28245-
description: 'Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. When `workspace_id` is omitted, the credential is created in the default workspace; if that default has been deleted, the request returns a 400 and you must pass `workspace_id` explicitly. Treat the raw key as write-only; it is never returned after creation. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
28269+
description: 'Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. When `workspace_id` is omitted, the credential is created in the default workspace; if that default has been deleted, the request returns a 400 and you must pass `workspace_id` explicitly. Treat the raw key as write-only; it is never returned after creation. Use `allowed_api_key_hashes` to restrict the credential to specific OpenRouter API keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
2824628270
operationId: 'createBYOKKey'
2824728271
requestBody:
2824828272
content:
@@ -28449,7 +28473,7 @@ paths:
2844928473
- 'BYOK'
2845028474
x-speakeasy-name-override: 'get'
2845128475
patch:
28452-
description: 'Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). [Management key](/docs/guides/overview/auth/management-api-keys) required.'
28476+
description: 'Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). Use `allowed_api_key_hashes` to restrict the credential to specific OpenRouter API keys (`null` clears the restriction). [Management key](/docs/guides/overview/auth/management-api-keys) required.'
2845328477
operationId: 'updateBYOKKey'
2845428478
parameters:
2845528479
- description: 'The BYOK credential ID (UUID).'

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ speakeasyVersion: 1.787.0
22
sources:
33
OpenRouter API:
44
sourceNamespace: open-router-chat-completions-api
5-
sourceRevisionDigest: sha256:5e5a4db069d541e4b682c5b887778b9a3ad48f930306ac76e7aa78e0dab79808
6-
sourceBlobDigest: sha256:01364ffa74202e8f1e3ba7de276cc8e72f25593b7e498fe0f38052325ae7c561
5+
sourceRevisionDigest: sha256:2bce355f397f2478126ed11211e0ba94469a608eb9a1021bb0be516e18cff9a0
6+
sourceBlobDigest: sha256:dbb75107e44d9e615dd69a6347dee396d2dce265f9d8af7ebabf6f2a1f1a9613
77
tags:
88
- latest
99
- 1.0.0
1010
targets:
1111
open-router:
1212
source: OpenRouter API
1313
sourceNamespace: open-router-chat-completions-api
14-
sourceRevisionDigest: sha256:5e5a4db069d541e4b682c5b887778b9a3ad48f930306ac76e7aa78e0dab79808
15-
sourceBlobDigest: sha256:01364ffa74202e8f1e3ba7de276cc8e72f25593b7e498fe0f38052325ae7c561
14+
sourceRevisionDigest: sha256:2bce355f397f2478126ed11211e0ba94469a608eb9a1021bb0be516e18cff9a0
15+
sourceBlobDigest: sha256:dbb75107e44d9e615dd69a6347dee396d2dce265f9d8af7ebabf6f2a1f1a9613
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:ee83d11c70c4aeee1b7060bd300018acab0bf4f98099057e14c020f03e18b59d
17+
codeSamplesRevisionDigest: sha256:8d9e2fc0b054d14a13254ae9d129fd24818afd388ce7bd97b40df5bce63a49c0
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: 1.787.0

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1489,4 +1489,14 @@ Based on:
14891489
### Generated
14901490
- [python v1.1.70] .
14911491
### Releases
1492-
- [PyPI v1.1.70] https://pypi.org/project/openrouter/1.1.70 - .
1492+
- [PyPI v1.1.70] https://pypi.org/project/openrouter/1.1.70 - .
1493+
1494+
## 2026-08-21 06:09:01
1495+
### Changes
1496+
Based on:
1497+
- OpenAPI Doc
1498+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
1499+
### Generated
1500+
- [python v1.1.71] .
1501+
### Releases
1502+
- [PyPI v1.1.71] https://pypi.org/project/openrouter/1.1.71 - .

docs/components/createbyokkeyrequest.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ title: "CreateBYOKKeyRequest"
66

77
| Field | Type | Required | Description | Example |
88
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
9+
| `allowed_api_key_hashes` | List[*str*] | :heavy_minus_sign: | Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction. Must contain at least one hash if provided. Hashes that do not belong to your account return a 400. | [<br/>"f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943"<br/>] |
910
| `allowed_models` | List[*str*] | :heavy_minus_sign: | Optional allowlist of model slugs this credential may be used for. `null` means no restriction. | null |
1011
| `allowed_user_ids` | List[*str*] | :heavy_minus_sign: | Optional allowlist of user IDs that may use this credential. `null` means no restriction. | null |
1112
| `disabled` | *Optional[bool]* | :heavy_minus_sign: | Whether this credential should be created in a disabled state. | false |

0 commit comments

Comments
 (0)