Skip to content

Commit fd63c0e

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate (spec change merged) 1.3.58 (#1086)
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 6dc67ac commit fd63c0e

10 files changed

Lines changed: 198 additions & 31 deletions

File tree

β€Ž.speakeasy/gen.lockβ€Ž

Lines changed: 57 additions & 16 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: 92108b39165950fa16e8dfbf4d3f2266
4+
docChecksum: 2820c1ebeee9014a28ca30bf098f8aee
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.3.57
9-
configChecksum: bc6d380c803d374425ffd992a616c3dd
8+
releaseVersion: 1.3.58
9+
configChecksum: 402618c19e749c96b24b99f3da7e25d5
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: 0d97340d-2f0f-4cb3-9013-a6398e37bc3a
15-
pristine_commit_hash: 13762bdb649fcf5de52ca952a649ca2452916431
16-
pristine_tree_hash: 4803d134f22a7cc41c19f4800e457809fe242162
14+
generation_id: 247f2336-3669-41d1-a973-651801266f68
15+
pristine_commit_hash: 7fc1c4d6c4813a5d232f4c7309e34a207afe6106
16+
pristine_tree_hash: 4d8a3da59058ebca12b8b2d618a296012352b4f2
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -10304,8 +10304,8 @@ trackedFiles:
1030410304
pristine_git_object: 7b3c78a7323028a4668d6ce8394c8cdd4c15b67d
1030510305
docs/sdks/vault/README.mdx:
1030610306
id: 3738c6722acd
10307-
last_write_checksum: sha1:12acdfed4c2a32488d98b6091fd8c392af516494
10308-
pristine_git_object: 8d9386c0a3101f823f7509e8d6d1ebb97c8339d0
10307+
last_write_checksum: sha1:b608fe6954d2fc05d3982c4d071d8818ce68c1d8
10308+
pristine_git_object: 03052b483039f45f63018432feaa54d255506749
1030910309
docs/sdks/videogeneration/README.mdx:
1031010310
id: 9a8fa04c3872
1031110311
last_write_checksum: sha1:936739fa3beecf2583d22e02baf5186917e466b4
@@ -10320,8 +10320,8 @@ trackedFiles:
1032010320
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
1032110321
pyproject.toml:
1032210322
id: 5d07e7d72637
10323-
last_write_checksum: sha1:f0420b2b06b3cb030d94be2f44bf6b8561c5b843
10324-
pristine_git_object: 60445589a7cf37d92757b4dc2825ca01d1a2e5fc
10323+
last_write_checksum: sha1:a86a096de48d48d3e59c20f6f49ef7bd9008c900
10324+
pristine_git_object: a1e0ff5e66179c29d1e07e0d2fbce8d160d63747
1032510325
scripts/prepare_readme.py:
1032610326
id: e0c5957a6035
1032710327
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -10348,8 +10348,8 @@ trackedFiles:
1034810348
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
1034910349
src/openrouter/_version.py:
1035010350
id: d8d15ad6c586
10351-
last_write_checksum: sha1:29be669907fe2701d7dabdb6a426b453c763617b
10352-
pristine_git_object: dcb23768aa23470a0e72b9f45ff92c91191c565f
10351+
last_write_checksum: sha1:640adf20b6b1131f18d77eead235ede40e5aadba
10352+
pristine_git_object: 01dfa8836269c963c723ea7abb2d21b8e5bae4bf
1035310353
src/openrouter/alpha.py:
1035410354
id: 306c4d93308d
1035510355
last_write_checksum: sha1:30f55a360f41376ab194b9ea725fe4e001a5ae1a
@@ -14808,8 +14808,8 @@ trackedFiles:
1480814808
pristine_git_object: dae01a44384ac3bc13ae07453a053bf6c898ebe3
1480914809
src/openrouter/vault.py:
1481014810
id: 0645fe426ac1
14811-
last_write_checksum: sha1:3a0daca68628b484130fcfec530820c6dcbde67c
14812-
pristine_git_object: 7619f073a18d91f4230f51f2a1915598ef4d8a48
14811+
last_write_checksum: sha1:04d687c1ccb0980e4bab049b684e545d88343a7d
14812+
pristine_git_object: fbe218be3bd8fec06925de712f3a7fd13babf41d
1481314813
src/openrouter/video_generation.py:
1481414814
id: d0a90c1b8efe
1481514815
last_write_checksum: sha1:e5fc6c816742687bad4a0ae9a9d9232945f04815
@@ -17097,6 +17097,16 @@ examples:
1709717097
application/json: {"error": {"code": 503, "message": "Service temporarily unavailable"}}
1709817098
"504":
1709917099
application/json: {"error": {"code": 504, "message": "The operation was aborted due to timeout"}}
17100+
"409":
17101+
application/json: {"error": {"code": 409, "message": "Resource conflict. Please try again later."}}
17102+
conflict:
17103+
parameters:
17104+
path:
17105+
internId: "7c9e6679-7425-40de-944b-e07fc1f90ae7"
17106+
name: "github_token"
17107+
responses:
17108+
"409":
17109+
application/json: {"error": {"code": 409, "message": "Vault request conflicts with existing secrets"}}
1710017110
storeInternVaultSecret:
1710117111
speakeasy-default-store-intern-vault-secret:
1710217112
parameters:
@@ -17292,6 +17302,16 @@ examples:
1729217302
responses:
1729317303
"504":
1729417304
application/json: {"error": {"code": 504, "message": "Vault request timed out"}}
17305+
conflict:
17306+
parameters:
17307+
path:
17308+
internId: "7c9e6679-7425-40de-944b-e07fc1f90ae7"
17309+
name: "github_token"
17310+
requestBody:
17311+
application/json: {"hosts": ["api.github.com"], "value": "ghp_exampleTokenValue"}
17312+
responses:
17313+
"409":
17314+
application/json: {"error": {"code": 409, "message": "Vault request conflicts with existing secrets"}}
1729517315
copyVaultSecretsToIntern:
1729617316
speakeasy-default-copy-vault-secrets-to-intern:
1729717317
parameters:
@@ -17735,6 +17755,15 @@ examples:
1773517755
application/json: {"error": {"code": 503, "message": "Service temporarily unavailable"}}
1773617756
"504":
1773717757
application/json: {"error": {"code": 504, "message": "The operation was aborted due to timeout"}}
17758+
"409":
17759+
application/json: {"error": {"code": 409, "message": "Resource conflict. Please try again later."}}
17760+
conflict:
17761+
parameters:
17762+
path:
17763+
name: "github_token"
17764+
responses:
17765+
"409":
17766+
application/json: {"error": {"code": 409, "message": "Vault request conflicts with existing secrets"}}
1773817767
storeVaultSecret:
1773917768
speakeasy-default-store-vault-secret:
1774017769
parameters:
@@ -17767,6 +17796,8 @@ examples:
1776717796
application/json: {"error": {"code": 503, "message": "Service temporarily unavailable"}}
1776817797
"504":
1776917798
application/json: {"error": {"code": 504, "message": "The operation was aborted due to timeout"}}
17799+
"409":
17800+
application/json: {"error": {"code": 409, "message": "Resource conflict. Please try again later."}}
1777017801
invalid-vault-request:
1777117802
parameters:
1777217803
path:
@@ -17902,6 +17933,15 @@ examples:
1790217933
responses:
1790317934
"504":
1790417935
application/json: {"error": {"code": 504, "message": "Vault request timed out"}}
17936+
conflict:
17937+
parameters:
17938+
path:
17939+
name: "github_token"
17940+
requestBody:
17941+
application/json: {"hosts": ["api.github.com"], "value": "ghp_exampleTokenValue"}
17942+
responses:
17943+
"409":
17944+
application/json: {"error": {"code": 409, "message": "Vault request conflicts with existing secrets"}}
1790517945
listInterns:
1790617946
speakeasy-default-list-interns:
1790717947
responses:
@@ -18794,5 +18834,6 @@ examples:
1879418834
examplesVersion: 1.0.2
1879518835
releaseNotes: |
1879618836
## Python SDK Changes:
18797-
* `open_router.endpoints.list_zdr_endpoints()`: `response.data[].service_tier` **Added**
18798-
* `open_router.endpoints.list()`: `response.data.endpoints[].service_tier` **Added**
18837+
* `open_router.vault.delete_intern_vault_secret()`: `error.status[409]` **Added**
18838+
* `open_router.vault.delete_vault_secret()`: `error.status[409]` **Added**
18839+
* `open_router.vault.store_vault_secret()`: `error.status[409]` **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.3.57
39+
version: 1.3.58
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

β€Ž.speakeasy/out.openapi.yamlβ€Ž

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52682,6 +52682,19 @@ paths:
5268252682
schema:
5268352683
$ref: '#/components/schemas/RequestTimeoutResponse'
5268452684
description: 'Request Timeout - The route deadline passed before the request completed, or the request body stopped arriving.'
52685+
'409':
52686+
content:
52687+
application/json:
52688+
examples:
52689+
conflict:
52690+
summary: 'Conflict'
52691+
value:
52692+
error:
52693+
code: 409
52694+
message: 'Vault request conflicts with existing secrets'
52695+
schema:
52696+
$ref: '#/components/schemas/ConflictResponse'
52697+
description: 'Conflict - The secret belongs to a connection (for example an MCP or GitHub connection) and can only be replaced or removed by reconnecting or disconnecting it.'
5268552698
'429':
5268652699
content:
5268752700
application/json:
@@ -52893,15 +52906,15 @@ paths:
5289352906
content:
5289452907
application/json:
5289552908
examples:
52896-
transfer-in-progress:
52897-
summary: 'Transfer in progress'
52909+
conflict:
52910+
summary: 'Conflict'
5289852911
value:
5289952912
error:
5290052913
code: 409
5290152914
message: 'Vault request conflicts with existing secrets'
5290252915
schema:
5290352916
$ref: '#/components/schemas/ConflictResponse'
52904-
description: 'Conflict - The intern is being transferred to another workspace and its vault has not moved yet. Retry once the transfer finishes.'
52917+
description: 'Conflict - The secret belongs to a connection (for example an MCP or GitHub connection) and can only be replaced or removed by reconnecting or disconnecting it. Also returned while the intern is being transferred to another workspace and its vault has not moved yet.'
5290552918
'413':
5290652919
content:
5290752920
application/json:
@@ -53127,7 +53140,7 @@ paths:
5312753140
message: 'Vault request conflicts with existing secrets'
5312853141
schema:
5312953142
$ref: '#/components/schemas/ConflictResponse'
53130-
description: 'Conflict - A named workspace secret has no hosts yet, or the intern is being transferred to another workspace. Nothing is copied.'
53143+
description: 'Conflict - A named workspace secret has no hosts yet, the intern already holds a secret of that name that belongs to a connection, or the intern is being transferred to another workspace. Nothing is copied.'
5313153144
'413':
5313253145
content:
5313353146
application/json:
@@ -53533,6 +53546,19 @@ paths:
5353353546
schema:
5353453547
$ref: '#/components/schemas/RequestTimeoutResponse'
5353553548
description: 'Request Timeout - The route deadline passed before the request completed, or the request body stopped arriving.'
53549+
'409':
53550+
content:
53551+
application/json:
53552+
examples:
53553+
conflict:
53554+
summary: 'Conflict'
53555+
value:
53556+
error:
53557+
code: 409
53558+
message: 'Vault request conflicts with existing secrets'
53559+
schema:
53560+
$ref: '#/components/schemas/ConflictResponse'
53561+
description: 'Conflict - The secret belongs to a connection (for example an MCP or GitHub connection) and can only be replaced or removed by reconnecting or disconnecting it.'
5353653562
'429':
5353753563
content:
5353853564
application/json:
@@ -53731,6 +53757,19 @@ paths:
5373153757
schema:
5373253758
$ref: '#/components/schemas/RequestTimeoutResponse'
5373353759
description: 'Request Timeout - The route deadline passed before the request completed, or the request body stopped arriving.'
53760+
'409':
53761+
content:
53762+
application/json:
53763+
examples:
53764+
conflict:
53765+
summary: 'Conflict'
53766+
value:
53767+
error:
53768+
code: 409
53769+
message: 'Vault request conflicts with existing secrets'
53770+
schema:
53771+
$ref: '#/components/schemas/ConflictResponse'
53772+
description: 'Conflict - The secret belongs to a connection (for example an MCP or GitHub connection) and can only be replaced or removed by reconnecting or disconnecting it.'
5373453773
'413':
5373553774
content:
5373653775
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:5139bdd0598c536fc25ef5ad8702b412a2c7da5623e092b8bbc46df2e89bc4f6
6-
sourceBlobDigest: sha256:d02958640cd56cfc0519ba9cfb5d928d43aaad7587f0b060db29acda8b648f1e
5+
sourceRevisionDigest: sha256:6a8e2a83988a144c76a37022b284c3231f2c21214f5eedf21acc119f3811331f
6+
sourceBlobDigest: sha256:9e11fb751bf0341d329ac70e5b91bf099fe7a5081c596c5769be8427d748efe0
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:5139bdd0598c536fc25ef5ad8702b412a2c7da5623e092b8bbc46df2e89bc4f6
15-
sourceBlobDigest: sha256:d02958640cd56cfc0519ba9cfb5d928d43aaad7587f0b060db29acda8b648f1e
14+
sourceRevisionDigest: sha256:6a8e2a83988a144c76a37022b284c3231f2c21214f5eedf21acc119f3811331f
15+
sourceBlobDigest: sha256:9e11fb751bf0341d329ac70e5b91bf099fe7a5081c596c5769be8427d748efe0
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:cc360e09e1933d1206b8a8233d6540f41b9875dd58d9247f160102001752321d
17+
codeSamplesRevisionDigest: sha256:2ab616a7ffef4556033bee8f360e5279bad1a8b8733cd81659320213ffcf3379
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
@@ -3339,4 +3339,14 @@ Based on:
33393339
### Generated
33403340
- [python v1.3.57] .
33413341
### Releases
3342-
- [PyPI v1.3.57] https://pypi.org/project/openrouter/1.3.57 - .
3342+
- [PyPI v1.3.57] https://pypi.org/project/openrouter/1.3.57 - .
3343+
3344+
## 2026-10-15 18:35:35
3345+
### Changes
3346+
Based on:
3347+
- OpenAPI Doc
3348+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
3349+
### Generated
3350+
- [python v1.3.58] .
3351+
### Releases
3352+
- [PyPI v1.3.58] https://pypi.org/project/openrouter/1.3.58 - .

β€Ždocs/sdks/vault/README.mdxβ€Ž

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ with OpenRouter(
176176
| errors.ForbiddenResponseError | 403 | application/json |
177177
| errors.NotFoundResponseError | 404 | application/json |
178178
| errors.RequestTimeoutResponseError | 408 | application/json |
179+
| errors.ConflictResponseError | 409 | application/json |
179180
| errors.TooManyRequestsResponseError | 429 | application/json |
180181
| errors.InternalServerResponseError | 500 | application/json |
181182
| errors.BadGatewayResponseError | 502 | application/json |
@@ -216,6 +217,28 @@ from openrouter import OpenRouter
216217
import os
217218

218219

220+
with OpenRouter(
221+
http_referer="<value>",
222+
x_open_router_title="<value>",
223+
x_open_router_categories="<value>",
224+
api_key=os.getenv("OPENROUTER_API_KEY", ""),
225+
) as open_router:
226+
227+
res = open_router.vault.store_intern_vault_secret(intern_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", name="github_token", hosts=[
228+
"api.github.com",
229+
], value="ghp_exampleTokenValue")
230+
231+
# Handle response
232+
print(res)
233+
234+
```
235+
### Example Usage: conflict
236+
237+
```python
238+
from openrouter import OpenRouter
239+
import os
240+
241+
219242
with OpenRouter(
220243
http_referer="<value>",
221244
x_open_router_title="<value>",
@@ -1064,6 +1087,7 @@ with OpenRouter(
10641087
| errors.ForbiddenResponseError | 403 | application/json |
10651088
| errors.NotFoundResponseError | 404 | application/json |
10661089
| errors.RequestTimeoutResponseError | 408 | application/json |
1090+
| errors.ConflictResponseError | 409 | application/json |
10671091
| errors.TooManyRequestsResponseError | 429 | application/json |
10681092
| errors.InternalServerResponseError | 500 | application/json |
10691093
| errors.BadGatewayResponseError | 502 | application/json |
@@ -1104,6 +1128,28 @@ from openrouter import OpenRouter
11041128
import os
11051129

11061130

1131+
with OpenRouter(
1132+
http_referer="<value>",
1133+
x_open_router_title="<value>",
1134+
x_open_router_categories="<value>",
1135+
api_key=os.getenv("OPENROUTER_API_KEY", ""),
1136+
) as open_router:
1137+
1138+
res = open_router.vault.store_vault_secret(name="github_token", hosts=[
1139+
"api.github.com",
1140+
], value="ghp_exampleTokenValue")
1141+
1142+
# Handle response
1143+
print(res)
1144+
1145+
```
1146+
### Example Usage: conflict
1147+
1148+
```python
1149+
from openrouter import OpenRouter
1150+
import os
1151+
1152+
11071153
with OpenRouter(
11081154
http_referer="<value>",
11091155
x_open_router_title="<value>",
@@ -1431,6 +1477,7 @@ with OpenRouter(
14311477
| errors.ForbiddenResponseError | 403 | application/json |
14321478
| errors.NotFoundResponseError | 404 | application/json |
14331479
| errors.RequestTimeoutResponseError | 408 | application/json |
1480+
| errors.ConflictResponseError | 409 | application/json |
14341481
| errors.PayloadTooLargeResponseError | 413 | application/json |
14351482
| errors.TooManyRequestsResponseError | 429 | application/json |
14361483
| errors.InternalServerResponseError | 500 | application/json |

β€Žpyproject.tomlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "openrouter"
3-
version = "1.3.57"
3+
version = "1.3.58"
44
description = "Official Python Client SDK for OpenRouter."
55
authors = [{ name = "OpenRouter" },]
66
readme = "README-PYPI.md"

β€Žsrc/openrouter/_version.pyβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import importlib.metadata
44

55
__title__: str = "openrouter"
6-
__version__: str = "1.3.57"
6+
__version__: str = "1.3.58"
77
__openapi_doc_version__: str = "1.0.0"
88
__gen_version__: str = "2.914.0"
9-
__user_agent__: str = "speakeasy-sdk/python 1.3.57 2.914.0 1.0.0 openrouter"
9+
__user_agent__: str = "speakeasy-sdk/python 1.3.58 2.914.0 1.0.0 openrouter"
1010

1111
try:
1212
if __package__ is not None:

0 commit comments

Comments
Β (0)