Skip to content

Commit 3f0d3fd

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

8 files changed

Lines changed: 115 additions & 24 deletions

File tree

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

Lines changed: 10 additions & 10 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: 541085adee750bef3663dbfd9f464246
4+
docChecksum: 1ab3a16b762d9a741b6d1ad32b6682e8
55
docVersion: 1.0.0
66
speakeasyVersion: 1.803.2
77
generationVersion: 2.950.13
8-
releaseVersion: 1.3.151
9-
configChecksum: e8e76391fb741205473048f98adee43f
8+
releaseVersion: 1.3.152
9+
configChecksum: ea0b6e7960e4c64393122e5362fd7bff
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: 0e1def7d-424c-4321-bd49-3b864b63c61c
15-
pristine_commit_hash: 83cc848fe60890a4db6993e376dff397ef187b70
16-
pristine_tree_hash: f8a95035cd67dfa4d5d1b3b6879f3eef260c4ae1
14+
generation_id: 50168646-339a-4d72-804b-c2c302f5dbae
15+
pristine_commit_hash: 82feeacf81761eaff4ef26734e45d2471d076b98
16+
pristine_tree_hash: 06ad8d0c64b19844697c980e63c73232bcc61e4e
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -11588,8 +11588,8 @@ trackedFiles:
1158811588
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
1158911589
pyproject.toml:
1159011590
id: 5d07e7d72637
11591-
last_write_checksum: sha1:20e93dea0dd6af262f2d07ce83c37bc4a947ea79
11592-
pristine_git_object: 66ec511d0b6891e61e26c8924e138a470c1e6fcb
11591+
last_write_checksum: sha1:4afc98e9320f6e56a3791700ba1006745a382bdf
11592+
pristine_git_object: 1aeabe8b3c07b065aba02be633367600fbf2b649
1159311593
scripts/prepare_readme.py:
1159411594
id: e0c5957a6035
1159511595
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -11616,8 +11616,8 @@ trackedFiles:
1161611616
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
1161711617
src/openrouter/_version.py:
1161811618
id: d8d15ad6c586
11619-
last_write_checksum: sha1:b2e0437610df25fa3278ee93c2acc09e01e569db
11620-
pristine_git_object: f1573e2f506f39ac7f6f6f65f18fe8834d475217
11619+
last_write_checksum: sha1:e5b3b376db6c15b973db6c029bd131d435a4d186
11620+
pristine_git_object: 69ff326d8f3d5bd0460315abdb6813c7379105bb
1162111621
src/openrouter/alpha.py:
1162211622
id: 306c4d93308d
1162311623
last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766

β€Ž.speakeasy/gen.yamlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ generation:
3737
documentation: mintlify
3838
preApplyUnionDiscriminators: true
3939
python:
40-
version: 1.3.151
40+
version: 1.3.152
4141
additionalDependencies:
4242
dev:
4343
pytest: '>=8.3'

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

Lines changed: 84 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11439,6 +11439,31 @@ components:
1143911439
- 'failure_reason'
1144011440
- 'created_at'
1144111441
type: 'object'
11442+
CreditPurchasePaymentRequired:
11443+
properties:
11444+
challengeId:
11445+
type: 'string'
11446+
detail:
11447+
type: 'string'
11448+
setup:
11449+
description: 'The agent setup guide, `GET /api/v1/credits/purchases/setup`.'
11450+
example: 'https://openrouter.ai/api/v1/credits/purchases/setup'
11451+
type: 'string'
11452+
status:
11453+
enum:
11454+
- 402
11455+
type: 'number'
11456+
title:
11457+
type: 'string'
11458+
type:
11459+
example: 'https://paymentauth.org/problems/payment-required'
11460+
type: 'string'
11461+
required:
11462+
- 'type'
11463+
- 'title'
11464+
- 'status'
11465+
- 'setup'
11466+
type: 'object'
1144211467
CreditPurchaseResponse:
1144311468
properties:
1144411469
data:
@@ -43164,10 +43189,24 @@ paths:
4316443189
description: 'Unauthorized - Authentication required or invalid credentials'
4316543190
'402':
4316643191
content:
43167-
application/json:
43192+
application/problem+json:
4316843193
schema:
43169-
$ref: '#/components/schemas/CreditPurchaseResponse'
43170-
description: 'Payment required. An unpaid request carries the MPP challenge in `WWW-Authenticate`.'
43194+
$ref: '#/components/schemas/CreditPurchasePaymentRequired'
43195+
description: 'Payment required. An unpaid request carries the MPP challenge in `WWW-Authenticate`, and a `Link: rel="help"` header plus a `setup` field pointing at the agent setup guide, `GET /api/v1/credits/purchases/setup`.'
43196+
headers:
43197+
Link:
43198+
description: 'The agent setup guide.'
43199+
required: true
43200+
schema:
43201+
description: 'The agent setup guide.'
43202+
example: '<https://openrouter.ai/api/v1/credits/purchases/setup>; rel="help"'
43203+
type: 'string'
43204+
WWW-Authenticate:
43205+
description: 'The MPP challenge: `Payment id="...", method="tempo", intent="charge", ...`.'
43206+
required: true
43207+
schema:
43208+
description: 'The MPP challenge: `Payment id="...", method="tempo", intent="charge", ...`.'
43209+
type: 'string'
4317143210
'403':
4317243211
content:
4317343212
application/json:
@@ -43340,6 +43379,48 @@ paths:
4334043379
- $ref: "#/components/parameters/AppIdentifier"
4334143380
- $ref: "#/components/parameters/AppDisplayName"
4334243381
- $ref: "#/components/parameters/AppCategories"
43382+
/credits/purchases/setup:
43383+
get:
43384+
operationId: 'listCreditsPurchasesSetup'
43385+
responses:
43386+
'200':
43387+
content:
43388+
text/markdown:
43389+
schema:
43390+
type: 'string'
43391+
description: 'Markdown document, readable without a key.'
43392+
security: []
43393+
summary: 'Agent setup guide for buying credits with a machine payment'
43394+
tags:
43395+
- 'Credits'
43396+
x-fern-ignore: true
43397+
x-hidden: true
43398+
x-speakeasy-ignore: true
43399+
parameters:
43400+
- $ref: "#/components/parameters/AppIdentifier"
43401+
- $ref: "#/components/parameters/AppDisplayName"
43402+
- $ref: "#/components/parameters/AppCategories"
43403+
/credits/purchases/SKILL.md:
43404+
get:
43405+
operationId: 'listCreditsPurchasesSKILL.md'
43406+
responses:
43407+
'200':
43408+
content:
43409+
text/markdown:
43410+
schema:
43411+
type: 'string'
43412+
description: 'Markdown document, readable without a key.'
43413+
security: []
43414+
summary: 'Agent skill for buying OpenRouter credits'
43415+
tags:
43416+
- 'Credits'
43417+
x-fern-ignore: true
43418+
x-hidden: true
43419+
x-speakeasy-ignore: true
43420+
parameters:
43421+
- $ref: "#/components/parameters/AppIdentifier"
43422+
- $ref: "#/components/parameters/AppDisplayName"
43423+
- $ref: "#/components/parameters/AppCategories"
4334343424
/datasets/app-rankings:
4334443425
get:
4334543426
description: "Returns the top public apps on OpenRouter ranked by token usage inside the requested\ndate window, matching the public apps marketplace on openrouter.ai/apps. Token totals\nare `prompt_tokens + completion_tokens`; hidden and private apps are excluded and\ntraffic from related app aliases is merged into the canonical visible app.\n\n`sort=popular` (default) ranks by total token volume inside the window.\n`sort=trending` ranks by absolute excess token growth: window volume minus the average\nvolume of the three equal-length periods immediately preceding the window. Apps with\nno excess growth are omitted, so `trending` may return fewer than `limit` rows.\n\nFilter with `category` (marketplace category group, e.g. `coding`) or `subcategory`\n(e.g. `cli-agent`). Ranks are re-numbered 1..N after filtering. Page with `offset` β€”\n`rank` stays absolute, so the first row of `offset=50` is `rank: 51`.\n\nAuthenticate with any valid OpenRouter API key (same key used for inference).\nRate-limited to 30 requests/minute per key and 500 requests/day per account.\n\nWhen republishing or quoting this dataset, OpenRouter must be cited as:\n\"Source: OpenRouter (openrouter.ai/apps), as of {as_of}.\"\n\nToken counts come from each upstream provider's own tokenizer, so a token attributed\nto one app is not directly comparable to a token attributed to another app whose\ntraffic flows through a different provider.\n\nLicensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/): reuse and republish with attribution to OpenRouter."

β€Ž.speakeasy/workflow.lockβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ speakeasyVersion: 1.803.2
22
sources:
33
OpenRouter API:
44
sourceNamespace: open-router-chat-completions-api
5-
sourceRevisionDigest: sha256:7af9b79db6a1add64dbba47371f82293272a5edea3f4a0f047d3a2d80eca8cf8
6-
sourceBlobDigest: sha256:8348aefff93bf01f971f500bd5e6b22fdcceb7e2750dafe33351a2d70fe855a6
5+
sourceRevisionDigest: sha256:b5a231ad35826273b4ce980acbde3282868a73dd73945e1356f9a63b47cf6868
6+
sourceBlobDigest: sha256:3db38b57c72bdae5563a9879a47ca79e32aa83d9facba67b5597acb2f75a2cab
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:7af9b79db6a1add64dbba47371f82293272a5edea3f4a0f047d3a2d80eca8cf8
15-
sourceBlobDigest: sha256:8348aefff93bf01f971f500bd5e6b22fdcceb7e2750dafe33351a2d70fe855a6
14+
sourceRevisionDigest: sha256:b5a231ad35826273b4ce980acbde3282868a73dd73945e1356f9a63b47cf6868
15+
sourceBlobDigest: sha256:3db38b57c72bdae5563a9879a47ca79e32aa83d9facba67b5597acb2f75a2cab
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:5b3e53bccaddfd2b5097b822367b08d59e78f181e854faa5fc51c4ad0fbb8b38
17+
codeSamplesRevisionDigest: sha256:2e8cc722fd588254665416cb8c55cfae3af9c1399396ef2986f664efc36ba9c2
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: 1.803.2

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4279,4 +4279,14 @@ Based on:
42794279
### Generated
42804280
- [python v1.3.151] .
42814281
### Releases
4282-
- [PyPI v1.3.151] https://pypi.org/project/openrouter/1.3.151 - .
4282+
- [PyPI v1.3.151] https://pypi.org/project/openrouter/1.3.151 - .
4283+
4284+
## 2026-11-10 20:59:42
4285+
### Changes
4286+
Based on:
4287+
- OpenAPI Doc
4288+
- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy
4289+
### Generated
4290+
- [python v1.3.152] .
4291+
### Releases
4292+
- [PyPI v1.3.152] https://pypi.org/project/openrouter/1.3.152 - .

β€Ž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.151"
3+
version = "1.3.152"
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.151"
6+
__version__: str = "1.3.152"
77
__openapi_doc_version__: str = "1.0.0"
88
__gen_version__: str = "2.950.13"
9-
__user_agent__: str = "speakeasy-sdk/python 1.3.151 2.950.13 1.0.0 openrouter"
9+
__user_agent__: str = "speakeasy-sdk/python 1.3.152 2.950.13 1.0.0 openrouter"
1010

1111
try:
1212
if __package__ is not None:

β€Žuv.lockβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)