Skip to content

Commit fdd5f12

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

14 files changed

Lines changed: 152 additions & 46 deletions

File tree

‎.speakeasy/gen.lock‎

Lines changed: 25 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: 8d66cbc3cfd2e7025585831c83519a81
4+
docChecksum: ce5f8d5996391569ed1a685721f7046c
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.1.119
9-
configChecksum: 40337010eb197dfba7772005df02c9d3
8+
releaseVersion: 1.1.120
9+
configChecksum: 8357d85eb9f5bac84298c0e227a6b984
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: d3759cae-8d5c-4171-a425-8c2a349d4e4a
15-
pristine_commit_hash: bd2f9eb6bd8e1c4f8e629fbdb730f131bcc7aa36
16-
pristine_tree_hash: 26f19ced7941d9fff89a5d2453ac7c57d596fb3e
14+
generation_id: 879edd87-e0e3-485b-83f6-9b19a99c9830
15+
pristine_commit_hash: fb33c12a82fe10127a23bb2621acecac1dfeab9f
16+
pristine_tree_hash: 32c744f7564cd3e8014d258525cef3e97c325ef9
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -6266,8 +6266,8 @@ trackedFiles:
62666266
pristine_git_object: 9ec01bf61826e888c544e698af19baaa8c51980a
62676267
docs/operations/createkeysrequestbody.mdx:
62686268
id: 77bb49febf62
6269-
last_write_checksum: sha1:4281640ddfeb7fadc0b40c1e5798f0f33f5c4536
6270-
pristine_git_object: 03d2690cbbd53496929b2ccd879640e95a6e70ed
6269+
last_write_checksum: sha1:67822e93facc2b4956ca1c78a69dc67937886bda
6270+
pristine_git_object: b07f924076b7262a3de54f708f12cd0ee87eab5b
62716271
docs/operations/createkeysresponse.mdx:
62726272
id: 08e825fab080
62736273
last_write_checksum: sha1:268c49a74956884d1e3b3495fdf6ee6c7383e323
@@ -6516,6 +6516,10 @@ trackedFiles:
65166516
id: 64162c7ece40
65176517
last_write_checksum: sha1:ab0c02f32ff39de1f3da9604432708878cc932c6
65186518
pristine_git_object: 2642f99d77ceb5007b1b863028d73c07e48dac67
6519+
docs/operations/external.mdx:
6520+
id: d59b0279f5bf
6521+
last_write_checksum: sha1:94be7eccbfd2658d1f5f7672977b572273a366cf
6522+
pristine_git_object: a9bac3e77677e7cc51aafe2a58c3d60f4e3cf15d
65196523
docs/operations/filter_.mdx:
65206524
id: 79b9c7c02d3b
65216525
last_write_checksum: sha1:11626213ca5220d3013304af7d34d8b7c0c79f85
@@ -7438,8 +7442,8 @@ trackedFiles:
74387442
pristine_git_object: c1634706646332455817340f5891b4b5c9c6d16c
74397443
docs/sdks/apikeys/README.mdx:
74407444
id: 27fcaae1c346
7441-
last_write_checksum: sha1:7a69e05e81dcd98f56875f9e98e9af5047ec3a32
7442-
pristine_git_object: b1ed0d38565e444b87a7c64c4675a888c00ea9ea
7445+
last_write_checksum: sha1:3b8ddf3e038f2dc75d60c4936f270543950020a2
7446+
pristine_git_object: 05cb8497207bd506ac4d84c53a5977e110114806
74437447
docs/sdks/benchmarks/README.mdx:
74447448
id: 5b483a6770ba
74457449
last_write_checksum: sha1:885b70fcbd2be60f51a2f58e133fd6452eb21600
@@ -7554,8 +7558,8 @@ trackedFiles:
75547558
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
75557559
pyproject.toml:
75567560
id: 5d07e7d72637
7557-
last_write_checksum: sha1:56fe290e2eb62505ca606a14870c251c65b397b4
7558-
pristine_git_object: c888733edb984115721da78647439d9a37fcfe0c
7561+
last_write_checksum: sha1:2765676781474b4d3b41566bb0c4ea7d587b226b
7562+
pristine_git_object: 8a72681c7b253c3d9226466f122b38d098eed74d
75597563
scripts/prepare_readme.py:
75607564
id: e0c5957a6035
75617565
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -7582,16 +7586,16 @@ trackedFiles:
75827586
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
75837587
src/openrouter/_version.py:
75847588
id: d8d15ad6c586
7585-
last_write_checksum: sha1:809e487597022e0800957114a0be4210261a4b0b
7586-
pristine_git_object: 18a2bfe926c463cdfe989b6b03d57298076e5291
7589+
last_write_checksum: sha1:18c1a65cc4fadc02dba9801979adfe6f0078b39b
7590+
pristine_git_object: 649f736d9a9057d5204c17e6ac936b088de48beb
75877591
src/openrouter/analytics.py:
75887592
id: cb406b5aaabb
75897593
last_write_checksum: sha1:1e0004d8d1d5d797e2b54cd1cabeb7f9489d08e9
75907594
pristine_git_object: 9587309db4d5e25a00131a48788456139c25e4c0
75917595
src/openrouter/api_keys.py:
75927596
id: 876fac88fff6
7593-
last_write_checksum: sha1:ea783a6c3f2fa4478fbccf41bb8eddf8c638cff6
7594-
pristine_git_object: 9f12e9eb70e531679af1f3d64c081aec4b961853
7597+
last_write_checksum: sha1:5c198eef830a56d6030573a073bf0e349a0d8289
7598+
pristine_git_object: 94dd64726b491afb7913f00e8c90d94ef58d1115
75957599
src/openrouter/basesdk.py:
75967600
id: c5733c5a1e12
75977601
last_write_checksum: sha1:65769ff2cb5473f85b364c6213a0ddc8c68644ea
@@ -10286,8 +10290,8 @@ trackedFiles:
1028610290
pristine_git_object: 5c553b76ab24d9eaef51c3bf6d85aa74391e335e
1028710291
src/openrouter/operations/__init__.py:
1028810292
id: 9afcea1e7161
10289-
last_write_checksum: sha1:1c4c409bc631b080407fcf9977af36eedab52a87
10290-
pristine_git_object: b76c802abec1ef1bb8fa2625772374243d75f281
10293+
last_write_checksum: sha1:c7fed411d14dc37465fc61bf1fe78f9ba3b18ce2
10294+
pristine_git_object: ceac9dee376e4d8c832b3ff4a6cc6e3bec7eb5f4
1029110295
src/openrouter/operations/bulkaddworkspacemembers.py:
1029210296
id: e0ed56117619
1029310297
last_write_checksum: sha1:5c44eb0d40fdece3ac084615f6c6082be4cf1d5a
@@ -10346,8 +10350,8 @@ trackedFiles:
1034610350
pristine_git_object: 8216a656ec1412a034878e257bd9de9e94fa8da1
1034710351
src/openrouter/operations/createkeys.py:
1034810352
id: 64ad31fdaa6c
10349-
last_write_checksum: sha1:146edc8153a6ee74f1b8a6cdbd2a6c91733f11d8
10350-
pristine_git_object: 510645f76bbdcc2a8f754f5527d14ae3d0a5a16c
10353+
last_write_checksum: sha1:92e122bf7ca252e6cc1f4200cbcd6ded9a0d35a7
10354+
pristine_git_object: 2fe95efbdbba0908f586d84148fad57b3b8a498e
1035110355
src/openrouter/operations/createoauthtoken.py:
1035210356
id: 02e1c061780d
1035310357
last_write_checksum: sha1:006884cfeeecfede1434f194460b7189cae89de1
@@ -12713,5 +12717,4 @@ examples:
1271312717
examplesVersion: 1.0.2
1271412718
releaseNotes: |
1271512719
## Python SDK Changes:
12716-
* `open_router.o_auth.list_oauth_jwks()`: **Added**
12717-
* `open_router.o_auth.create_oauth_token()`: **Added**
12720+
* `open_router.api_keys.create()`: `request.external` **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.119
39+
version: 1.1.120
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

‎.speakeasy/out.openapi.yaml‎

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34696,7 +34696,7 @@ paths:
3469634696
- 'API Keys'
3469734697
x-speakeasy-name-override: 'list'
3469834698
post:
34699-
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.'
34699+
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.'
3470034700
operationId: 'createKeys'
3470134701
requestBody:
3470234702
content:
@@ -34729,6 +34729,23 @@ paths:
3472934729
type:
3473034730
- 'string'
3473134731
- 'null'
34732+
external:
34733+
description: 'Optional partner-defined identity associated with the created API key.'
34734+
properties:
34735+
api_key:
34736+
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.'
34737+
maxLength: 512
34738+
minLength: 32
34739+
type: 'string'
34740+
user:
34741+
description: 'Partner''s end-user identifier for attribution.'
34742+
example: 'partner-user-123'
34743+
maxLength: 512
34744+
minLength: 1
34745+
type: 'string'
34746+
required:
34747+
- 'user'
34748+
type: 'object'
3473234749
include_byok_in_limit:
3473334750
description: 'Whether to include BYOK usage in the limit'
3473434751
example: true
@@ -35053,7 +35070,7 @@ paths:
3505335070
- $ref: "#/components/parameters/AppCategories"
3505435071
/keys/{hash}:
3505535072
delete:
35056-
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.'
35073+
description: 'Delete an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).'
3505735074
operationId: 'deleteKeys'
3505835075
parameters:
3505935076
- description: 'The hash identifier of the API key to delete'
@@ -35403,7 +35420,7 @@ paths:
3540335420
- 'API Keys'
3540435421
x-speakeasy-name-override: 'get'
3540535422
patch:
35406-
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.'
35423+
description: 'Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).'
3540735424
operationId: 'updateKeys'
3540835425
parameters:
3540935426
- description: 'The hash identifier of the API key to update'

‎.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:548d52c5c213dc69da9a5075de144d2d234ae4a761b51515b9fb197d414e23b7
6-
sourceBlobDigest: sha256:6f8a3a2bf9e6a014f1c0fe5e85415d4ba182afa6a3fadd5224480bf80f10bc51
5+
sourceRevisionDigest: sha256:390305318c4533d383dc9c88de415c2542a7caf6ac9bc01db93781a99a394bdc
6+
sourceBlobDigest: sha256:7c6b932ad65bf10271c6384063c1d55781f75fefa9780aff01f32c3155162943
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:548d52c5c213dc69da9a5075de144d2d234ae4a761b51515b9fb197d414e23b7
15-
sourceBlobDigest: sha256:6f8a3a2bf9e6a014f1c0fe5e85415d4ba182afa6a3fadd5224480bf80f10bc51
14+
sourceRevisionDigest: sha256:390305318c4533d383dc9c88de415c2542a7caf6ac9bc01db93781a99a394bdc
15+
sourceBlobDigest: sha256:7c6b932ad65bf10271c6384063c1d55781f75fefa9780aff01f32c3155162943
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:b1caf408f8f4dbb6d7b94fb09bb1cc248275f7f241a09146682d20efe1e299b6
17+
codeSamplesRevisionDigest: sha256:40c3ec0b19f0e0bf2aa8d48616aafb27e782f71ffef33a5ffc765829ff9bf46e
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
@@ -1979,4 +1979,14 @@ Based on:
19791979
### Generated
19801980
- [python v1.1.119] .
19811981
### Releases
1982-
- [PyPI v1.1.119] https://pypi.org/project/openrouter/1.1.119 - .
1982+
- [PyPI v1.1.119] https://pypi.org/project/openrouter/1.1.119 - .
1983+
1984+
## 2026-09-03 01:22:00
1985+
### Changes
1986+
Based on:
1987+
- OpenAPI Doc
1988+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
1989+
### Generated
1990+
- [python v1.1.120] .
1991+
### Releases
1992+
- [PyPI v1.1.120] https://pypi.org/project/openrouter/1.1.120 - .

‎docs/operations/createkeysrequestbody.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ title: "CreateKeysRequestBody"
88
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
99
| `creator_user_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Optional user ID of the key creator. Only meaningful for organization-owned keys where a specific member is creating the key. | user_2dHFtVWx2n56w6HkM0000000000 |
1010
| `expires_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Optional ISO 8601 UTC expiration timestamp. Must include seconds (YYYY-MM-DDTHH:MM:SSZ; fractional seconds allowed); minute-precision timestamps are rejected. | 2027-12-31T23:59:59Z |
11+
| `external` | [Optional[operations.External]](../operations/external.mdx) | :heavy_minus_sign: | Optional partner-defined identity associated with the created API key. | |
1112
| `include_byok_in_limit` | *Optional[bool]* | :heavy_minus_sign: | Whether to include BYOK usage in the limit | true |
1213
| `limit` | *OptionalNullable[float]* | :heavy_minus_sign: | Optional spending limit for the API key in USD | 50 |
1314
| `limit_reset` | [OptionalNullable[operations.CreateKeysLimitReset]](../operations/createkeyslimitreset.mdx) | :heavy_minus_sign: | Type of limit reset for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday. | monthly |

‎docs/operations/external.mdx‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: "External"
3+
---
4+
5+
Optional partner-defined identity associated with the created API key.
6+
7+
8+
## Fields
9+
10+
| Field | Type | Required | Description | Example |
11+
| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
12+
| `api_key` | *Optional[str]* | :heavy_minus_sign: | Optional partner-supplied API key with a minimum length of 32 characters and sufficient entropy. Stored as a SHA-256 hash and never returned. | |
13+
| `user` | *str* | :heavy_check_mark: | Partner's end-user identifier for attribution. | partner-user-123 |

0 commit comments

Comments
 (0)