Skip to content

Commit 4a28cc2

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

17 files changed

Lines changed: 730 additions & 30 deletions

‎.speakeasy/gen.lock‎

Lines changed: 53 additions & 19 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: d2b87b75740c953a8d17ca0730888708
4+
docChecksum: df3ca46aca5d14666fd33de83747f801
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.2.23
9-
configChecksum: cf04b07f1113c9a5bdb836d9750c6595
8+
releaseVersion: 1.2.24
9+
configChecksum: d02772c9403da27f5eb41cff25d529b1
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: 0ce8b7d7-40a6-4545-8c99-e46d21cddf64
15-
pristine_commit_hash: f8b73026182269af46b0f4ea8eb9bce793b0deb8
16-
pristine_tree_hash: 713fb275f7f68923b8b4a91d5655c233e3ab64b1
14+
generation_id: 54a3574d-1558-40f7-874c-16f1ae802ac5
15+
pristine_commit_hash: 4789f649ebdd3f148d33513703a94b992d93c522
16+
pristine_tree_hash: 862a783b0199eeb5d4508209f14851bb4e81dc28
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -3105,6 +3105,10 @@ trackedFiles:
31053105
id: b314b250af70
31063106
last_write_checksum: sha1:22c9aaa210f59e0d4845a03a268b6ba879fb4132
31073107
pristine_git_object: 4a98d72416014765c3e6b38b7b5eae9cbc8e2f34
3108+
docs/components/interndaemonaccess.mdx:
3109+
id: ba56f69a1513
3110+
last_write_checksum: sha1:52df2833e8e8483fa67bbc680d74503dd622c7f6
3111+
pristine_git_object: 7a564fb428ba9d8b1fb680cec407748a964e4be7
31083112
docs/components/interninvokeacceptedresponse.mdx:
31093113
id: fabf6978427d
31103114
last_write_checksum: sha1:2a29dff72ed9ef5438d4269be8b2c0ad2cb21569
@@ -7213,6 +7217,14 @@ trackedFiles:
72137217
id: 1e6b86bd352e
72147218
last_write_checksum: sha1:61e6cae3e157e329be3ea0f60ed28408f55b58da
72157219
pristine_git_object: 15bebf62bb77b99ccfbb68dd33a2b38d42d12b85
7220+
docs/operations/getinterndaemonaccessglobals.mdx:
7221+
id: 9c1de03162b5
7222+
last_write_checksum: sha1:dcb2e8aa6726ec42bd508afca59f51c599b4f258
7223+
pristine_git_object: 95abed7a19872a8a8ea348ff40f2dca73ea5275a
7224+
docs/operations/getinterndaemonaccessrequest.mdx:
7225+
id: d3656df0343d
7226+
last_write_checksum: sha1:14d4198519fb1fe68d97ef6aa980714875bc051e
7227+
pristine_git_object: e2035a9f0347f8403d43f00136d20fc0e4641887
72167228
docs/operations/getinternglobals.mdx:
72177229
id: 9bfe3e0e8a6f
72187230
last_write_checksum: sha1:7f2d43fe0f91149b2982edebe432faed9bfb3bea
@@ -8175,8 +8187,8 @@ trackedFiles:
81758187
pristine_git_object: 08c687694efbecf50406ae7929029d39fb121295
81768188
docs/sdks/interns/README.mdx:
81778189
id: 2f8a053ffe78
8178-
last_write_checksum: sha1:fd91c1ccaefb504e09d5f4d808a147715ecefb68
8179-
pristine_git_object: d1c3962d632fb36093e0128ccf9216b82e366c2d
8190+
last_write_checksum: sha1:9f9c8e52546e85f026cdc14bc8b277c1058c53c1
8191+
pristine_git_object: 19b0c71ab1981ba9e05811c239ede1a2ff09e952
81808192
docs/sdks/models/README.mdx:
81818193
id: 58f1ca464e0b
81828194
last_write_checksum: sha1:093dd30ebdd18b9763a6956915e0dcae4ae7d5e5
@@ -8243,8 +8255,8 @@ trackedFiles:
82438255
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
82448256
pyproject.toml:
82458257
id: 5d07e7d72637
8246-
last_write_checksum: sha1:9e0f472074f415d99a56fa3306425e51f8af90b5
8247-
pristine_git_object: 61bf730ab52f84fd8420a110eba48cd1755bcdf4
8258+
last_write_checksum: sha1:71fd2dfd99167132206446e21915b3a14726faad
8259+
pristine_git_object: 9d14083354029769ccc4ab1da4adf94fd6dfc1eb
82488260
scripts/prepare_readme.py:
82498261
id: e0c5957a6035
82508262
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -8271,8 +8283,8 @@ trackedFiles:
82718283
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
82728284
src/openrouter/_version.py:
82738285
id: d8d15ad6c586
8274-
last_write_checksum: sha1:6847b2055d38d2d2edf8a66e79761da1d616d0d6
8275-
pristine_git_object: c626fe71fb4be5da8602ef0383c70340821d974d
8286+
last_write_checksum: sha1:882a6f542393d7fd9dc4943bf2f7a5372a57c831
8287+
pristine_git_object: d7a17ff85772ba6c4ceff97c65e0ea6eab17e1d3
82768288
src/openrouter/alpha.py:
82778289
id: 306c4d93308d
82788290
last_write_checksum: sha1:30f55a360f41376ab194b9ea725fe4e001a5ae1a
@@ -8315,8 +8327,8 @@ trackedFiles:
83158327
pristine_git_object: ad3d247954547814054c01989a2dff3d12b3e4e1
83168328
src/openrouter/components/__init__.py:
83178329
id: 81754e97b3f4
8318-
last_write_checksum: sha1:289921f26fee4755c45b555fe37997efe0bd8337
8319-
pristine_git_object: 3e788f40a00a2aaa8d49c0121034565046799ac8
8330+
last_write_checksum: sha1:286c1a4c6b8272e410a0da94c48d29719f989186
8331+
pristine_git_object: 7300d1852826e3c47d7a155151cc5a473e14f56e
83208332
src/openrouter/components/aabenchmarkentry.py:
83218333
id: e2e0f0b48c82
83228334
last_write_checksum: sha1:fab4d9a24d2cea937bb749d46c5f83941e99d65c
@@ -9693,6 +9705,10 @@ trackedFiles:
96939705
id: 97fab5db9a7e
96949706
last_write_checksum: sha1:d7d2493ea2f82a9c1fa1f90fae5c5365e589345f
96959707
pristine_git_object: a87aacc5a001412a5789caace557974ccf931928
9708+
src/openrouter/components/interndaemonaccess.py:
9709+
id: 023a6ecdcd2d
9710+
last_write_checksum: sha1:4098660a0247c95f4bc53cf5b40b4a56747d69b3
9711+
pristine_git_object: 3fc691dce945dcbd24ce1a3416c5706453923afa
96969712
src/openrouter/components/interninvokeacceptedresponse.py:
96979713
id: b33d41d36bed
96989714
last_write_checksum: sha1:0237a0fa91192a250e4162f4d6c0a764a87a9fbe
@@ -11239,8 +11255,8 @@ trackedFiles:
1123911255
pristine_git_object: 50643a126668498dd668c7cceb9f78c03d413d32
1124011256
src/openrouter/interns.py:
1124111257
id: d18df05c5c6d
11242-
last_write_checksum: sha1:db884b41dd732eaccaf0d979fc7a0fbb68afd115
11243-
pristine_git_object: 2cad9a030e7346e787a30d2dd1a49290f052a0f2
11258+
last_write_checksum: sha1:cc2bfdb1b5aca9de1861b585048597c10dc05bdb
11259+
pristine_git_object: 275720d840f8f9057d67f4322b10cab58c46bee7
1124411260
src/openrouter/models/__init__.py:
1124511261
id: ed73b93abb3f
1124611262
last_write_checksum: sha1:932a790ae66ccd7d7022b39c659bcf72a664ebea
@@ -11267,8 +11283,8 @@ trackedFiles:
1126711283
pristine_git_object: 8680343bbc90107ae6413bd5686012b1fd75d665
1126811284
src/openrouter/operations/__init__.py:
1126911285
id: 9afcea1e7161
11270-
last_write_checksum: sha1:f27e9cc96299cea25ce64c878423d7f809c66e6a
11271-
pristine_git_object: 4aad70a40deb2081b4877d222c7ba32cf650f24a
11286+
last_write_checksum: sha1:28ec50ab4815a2064bf6c8c3916d479984fc2120
11287+
pristine_git_object: f85216960d4161c6e49e2d3cdf4d9a39fa12d59a
1127211288
src/openrouter/operations/bulkaddworkspacemembers.py:
1127311289
id: e0ed56117619
1127411290
last_write_checksum: sha1:5c44eb0d40fdece3ac084615f6c6082be4cf1d5a
@@ -11493,6 +11509,10 @@ trackedFiles:
1149311509
id: 9169bcde1477
1149411510
last_write_checksum: sha1:b0efb3c2205f580b8bad328ccca792dfa8eb18aa
1149511511
pristine_git_object: 137abb8f6a48c3a7a0463370d6a254d6af406cad
11512+
src/openrouter/operations/getinterndaemonaccess.py:
11513+
id: 30c4fbbddd94
11514+
last_write_checksum: sha1:c9a4991c38d8588d2f272710f24fa430975d4fab
11515+
pristine_git_object: 6632fbbbe4e59918369b70cf2a365880f2d315d6
1149611516
src/openrouter/operations/getkey.py:
1149711517
id: d9769da90865
1149811518
last_write_checksum: sha1:0a73a314d782011063d9879302dbb7b829d759e3
@@ -15129,5 +15149,19 @@ examples:
1512915149
application/json: {"error": {"code": 409, "message": "That question is no longer waiting for an answer."}}
1513015150
"500":
1513115151
application/json: {"error": {"code": 409, "message": "That question is no longer waiting for an answer."}}
15152+
getInternDaemonAccess:
15153+
speakeasy-default-get-intern-daemon-access:
15154+
parameters:
15155+
path:
15156+
internId: "7c9e6679-7425-40de-944b-e07fc1f90ae7"
15157+
responses:
15158+
"200":
15159+
application/json: {"origin": "https://research-assistant-7c9e6679.or.bot", "token": "daemon_token"}
15160+
"401":
15161+
application/json: {"error": {"code": 404, "message": "Intern not found"}}
15162+
"500":
15163+
application/json: {"error": {"code": 404, "message": "Intern not found"}}
1513215164
examplesVersion: 1.0.2
15133-
releaseNotes: "## Python SDK Changes:\n* `open_router.alpha.decisions.create()`: \n * `request.provider.options` **Added**\n* `open_router.chat.send()`: \n * `request.provider.options` **Added**\n* `open_router.embeddings.generate()`: \n * `request.provider.options` **Added**\n* `open_router.presets.create_presets_chat_completions()`: \n * `request.provider.options` **Added**\n* `open_router.presets.create_presets_messages()`: \n * `request.provider.options` **Added**\n* `open_router.presets.create_presets_responses()`: \n * `request.provider.options` **Added**\n* `open_router.rerank.rerank()`: \n * `request.provider.options` **Added**\n* `open_router.responses.send()`: \n * `request.provider.options` **Added**\n* `open_router.beta.responses.send()`: \n * `request.provider.options` **Added**\n* `open_router.system_one.create()`: \n * `request.provider.options` **Added**\n"
15165+
releaseNotes: |
15166+
## Python SDK Changes:
15167+
* `open_router.interns.get_intern_daemon_access()`: **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.2.23
39+
version: 1.2.24
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

‎.speakeasy/out.openapi.yaml‎

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13228,6 +13228,22 @@ components:
1322813228
- 'content'
1322913229
- 'role'
1323013230
type: 'object'
13231+
InternDaemonAccess:
13232+
description: 'The intern daemon''s origin and the bearer `ori tui --host` sends to it as `ORI_DAEMON_TOKEN`.'
13233+
example:
13234+
origin: 'https://research-assistant-7c9e6679.or.bot'
13235+
token: 'daemon_token'
13236+
properties:
13237+
origin:
13238+
pattern: '^https?:\/\/([a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*)(?::(\d{1,5}))?$/iu'
13239+
type: 'string'
13240+
token:
13241+
pattern: '^[\w-]+$/u'
13242+
type: 'string'
13243+
required:
13244+
- 'origin'
13245+
- 'token'
13246+
type: 'object'
1323113247
InternInvokeAcceptedResponse:
1323213248
description: 'The intern admitted the prompt. The run continues on the intern.'
1323313249
example:
@@ -37788,6 +37804,121 @@ paths:
3778837804
- $ref: "#/components/parameters/AppIdentifier"
3778937805
- $ref: "#/components/parameters/AppDisplayName"
3779037806
- $ref: "#/components/parameters/AppCategories"
37807+
/interns/{internId}/daemon-access:
37808+
get:
37809+
description: 'Returns the origin and daemon token that attach `ori tui --host` to one visible, running intern. The token is a credential: the response is sent with `Cache-Control: no-store`, each reveal is logged by caller and intern, and a caller may make 10 reveals per minute. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.'
37810+
operationId: 'getInternDaemonAccess'
37811+
parameters:
37812+
- description: 'ID of an intern visible to the authenticated API key.'
37813+
in: 'path'
37814+
name: 'internId'
37815+
required: true
37816+
schema:
37817+
description: 'ID of an intern visible to the authenticated API key.'
37818+
example: '7c9e6679-7425-40de-944b-e07fc1f90ae7'
37819+
minLength: 1
37820+
type: 'string'
37821+
responses:
37822+
'200':
37823+
content:
37824+
application/json:
37825+
schema:
37826+
$ref: '#/components/schemas/InternDaemonAccess'
37827+
description: 'Daemon origin and token.'
37828+
'401':
37829+
content:
37830+
application/json:
37831+
example:
37832+
error:
37833+
code: 401
37834+
message: 'Invalid or missing API key'
37835+
schema:
37836+
$ref: '#/components/schemas/InternLifecycleError'
37837+
description: 'Missing, unknown or provisioning API key.'
37838+
'403':
37839+
content:
37840+
application/json:
37841+
example:
37842+
error:
37843+
code: 403
37844+
message: 'Forbidden'
37845+
schema:
37846+
$ref: '#/components/schemas/InternLifecycleError'
37847+
description: 'The key owner no longer has access, or the request used a regional hostname.'
37848+
'404':
37849+
content:
37850+
application/json:
37851+
example:
37852+
error:
37853+
code: 404
37854+
message: 'Intern not found'
37855+
metadata:
37856+
reason: 'not_found'
37857+
retryable: false
37858+
schema:
37859+
$ref: '#/components/schemas/InternLifecycleError'
37860+
description: 'The caller is outside the Intern API programme, the intern is hidden, or lifecycle writes are disabled.'
37861+
'408':
37862+
content:
37863+
application/json:
37864+
example:
37865+
error:
37866+
code: 408
37867+
message: 'Operation timed out after 10s. Please try again later.'
37868+
metadata:
37869+
reason: 'timeout'
37870+
retryable: true
37871+
schema:
37872+
$ref: '#/components/schemas/InternLifecycleError'
37873+
description: 'The request exceeded its route deadline. The deadline quoted in the message is the route''s own, so it differs between operations.'
37874+
'409':
37875+
content:
37876+
application/json:
37877+
example:
37878+
error:
37879+
code: 409
37880+
message: 'This intern is not running.'
37881+
metadata:
37882+
reason: 'intern_not_running'
37883+
retryable: false
37884+
schema:
37885+
$ref: '#/components/schemas/InternLifecycleError'
37886+
description: 'The intern cannot be attached to. `metadata.reason` is `intern_not_running`, `intern_unreachable` when it has no usable address yet, or `intern_needs_restart` when it was provisioned before daemon access was available.'
37887+
'429':
37888+
content:
37889+
application/json:
37890+
example:
37891+
error:
37892+
code: 429
37893+
message: 'Too many token reveals. Please wait a moment.'
37894+
metadata:
37895+
reason: 'rate_limited'
37896+
retryable: true
37897+
schema:
37898+
$ref: '#/components/schemas/InternLifecycleError'
37899+
description: 'The caller made more than 10 reveals in the last minute. Wait for `Retry-After` seconds.'
37900+
'500':
37901+
content:
37902+
application/json:
37903+
example:
37904+
error:
37905+
code: 500
37906+
message: 'The request could not be completed'
37907+
metadata:
37908+
reason: 'internal_error'
37909+
retryable: true
37910+
schema:
37911+
$ref: '#/components/schemas/InternLifecycleError'
37912+
description: 'The request could not be completed. `metadata.reason` says whether to try again: `internal_error` is a transient failure and carries `metadata.retryable: true`, so the same request may be sent again, while `configuration_error` carries `retryable: false` because the next attempt reads the same missing binding or unusable stored credential.'
37913+
security:
37914+
- apiKey: []
37915+
summary: 'Get an intern''s daemon access'
37916+
tags:
37917+
- 'Interns'
37918+
parameters:
37919+
- $ref: "#/components/parameters/AppIdentifier"
37920+
- $ref: "#/components/parameters/AppDisplayName"
37921+
- $ref: "#/components/parameters/AppCategories"
3779137922
/interns/{internId}/invoke:
3779237923
post:
3779337924
description: "Starts a run on one of your interns and answers `202` with the `session_id` as soon as the intern accepts it. The run keeps going on the intern after the response. Nothing about its progress comes back on this request; the intern reports through its own tools, such as Slack.\n\nSend the same `session_id` later to continue the conversation, for example to hand the intern a decision on work it started. If that session already has a run going, the prompt is delivered into it and the status is `steered`. A `session_id` is accepted only from the caller it was issued to, on the same intern; any other, including sessions started from Slack or the chat endpoint, is refused with `404`.\n\nRuns started here self-drive: the intern consents to its own tool approvals, and a question it asks is answered by its own fallback. A run ends when the intern finishes it or after its execution deadline (1 hour by default).\n\nAvailable to interns programme members. Callers outside the programme receive `404` for every path under `/api/v1/interns`."

‎.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:7bfd9776c2b453f33856c928176266c2fd942f4e3ffe3713b4d961cf98081908
6-
sourceBlobDigest: sha256:ff57d6a05c40f98ea95dbae53ed8a31c4b7c35471b19fca8099220909e837776
5+
sourceRevisionDigest: sha256:02e1b7dd73a10f12b18a7600dc7a48ffdc3f4fcf79945fb84cf82561b114f3fa
6+
sourceBlobDigest: sha256:0843485e905beb46e95e5c85e6181dd887ffe03c3e90ae46b2e8c2960413b4ff
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:7bfd9776c2b453f33856c928176266c2fd942f4e3ffe3713b4d961cf98081908
15-
sourceBlobDigest: sha256:ff57d6a05c40f98ea95dbae53ed8a31c4b7c35471b19fca8099220909e837776
14+
sourceRevisionDigest: sha256:02e1b7dd73a10f12b18a7600dc7a48ffdc3f4fcf79945fb84cf82561b114f3fa
15+
sourceBlobDigest: sha256:0843485e905beb46e95e5c85e6181dd887ffe03c3e90ae46b2e8c2960413b4ff
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:62f17d989e71d95e6e3ab18552f0dfe8006c837eb98fac27d5cc9b02760ecde9
17+
codeSamplesRevisionDigest: sha256:dca481e6032b170115375eac63b653a98f2e8bf08ccf70be38125d31cf96c0d8
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
@@ -2639,4 +2639,14 @@ Based on:
26392639
### Generated
26402640
- [python v1.2.23] .
26412641
### Releases
2642-
- [PyPI v1.2.23] https://pypi.org/project/openrouter/1.2.23 - .
2642+
- [PyPI v1.2.23] https://pypi.org/project/openrouter/1.2.23 - .
2643+
2644+
## 2026-09-24 18:41:29
2645+
### Changes
2646+
Based on:
2647+
- OpenAPI Doc
2648+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
2649+
### Generated
2650+
- [python v1.2.24] .
2651+
### Releases
2652+
- [PyPI v1.2.24] https://pypi.org/project/openrouter/1.2.24 - .
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: "InternDaemonAccess"
3+
---
4+
5+
The intern daemon's origin and the bearer `ori tui --host` sends to it as `ORI_DAEMON_TOKEN`.
6+
7+
8+
## Fields
9+
10+
| Field | Type | Required | Description |
11+
| ------------------ | ------------------ | ------------------ | ------------------ |
12+
| `origin` | *str* | :heavy_check_mark: | N/A |
13+
| `token` | *str* | :heavy_check_mark: | N/A |

0 commit comments

Comments
 (0)