diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 4ee94bad..a10fc688 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: 341e83b810f2326f376c9d8be4b692f8 + docChecksum: 051c57dde52610a9756f0c3fe7ec663f docVersion: 1.0.0 speakeasyVersion: 1.803.2 generationVersion: 2.950.13 - releaseVersion: 1.3.217 - configChecksum: 791fd0a9a929c71eec67f11ff0a3c823 + releaseVersion: 1.3.218 + configChecksum: e4fba92a99a76b2b94152a1450447044 repoURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git published: true persistentEdits: - generation_id: 363d3d79-759a-499b-8bf4-a9b83bed2662 - pristine_commit_hash: 0a29d63bf29fc79ccef6a0ed9f868c03c5a68c0b - pristine_tree_hash: 26b6179f3945d68ea20a24cb543a62af431c2ba6 + generation_id: 43c8de89-fba2-41b5-8e37-1dc0f3135480 + pristine_commit_hash: 6b14dcb950b624aac3f317e29ce8597b59205db7 + pristine_tree_hash: a616bc0410733b48ee3664da02058bbb8ef8ef67 features: python: acceptHeaders: 3.0.0 @@ -11920,8 +11920,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:db38399e66c0e1f0a937f59a4f9a3f566f304dfe - pristine_git_object: ca7e818a808ceed18e3c3c46a9cf82eeabe6a440 + last_write_checksum: sha1:01c3a72b2a3ec3e2a78a07b90f8e0b638bf717e6 + pristine_git_object: e1f02c07a7d1004a7705b576c9790e431efe1968 scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 @@ -11948,8 +11948,8 @@ trackedFiles: pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 src/openrouter/_version.py: id: d8d15ad6c586 - last_write_checksum: sha1:2264790faa5e023c47e1b56a3929e21286bac2c3 - pristine_git_object: 565d4744de28c42036cd981bd325cabe9cf5f1c6 + last_write_checksum: sha1:274af5502fcfc4d933cc925c5f329047346be23b + pristine_git_object: 320dd603d9467a3c1316da26a1ab0a285ef21873 src/openrouter/alpha.py: id: 306c4d93308d last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index fd319912..5d862b5a 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -37,7 +37,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.3.217 + version: 1.3.218 additionalDependencies: dev: pytest: '>=8.3' diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index c6912963..7a7daec7 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -45208,7 +45208,7 @@ paths: x-hidden: true x-speakeasy-ignore: true post: - 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`.' + description: 'Starts an agent credit purchase paid with a Machine Payments Protocol (MPP) credential. Open USD (OUSD) is the default token on Tempo when available. Bridged USDC (USDC.e) is an alternative, and card is available when offered. Discover currencies in `x-payment-info.offers`; select a runtime challenge by its `request.currency` contract address, not a purchase-body field. 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.' @@ -45363,11 +45363,11 @@ paths: x-payment-info: offers: - amount: null - currency: '0x20c000000000000000000000b9537d11c60e8b50' + currency: '0x20c0000000000000000000006a37DA5C996874BE' intent: 'charge' method: 'tempo' - amount: null - currency: '0x20c0000000000000000000006a37DA5C996874BE' + currency: '0x20c000000000000000000000b9537d11c60e8b50' intent: 'charge' method: 'tempo' - amount: null diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index d893ef04..644197c2 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:dc859b77ab4ffc9ed47c3fd53bcdbf02f39f263300a7ec08d079dd4fde93e18b - sourceBlobDigest: sha256:5acdbe1fd6200d14451171d8d9d4ed459beb69261d146f67d96c5148ca0c352e + sourceRevisionDigest: sha256:aec6b71a019397e51b2cc46a0f39b44107467a5ecf4fb72d7e25a9a083896797 + sourceBlobDigest: sha256:9457bc4bbd78db868cc521d31220fa723ab7e21c8894439a551e5a69aa6fcd83 tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:dc859b77ab4ffc9ed47c3fd53bcdbf02f39f263300a7ec08d079dd4fde93e18b - sourceBlobDigest: sha256:5acdbe1fd6200d14451171d8d9d4ed459beb69261d146f67d96c5148ca0c352e + sourceRevisionDigest: sha256:aec6b71a019397e51b2cc46a0f39b44107467a5ecf4fb72d7e25a9a083896797 + sourceBlobDigest: sha256:9457bc4bbd78db868cc521d31220fa723ab7e21c8894439a551e5a69aa6fcd83 codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:ff540aa59cb3207c7fc445f793c5b6e8ee4e505e1e3f7215b9d1aa68cacb663d + codeSamplesRevisionDigest: sha256:c31b44b95c00b16d14bd6f7842725d9ba8e99f6feb4d2704f3c1f82d73442252 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.803.2 diff --git a/RELEASES.md b/RELEASES.md index 26d4ab25..0c44551c 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -4939,4 +4939,14 @@ Based on: ### Generated - [python v1.3.217] . ### Releases -- [PyPI v1.3.217] https://pypi.org/project/openrouter/1.3.217 - . \ No newline at end of file +- [PyPI v1.3.217] https://pypi.org/project/openrouter/1.3.217 - . + +## 2026-12-01 02:21:01 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.3.218] . +### Releases +- [PyPI v1.3.218] https://pypi.org/project/openrouter/1.3.218 - . \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index ca7e818a..e1f02c07 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.3.217" +version = "1.3.218" 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 565d4744..320dd603 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.217" +__version__: str = "1.3.218" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.950.13" -__user_agent__: str = "speakeasy-sdk/python 1.3.217 2.950.13 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.3.218 2.950.13 1.0.0 openrouter" try: if __package__ is not None: diff --git a/uv.lock b/uv.lock index 25df5e8f..902d33a4 100644 --- a/uv.lock +++ b/uv.lock @@ -231,7 +231,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.3.217" +version = "1.3.218" source = { editable = "." } dependencies = [ { name = "httpcore" },