Skip to content

Commit 798b355

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

13 files changed

Lines changed: 117 additions & 36 deletions

File tree

‎.speakeasy/gen.lock‎

Lines changed: 24 additions & 21 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: 41450b2a23c27cabea1cbd738f7f3d0f
4+
docChecksum: b32bef3109d51525efbbb750a22334cf
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.1.148
9-
configChecksum: 108162f643ed6236a5c7fc4650414a3a
8+
releaseVersion: 1.1.149
9+
configChecksum: 7bf826ad018ebcad3019cdf23933b7cb
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: 25704fa8-72cd-42df-ba42-96fc14ceff73
15-
pristine_commit_hash: e90a8d77058d982a17f891d045d214b3453eb542
16-
pristine_tree_hash: 59747e810ec8cbc53792616329ccbea882cfe01d
14+
generation_id: b18b0456-94cf-4dea-b8d2-8633e32dc7b4
15+
pristine_commit_hash: 6ab48e324e12298942a39cb079dcf66e4d0f9274
16+
pristine_tree_hash: f95688c8539ef9e6b108958d704ae2023d1c197d
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -6148,6 +6148,10 @@ trackedFiles:
61486148
id: eb84a3cc692c
61496149
last_write_checksum: sha1:3cc5ffa2cf98a80d59818495896591a5e2c807c6
61506150
pristine_git_object: 5342a8f5681d437adc719527c45d23aac0ebe84c
6151+
docs/operations/alloweddataregion.mdx:
6152+
id: 9bb0791d7b23
6153+
last_write_checksum: sha1:74f92842ef5b92abfdbe951f754b240f83673194
6154+
pristine_git_object: 098bd77e93814e8a3c888b3d20e5a2f9890dd7a5
61516155
docs/operations/arena.mdx:
61526156
id: fd0c961ea26d
61536157
last_write_checksum: sha1:48d0112803ed464cb9f9fe06d4b58f982f936522
@@ -6714,8 +6718,8 @@ trackedFiles:
67146718
pristine_git_object: 1f584bb9e540819ce7619172b06ad17edf8a8c34
67156719
docs/operations/getcurrentkeydata.mdx:
67166720
id: 08c92577eb48
6717-
last_write_checksum: sha1:edcff1105b8ad4c6564310093610471279a8c54f
6718-
pristine_git_object: 63a96376b014ebb3d0d71f6f0a0901b5b14fcc6b
6721+
last_write_checksum: sha1:d827a9899bad06b46f3910a9e8909d82ee980318
6722+
pristine_git_object: 7cdcc55740e0f950cc37de4f2661a92eedc9baeb
67196723
docs/operations/getcurrentkeyglobals.mdx:
67206724
id: 2397dfa14af6
67216725
last_write_checksum: sha1:59402ba0d664e5fab7daae4cea57dfc01e086460
@@ -6726,8 +6730,8 @@ trackedFiles:
67266730
pristine_git_object: 720e0e050e35968f74596a1bd8d791dff97b2b5b
67276731
docs/operations/getcurrentkeyresponse.mdx:
67286732
id: 8b6709d01b8b
6729-
last_write_checksum: sha1:8c0fd494c989e55b0813ab65708dcfe7deadb358
6730-
pristine_git_object: c948cc162c525d1a6288ca8f2cd7cc1e2da2d1e5
6733+
last_write_checksum: sha1:85dde6bb90c5686384d11484601d8859c0b8fa7e
6734+
pristine_git_object: f8fbad096ce3725d56f12a5d6a3ea32a79891c6b
67316735
docs/operations/getfilemetadataglobals.mdx:
67326736
id: e4f16f1ce98e
67336737
last_write_checksum: sha1:f736518bdebac4aa8c9caf9071e0670885bd83b3
@@ -7678,8 +7682,8 @@ trackedFiles:
76787682
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
76797683
pyproject.toml:
76807684
id: 5d07e7d72637
7681-
last_write_checksum: sha1:f5f51a8d3b4fd5b07cace20b646e455907ef475a
7682-
pristine_git_object: 9041c4037d67135017d6ed6cc2afc711ce777883
7685+
last_write_checksum: sha1:94a4fe94f9740931a09fb58b45416899b34d22f4
7686+
pristine_git_object: 8b944528c888b3463c504fbfa79ef6abf204e217
76837687
scripts/prepare_readme.py:
76847688
id: e0c5957a6035
76857689
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -7706,8 +7710,8 @@ trackedFiles:
77067710
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
77077711
src/openrouter/_version.py:
77087712
id: d8d15ad6c586
7709-
last_write_checksum: sha1:b9da8046b4649b3db1f7def7ff9132ec3d4a4b7b
7710-
pristine_git_object: abcd8bc4c2591dc7a373a816e98924135b9b57ad
7713+
last_write_checksum: sha1:9507638df62443fff01b387213413255fa382672
7714+
pristine_git_object: 2fbe0307c9d9c9614a9b906fa6ff3b3400c73103
77117715
src/openrouter/analytics.py:
77127716
id: cb406b5aaabb
77137717
last_write_checksum: sha1:1e0004d8d1d5d797e2b54cd1cabeb7f9489d08e9
@@ -10474,8 +10478,8 @@ trackedFiles:
1047410478
pristine_git_object: 8680343bbc90107ae6413bd5686012b1fd75d665
1047510479
src/openrouter/operations/__init__.py:
1047610480
id: 9afcea1e7161
10477-
last_write_checksum: sha1:534f35479d3f763b301b02511da7c8211209b70e
10478-
pristine_git_object: 036bec20dcedd8dc0a8fbccfffc19207dba2dec9
10481+
last_write_checksum: sha1:4a0f94d3fb52f1d3e7aed3f2e0a54829eb04fd7a
10482+
pristine_git_object: 3a3975ce5e74f5e24d16899c3a8beaf44c636d29
1047910483
src/openrouter/operations/bulkaddworkspacemembers.py:
1048010484
id: e0ed56117619
1048110485
last_write_checksum: sha1:5c44eb0d40fdece3ac084615f6c6082be4cf1d5a
@@ -10650,8 +10654,8 @@ trackedFiles:
1065010654
pristine_git_object: 0c48cd8cb2742ed71558ea6d9cd488ccccd74e79
1065110655
src/openrouter/operations/getcurrentkey.py:
1065210656
id: baf3e38db22c
10653-
last_write_checksum: sha1:b2b65133108483105fbad3d5916ee7823d4ef7c2
10654-
pristine_git_object: 1726a9fcf1892c0c3594833fcb5bcd82d53fd6d8
10657+
last_write_checksum: sha1:d7fe9be4c095ad7dc8112f977016d737bb5575c6
10658+
pristine_git_object: efc9fff9e0d6de76e764bd234d540a1270929456
1065510659
src/openrouter/operations/getfilemetadata.py:
1065610660
id: 408c34486769
1065710661
last_write_checksum: sha1:592b6646b4ff082d8427ea08e79e6b34be490857
@@ -11389,7 +11393,7 @@ examples:
1138911393
speakeasy-default-get-current-key:
1139011394
responses:
1139111395
"200":
11392-
application/json: {"data": {"byok_usage": 17.38, "byok_usage_daily": 17.38, "byok_usage_monthly": 17.38, "byok_usage_weekly": 17.38, "creator_user_id": "user_2dHFtVWx2n56w6HkM0000000000", "free_model_daily_requests": {"limit": 50, "remaining": 38, "used": 12}, "include_byok_in_limit": false, "is_free_tier": false, "is_management_key": false, "is_provisioning_key": false, "label": "sk-or-v1-au7...890", "limit": 100, "limit_remaining": 74.5, "limit_reset": "monthly", "rate_limit": {"interval": "1h", "note": "This field is deprecated and safe to ignore.", "requests": 1000}, "usage": 25.5, "usage_daily": 25.5, "usage_monthly": 25.5, "usage_weekly": 25.5}}
11396+
application/json: {"data": {"allowed_data_regions": ["global", "europe", "us"], "byok_usage": 17.38, "byok_usage_daily": 17.38, "byok_usage_monthly": 17.38, "byok_usage_weekly": 17.38, "creator_user_id": "user_2dHFtVWx2n56w6HkM0000000000", "free_model_daily_requests": {"limit": 50, "remaining": 38, "used": 12}, "include_byok_in_limit": false, "is_free_tier": false, "is_management_key": false, "is_provisioning_key": false, "label": "sk-or-v1-au7...890", "limit": 100, "limit_remaining": 74.5, "limit_reset": "monthly", "rate_limit": {"interval": "1h", "note": "This field is deprecated and safe to ignore.", "requests": 1000}, "usage": 25.5, "usage_daily": 25.5, "usage_monthly": 25.5, "usage_weekly": 25.5}}
1139311397
"401":
1139411398
application/json: {"error": {"code": 401, "message": "Missing Authentication header"}}
1139511399
"500":
@@ -12952,5 +12956,4 @@ examples:
1295212956
examplesVersion: 1.0.2
1295312957
releaseNotes: |
1295412958
## Python SDK Changes:
12955-
* `open_router.stt.create_transcription()`: `error.status[504]` **Added**
12956-
* `open_router.stt.create_transcription_multipart()`: `error.status[504]` **Added**
12959+
* `open_router.api_keys.get_current_key_metadata()`: `response.data.allowed_data_regions` **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.148
39+
version: 1.1.149
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

‎.speakeasy/out.openapi.yaml‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34840,6 +34840,10 @@ paths:
3484034840
application/json:
3484134841
example:
3484234842
data:
34843+
allowed_data_regions:
34844+
- 'global'
34845+
- 'europe'
34846+
- 'us'
3484334847
byok_usage: 17.38
3484434848
byok_usage_daily: 17.38
3484534849
byok_usage_monthly: 17.38
@@ -34869,6 +34873,10 @@ paths:
3486934873
schema:
3487034874
example:
3487134875
data:
34876+
allowed_data_regions:
34877+
- 'global'
34878+
- 'europe'
34879+
- 'us'
3487234880
byok_usage: 17.38
3487334881
byok_usage_daily: 17.38
3487434882
byok_usage_monthly: 17.38
@@ -34899,6 +34907,10 @@ paths:
3489934907
data:
3490034908
description: 'Current API key information'
3490134909
example:
34910+
allowed_data_regions:
34911+
- 'global'
34912+
- 'europe'
34913+
- 'us'
3490234914
byok_usage: 17.38
3490334915
byok_usage_daily: 17.38
3490434916
byok_usage_monthly: 17.38
@@ -34926,6 +34938,20 @@ paths:
3492634938
usage_monthly: 25.5
3492734939
usage_weekly: 25.5
3492834940
properties:
34941+
allowed_data_regions:
34942+
description: 'Data regions permitted for this API key by the guardrail policies on the key and the account regional-routing entitlement. Empty when no region is permitted. Reflects region policy only: other key restrictions, such as management keys being blocked from inference, still apply.'
34943+
example:
34944+
- 'global'
34945+
- 'europe'
34946+
- 'us'
34947+
items:
34948+
enum:
34949+
- 'global'
34950+
- 'europe'
34951+
- 'us'
34952+
type: 'string'
34953+
x-speakeasy-unknown-values: allow
34954+
type: 'array'
3492934955
byok_usage:
3493034956
description: 'Total external BYOK usage (in USD) for the API key'
3493134957
example: 17.38
@@ -35065,6 +35091,7 @@ paths:
3506535091
- 'limit_reset'
3506635092
- 'include_byok_in_limit'
3506735093
- 'creator_user_id'
35094+
- 'allowed_data_regions'
3506835095
- 'free_model_daily_requests'
3506935096
- 'rate_limit'
3507035097
type: 'object'

‎.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:09c23da6b2bfa40fdab38be95b0569129da25958adf4e8414cd1c71526d0b569
6-
sourceBlobDigest: sha256:8d5529722484eb1c61521ec0d7a6d86f08a2bdc943c2a3debc69968cb4ab1130
5+
sourceRevisionDigest: sha256:a209927f7afd47c4f3d37916b9cb671f31128ef87f9162f1ace1b17ae7309a78
6+
sourceBlobDigest: sha256:07340d1e62f97a817461b6a8cb7d047dbca41926eb04b76a167492ac0dd36721
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:09c23da6b2bfa40fdab38be95b0569129da25958adf4e8414cd1c71526d0b569
15-
sourceBlobDigest: sha256:8d5529722484eb1c61521ec0d7a6d86f08a2bdc943c2a3debc69968cb4ab1130
14+
sourceRevisionDigest: sha256:a209927f7afd47c4f3d37916b9cb671f31128ef87f9162f1ace1b17ae7309a78
15+
sourceBlobDigest: sha256:07340d1e62f97a817461b6a8cb7d047dbca41926eb04b76a167492ac0dd36721
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:2102c1a3aba8dca6a50204d92b4b8cfd6becf530e6f2450ec782695181655b5d
17+
codeSamplesRevisionDigest: sha256:38c22b3915cac11303f22f5de6ba74baccc294a9947b678f42b78d2222ef529c
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
@@ -2269,4 +2269,14 @@ Based on:
22692269
### Generated
22702270
- [python v1.1.148] .
22712271
### Releases
2272-
- [PyPI v1.1.148] https://pypi.org/project/openrouter/1.1.148 - .
2272+
- [PyPI v1.1.148] https://pypi.org/project/openrouter/1.1.148 - .
2273+
2274+
## 2026-09-16 14:44:23
2275+
### Changes
2276+
Based on:
2277+
- OpenAPI Doc
2278+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
2279+
### Generated
2280+
- [python v1.1.149] .
2281+
### Releases
2282+
- [PyPI v1.1.149] https://pypi.org/project/openrouter/1.1.149 - .
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "AllowedDataRegion"
3+
---
4+
5+
## Example Usage
6+
7+
```python
8+
from openrouter.operations import AllowedDataRegion
9+
10+
# Open enum: unrecognized values are captured as UnrecognizedStr
11+
value: AllowedDataRegion = "global"
12+
```
13+
14+
15+
## Values
16+
17+
This is an open enum. Unrecognized values will not fail type checks.
18+
19+
- `"global"`
20+
- `"europe"`
21+
- `"us"`

0 commit comments

Comments
 (0)