From 8988e4696a71905ad96873188e542d2516159032 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 19 Nov 2026 09:20:59 +0000 Subject: [PATCH 1/2] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.803.2 --- .speakeasy/gen.lock | 26 ++++++++++---------------- .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 24 +++++++++++++++++++----- .speakeasy/workflow.lock | 10 +++++----- RELEASES.md | 12 +++++++++++- pyproject.toml | 2 +- src/openrouter/_version.py | 4 ++-- uv.lock | 2 +- 8 files changed, 50 insertions(+), 32 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index c45450d0..1b6e5086 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -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 @@ -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 @@ -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 @@ -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** diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index c6948047..5074ab83 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -37,7 +37,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.3.192 + version: 1.3.193 additionalDependencies: dev: pytest: '>=8.3' diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index fb47e147..a4755651 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -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.' @@ -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': @@ -44028,10 +44028,10 @@ paths: example: '; 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: @@ -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" diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index c4eba117..e8a4b3c4 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ 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 @@ -11,10 +11,10 @@ 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 diff --git a/RELEASES.md b/RELEASES.md index f97c6c19..0ff4fdc7 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -4689,4 +4689,14 @@ Based on: ### Generated - [python v1.3.192] . ### Releases -- [PyPI v1.3.192] https://pypi.org/project/openrouter/1.3.192 - . \ No newline at end of file +- [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 - . \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 5ef9b903..ca7837e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/openrouter/_version.py b/src/openrouter/_version.py index 1ffdf5e6..0b620649 100644 --- a/src/openrouter/_version.py +++ b/src/openrouter/_version.py @@ -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: diff --git a/uv.lock b/uv.lock index 8a80b291..d3ba6272 100644 --- a/uv.lock +++ b/uv.lock @@ -231,7 +231,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.3.192" +version = "1.3.193" source = { editable = "." } dependencies = [ { name = "httpcore" }, From 4865641f5712a9354266f5f8184a4b5500c7d79d Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Thu, 19 Nov 2026 09:21:06 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow