From 494b84584c528a724eafd69bac04124ed230188a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 27 Aug 2026 21:11:41 +0000 Subject: [PATCH 1/2] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.787.0 --- .speakeasy/gen.lock | 28 ++++++++++++++-------------- .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 4 ++-- .speakeasy/workflow.lock | 10 +++++----- RELEASES.md | 12 +++++++++++- docs/sdks/containers/README.mdx | 2 +- pyproject.toml | 2 +- src/openrouter/_version.py | 4 ++-- src/openrouter/containers.py | 4 ++-- uv.lock | 2 +- 10 files changed, 40 insertions(+), 30 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index d6f22a2b..be1bfeab 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: b89cc65bbf379613ceec7456e87307bb + docChecksum: 8c4d4967819782de637ac877bf680bb4 docVersion: 1.0.0 speakeasyVersion: 1.787.0 generationVersion: 2.914.0 - releaseVersion: 1.1.98 - configChecksum: d6e65bf56d0b6ff5a1206ebef54ee43f + releaseVersion: 1.1.99 + configChecksum: 1934b1366779d2fd11e23ef757079a67 repoURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git published: true persistentEdits: - generation_id: a47a85b3-6f80-434b-9e48-9c2fc68d27cd - pristine_commit_hash: e0b4dfabf4b2a71883ccfb81d6bc7c889e3f946e - pristine_tree_hash: fe5cb6d27edf8d50f0c8f4d1c0b1bb3edb59de5f + generation_id: f79644c8-8faa-4aac-9971-da3177741570 + pristine_commit_hash: 4b94f324af3cc637aabc2d65eed38ad86cbfe0ce + pristine_tree_hash: c24fd5861a7734f941a68257c1a5e1752ac371ac features: python: acceptHeaders: 3.0.0 @@ -7302,8 +7302,8 @@ trackedFiles: pristine_git_object: bed5f74e5e8269cbba66943524ffa5206c933de3 docs/sdks/containers/README.mdx: id: cc963972ad75 - last_write_checksum: sha1:e98902490b924d55601ebc5d6a76aa7271edaccb - pristine_git_object: 05e2d9345a19a297d29482462ca718fba4b6cc3d + last_write_checksum: sha1:37ddd77ce960000f8d6b5a4ed8aa47fcecd1bf0a + pristine_git_object: 6c2119cad00e2ae8009e1349851fd0c915b89bc8 docs/sdks/credits/README.mdx: id: 2ba51de8de3f last_write_checksum: sha1:08de2963f78b645eaa14fa8511552bae2ddccd75 @@ -7394,8 +7394,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:7c7ccb7bb86ee6b0388c7df5d7179909a5097a3c - pristine_git_object: 46d9f228916bbadc82bb1aeb476ef431070ae053 + last_write_checksum: sha1:8a1ac5ce02efb21b0be26eb68cfa84e3b3dcc49b + pristine_git_object: cb27695fa28b45f4f7b4ccbabbb2522440bde938 scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 @@ -7422,8 +7422,8 @@ trackedFiles: pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 src/openrouter/_version.py: id: d8d15ad6c586 - last_write_checksum: sha1:11bec47eb6d37171d7dacfe6e37165e3636e7a1d - pristine_git_object: ebe650d899bbb22325c8c9995ec6aa1b1147eea9 + last_write_checksum: sha1:46e9c850f3080f65041bc77aed50f4d962e185dd + pristine_git_object: 5a7265f202b696bc58b9d6089e8889b3d2758d4c src/openrouter/analytics.py: id: cb406b5aaabb last_write_checksum: sha1:1e0004d8d1d5d797e2b54cd1cabeb7f9489d08e9 @@ -9938,8 +9938,8 @@ trackedFiles: pristine_git_object: ad78361d147d2edb7b5772c14501d9c25a2000b0 src/openrouter/containers.py: id: 5edae5db57e9 - last_write_checksum: sha1:dca529a8a49b60c94d59bc497423d9c983dcee95 - pristine_git_object: 40cf9e34645544968d4c84dddc659445c6528fd2 + last_write_checksum: sha1:b8bbbc0adfb30c63c1d6c304f204057034c9319c + pristine_git_object: 6cf0e3473384453e37fd5c199a3c680e97dc8a21 src/openrouter/credits.py: id: cdc961937101 last_write_checksum: sha1:7ac37671d3de537eb98f15239d531e3ab3928a59 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 414ae7bb..23d61698 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -36,7 +36,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.1.98 + version: 1.1.99 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index b7fb74e5..7ac009b2 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -29723,7 +29723,7 @@ paths: - $ref: "#/components/parameters/AppCategories" /containers/{container_id}/files/{file_id}/promote: post: - description: 'Copies a file from the container''s sandbox prefix into the workspace''s durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace''s storage quota exactly like an upload.' + description: 'Copies a file from the container''s sandbox prefix into the workspace''s durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace''s storage quota. Unlike a direct upload, promoted files are downloadable.' operationId: 'promoteContainerFile' parameters: - description: 'The canonical container id, exactly as returned in a bash/shell tool result — a restarted session has its own `-r`-suffixed id. A session-derived id is always `sess_` + the sanitized session key, which is not necessarily the raw session id that was sent.' @@ -29749,7 +29749,7 @@ paths: example: _shape: 'openrouter' created_at: '2026-08-23T00:00:00Z' - downloadable: false + downloadable: true filename: 'out/report.csv' id: 'or_file_011CNha8iCJcU1wXNR6q4V8w' mime_type: 'text/csv' diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 72edc5d6..9dadf463 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.787.0 sources: OpenRouter API: sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:57fa65a6ffb4a0be0dbf02e6d0c455960dd2591c66515e4a18f1a16471db8a70 - sourceBlobDigest: sha256:3b2708d5b55152f9aa45a7115e67d5ac67cdd4d8a4352c3bb46c99b82146cc59 + sourceRevisionDigest: sha256:05fdf5ad1168fb8b389b6e43c0923738bc18c6ad94e238e8841d494b6feeae1e + sourceBlobDigest: sha256:b311b2470a0d14077e5043ac92fe525a1530aad37faae4926f19fc0a1479264a tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:57fa65a6ffb4a0be0dbf02e6d0c455960dd2591c66515e4a18f1a16471db8a70 - sourceBlobDigest: sha256:3b2708d5b55152f9aa45a7115e67d5ac67cdd4d8a4352c3bb46c99b82146cc59 + sourceRevisionDigest: sha256:05fdf5ad1168fb8b389b6e43c0923738bc18c6ad94e238e8841d494b6feeae1e + sourceBlobDigest: sha256:b311b2470a0d14077e5043ac92fe525a1530aad37faae4926f19fc0a1479264a codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:64561b451d9155cb6e3b42bbc0dc80c2a79a08e22a61e309fa2c7856c9d95026 + codeSamplesRevisionDigest: sha256:7cb22388bca22a387a7fd7f5e256223d7cd0376ff37e6e535c3b06b7e90f5380 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.787.0 diff --git a/RELEASES.md b/RELEASES.md index b9e637b8..9045a0d5 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1769,4 +1769,14 @@ Based on: ### Generated - [python v1.1.98] . ### Releases -- [PyPI v1.1.98] https://pypi.org/project/openrouter/1.1.98 - . \ No newline at end of file +- [PyPI v1.1.98] https://pypi.org/project/openrouter/1.1.98 - . + +## 2026-08-27 21:09:37 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.1.99] . +### Releases +- [PyPI v1.1.99] https://pypi.org/project/openrouter/1.1.99 - . \ No newline at end of file diff --git a/docs/sdks/containers/README.mdx b/docs/sdks/containers/README.mdx index 05e2d934..6c2119ca 100644 --- a/docs/sdks/containers/README.mdx +++ b/docs/sdks/containers/README.mdx @@ -175,7 +175,7 @@ with OpenRouter( ## promote_container_file -Copies a file from the container's sandbox prefix into the workspace's durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace's storage quota exactly like an upload. +Copies a file from the container's sandbox prefix into the workspace's durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace's storage quota. Unlike a direct upload, promoted files are downloadable. ### Example Usage diff --git a/pyproject.toml b/pyproject.toml index 46d9f228..cb27695f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.1.98" +version = "1.1.99" 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 ebe650d8..5a7265f2 100644 --- a/src/openrouter/_version.py +++ b/src/openrouter/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "openrouter" -__version__: str = "1.1.98" +__version__: str = "1.1.99" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.914.0" -__user_agent__: str = "speakeasy-sdk/python 1.1.98 2.914.0 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.1.99 2.914.0 1.0.0 openrouter" try: if __package__ is not None: diff --git a/src/openrouter/containers.py b/src/openrouter/containers.py index 40cf9e34..6cf0e347 100644 --- a/src/openrouter/containers.py +++ b/src/openrouter/containers.py @@ -972,7 +972,7 @@ def promote_container_file( ) -> components.FileResponse: r"""Promote a container file into workspace documents - Copies a file from the container's sandbox prefix into the workspace's durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace's storage quota exactly like an upload. + Copies a file from the container's sandbox prefix into the workspace's durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace's storage quota. Unlike a direct upload, promoted files are downloadable. :param container_id: The canonical container id, exactly as returned in a bash/shell tool result — a restarted session has its own `-r`-suffixed id. A session-derived id is always `sess_` + the sanitized session key, which is not necessarily the raw session id that was sent. :param file_id: Container file id (`cfile_` + base64url of the file path). @@ -1128,7 +1128,7 @@ async def promote_container_file_async( ) -> components.FileResponse: r"""Promote a container file into workspace documents - Copies a file from the container's sandbox prefix into the workspace's durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace's storage quota exactly like an upload. + Copies a file from the container's sandbox prefix into the workspace's durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace's storage quota. Unlike a direct upload, promoted files are downloadable. :param container_id: The canonical container id, exactly as returned in a bash/shell tool result — a restarted session has its own `-r`-suffixed id. A session-derived id is always `sess_` + the sanitized session key, which is not necessarily the raw session id that was sent. :param file_id: Container file id (`cfile_` + base64url of the file path). diff --git a/uv.lock b/uv.lock index d5e60bdf..a2b12ab5 100644 --- a/uv.lock +++ b/uv.lock @@ -213,7 +213,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.1.98" +version = "1.1.99" source = { editable = "." } dependencies = [ { name = "httpcore" }, From ce93e230a8568f715aed60196090367992bd8b6b Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Thu, 27 Aug 2026 21:11:49 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow