Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 10 additions & 16 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: c48cf606-fb42-4a45-9c23-8f0555307828
management:
docChecksum: ead11b051c18143a784363a4a717c7b1
docChecksum: 9b1eaacc1871bd7b91f7dbd0b165094a
docVersion: 1.0.0
speakeasyVersion: 1.803.2
generationVersion: 2.950.13
releaseVersion: 1.3.192
configChecksum: 17c5c557633967b50b31eea2d529c969
releaseVersion: 1.3.193
configChecksum: d12f25ef12f72c8f2d1944d1713704a5
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
generation_id: 56b5e38b-fe7c-419c-890d-b59e2c9fef76
pristine_commit_hash: 008e6346fa3d33d765149fde12d2f7512e181d16
pristine_tree_hash: 6dffda3745f76e910e188bbc1bd059193c6f380c
generation_id: a79de1ea-e6b7-40f8-a2cf-ae7f35b1f451
pristine_commit_hash: 91628015c1be34b6bd47bd89953fa93ec49cb0c6
pristine_tree_hash: e8be533b3a8caa4aa328fd220bb5b731836341e7
features:
python:
acceptHeaders: 3.0.0
Expand Down Expand Up @@ -11696,8 +11696,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:e8efbc16e299586cb4aab6d1538689d0dfdf0dd8
pristine_git_object: 5ef9b9036f0f8c5809098b91e62cd184ea9c465b
last_write_checksum: sha1:4f442f636cb1a8c8d226dc8c2ca631057027bc11
pristine_git_object: ca7837e7452d7692a26517ea7edebf53433d898b
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
Expand All @@ -11724,8 +11724,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
last_write_checksum: sha1:31599a151d812c7c9a96890cf80683200443f68b
pristine_git_object: 1ffdf5e6ff880ab126e742878bd9cf3dba824e8d
last_write_checksum: sha1:c11fa4f89990eec4b3a0688e7a9d8404893ef46b
pristine_git_object: 0b62064995b1cc275cb895693cba709ba5e3f846
src/openrouter/alpha.py:
id: 306c4d93308d
last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766
Expand Down Expand Up @@ -21747,9 +21747,3 @@ examples:
"500":
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
examplesVersion: 1.0.2
releaseNotes: |
## Python SDK Changes:
* `open_router.scim.create()`: **Deprecated**
* `open_router.scim.delete()`: **Deprecated**
* `open_router.scim.update()`: **Deprecated**
* `open_router.scim.create_sync_job()`: **Deprecated**
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
version: 1.3.192
version: 1.3.193
additionalDependencies:
dev:
pytest: '>=8.3'
Expand Down
24 changes: 19 additions & 5 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43952,7 +43952,7 @@ paths:
x-hidden: true
x-speakeasy-ignore: true
post:
description: 'Starts an agent credit purchase paid with a Machine Payments Protocol (MPP) credential: USDC on Tempo, or a card when one is offered. The first call answers `402` with one `WWW-Authenticate: Payment ...` challenge per payment option; pay one of them and 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 or the card was charged, and the payment is still being confirmed, so credits arrive asynchronously. Poll the URL in the `Location` header, `GET /api/v1/credits/purchases/{id}`, until `status` is `credited` or `failed`.'
description: 'Starts an agent credit purchase paid with a Machine Payments Protocol (MPP) credential: Bridged USDC (USDC.e) or Open USD (OUSD) on Tempo, with USDC.e offered first, or a card when one is offered. Discover currencies in `x-payment-info.offers`; select a runtime challenge by its `request.currency` contract address, not a purchase-body field. Production currently refuses OUSD selections. The first call answers `402` with one `WWW-Authenticate: Payment ...` challenge per payment option; pay one of them and 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 or the card was charged, and the payment is still being confirmed, so credits arrive asynchronously. Poll the URL in the `Location` header, `GET /api/v1/credits/purchases/{id}`, until `status` is `credited` or `failed`.'
operationId: 'createCreditsPurchases'
parameters:
- 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.'
Expand Down Expand Up @@ -43987,10 +43987,10 @@ paths:
example: '/api/v1/credits/purchases/pi_3PqXyZ2eZvKYlo2C0abc1234'
type: 'string'
Payment-Receipt:
description: 'The payment reference, on the request that paid: the Tempo transaction hash for USDC, or the PaymentIntent ID for a card. Absent when an earlier request already paid this purchase.'
description: 'The payment reference, on the request that paid: the transaction hash for a Tempo payment, or the PaymentIntent ID for a card. Absent when an earlier request already paid this purchase.'
required: false
schema:
description: 'The payment reference, on the request that paid: the Tempo transaction hash for USDC, or the PaymentIntent ID for a card. Absent when an earlier request already paid this purchase.'
description: 'The payment reference, on the request that paid: the transaction hash for a Tempo payment, or the PaymentIntent ID for a card. Absent when an earlier request already paid this purchase.'
example: '0x8f3c2b1a9e7d6c5b4a39281706f5e4d3c2b1a09f8e7d6c5b4a39281706f5e4d3'
type: 'string'
'400':
Expand Down Expand Up @@ -44028,10 +44028,10 @@ paths:
example: '<https://openrouter.ai/api/v1/credits/purchases/setup>; rel="help"'
type: 'string'
WWW-Authenticate:
description: 'The MPP challenges, one per way to pay: `Payment id="...", method="tempo", intent="charge", ...` for USDC on Tempo and, when cards are offered, `Payment id="...", method="stripe", intent="charge", ...` for a card. Pay one of them.'
description: 'The MPP challenges, one per way to pay: `Payment id="...", method="tempo", intent="charge", ...` for the selected stablecoin on Tempo and, when cards are offered, `Payment id="...", method="stripe", intent="charge", ...` for a card. Pay one of them.'
required: true
schema:
description: 'The MPP challenges, one per way to pay: `Payment id="...", method="tempo", intent="charge", ...` for USDC on Tempo and, when cards are offered, `Payment id="...", method="stripe", intent="charge", ...` for a card. Pay one of them.'
description: 'The MPP challenges, one per way to pay: `Payment id="...", method="tempo", intent="charge", ...` for the selected stablecoin on Tempo and, when cards are offered, `Payment id="...", method="stripe", intent="charge", ...` for a card. Pay one of them.'
type: 'string'
'403':
content:
Expand Down Expand Up @@ -44104,6 +44104,20 @@ paths:
- 'Credits'
x-fern-ignore: true
x-hidden: true
x-payment-info:
offers:
- amount: null
currency: '0x20c000000000000000000000b9537d11c60e8b50'
intent: 'charge'
method: 'tempo'
- amount: null
currency: '0x20c0000000000000000000006a37DA5C996874BE'
intent: 'charge'
method: 'tempo'
- amount: null
currency: 'usd'
intent: 'charge'
method: 'stripe'
x-speakeasy-ignore: true
parameters:
- $ref: "#/components/parameters/AppIdentifier"
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.803.2
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:0019b75a637881369f36b45f666e0fc45a1e7f0ee9ecf23d552a4607c52805c9
sourceBlobDigest: sha256:bfe1f21785f5e82dac1a07e9cc63a088f7a6d38fa3b1d67810dcf0bc320f10e3
sourceRevisionDigest: sha256:f85fc2900ce989da5dfa7c02b5a1ea427a32bac5b21871a93caeecafd266aa54
sourceBlobDigest: sha256:b5435972d1e8941e0ee84fdc49dbf46f996f18d5444376a2e3bf47564514b852
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:0019b75a637881369f36b45f666e0fc45a1e7f0ee9ecf23d552a4607c52805c9
sourceBlobDigest: sha256:bfe1f21785f5e82dac1a07e9cc63a088f7a6d38fa3b1d67810dcf0bc320f10e3
sourceRevisionDigest: sha256:f85fc2900ce989da5dfa7c02b5a1ea427a32bac5b21871a93caeecafd266aa54
sourceBlobDigest: sha256:b5435972d1e8941e0ee84fdc49dbf46f996f18d5444376a2e3bf47564514b852
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:fcdb80bc7b3d3729505a4b54415d9eb3c2e34ac3d8689aebc29722571dab728e
codeSamplesRevisionDigest: sha256:ebfc1c6009f2fcd8e5354d9c19bdc073271432b1775a15e550114f7d5349a8bf
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.803.2
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4689,4 +4689,14 @@ Based on:
### Generated
- [python v1.3.192] .
### Releases
- [PyPI v1.3.192] https://pypi.org/project/openrouter/1.3.192 - .
- [PyPI v1.3.192] https://pypi.org/project/openrouter/1.3.192 - .

## 2026-11-19 09:18:56
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.3.193] .
### Releases
- [PyPI v1.3.193] https://pypi.org/project/openrouter/1.3.193 - .
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "openrouter"
version = "1.3.192"
version = "1.3.193"
description = "Official Python Client SDK for OpenRouter."
authors = [{ name = "OpenRouter" },]
readme = "README-PYPI.md"
Expand Down
4 changes: 2 additions & 2 deletions src/openrouter/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import importlib.metadata

__title__: str = "openrouter"
__version__: str = "1.3.192"
__version__: str = "1.3.193"
__openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.950.13"
__user_agent__: str = "speakeasy-sdk/python 1.3.192 2.950.13 1.0.0 openrouter"
__user_agent__: str = "speakeasy-sdk/python 1.3.193 2.950.13 1.0.0 openrouter"

try:
if __package__ is not None:
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading