Skip to content

Commit d6e1e9e

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

12 files changed

Lines changed: 142 additions & 54 deletions

File tree

‎.speakeasy/gen.lock‎

Lines changed: 23 additions & 18 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: 63ba3216b2499bb104f5ba497212cf31
4+
docChecksum: ecb5eca3ef6a267213db0ded757b55e3
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.3.39
9-
configChecksum: 087e7677c4446238e5e3330e10a2f485
8+
releaseVersion: 1.3.40
9+
configChecksum: ee9a5a783a8eacb732f771decfd8b7db
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: 7bb99ffd-de0f-43a3-bedf-0b7ba639e3ee
15-
pristine_commit_hash: a065177d322362e8b66a40bae6ae5286f280d0d7
16-
pristine_tree_hash: 59713b5944267b079a2cd2c4f9461d4d1e958909
14+
generation_id: 71c9c96b-57d8-43db-a7fd-358f31fd9922
15+
pristine_commit_hash: 56313cab4b918fcdba448e161f1d1440024301e6
16+
pristine_tree_hash: 6a298d935c5177a5636b85c8c413ee28b7dcbe89
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -9796,8 +9796,8 @@ trackedFiles:
97969796
pristine_git_object: e6d3d7f0130773c07971473e1bc4e536b403a993
97979797
docs/operations/updatekeysrequestbody.mdx:
97989798
id: dc55066cca3d
9799-
last_write_checksum: sha1:28fd19213cd690e7aec9fa106db1b835094a9d3a
9800-
pristine_git_object: b293f36e7709b7bebad59271db0885d29711c2d9
9799+
last_write_checksum: sha1:6a8c00577467c533b49ce9d0a4a1742993730034
9800+
pristine_git_object: bc08a2d46ccca8a3a8d61d196611ecc7c0782903
98019801
docs/operations/updatekeysresponse.mdx:
98029802
id: a97d51fea627
98039803
last_write_checksum: sha1:e3064726562fa278b17b113764602a46e0919ffe
@@ -9920,8 +9920,8 @@ trackedFiles:
99209920
pristine_git_object: c1634706646332455817340f5891b4b5c9c6d16c
99219921
docs/sdks/apikeys/README.mdx:
99229922
id: 27fcaae1c346
9923-
last_write_checksum: sha1:dece70cc0e48aa3e8f523d4b27844e1f870d1b2d
9924-
pristine_git_object: 211cfc120a8941c8006179541b6ba9bb8599f661
9923+
last_write_checksum: sha1:d904a5734d4cf752acf932c54fa8cb714034e38c
9924+
pristine_git_object: 558caa92f560fd87cb7ed6bb6d1989b7a5001c81
99259925
docs/sdks/batch/README.mdx:
99269926
id: e367aa4f4295
99279927
last_write_checksum: sha1:03ef59395c1bc1a4ffa14dd68ca2a77a72601080
@@ -10068,8 +10068,8 @@ trackedFiles:
1006810068
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
1006910069
pyproject.toml:
1007010070
id: 5d07e7d72637
10071-
last_write_checksum: sha1:ae86206d341aa777b7b704f3b55146ddaa47ed1e
10072-
pristine_git_object: 603917d374eaecf1b6cf8f220f107be47c2d3793
10071+
last_write_checksum: sha1:13e86e0bb1241458142202f2f8f09b882ed9eaef
10072+
pristine_git_object: 58dec50a7d7a3657ca82dc463ebe5868b50a680c
1007310073
scripts/prepare_readme.py:
1007410074
id: e0c5957a6035
1007510075
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -10096,8 +10096,8 @@ trackedFiles:
1009610096
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
1009710097
src/openrouter/_version.py:
1009810098
id: d8d15ad6c586
10099-
last_write_checksum: sha1:384892b86cee88cd2af1039fc03d15de610578af
10100-
pristine_git_object: 0cf6cc22eabc83b4cefb2d11d0a175413bbbed9d
10099+
last_write_checksum: sha1:c6901839a49042fdd00a20f0200548c0cd92d0a0
10100+
pristine_git_object: b42d7fe103d72102be9150bae1c462b64e09d461
1010110101
src/openrouter/alpha.py:
1010210102
id: 306c4d93308d
1010310103
last_write_checksum: sha1:30f55a360f41376ab194b9ea725fe4e001a5ae1a
@@ -10108,8 +10108,8 @@ trackedFiles:
1010810108
pristine_git_object: 9587309db4d5e25a00131a48788456139c25e4c0
1010910109
src/openrouter/api_keys.py:
1011010110
id: 876fac88fff6
10111-
last_write_checksum: sha1:42bbc2aadb2722a96eba3c83eff26afcfa6a0572
10112-
pristine_git_object: 1b9ba98c188a8887d8dd27bc9f200deaacdcdef6
10111+
last_write_checksum: sha1:be6e31bd6aa3b8cacec826ba4b249739b4510b79
10112+
pristine_git_object: 3c95e38bd085b026382bace5eab99a7cc91af00a
1011310113
src/openrouter/basesdk.py:
1011410114
id: c5733c5a1e12
1011510115
last_write_checksum: sha1:65769ff2cb5473f85b364c6213a0ddc8c68644ea
@@ -14288,8 +14288,8 @@ trackedFiles:
1428814288
pristine_git_object: d87519cfb18258224c2958076dedb16ff4abe208
1428914289
src/openrouter/operations/updatekeys.py:
1429014290
id: 56fb213253a8
14291-
last_write_checksum: sha1:d70e4b1e06f8b0e1569a172e263b3e541edf4442
14292-
pristine_git_object: 3862d92575f681cc5eb43fd27d3d57114972ed2e
14291+
last_write_checksum: sha1:8a49a1d8fecd7314d177d488ecec30214f4e918b
14292+
pristine_git_object: e9ed9da08d2a39aa0f9dc295fdd4e006e8dd49f5
1429314293
src/openrouter/operations/updateobservabilitydestination.py:
1429414294
id: 18e06708d1b4
1429514295
last_write_checksum: sha1:d490e19e8698ed5193df9d06673f975cb3a1410f
@@ -14807,6 +14807,10 @@ examples:
1480714807
application/json: {"error": {"code": 429, "message": "Rate limit exceeded"}}
1480814808
"500":
1480914809
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
14810+
"403":
14811+
application/json: {"error": {"code": 403, "message": "Only management keys can perform this operation"}}
14812+
"409":
14813+
application/json: {"error": {"code": 409, "message": "Resource conflict. Please try again later."}}
1481014814
invalid_parameters:
1481114815
parameters:
1481214816
path:
@@ -18432,3 +18436,4 @@ examples:
1843218436
"500":
1843318437
application/json: {"error": {"code": 404, "message": "Intern not found"}}
1843418438
examplesVersion: 1.0.2
18439+
releaseNotes: "## Python SDK Changes:\n* `open_router.api_keys.update()`: \n * `request.workspace_id` **Added**\n * `error` **Changed**\n"

‎.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.3.39
39+
version: 1.3.40
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

‎.speakeasy/out.openapi.yaml‎

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44741,7 +44741,7 @@ paths:
4474144741
- 'API Keys'
4474244742
x-speakeasy-name-override: 'get'
4474344743
patch:
44744-
description: "Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).\n\n<Warning>\nYou can't change `workspace_id` through the API. The request body accepts only the fields listed below, and unrecognized fields are ignored. To move a key to another workspace, use the OpenRouter dashboard. If the body contains none of the accepted fields, the request fails with `400` and the message `No update fields provided`.\n</Warning>"
44744+
description: "Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).\n\nSet `workspace_id` to move the key to another workspace. The key keeps its value, and any other fields in the same request are applied atomically with the move. Guardrail selections move with the key; other workspace-scoped settings (presets, BYOK keys, broadcast destinations, routing rules) do not. A move into or out of a HIPAA workspace is refused with `403`. In an organization, if the key's creator is not a member of a non-default target workspace, the request fails with `409`; add them to the workspace first.\n\n<Warning>\nThe request body accepts only the fields listed below, and unrecognized fields are ignored. If the body contains none of the accepted fields, the request fails with `400` and the message `No update fields provided`.\n</Warning>"
4474544745
operationId: 'updateKeys'
4474644746
parameters:
4474744747
- description: 'The hash identifier of the API key to update'
@@ -44800,6 +44800,11 @@ paths:
4480044800
description: 'New name for the API key'
4480144801
example: 'Updated API Key Name'
4480244802
type: 'string'
44803+
workspace_id:
44804+
description: 'Move the API key to this workspace. The key keeps its value; guardrail selections move with it, while other workspace-scoped settings (presets, BYOK keys, broadcast destinations, routing rules) do not. Sending the key''s current workspace is a no-op.'
44805+
example: '0df9e665-d932-5740-b2c7-b52af166bc11'
44806+
format: 'uuid'
44807+
type: 'string'
4480344808
type: 'object'
4480444809
required: true
4480544810
responses:
@@ -45043,7 +45048,7 @@ paths:
4504345048
code: 400
4504445049
message: 'Invalid request parameters'
4504545050
no_update_fields:
45046-
description: 'Returned when the body contains none of the accepted fields, for example `{"workspace_id": "..."}`. `workspace_id` can''t be changed through the API.'
45051+
description: 'Returned when the body contains none of the accepted fields, for example `{"label": "..."}`.'
4504745052
summary: 'No accepted fields in the request body'
4504845053
value:
4504945054
error:
@@ -45062,6 +45067,16 @@ paths:
4506245067
schema:
4506345068
$ref: '#/components/schemas/UnauthorizedResponse'
4506445069
description: 'Unauthorized - Authentication required or invalid credentials'
45070+
'403':
45071+
content:
45072+
application/json:
45073+
example:
45074+
error:
45075+
code: 403
45076+
message: 'Only management keys can perform this operation'
45077+
schema:
45078+
$ref: '#/components/schemas/ForbiddenResponse'
45079+
description: 'Forbidden - Authentication successful but insufficient permissions'
4506545080
'404':
4506645081
content:
4506745082
application/json:
@@ -45072,6 +45087,16 @@ paths:
4507245087
schema:
4507345088
$ref: '#/components/schemas/NotFoundResponse'
4507445089
description: 'Not Found - Resource does not exist'
45090+
'409':
45091+
content:
45092+
application/json:
45093+
example:
45094+
error:
45095+
code: 409
45096+
message: 'The API key creator is not a member of the target workspace. Add them to the workspace, then retry.'
45097+
schema:
45098+
$ref: '#/components/schemas/ConflictResponse'
45099+
description: 'Conflict - Resource conflict or concurrent modification'
4507545100
'429':
4507645101
content:
4507745102
application/json:

‎.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:cf24edf70629b35aad73aef00830d7d2f92f5f199bd6540c50f4887f848a33da
6-
sourceBlobDigest: sha256:8c7c009a8ce7e8466887920f6d8c5246378189395521adf6e1a0464a23cf2caa
5+
sourceRevisionDigest: sha256:c597251b8315aeabdac8771a04fa223bbd27a7ee37c50e7865f78a63b009cd05
6+
sourceBlobDigest: sha256:63d088f642ae5691d24c0fa0dcd9028d0cd2860692265db7a882af65fa3785aa
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:cf24edf70629b35aad73aef00830d7d2f92f5f199bd6540c50f4887f848a33da
15-
sourceBlobDigest: sha256:8c7c009a8ce7e8466887920f6d8c5246378189395521adf6e1a0464a23cf2caa
14+
sourceRevisionDigest: sha256:c597251b8315aeabdac8771a04fa223bbd27a7ee37c50e7865f78a63b009cd05
15+
sourceBlobDigest: sha256:63d088f642ae5691d24c0fa0dcd9028d0cd2860692265db7a882af65fa3785aa
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:e4432a5e58f6864b1422ab41cc380048fc21238fbad0baa17b07dd9d855bb8b7
17+
codeSamplesRevisionDigest: sha256:a730ae87d313ee35964df1065a504ce678766c22dbc3b1692054285f0d381138
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
@@ -3159,4 +3159,14 @@ Based on:
31593159
### Generated
31603160
- [python v1.3.39] .
31613161
### Releases
3162-
- [PyPI v1.3.39] https://pypi.org/project/openrouter/1.3.39 - .
3162+
- [PyPI v1.3.39] https://pypi.org/project/openrouter/1.3.39 - .
3163+
3164+
## 2026-10-09 15:16:59
3165+
### Changes
3166+
Based on:
3167+
- OpenAPI Doc
3168+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
3169+
### Generated
3170+
- [python v1.3.40] .
3171+
### Releases
3172+
- [PyPI v1.3.40] https://pypi.org/project/openrouter/1.3.40 - .

0 commit comments

Comments
 (0)