From 269435556076e8f524b5d7cd9a17b655657627a1 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 21 Nov 2026 00:32:05 +0000 Subject: [PATCH 1/2] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.803.2 --- .speakeasy/gen.lock | 34 ++++++++++++++-------------------- .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 27 ++++++++++++--------------- .speakeasy/workflow.lock | 10 +++++----- RELEASES.md | 12 +++++++++++- docs/sdks/scim/README.mdx | 24 +++++++++--------------- pyproject.toml | 2 +- src/openrouter/_version.py | 4 ++-- src/openrouter/scim.py | 30 ++++++------------------------ uv.lock | 2 +- 10 files changed, 62 insertions(+), 85 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 0b69dc2b..7a3dcae7 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: b8c8a75d05ef165f66db34adf0d2c51d + docChecksum: 0176c5e9eee82bc6fd9993fd6c36d51c docVersion: 1.0.0 speakeasyVersion: 1.803.2 generationVersion: 2.950.13 - releaseVersion: 1.3.201 - configChecksum: 1f2949c19cbea84b7386403957f03d8c + releaseVersion: 1.3.202 + configChecksum: a7759b3f1d0bcd8b0899b28bb43fcfd0 repoURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git published: true persistentEdits: - generation_id: c7a4cd8a-0a29-4a0f-954f-c69001f99e9a - pristine_commit_hash: cf09882af9ee31c2791d8bf353a8f1ebf426e591 - pristine_tree_hash: 2b61dc5db96d20655d6d41c8aa0ae0c259164b25 + generation_id: d44a7d97-d3a6-47d1-a240-38566a9fa295 + pristine_commit_hash: 2b7d4810eb38a487e0b4a3c87b4f8a2c20a9bcf5 + pristine_tree_hash: 564a67ca766b9e4034399fbb6123b2c14beeead4 features: python: acceptHeaders: 3.0.0 @@ -11792,8 +11792,8 @@ trackedFiles: pristine_git_object: 65eb984d913d1196f223e1c2f8004891d1a53058 docs/sdks/scim/README.mdx: id: fd6d8a91a053 - last_write_checksum: sha1:e6b58a1fabf91f5250a84f696203e2756a66a9ea - pristine_git_object: 6b829448efce633995225efd4cb68ab138381afb + last_write_checksum: sha1:17aed0f7075e1d49ac535e4f5daff614cded3185 + pristine_git_object: ce476289a048bc348f9871361ffe21f760b74458 docs/sdks/stt/README.mdx: id: 190b0dc9a5d1 last_write_checksum: sha1:a72a850312d8c2f8d6b00c588d35b48af7978f15 @@ -11828,8 +11828,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:576cb4920986226e3cfbd4c6ab7967cde4f70c53 - pristine_git_object: 92812803a2ed544137b749cfd92056867facb7e3 + last_write_checksum: sha1:7868ea8d29d3919ab50e0d6343ea480c1d243499 + pristine_git_object: c0873300becac8f6ca47327ca3518b7ef3e238bf scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 @@ -11856,8 +11856,8 @@ trackedFiles: pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 src/openrouter/_version.py: id: d8d15ad6c586 - last_write_checksum: sha1:bec638bd53d093932603eb1da5477e152b36beb9 - pristine_git_object: 162c544f558433deb5f9496be513ef19608a9da1 + last_write_checksum: sha1:611b0816a6629e2a9aca7b97bd5ed286f5f309d5 + pristine_git_object: 8714b594f53158478617c69de3a99f2478ba820f src/openrouter/alpha.py: id: 306c4d93308d last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766 @@ -16712,8 +16712,8 @@ trackedFiles: pristine_git_object: 6583a0b59f3ede8c72897bb922c1f85de280e8e0 src/openrouter/scim.py: id: 351afd6b616e - last_write_checksum: sha1:82ff1258584f0d018e5d0ccf75387c2464d5de1b - pristine_git_object: 3ad8fa3fcac805a3ef5b0b63cf21386a03f2488a + last_write_checksum: sha1:ac8e98f5a61b1f801958f0f96248dfdde620f009 + pristine_git_object: 7cb6b342ac2c59ab51605ad02664b4f2169b9b38 src/openrouter/sdk.py: id: ee9846c4c9c5 last_write_checksum: sha1:e2ac234f50cf2fa57417f0be1c9222dc8cfcf947 @@ -21959,9 +21959,3 @@ examples: "503": application/json: {"error": {"code": 503, "message": "Service temporarily unavailable"}} examplesVersion: 1.0.2 -releaseNotes: | - ## Python SDK Changes: - * `open_router.workspaces.list()`: `response.data[]` **Changed** - * `open_router.workspaces.create()`: `response.data` **Changed** - * `open_router.workspaces.get()`: `response.data` **Changed** - * `open_router.workspaces.update()`: `response.data` **Changed** diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 3626f253..7953b024 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -37,7 +37,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.3.201 + version: 1.3.202 additionalDependencies: dev: pytest: '>=8.3' diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index b6cbc1b9..2ebae45d 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -59619,8 +59619,7 @@ paths: - $ref: "#/components/parameters/AppCategories" /scim/group-mappings/{id}: delete: - deprecated: true - description: 'Delete a SCIM group-to-workspace mapping. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404.' + description: 'Delete a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.' operationId: 'deleteScimGroupMapping' parameters: - in: 'path' @@ -59649,7 +59648,7 @@ paths: application/json: schema: $ref: '#/components/schemas/DeleteScimGroupMappingResponse' - description: 'SCIM group mapping deleted. Not returned: this operation is disabled. The schema is kept for SDK compatibility.' + description: 'SCIM group mapping deleted' '400': content: application/json: @@ -59676,10 +59675,10 @@ paths: example: error: code: 403 - message: 'Management keys cannot change SCIM group mappings or start syncs. Use the organization settings in the dashboard.' + message: 'Only management keys can perform this operation' schema: $ref: '#/components/schemas/ForbiddenResponse' - description: 'Forbidden - SCIM writes are dashboard-only' + description: 'Forbidden - Authentication successful but insufficient permissions' '404': content: application/json: @@ -59766,8 +59765,7 @@ paths: - 'SCIM' x-speakeasy-name-override: 'read' patch: - deprecated: true - description: 'Update a SCIM group mapping role. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404.' + description: 'Update a SCIM group mapping role. [Management key](/docs/guides/overview/auth/management-api-keys) required.' operationId: 'updateScimGroupMapping' parameters: - in: 'path' @@ -59788,7 +59786,7 @@ paths: application/json: schema: $ref: '#/components/schemas/UpdateScimGroupMappingResponse' - description: 'SCIM group mapping updated. Not returned: this operation is disabled. The schema is kept for SDK compatibility.' + description: 'SCIM group mapping updated' '400': content: application/json: @@ -59815,10 +59813,10 @@ paths: example: error: code: 403 - message: 'Management keys cannot change SCIM group mappings or start syncs. Use the organization settings in the dashboard.' + message: 'Only management keys can perform this operation' schema: $ref: '#/components/schemas/ForbiddenResponse' - description: 'Forbidden - SCIM writes are dashboard-only' + description: 'Forbidden - Authentication successful but insufficient permissions' '404': content: application/json: @@ -59960,8 +59958,7 @@ paths: - $ref: "#/components/parameters/AppCategories" /scim/sync-jobs: post: - deprecated: true - description: 'Start a SCIM directory sync. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404.' + description: 'Start a SCIM directory sync. [Management key](/docs/guides/overview/auth/management-api-keys) required.' operationId: 'createScimSyncJob' responses: '202': @@ -59969,7 +59966,7 @@ paths: application/json: schema: $ref: '#/components/schemas/CreateScimSyncJobResponse' - description: 'SCIM directory sync job queued. Not returned: this operation is disabled. The schema is kept for SDK compatibility.' + description: 'SCIM directory sync job queued' headers: Location: description: 'Poll URL for the created sync job.' @@ -59993,10 +59990,10 @@ paths: example: error: code: 403 - message: 'Management keys cannot change SCIM group mappings or start syncs. Use the organization settings in the dashboard.' + message: 'Only management keys can perform this operation' schema: $ref: '#/components/schemas/ForbiddenResponse' - description: 'Forbidden - SCIM writes are dashboard-only' + description: 'Forbidden - Authentication successful but insufficient permissions' '404': content: application/json: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 73423671..40a15fe8 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:5a22507656dbea6f0a9d26cf5f47e6481b036e2cdd1bb07e2b7faaed44ef63e6 - sourceBlobDigest: sha256:9639101991c3a5379daa7473f3e0b28c36e1844e591c5e2f4341e8c08c2f21cb + sourceRevisionDigest: sha256:45f77a990c2b72ec856f3013d502dde381724a29aa7d289852d8f35bc46d244d + sourceBlobDigest: sha256:3b27131c0feb4c1ab22c2b629963f2ff07f5a41a0019d16c2b268b50d568f9f1 tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:5a22507656dbea6f0a9d26cf5f47e6481b036e2cdd1bb07e2b7faaed44ef63e6 - sourceBlobDigest: sha256:9639101991c3a5379daa7473f3e0b28c36e1844e591c5e2f4341e8c08c2f21cb + sourceRevisionDigest: sha256:45f77a990c2b72ec856f3013d502dde381724a29aa7d289852d8f35bc46d244d + sourceBlobDigest: sha256:3b27131c0feb4c1ab22c2b629963f2ff07f5a41a0019d16c2b268b50d568f9f1 codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:887616a04efb67899de4513809245d0af3c3c2c634c4b559e2ac272052ee8f98 + codeSamplesRevisionDigest: sha256:7f5caab8a67e50034c55c3367964e047df30fc85c6c495d3db39fcb8d874eda8 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.803.2 diff --git a/RELEASES.md b/RELEASES.md index 327e7c4c..35db5a02 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -4779,4 +4779,14 @@ Based on: ### Generated - [python v1.3.201] . ### Releases -- [PyPI v1.3.201] https://pypi.org/project/openrouter/1.3.201 - . \ No newline at end of file +- [PyPI v1.3.201] https://pypi.org/project/openrouter/1.3.201 - . + +## 2026-11-21 00:28:46 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.3.202] . +### Releases +- [PyPI v1.3.202] https://pypi.org/project/openrouter/1.3.202 - . \ No newline at end of file diff --git a/docs/sdks/scim/README.mdx b/docs/sdks/scim/README.mdx index 6b829448..ce476289 100644 --- a/docs/sdks/scim/README.mdx +++ b/docs/sdks/scim/README.mdx @@ -11,11 +11,11 @@ Management endpoints for SCIM group-to-workspace mappings, authenticated with a * [list_mappings](#list_mappings) - List SCIM group mappings * [~~create~~](#create) - Create a SCIM group mapping ⚠️ **Deprecated** -* [~~delete~~](#delete) - Delete a SCIM group mapping ⚠️ **Deprecated** +* [delete](#delete) - Delete a SCIM group mapping * [read](#read) - Get a SCIM group mapping -* [~~update~~](#update) - Update a SCIM group mapping ⚠️ **Deprecated** +* [update](#update) - Update a SCIM group mapping * [list_groups](#list_groups) - List SCIM groups -* [~~create_sync_job~~](#create_sync_job) - Start a SCIM directory sync ⚠️ **Deprecated** +* [create_sync_job](#create_sync_job) - Start a SCIM directory sync * [get_sync_job](#get_sync_job) - Get SCIM directory sync status ## list_mappings @@ -125,11 +125,9 @@ with OpenRouter( | errors.InternalServerResponseError | 500 | application/json | | errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* | -## ~~delete~~ +## delete -Delete a SCIM group-to-workspace mapping. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404. - -> ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. +Delete a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required. ### Example Usage @@ -227,11 +225,9 @@ with OpenRouter( | errors.InternalServerResponseError | 500 | application/json | | errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* | -## ~~update~~ - -Update a SCIM group mapping role. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404. +## update -> ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. +Update a SCIM group mapping role. [Management key](/docs/guides/overview/auth/management-api-keys) required. ### Example Usage @@ -334,11 +330,9 @@ with OpenRouter( | errors.InternalServerResponseError | 500 | application/json | | errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* | -## ~~create_sync_job~~ - -Start a SCIM directory sync. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404. +## create_sync_job -> ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. +Start a SCIM directory sync. [Management key](/docs/guides/overview/auth/management-api-keys) required. ### Example Usage diff --git a/pyproject.toml b/pyproject.toml index 92812803..c0873300 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.3.201" +version = "1.3.202" 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 162c544f..8714b594 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.201" +__version__: str = "1.3.202" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.950.13" -__user_agent__: str = "speakeasy-sdk/python 1.3.201 2.950.13 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.3.202 2.950.13 1.0.0 openrouter" try: if __package__ is not None: diff --git a/src/openrouter/scim.py b/src/openrouter/scim.py index 3ad8fa3f..7cb6b342 100644 --- a/src/openrouter/scim.py +++ b/src/openrouter/scim.py @@ -681,9 +681,6 @@ async def create_async( raise errors.OpenRouterDefaultError("Unexpected response received", http_res) - @deprecated( - "warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." - ) def delete( self, *, @@ -699,7 +696,7 @@ def delete( ) -> components.DeleteScimGroupMappingResponse: r"""Delete a SCIM group mapping - Delete a SCIM group-to-workspace mapping. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404. + Delete a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required. :param id: :param keep_members: Required. Whether to keep workspace members after deleting the mapping. `false` **removes** the members this mapping granted access to; `true` deletes the mapping while leaving membership intact as manually-managed. There is deliberately no default — omitting it returns `400` so the destructive path cannot be reached by accident. Mirrors the dashboard, whose `DeleteMappingSchema.keepMembers` is likewise required. @@ -827,9 +824,6 @@ def delete( raise errors.OpenRouterDefaultError("Unexpected response received", http_res) - @deprecated( - "warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." - ) async def delete_async( self, *, @@ -845,7 +839,7 @@ async def delete_async( ) -> components.DeleteScimGroupMappingResponse: r"""Delete a SCIM group mapping - Delete a SCIM group-to-workspace mapping. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404. + Delete a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required. :param id: :param keep_members: Required. Whether to keep workspace members after deleting the mapping. `false` **removes** the members this mapping granted access to; `true` deletes the mapping while leaving membership intact as manually-managed. There is deliberately no default — omitting it returns `400` so the destructive path cannot be reached by accident. Mirrors the dashboard, whose `DeleteMappingSchema.keepMembers` is likewise required. @@ -1243,9 +1237,6 @@ async def read_async( raise errors.OpenRouterDefaultError("Unexpected response received", http_res) - @deprecated( - "warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." - ) def update( self, *, @@ -1261,7 +1252,7 @@ def update( ) -> components.UpdateScimGroupMappingResponse: r"""Update a SCIM group mapping - Update a SCIM group mapping role. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404. + Update a SCIM group mapping role. [Management key](/docs/guides/overview/auth/management-api-keys) required. :param id: :param role: @@ -1398,9 +1389,6 @@ def update( raise errors.OpenRouterDefaultError("Unexpected response received", http_res) - @deprecated( - "warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." - ) async def update_async( self, *, @@ -1416,7 +1404,7 @@ async def update_async( ) -> components.UpdateScimGroupMappingResponse: r"""Update a SCIM group mapping - Update a SCIM group mapping role. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404. + Update a SCIM group mapping role. [Management key](/docs/guides/overview/auth/management-api-keys) required. :param id: :param role: @@ -1908,9 +1896,6 @@ async def empty_result(): raise errors.OpenRouterDefaultError("Unexpected response received", http_res) - @deprecated( - "warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." - ) def create_sync_job( self, *, @@ -1924,7 +1909,7 @@ def create_sync_job( ) -> operations.CreateScimSyncJobResponse: r"""Start a SCIM directory sync - Start a SCIM directory sync. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404. + Start a SCIM directory sync. [Management key](/docs/guides/overview/auth/management-api-keys) required. :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. This is used to track API usage per application. @@ -2046,9 +2031,6 @@ def create_sync_job( raise errors.OpenRouterDefaultError("Unexpected response received", http_res) - @deprecated( - "warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." - ) async def create_sync_job_async( self, *, @@ -2062,7 +2044,7 @@ async def create_sync_job_async( ) -> operations.CreateScimSyncJobResponse: r"""Start a SCIM directory sync - Start a SCIM directory sync. Disabled: no API key can perform this write, including management keys. Use the organization settings in the dashboard, which require step-up verification. A valid management key for an organization with SCIM access receives 403; an invalid key still receives 401 and an organization without SCIM access receives 404. + Start a SCIM directory sync. [Management key](/docs/guides/overview/auth/management-api-keys) required. :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. This is used to track API usage per application. diff --git a/uv.lock b/uv.lock index 1485dc4c..e6d4c62f 100644 --- a/uv.lock +++ b/uv.lock @@ -231,7 +231,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.3.201" +version = "1.3.202" source = { editable = "." } dependencies = [ { name = "httpcore" }, From 85a2f3307e17e43018704c372467038abd0d1856 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Sat, 21 Nov 2026 00:32:12 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow