From 0295cbd63c3787747656bf2c0c033dd0f4fe6f11 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 2 Dec 2026 21:24:59 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.803.2 --- .speakeasy/gen.lock | 37 +++++++++---------- .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 8 ++-- .speakeasy/workflow.lock | 10 ++--- RELEASES.md | 12 +++++- .../listorganizationmembersdata.mdx | 16 ++++---- docs/sdks/batch/README.mdx | 2 +- pyproject.toml | 2 +- src/openrouter/_version.py | 4 +- src/openrouter/batch.py | 4 +- .../operations/listorganizationmembers.py | 4 +- uv.lock | 2 +- 12 files changed, 56 insertions(+), 47 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index a88b3e8c..89ab6611 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: 185b99a4ab1a0c254dff7b621be73856 + docChecksum: c53e0c50b5772475e71b8daef3ef6460 docVersion: 1.0.0 speakeasyVersion: 1.803.2 generationVersion: 2.950.13 - releaseVersion: 1.3.231 - configChecksum: cb8cedb1cfbf3d8d2cea9727d40a0fae + releaseVersion: 1.3.232 + configChecksum: f27bbc66d5b9676c1abb85c6a1db13dd repoURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git published: true persistentEdits: - generation_id: 11ddcc9f-c94f-4153-8f1c-255f0e7be46f - pristine_commit_hash: 52e247612c337aeeb0017504551b83f5de38e36f - pristine_tree_hash: d759dd2d7d765a19923b2dfbf3daf4a31a51f142 + generation_id: 50c02186-1aa9-4959-9822-2d59847f2138 + pristine_commit_hash: 76f83750c0b8e941bb9c306f4b4ba46994c50d0d + pristine_tree_hash: f5bdd18453014af72e66111233fdaf237104f137 features: python: acceptHeaders: 3.0.0 @@ -11660,8 +11660,8 @@ trackedFiles: pristine_git_object: f7ab206b5ca32f5af427138d0a9156f66e92211c docs/operations/listorganizationmembersdata.mdx: id: d96ba08cbfe4 - last_write_checksum: sha1:3a4695810cb24cd5ba2e3b76e35ec173c450255f - pristine_git_object: 074f84fca93aad3390425f57e227e0b87fda447b + last_write_checksum: sha1:b15444d5c7ddf489f7fc8ec39ea633165a8c793c + pristine_git_object: e6212c7ce184dd1fcdcb47cd63c8168085b5189a docs/operations/listorganizationmembersglobals.mdx: id: 421fd4978d8f last_write_checksum: sha1:b4aec9055bf7a1f276ebdc4b270e09aee733e3fd @@ -12244,8 +12244,8 @@ trackedFiles: pristine_git_object: e1c261779c6ccbc2b6cf70738af9bf5b5a9925aa docs/sdks/batch/README.mdx: id: e367aa4f4295 - last_write_checksum: sha1:03ddfbe3833af9b7ac3b683e1f57b16bab4aa667 - pristine_git_object: e974a6eda93ac9e3f5eeb83a665e790f0ba06758 + last_write_checksum: sha1:1a1160bdde124e4f3f4d8c4c14448ab3df7f2c77 + pristine_git_object: e7b9850d5994a638ef7ba44c8356fdd4e434b365 docs/sdks/benchmarks/README.mdx: id: 5b483a6770ba last_write_checksum: sha1:10a8edbf3bc300bab53ce72c3a37c974971b74bd @@ -12396,8 +12396,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:b7d10dfd58065a73456a0eeeb02dbeb5d04ff061 - pristine_git_object: 6c2a83088a8558f8841d258b9b11034a0b8aef87 + last_write_checksum: sha1:5a7211dad29ce13a9939efe8ba426eae4e2108dd + pristine_git_object: 248081fa04053fc2be72d6583049ae4c0c3da51c scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 @@ -12424,8 +12424,8 @@ trackedFiles: pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 src/openrouter/_version.py: id: d8d15ad6c586 - last_write_checksum: sha1:3358e233d32cc8feabd9eefeab4e8acaf3cdfc93 - pristine_git_object: 2577e2e2595b694e69d26dfc37962ce16229d419 + last_write_checksum: sha1:f371f274031caf2043fe8b0ba2b0e980af513ac3 + pristine_git_object: 9aab77681d97e2d829756dc63c8dc77c33c3c816 src/openrouter/alpha.py: id: 306c4d93308d last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766 @@ -12444,8 +12444,8 @@ trackedFiles: pristine_git_object: 7a562e21c7e66c9db666ead83748b73adefe4278 src/openrouter/batch.py: id: 148f61e34d5b - last_write_checksum: sha1:66bf7726b079d007ce8d6eaff76ab3a95a2ea88c - pristine_git_object: 1110b2127b77436a1b3ee7acda5ff3f5040fdf56 + last_write_checksum: sha1:387696eb4007cb5fc7f5899d3affc5a0e0f3e667 + pristine_git_object: 48894aa220b0f6019f003d8e42eb94890a25dc73 src/openrouter/benchmarks.py: id: 178d2ad8d706 last_write_checksum: sha1:be86f24d07ba86e9585f7d2bc2c384dba5185727 @@ -17232,8 +17232,8 @@ trackedFiles: pristine_git_object: 8efdffe07537894b87e3f0e2b54c53825dfd7b31 src/openrouter/operations/listorganizationmembers.py: id: d40a3e0e2b38 - last_write_checksum: sha1:849f30b995950cadbcb8b22b4e84ce122db2caf1 - pristine_git_object: 52a74ececf52cb2ec789935dbf4c3cb0947b6cc5 + last_write_checksum: sha1:9abf02bf6aa51e098cef126622a7dfa038b7a89a + pristine_git_object: 9b3800036125e1750b99811d4f37680b084a7771 src/openrouter/operations/listpresets.py: id: ecdc7097aab7 last_write_checksum: sha1:ee7c1cccf1caafb6a0fc04efb16476db2301233b @@ -22806,4 +22806,3 @@ examples: "500": application/json: {"error": {"code": 400, "message": "custom_id is required on requests[0]."}} examplesVersion: 1.0.2 -releaseNotes: "## Python SDK Changes:\n* `open_router.alpha.decisions.create()`: `request.provider` **Changed**\n* `open_router.alpha.extractions.create()`: `request.provider` **Changed**\n* `open_router.tts.create_speech()`: `request.provider` **Changed**\n* `open_router.stt.create_transcription()`: `request.provider` **Changed**\n* `open_router.stt.list_models()`: `response.data[].endpoints[].input_modalities[].union(audio).supported_inputs.formats.values[]` **Changed**\n* `open_router.stt.get_model()`: `response.endpoints[].input_modalities[].union(audio).supported_inputs.formats.values[]` **Changed**\n* `open_router.batch.create_batches()`: \n * `request.provider.only[].union(ProviderName).enum(celeris)` **Added**\n* `open_router.byok.list()`: \n * `request.provider` **Changed**\n * `response.data[].provider.enum(celeris)` **Added**\n* `open_router.byok.create()`: \n * `request.provider.enum(celeris)` **Added**\n * `response.data.provider.enum(celeris)` **Added**\n* `open_router.byok.get()`: `response.data.provider.enum(celeris)` **Added**\n* `open_router.byok.update()`: `response.data.provider.enum(celeris)` **Added**\n* `open_router.embeddings.generate()`: `request.provider` **Changed**\n* `open_router.embeddings.list_models()`: `response.data[].input_modalities[].union(audio).supported_inputs.formats.values[]` **Changed**\n* `open_router.endpoints.list_zdr_endpoints()`: `response.data[].provider_name.enum(celeris)` **Added**\n* `open_router.endpoints.list()`: `response.data.endpoints[].provider_name.enum(celeris)` **Added**\n* `open_router.generations.get_generation()`: `response.data.provider_responses[].provider_name.enum(celeris)` **Added**\n* `open_router.images.list_models()`: `response.data[].input_modalities[].union(audio).supported_inputs.formats.values[]` **Changed**\n* `open_router.images.list_model_endpoints()`: `response.endpoints[].input_modalities[].union(audio).supported_inputs.formats.values[]` **Changed**\n* `open_router.presets.create_presets_chat_completions()`: `request.provider` **Changed**\n* `open_router.presets.create_presets_messages()`: `request.provider` **Changed**\n* `open_router.presets.create_presets_responses()`: `request.provider` **Changed**\n* `open_router.rerank.rerank()`: `request.provider` **Changed**\n* `open_router.rerank.list_models()`: `response.data[].input_modalities[].union(audio).supported_inputs.formats.values[]` **Changed**\n* `open_router.system_one.create()`: `request.provider` **Changed**\n* `open_router.video_generation.generate()`: `request.provider` **Changed**\n* `open_router.video_generation.list_videos_models()`: `response.data[].input_modalities[].union(audio).supported_inputs.formats.values[]` **Changed**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 95e03ca5..24ab144d 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -37,7 +37,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.3.231 + version: 1.3.232 additionalDependencies: dev: pytest: '>=8.3' diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index 0b2e8ca0..4122d0fc 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -44912,7 +44912,7 @@ paths: - $ref: "#/components/parameters/AppCategories" /batches/{id}/cancel: post: - description: 'Asks the provider to stop a batch that is still running. Cancellation is enabled per organization; other organizations get `403`. The response is the batch in its current status: it stays `in_progress` until the provider confirms, then becomes `cancelled`, or `completed`, `failed`, or `expired` when the provider job ended first. Poll until the batch has any final status. Repeating the call is safe while the batch is still `in_progress`; once it has a final status the call returns `409`. OpenRouter returns no result rows for a cancelled batch, and the provider still charges for the requests that finished before the cancellation. When the batch wrote its output to your own storage, retrieving the batch can still return that location, and the rows the provider wrote there stay yours to read. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart).' + description: 'Asks the provider to stop a batch that is still running. Cancellation is enabled per organization; other organizations get `403`. The response is the batch in its current status: it stays `in_progress` until the provider confirms, then becomes `cancelled`, or `completed`, `failed`, or `expired` when the provider job ended first. Poll until the batch has any final status. Repeating the call is safe while the batch is still `in_progress`; once it has a final status the call returns `409`. On OpenAI a cancelled batch keeps the requests that finished before the cancellation when OpenAI returns them: they are in `results` and billed like the rows of a completed batch. On every other provider OpenRouter returns no result rows for a cancelled batch, and the provider still charges for the requests that finished. When the batch wrote its output to your own storage, retrieving the batch can still return that location, and the rows the provider wrote there stay yours to read. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart).' operationId: 'cancelBatch' parameters: - description: 'The batch job id returned from submit.' @@ -57796,7 +57796,7 @@ paths: example: data: - email: 'jane.doe@example.com' - external_id: 'scim_usr_3J9P6a5UiLQcpRMGx4bdOVrKceF' + external_id: '00u1a2b3c4D5e6F7g8h9' first_name: 'Jane' id: 'user_2dHFtVWx2n56w6HkM0000000000' last_name: 'Doe' @@ -57813,8 +57813,8 @@ paths: example: 'jane.doe@example.com' type: 'string' external_id: - description: 'The member''s SCIM user ID, which your identity provider stores for their OpenRouter account (Okta shows it as External ID); not the SCIM `externalId` attribute. Set when your organization''s SCIM directory provisions, updates or syncs the member. Null when this organization''s directory did not provision the member (for example, they were invited, signed up directly, or provisioned by another organization''s directory) or has not synced them yet. Members can keep their last synced value after the directory is removed.' - example: 'scim_usr_3J9P6a5UiLQcpRMGx4bdOVrKceF' + description: 'The member''s user ID at your identity provider, recorded when they sign in through your organization''s SSO connection. Your identity provider must send the user ID attribute that connection reads (for Okta, `id` = `user.id`; for other identity providers, contact support). Set for members your organization''s SCIM directory provisioned, once OpenRouter syncs them after that sign-in. Null before then, or when this organization''s directory did not provision the member. Members can keep their last synced value after the directory is removed.' + example: '00u1a2b3c4D5e6F7g8h9' type: - 'string' - 'null' diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 75352a4e..0065c4ec 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:e3feb13debfff590c80473d7814843a09359ab68ca582e052aa2ee449519095a - sourceBlobDigest: sha256:b0cf4142e7752da647be68473c2a9b30b2959fa01181929caba77af48e74647d + sourceRevisionDigest: sha256:4a762dea357a37e8423f71c3c745b7edbe956f2a3606edd80737faf91c280e75 + sourceBlobDigest: sha256:f80ba29051883c29805ea65d9d5887fc40f01dd858073f30ce37160228ec01aa tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:e3feb13debfff590c80473d7814843a09359ab68ca582e052aa2ee449519095a - sourceBlobDigest: sha256:b0cf4142e7752da647be68473c2a9b30b2959fa01181929caba77af48e74647d + sourceRevisionDigest: sha256:4a762dea357a37e8423f71c3c745b7edbe956f2a3606edd80737faf91c280e75 + sourceBlobDigest: sha256:f80ba29051883c29805ea65d9d5887fc40f01dd858073f30ce37160228ec01aa codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:b9525a5b813a1815dbd3f9bf0df4e7320521015df5a2a129606ef83447d17cc4 + codeSamplesRevisionDigest: sha256:4e156f75c98d3823f654b65c599090ba6b8ade726a640b506b28dc750fe60c84 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.803.2 diff --git a/RELEASES.md b/RELEASES.md index 94da430e..64ec9974 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -5079,4 +5079,14 @@ Based on: ### Generated - [python v1.3.231] . ### Releases -- [PyPI v1.3.231] https://pypi.org/project/openrouter/1.3.231 - . \ No newline at end of file +- [PyPI v1.3.231] https://pypi.org/project/openrouter/1.3.231 - . + +## 2026-12-02 21:22:24 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.3.232] . +### Releases +- [PyPI v1.3.232] https://pypi.org/project/openrouter/1.3.232 - . \ No newline at end of file diff --git a/docs/operations/listorganizationmembersdata.mdx b/docs/operations/listorganizationmembersdata.mdx index 074f84fc..e6212c7c 100644 --- a/docs/operations/listorganizationmembersdata.mdx +++ b/docs/operations/listorganizationmembersdata.mdx @@ -4,11 +4,11 @@ title: "ListOrganizationMembersData" ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `email` | *str* | ✔️ | Email address of the member | jane.doe@example.com | -| `external_id` | *Nullable[str]* | ✔️ | The member's SCIM user ID, which your identity provider stores for their OpenRouter account (Okta shows it as External ID); not the SCIM `externalId` attribute. Set when your organization's SCIM directory provisions, updates or syncs the member. Null when this organization's directory did not provision the member (for example, they were invited, signed up directly, or provisioned by another organization's directory) or has not synced them yet. Members can keep their last synced value after the directory is removed. | scim_usr_3J9P6a5UiLQcpRMGx4bdOVrKceF | -| `first_name` | *Nullable[str]* | ✔️ | First name of the member | Jane | -| `id` | *str* | ✔️ | User ID of the organization member | user_2dHFtVWx2n56w6HkM0000000000 | -| `last_name` | *Nullable[str]* | ✔️ | Last name of the member | Doe | -| `role` | [operations.Role](../operations/role.mdx) | ✔️ | Role of the member in the organization. `org:viewer` is coming soon and not yet available. Once launched, it has read-only organization access: it can view organization settings, billing and workspaces but not change them. Workspace roles can still grant write access in specific workspaces. | org:member | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `email` | *str* | ✔️ | Email address of the member | jane.doe@example.com | +| `external_id` | *Nullable[str]* | ✔️ | The member's user ID at your identity provider, recorded when they sign in through your organization's SSO connection. Your identity provider must send the user ID attribute that connection reads (for Okta, `id` = `user.id`; for other identity providers, contact support). Set for members your organization's SCIM directory provisioned, once OpenRouter syncs them after that sign-in. Null before then, or when this organization's directory did not provision the member. Members can keep their last synced value after the directory is removed. | 00u1a2b3c4D5e6F7g8h9 | +| `first_name` | *Nullable[str]* | ✔️ | First name of the member | Jane | +| `id` | *str* | ✔️ | User ID of the organization member | user_2dHFtVWx2n56w6HkM0000000000 | +| `last_name` | *Nullable[str]* | ✔️ | Last name of the member | Doe | +| `role` | [operations.Role](../operations/role.mdx) | ✔️ | Role of the member in the organization. `org:viewer` is coming soon and not yet available. Once launched, it has read-only organization access: it can view organization settings, billing and workspaces but not change them. Workspace roles can still grant write access in specific workspaces. | org:member | \ No newline at end of file diff --git a/docs/sdks/batch/README.mdx b/docs/sdks/batch/README.mdx index e974a6ed..e7b9850d 100644 --- a/docs/sdks/batch/README.mdx +++ b/docs/sdks/batch/README.mdx @@ -279,7 +279,7 @@ with OpenRouter( ## cancel -Asks the provider to stop a batch that is still running. Cancellation is enabled per organization; other organizations get `403`. The response is the batch in its current status: it stays `in_progress` until the provider confirms, then becomes `cancelled`, or `completed`, `failed`, or `expired` when the provider job ended first. Poll until the batch has any final status. Repeating the call is safe while the batch is still `in_progress`; once it has a final status the call returns `409`. OpenRouter returns no result rows for a cancelled batch, and the provider still charges for the requests that finished before the cancellation. When the batch wrote its output to your own storage, retrieving the batch can still return that location, and the rows the provider wrote there stay yours to read. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart). +Asks the provider to stop a batch that is still running. Cancellation is enabled per organization; other organizations get `403`. The response is the batch in its current status: it stays `in_progress` until the provider confirms, then becomes `cancelled`, or `completed`, `failed`, or `expired` when the provider job ended first. Poll until the batch has any final status. Repeating the call is safe while the batch is still `in_progress`; once it has a final status the call returns `409`. On OpenAI a cancelled batch keeps the requests that finished before the cancellation when OpenAI returns them: they are in `results` and billed like the rows of a completed batch. On every other provider OpenRouter returns no result rows for a cancelled batch, and the provider still charges for the requests that finished. When the batch wrote its output to your own storage, retrieving the batch can still return that location, and the rows the provider wrote there stay yours to read. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart). ### Example Usage diff --git a/pyproject.toml b/pyproject.toml index 6c2a8308..248081fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.3.231" +version = "1.3.232" 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 2577e2e2..9aab7768 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.231" +__version__: str = "1.3.232" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.950.13" -__user_agent__: str = "speakeasy-sdk/python 1.3.231 2.950.13 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.3.232 2.950.13 1.0.0 openrouter" try: if __package__ is not None: diff --git a/src/openrouter/batch.py b/src/openrouter/batch.py index 1110b212..48894aa2 100644 --- a/src/openrouter/batch.py +++ b/src/openrouter/batch.py @@ -1218,7 +1218,7 @@ def cancel( ) -> components.BatchObject: r"""Cancel a batch - Asks the provider to stop a batch that is still running. Cancellation is enabled per organization; other organizations get `403`. The response is the batch in its current status: it stays `in_progress` until the provider confirms, then becomes `cancelled`, or `completed`, `failed`, or `expired` when the provider job ended first. Poll until the batch has any final status. Repeating the call is safe while the batch is still `in_progress`; once it has a final status the call returns `409`. OpenRouter returns no result rows for a cancelled batch, and the provider still charges for the requests that finished before the cancellation. When the batch wrote its output to your own storage, retrieving the batch can still return that location, and the rows the provider wrote there stay yours to read. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart). + Asks the provider to stop a batch that is still running. Cancellation is enabled per organization; other organizations get `403`. The response is the batch in its current status: it stays `in_progress` until the provider confirms, then becomes `cancelled`, or `completed`, `failed`, or `expired` when the provider job ended first. Poll until the batch has any final status. Repeating the call is safe while the batch is still `in_progress`; once it has a final status the call returns `409`. On OpenAI a cancelled batch keeps the requests that finished before the cancellation when OpenAI returns them: they are in `results` and billed like the rows of a completed batch. On every other provider OpenRouter returns no result rows for a cancelled batch, and the provider still charges for the requests that finished. When the batch wrote its output to your own storage, retrieving the batch can still return that location, and the rows the provider wrote there stay yours to read. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart). :param id: The batch job id returned from submit. :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. @@ -1343,7 +1343,7 @@ async def cancel_async( ) -> components.BatchObject: r"""Cancel a batch - Asks the provider to stop a batch that is still running. Cancellation is enabled per organization; other organizations get `403`. The response is the batch in its current status: it stays `in_progress` until the provider confirms, then becomes `cancelled`, or `completed`, `failed`, or `expired` when the provider job ended first. Poll until the batch has any final status. Repeating the call is safe while the batch is still `in_progress`; once it has a final status the call returns `409`. OpenRouter returns no result rows for a cancelled batch, and the provider still charges for the requests that finished before the cancellation. When the batch wrote its output to your own storage, retrieving the batch can still return that location, and the rows the provider wrote there stay yours to read. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart). + Asks the provider to stop a batch that is still running. Cancellation is enabled per organization; other organizations get `403`. The response is the batch in its current status: it stays `in_progress` until the provider confirms, then becomes `cancelled`, or `completed`, `failed`, or `expired` when the provider job ended first. Poll until the batch has any final status. Repeating the call is safe while the batch is still `in_progress`; once it has a final status the call returns `409`. On OpenAI a cancelled batch keeps the requests that finished before the cancellation when OpenAI returns them: they are in `results` and billed like the rows of a completed batch. On every other provider OpenRouter returns no result rows for a cancelled batch, and the provider still charges for the requests that finished. When the batch wrote its output to your own storage, retrieving the batch can still return that location, and the rows the provider wrote there stay yours to read. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart). :param id: The batch job id returned from submit. :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. diff --git a/src/openrouter/operations/listorganizationmembers.py b/src/openrouter/operations/listorganizationmembers.py index 52a74ece..9b380003 100644 --- a/src/openrouter/operations/listorganizationmembers.py +++ b/src/openrouter/operations/listorganizationmembers.py @@ -189,7 +189,7 @@ class ListOrganizationMembersDataTypedDict(TypedDict): email: str r"""Email address of the member""" external_id: Nullable[str] - r"""The member's SCIM user ID, which your identity provider stores for their OpenRouter account (Okta shows it as External ID); not the SCIM `externalId` attribute. Set when your organization's SCIM directory provisions, updates or syncs the member. Null when this organization's directory did not provision the member (for example, they were invited, signed up directly, or provisioned by another organization's directory) or has not synced them yet. Members can keep their last synced value after the directory is removed.""" + r"""The member's user ID at your identity provider, recorded when they sign in through your organization's SSO connection. Your identity provider must send the user ID attribute that connection reads (for Okta, `id` = `user.id`; for other identity providers, contact support). Set for members your organization's SCIM directory provisioned, once OpenRouter syncs them after that sign-in. Null before then, or when this organization's directory did not provision the member. Members can keep their last synced value after the directory is removed.""" first_name: Nullable[str] r"""First name of the member""" id: str @@ -205,7 +205,7 @@ class ListOrganizationMembersData(BaseModel): r"""Email address of the member""" external_id: Nullable[str] - r"""The member's SCIM user ID, which your identity provider stores for their OpenRouter account (Okta shows it as External ID); not the SCIM `externalId` attribute. Set when your organization's SCIM directory provisions, updates or syncs the member. Null when this organization's directory did not provision the member (for example, they were invited, signed up directly, or provisioned by another organization's directory) or has not synced them yet. Members can keep their last synced value after the directory is removed.""" + r"""The member's user ID at your identity provider, recorded when they sign in through your organization's SSO connection. Your identity provider must send the user ID attribute that connection reads (for Okta, `id` = `user.id`; for other identity providers, contact support). Set for members your organization's SCIM directory provisioned, once OpenRouter syncs them after that sign-in. Null before then, or when this organization's directory did not provision the member. Members can keep their last synced value after the directory is removed.""" first_name: Nullable[str] r"""First name of the member""" diff --git a/uv.lock b/uv.lock index f1656387..60a1d8ff 100644 --- a/uv.lock +++ b/uv.lock @@ -231,7 +231,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.3.231" +version = "1.3.232" source = { editable = "." } dependencies = [ { name = "httpcore" },