Skip to content

Commit 87b2917

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

8 files changed

Lines changed: 321 additions & 24 deletions

File tree

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

Lines changed: 10 additions & 13 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: 0339725e33577ba5dda2b1a3dd2a4178
4+
docChecksum: 3fbca70c0595aef917597974a6ec3112
55
docVersion: 1.0.0
66
speakeasyVersion: 1.803.2
77
generationVersion: 2.950.13
8-
releaseVersion: 1.3.147
9-
configChecksum: 2c2dbced52857c6b47b66ca5c3c6c1a0
8+
releaseVersion: 1.3.148
9+
configChecksum: 99007b4804f4469f75075fda740467bc
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: 487a13b0-4500-4c73-b4d5-d39079308282
15-
pristine_commit_hash: bcf674cee9ed7ff479b8b3058ebe805d3978a721
16-
pristine_tree_hash: 0a8e5279cc4d5375ddc19c861de5083eb925ab28
14+
generation_id: 92ea4476-31b6-48b3-aa1f-f4c838a4a408
15+
pristine_commit_hash: 3529b86bd2b18aacc97ce7a86c2ec2da9e3ef8c8
16+
pristine_tree_hash: a8ab00d9265398e7f979982dec50d2a7b25d8397
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:0d3c5de90e8a1c6d93eaac9d2cb2d2f80b1be723
11592-
pristine_git_object: 86ea998bbf21a766bed00acc75b901a8f9256e39
11591+
last_write_checksum: sha1:34a5fece6e070a9f1cb88d6609536f44c9cda8c4
11592+
pristine_git_object: 5db78718f185e045b426cfb2282971e8a90b365f
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:64d92b84ee5d26fc768eb32caf32ffc3a74d23b1
11620-
pristine_git_object: 66dca2e10eec2437ae159c2bc111d44e67bd5941
11619+
last_write_checksum: sha1:31c214c179c96691530daf05a143aee66d67d942
11620+
pristine_git_object: 6d36583ddb0eb3ad4437931894a21097c3a3376c
1162111621
src/openrouter/alpha.py:
1162211622
id: 306c4d93308d
1162311623
last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766
@@ -21573,6 +21573,3 @@ examples:
2157321573
"500":
2157421574
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
2157521575
examplesVersion: 1.0.2
21576-
releaseNotes: |
21577-
## Python SDK Changes:
21578-
* `open_router.o_auth.create_auth_code()`: `error.status[503]` **Added**

β€Ž.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.147
40+
version: 1.3.148
4141
additionalDependencies:
4242
dev:
4343
pytest: '>=8.3'

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

Lines changed: 290 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10504,6 +10504,15 @@ components:
1050410504
required:
1050510505
- 'data'
1050610506
type: 'object'
10507+
CreateCreditPurchaseRequest:
10508+
properties:
10509+
credit_amount_usd:
10510+
description: 'Credits to buy, in USD with at most two decimals. The platform fee is added on top and shown in the challenge and the receipt.'
10511+
example: '25.00'
10512+
type: 'string'
10513+
required:
10514+
- 'credit_amount_usd'
10515+
type: 'object'
1050710516
CreatedEvent:
1050810517
description: 'Event emitted when a response is created'
1050910518
example:
@@ -11390,6 +11399,53 @@ components:
1139011399
required:
1139111400
- 'data'
1139211401
type: 'object'
11402+
CreditPurchase:
11403+
properties:
11404+
created_at:
11405+
type: 'string'
11406+
credit_amount_usd:
11407+
type: 'string'
11408+
failure_reason:
11409+
type:
11410+
- 'string'
11411+
- 'null'
11412+
id:
11413+
description: 'Purchase id, the Stripe PaymentIntent that owns the deposit address.'
11414+
type: 'string'
11415+
network:
11416+
type: 'string'
11417+
platform_fee_usd:
11418+
type: 'string'
11419+
protocol:
11420+
type: 'string'
11421+
status:
11422+
enum:
11423+
- 'awaiting_payment'
11424+
- 'processing'
11425+
- 'credited'
11426+
- 'failed'
11427+
type: 'string'
11428+
x-speakeasy-unknown-values: allow
11429+
total_charged_usd:
11430+
type: 'string'
11431+
required:
11432+
- 'id'
11433+
- 'status'
11434+
- 'credit_amount_usd'
11435+
- 'platform_fee_usd'
11436+
- 'total_charged_usd'
11437+
- 'protocol'
11438+
- 'network'
11439+
- 'failure_reason'
11440+
- 'created_at'
11441+
type: 'object'
11442+
CreditPurchaseResponse:
11443+
properties:
11444+
data:
11445+
$ref: '#/components/schemas/CreditPurchase'
11446+
required:
11447+
- 'data'
11448+
type: 'object'
1139311449
CustomTool:
1139411450
description: 'Custom tool configuration'
1139511451
example:
@@ -43047,6 +43103,240 @@ paths:
4304743103
- $ref: "#/components/parameters/AppIdentifier"
4304843104
- $ref: "#/components/parameters/AppDisplayName"
4304943105
- $ref: "#/components/parameters/AppCategories"
43106+
/credits/purchases:
43107+
post:
43108+
description: 'Starts an agent credit purchase paid with a Machine Payments Protocol (MPP) credential on Tempo. The first call answers `402` with a `WWW-Authenticate: Payment ...` challenge; retry the same request, same `Idempotency-Key`, with the signed credential in `Payment-Authorization: Payment ...` (or in `Authorization: Payment ...` when the management key is sent as `X-Api-Key`). A paid request answers `202`: the transfer was broadcast and Stripe is still screening the payment, so credits arrive asynchronously. Poll the URL in the `Location` header, `GET /api/v1/credits/purchases/{id}`, until `status` is `credited` or `failed`.'
43109+
operationId: 'createCreditsPurchases'
43110+
parameters:
43111+
- description: 'Identifies the purchase. Send the same value on the unpaid request and on the paid retry; use a new value for a new purchase.'
43112+
in: 'header'
43113+
name: 'idempotency-key'
43114+
required: true
43115+
schema:
43116+
description: 'Identifies the purchase. Send the same value on the unpaid request and on the paid retry; use a new value for a new purchase.'
43117+
example: '6f1f7f0e-2b1a-4f57-9a43-3c1f6f3e8b0d'
43118+
maxLength: 255
43119+
minLength: 1
43120+
type: 'string'
43121+
requestBody:
43122+
content:
43123+
application/json:
43124+
schema:
43125+
$ref: '#/components/schemas/CreateCreditPurchaseRequest'
43126+
required: true
43127+
responses:
43128+
'202':
43129+
content:
43130+
application/json:
43131+
schema:
43132+
$ref: '#/components/schemas/CreditPurchaseResponse'
43133+
description: 'Payment accepted; credits are minted when the PaymentIntent succeeds.'
43134+
headers:
43135+
Location:
43136+
description: 'The purchase to poll: `GET /api/v1/credits/purchases/{id}`.'
43137+
required: true
43138+
schema:
43139+
description: 'The purchase to poll: `GET /api/v1/credits/purchases/{id}`.'
43140+
example: '/api/v1/credits/purchases/pi_3PqXyZ2eZvKYlo2C0abc1234'
43141+
type: 'string'
43142+
'400':
43143+
content:
43144+
application/json:
43145+
example:
43146+
error:
43147+
code: 400
43148+
message: 'Invalid request parameters'
43149+
schema:
43150+
$ref: '#/components/schemas/BadRequestResponse'
43151+
description: 'Bad Request - Invalid request parameters or malformed input'
43152+
'401':
43153+
content:
43154+
application/json:
43155+
example:
43156+
error:
43157+
code: 401
43158+
message: 'Missing Authentication header'
43159+
schema:
43160+
$ref: '#/components/schemas/UnauthorizedResponse'
43161+
description: 'Unauthorized - Authentication required or invalid credentials'
43162+
'402':
43163+
content:
43164+
application/json:
43165+
schema:
43166+
$ref: '#/components/schemas/CreditPurchaseResponse'
43167+
description: 'Payment required. An unpaid request carries the MPP challenge in `WWW-Authenticate`.'
43168+
'403':
43169+
content:
43170+
application/json:
43171+
example:
43172+
error:
43173+
code: 403
43174+
message: 'Only management keys can perform this operation'
43175+
schema:
43176+
$ref: '#/components/schemas/ForbiddenResponse'
43177+
description: 'Forbidden - Authentication successful but insufficient permissions'
43178+
'404':
43179+
content:
43180+
application/json:
43181+
example:
43182+
error:
43183+
code: 404
43184+
message: 'Resource not found'
43185+
schema:
43186+
$ref: '#/components/schemas/NotFoundResponse'
43187+
description: 'Not Found - Resource does not exist'
43188+
'409':
43189+
content:
43190+
application/json:
43191+
example:
43192+
error:
43193+
code: 409
43194+
message: 'Resource conflict. Please try again later.'
43195+
schema:
43196+
$ref: '#/components/schemas/ConflictResponse'
43197+
description: 'Conflict - Resource conflict or concurrent modification'
43198+
'429':
43199+
content:
43200+
application/json:
43201+
example:
43202+
error:
43203+
code: 429
43204+
message: 'Rate limit exceeded'
43205+
schema:
43206+
$ref: '#/components/schemas/TooManyRequestsResponse'
43207+
description: 'Too Many Requests - Rate limit exceeded'
43208+
'500':
43209+
content:
43210+
application/json:
43211+
example:
43212+
error:
43213+
code: 500
43214+
message: 'Internal Server Error'
43215+
schema:
43216+
$ref: '#/components/schemas/InternalServerResponse'
43217+
description: 'Internal Server Error - Unexpected server error'
43218+
'503':
43219+
content:
43220+
application/json:
43221+
example:
43222+
error:
43223+
code: 503
43224+
message: 'Service temporarily unavailable'
43225+
schema:
43226+
$ref: '#/components/schemas/ServiceUnavailableResponse'
43227+
description: 'Service Unavailable - Service temporarily unavailable'
43228+
security:
43229+
- bearerAuth: []
43230+
summary: 'Buy credits with a machine payment'
43231+
tags:
43232+
- 'Credits'
43233+
x-fern-ignore: true
43234+
x-hidden: true
43235+
x-speakeasy-ignore: true
43236+
parameters:
43237+
- $ref: "#/components/parameters/AppIdentifier"
43238+
- $ref: "#/components/parameters/AppDisplayName"
43239+
- $ref: "#/components/parameters/AppCategories"
43240+
/credits/purchases/{id}:
43241+
get:
43242+
description: 'Returns one agent credit purchase of the calling account, read from its Stripe PaymentIntent. Poll this after a `202` until `status` is `credited` or `failed`.'
43243+
operationId: 'listCreditsPurchases'
43244+
parameters:
43245+
- in: 'path'
43246+
name: 'id'
43247+
required: true
43248+
schema:
43249+
pattern: '^pi_[A-Za-z0-9]{1,64}$'
43250+
type: 'string'
43251+
responses:
43252+
'200':
43253+
content:
43254+
application/json:
43255+
schema:
43256+
$ref: '#/components/schemas/CreditPurchaseResponse'
43257+
description: 'The purchase.'
43258+
'400':
43259+
content:
43260+
application/json:
43261+
example:
43262+
error:
43263+
code: 400
43264+
message: 'Invalid request parameters'
43265+
schema:
43266+
$ref: '#/components/schemas/BadRequestResponse'
43267+
description: 'Bad Request - Invalid request parameters or malformed input'
43268+
'401':
43269+
content:
43270+
application/json:
43271+
example:
43272+
error:
43273+
code: 401
43274+
message: 'Missing Authentication header'
43275+
schema:
43276+
$ref: '#/components/schemas/UnauthorizedResponse'
43277+
description: 'Unauthorized - Authentication required or invalid credentials'
43278+
'403':
43279+
content:
43280+
application/json:
43281+
example:
43282+
error:
43283+
code: 403
43284+
message: 'Only management keys can perform this operation'
43285+
schema:
43286+
$ref: '#/components/schemas/ForbiddenResponse'
43287+
description: 'Forbidden - Authentication successful but insufficient permissions'
43288+
'404':
43289+
content:
43290+
application/json:
43291+
example:
43292+
error:
43293+
code: 404
43294+
message: 'Resource not found'
43295+
schema:
43296+
$ref: '#/components/schemas/NotFoundResponse'
43297+
description: 'Not Found - Resource does not exist'
43298+
'429':
43299+
content:
43300+
application/json:
43301+
example:
43302+
error:
43303+
code: 429
43304+
message: 'Rate limit exceeded'
43305+
schema:
43306+
$ref: '#/components/schemas/TooManyRequestsResponse'
43307+
description: 'Too Many Requests - Rate limit exceeded'
43308+
'500':
43309+
content:
43310+
application/json:
43311+
example:
43312+
error:
43313+
code: 500
43314+
message: 'Internal Server Error'
43315+
schema:
43316+
$ref: '#/components/schemas/InternalServerResponse'
43317+
description: 'Internal Server Error - Unexpected server error'
43318+
'503':
43319+
content:
43320+
application/json:
43321+
example:
43322+
error:
43323+
code: 503
43324+
message: 'Service temporarily unavailable'
43325+
schema:
43326+
$ref: '#/components/schemas/ServiceUnavailableResponse'
43327+
description: 'Service Unavailable - Service temporarily unavailable'
43328+
security:
43329+
- bearerAuth: []
43330+
summary: 'Get a credit purchase'
43331+
tags:
43332+
- 'Credits'
43333+
x-fern-ignore: true
43334+
x-hidden: true
43335+
x-speakeasy-ignore: true
43336+
parameters:
43337+
- $ref: "#/components/parameters/AppIdentifier"
43338+
- $ref: "#/components/parameters/AppDisplayName"
43339+
- $ref: "#/components/parameters/AppCategories"
4305043340
/datasets/app-rankings:
4305143341
get:
4305243342
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:f056f5433e4e2c2f8714fa931873e4ce4f5939ab31127837779c634a0e0b06b5
6-
sourceBlobDigest: sha256:5f9da02b3302611755c0a6fbce04ecb311710a9d3bed85963140baefd11a181f
5+
sourceRevisionDigest: sha256:883f9437ba9d1be72040901a0f9592a9deb20a846559ce499bb0a1a51d2ca033
6+
sourceBlobDigest: sha256:0c24a116c8ae0e0624611b7746f4e69de4aa0b91003a7ee90ac8c45b5bbce363
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:f056f5433e4e2c2f8714fa931873e4ce4f5939ab31127837779c634a0e0b06b5
15-
sourceBlobDigest: sha256:5f9da02b3302611755c0a6fbce04ecb311710a9d3bed85963140baefd11a181f
14+
sourceRevisionDigest: sha256:883f9437ba9d1be72040901a0f9592a9deb20a846559ce499bb0a1a51d2ca033
15+
sourceBlobDigest: sha256:0c24a116c8ae0e0624611b7746f4e69de4aa0b91003a7ee90ac8c45b5bbce363
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:301a42c3b95d1001fdfe168603d0c3521b3fe1d72d7a82c55fc79e7a1fd8fea9
17+
codeSamplesRevisionDigest: sha256:66be0450009b7620874e6cf742a6ab4bbf298e5ccb0c3fe9097ac4962155d0f5
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: 1.803.2

0 commit comments

Comments
Β (0)