diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index f5eaf5e7..de4c3ac9 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: 2d5bcd23718a2f336acb63e4dbd5a3f4 + docChecksum: 1e2a0333ab1ccfe5306774b00cbdbcc1 docVersion: 1.0.0 speakeasyVersion: 1.787.0 generationVersion: 2.914.0 - releaseVersion: 1.1.53 - configChecksum: 046b9a1447a12fc06957e8165fb33a5a + releaseVersion: 1.1.54 + configChecksum: 1765552a9cbf18829bcaaffcd4ab91d3 repoURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git published: true persistentEdits: - generation_id: d0a8239a-44f6-4840-8b7d-577fd92030ac - pristine_commit_hash: c4f40d2d82ebd6183c92956112143a5420161520 - pristine_tree_hash: 31f8c130d0fa462508b614115d096e2724e40099 + generation_id: 1ed6be0d-a8eb-4a89-9f33-17e8194ac24b + pristine_commit_hash: b3eef92b13f15402c63132fb08e94d8dcae44de4 + pristine_tree_hash: a85ad4f87a1877864e61a0bcaacc04a25937135b features: python: acceptHeaders: 3.0.0 @@ -6162,8 +6162,8 @@ trackedFiles: pristine_git_object: c7f6f46cb7fe3707737c51c7a1ddb435be7fec2b docs/operations/deleteworkspacerequest.mdx: id: 189f48e44c13 - last_write_checksum: sha1:4f9b53b1fa46519f53e9559223533692c8de4480 - pristine_git_object: cc9d4416873fe746dd63f2832af6ecb256170975 + last_write_checksum: sha1:39f29bacfb11c79b1d953c79dca9e8101ef0b4c8 + pristine_git_object: 50cb6375efaf00c21c0d511bea0142d735017ab2 docs/operations/dimension.mdx: id: b487fdd43b73 last_write_checksum: sha1:eb74d7de28b0132eb9599a10b080291e8f81d4c0 @@ -7226,16 +7226,16 @@ trackedFiles: pristine_git_object: 3ea6c23aa5715eac2c8d2e0a3d385cbaf12ad979 docs/sdks/workspaces/README.mdx: id: 0c75d023ef6b - last_write_checksum: sha1:647c33858f05da6d34f3bfabe1b72cacc2a307ae - pristine_git_object: 4e623ef27c5a49e8175c4862a56b07dc8af369e9 + last_write_checksum: sha1:529c0cf0fa3881b3564ca8182df7e50c91cd4e7f + pristine_git_object: 2c171445cabef01e4d8e6c51d4cabafd48975e61 py.typed: id: 258c3ed47ae4 last_write_checksum: sha1:8efc425ffe830805ffcc0f3055871bdcdc542c60 pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:53e50533f146f4ac766c94b5b7b32335523c0337 - pristine_git_object: 68ae14ebea3cc0946a60e58727930bd12accae3d + last_write_checksum: sha1:9436613d062c6b92fef51805fa349cf9f2024317 + pristine_git_object: 5d1d1c4df99f6f6ea98421344af9b091c01a878c scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 @@ -7262,8 +7262,8 @@ trackedFiles: pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 src/openrouter/_version.py: id: d8d15ad6c586 - last_write_checksum: sha1:ab7cf50544b97675cf90ac09044a0866cf9d1910 - pristine_git_object: 81fa932cfb4133ccb4d7c1694a124ee5e3f0aafb + last_write_checksum: sha1:31e034517cad1c6979c3d9efa5a86270cdd84082 + pristine_git_object: ce1d1b5a37d795079a60ac8f56dae32b4ff7aa7d src/openrouter/analytics.py: id: cb406b5aaabb last_write_checksum: sha1:3ea0f1c73fb9c101b7bc5719da4dd7bf62ff469a @@ -10018,8 +10018,8 @@ trackedFiles: pristine_git_object: fec5503fa15f0f9588686f364f2066bf55f3ea80 src/openrouter/operations/deleteworkspace.py: id: f92017ce65e8 - last_write_checksum: sha1:16e1162c55855645fad2a3a06549bd77eddb3a6c - pristine_git_object: d6003d891c2a894880ea3e1262c665cebe9434dc + last_write_checksum: sha1:8cf5ad942a8a16cd086fa390495f37709ec55148 + pristine_git_object: 5bc55dd0a33f1bb17eb34f05035cdabdc00ab1d4 src/openrouter/operations/deleteworkspacebudget.py: id: 4043f35925db last_write_checksum: sha1:1b6fd5acfd6b53525c8dcff26148535d5acf0401 @@ -10418,8 +10418,8 @@ trackedFiles: pristine_git_object: 34a2f1e5eb9526f692341b5efa393b2b58fb7a57 src/openrouter/workspaces.py: id: cd6c533b1802 - last_write_checksum: sha1:71305961ecafbe8abace45f9c734da6e583e599b - pristine_git_object: bd71763eb04430ae68f6dab0a45d64a2f7515f71 + last_write_checksum: sha1:b5ba462194c82678de9d89e2f30508d66606bdea + pristine_git_object: fc95e700ab5303c7ca8e1ea1ac739ae8157147bf examples: createResponses: speakeasy-default-create-responses: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 9e3edb6c..234624ff 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -36,7 +36,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.1.53 + version: 1.1.54 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index ced0fde4..9ae711cc 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -38421,7 +38421,7 @@ paths: - $ref: "#/components/parameters/AppCategories" /workspaces/{id}: delete: - description: 'Delete an existing workspace. Workspaces with active API keys cannot be deleted; remove the keys first. Deleting the default workspace is currently limited to internal OpenRouter administrators while the capability rolls out; other callers receive a 403. When permitted, it requires `confirm_default_settings_deletion=true` and additionally disables the account’s unscoped inference API keys; management (provisioning) keys are retained. Deleting any workspace permanently deletes its budgets and guardrails and disables its classifiers and broadcast destinations. [Management key](/docs/guides/overview/auth/management-api-keys) required.' + description: 'Delete an existing workspace. Workspaces with active API keys cannot be deleted; remove the keys first. Deleting the default workspace is not yet generally available; callers not enabled for it receive a 403 while the capability rolls out. When permitted, it requires `confirm_default_settings_deletion=true` and additionally disables the account’s unscoped inference API keys; management (provisioning) keys are retained. Deleting any workspace permanently deletes its budgets and guardrails and disables its classifiers and broadcast destinations. [Management key](/docs/guides/overview/auth/management-api-keys) required.' operationId: 'deleteWorkspace' parameters: - description: 'The workspace ID (UUID) or slug' @@ -38433,12 +38433,12 @@ paths: example: 'production' minLength: 1 type: 'string' - - description: 'Required to delete the default workspace (currently limited to internal OpenRouter administrators while the capability rolls out). Deleting it permanently disables the account’s unscoped inference API keys (management/provisioning keys are retained) and its budgets, guardrails, classifiers, and broadcast destinations. Ignored for non-default workspaces.' + - description: 'Required to delete the default workspace (not yet generally available; callers not enabled for it receive a 403 while the capability rolls out). Deleting it permanently disables the account’s unscoped inference API keys (management/provisioning keys are retained) and its budgets, guardrails, classifiers, and broadcast destinations. Ignored for non-default workspaces.' in: 'query' name: 'confirm_default_settings_deletion' required: false schema: - description: 'Required to delete the default workspace (currently limited to internal OpenRouter administrators while the capability rolls out). Deleting it permanently disables the account’s unscoped inference API keys (management/provisioning keys are retained) and its budgets, guardrails, classifiers, and broadcast destinations. Ignored for non-default workspaces.' + description: 'Required to delete the default workspace (not yet generally available; callers not enabled for it receive a 403 while the capability rolls out). Deleting it permanently disables the account’s unscoped inference API keys (management/provisioning keys are retained) and its budgets, guardrails, classifiers, and broadcast destinations. Ignored for non-default workspaces.' enum: - 'true' - 'false' diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 09c45d8e..ff3cf5de 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:6c76bfeb6a982bcb53a0b5f815ccab5f21cef0ec3ce014453f5802412c481f8a - sourceBlobDigest: sha256:4c1aad2d75f9821f8ccdba6874352a0a47f9861c76dae22fcf4dc57a6dd1c9e0 + sourceRevisionDigest: sha256:d7a51a0a213dc85a88d54cd2e0c98a77fd9804bd4acd56984a7a33e7f3f0ed77 + sourceBlobDigest: sha256:425bccde4dbcc6d9c458a512f422912fe04ce29dd8c30574ea4e5cf67f748f34 tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:6c76bfeb6a982bcb53a0b5f815ccab5f21cef0ec3ce014453f5802412c481f8a - sourceBlobDigest: sha256:4c1aad2d75f9821f8ccdba6874352a0a47f9861c76dae22fcf4dc57a6dd1c9e0 + sourceRevisionDigest: sha256:d7a51a0a213dc85a88d54cd2e0c98a77fd9804bd4acd56984a7a33e7f3f0ed77 + sourceBlobDigest: sha256:425bccde4dbcc6d9c458a512f422912fe04ce29dd8c30574ea4e5cf67f748f34 codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:1ec9d902e312299d629fe65c0a05a57c256db41c6a70ccecba7461a815fa8174 + codeSamplesRevisionDigest: sha256:ed7122afb647d917a5bb2782c4514a69b89c2ad5c2d1911111392a43b41db98a workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.787.0 diff --git a/RELEASES.md b/RELEASES.md index 60b9b20f..9df1815b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1319,4 +1319,14 @@ Based on: ### Generated - [python v1.1.53] . ### Releases -- [PyPI v1.1.53] https://pypi.org/project/openrouter/1.1.53 - . \ No newline at end of file +- [PyPI v1.1.53] https://pypi.org/project/openrouter/1.1.53 - . + +## 2026-08-13 23:02:05 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.1.54] . +### Releases +- [PyPI v1.1.54] https://pypi.org/project/openrouter/1.1.54 - . \ No newline at end of file diff --git a/docs/operations/deleteworkspacerequest.mdx b/docs/operations/deleteworkspacerequest.mdx index cc9d4416..50cb6375 100644 --- a/docs/operations/deleteworkspacerequest.mdx +++ b/docs/operations/deleteworkspacerequest.mdx @@ -4,10 +4,10 @@ title: "DeleteWorkspaceRequest" ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `http_referer` | *Optional[str]* | :heavy_minus_sign: | 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.
| | -| `x_open_router_title` | *Optional[str]* | :heavy_minus_sign: | The app display name allows you to customize how your app appears in OpenRouter's dashboard.
| | -| `x_open_router_categories` | *Optional[str]* | :heavy_minus_sign: | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
| | -| `id` | *str* | :heavy_check_mark: | The workspace ID (UUID) or slug | production | -| `confirm_default_settings_deletion` | *Optional[bool]* | :heavy_minus_sign: | Required to delete the default workspace (currently limited to internal OpenRouter administrators while the capability rolls out). Deleting it permanently disables the account’s unscoped inference API keys (management/provisioning keys are retained) and its budgets, guardrails, classifiers, and broadcast destinations. Ignored for non-default workspaces. | false | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `http_referer` | *Optional[str]* | :heavy_minus_sign: | 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.
| | +| `x_open_router_title` | *Optional[str]* | :heavy_minus_sign: | The app display name allows you to customize how your app appears in OpenRouter's dashboard.
| | +| `x_open_router_categories` | *Optional[str]* | :heavy_minus_sign: | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
| | +| `id` | *str* | :heavy_check_mark: | The workspace ID (UUID) or slug | production | +| `confirm_default_settings_deletion` | *Optional[bool]* | :heavy_minus_sign: | Required to delete the default workspace (not yet generally available; callers not enabled for it receive a 403 while the capability rolls out). Deleting it permanently disables the account’s unscoped inference API keys (management/provisioning keys are retained) and its budgets, guardrails, classifiers, and broadcast destinations. Ignored for non-default workspaces. | false | \ No newline at end of file diff --git a/docs/sdks/workspaces/README.mdx b/docs/sdks/workspaces/README.mdx index 4e623ef2..2c171445 100644 --- a/docs/sdks/workspaces/README.mdx +++ b/docs/sdks/workspaces/README.mdx @@ -133,7 +133,7 @@ with OpenRouter( ## delete -Delete an existing workspace. Workspaces with active API keys cannot be deleted; remove the keys first. Deleting the default workspace is currently limited to internal OpenRouter administrators while the capability rolls out; other callers receive a 403. When permitted, it requires `confirm_default_settings_deletion=true` and additionally disables the account’s unscoped inference API keys; management (provisioning) keys are retained. Deleting any workspace permanently deletes its budgets and guardrails and disables its classifiers and broadcast destinations. [Management key](/docs/guides/overview/auth/management-api-keys) required. +Delete an existing workspace. Workspaces with active API keys cannot be deleted; remove the keys first. Deleting the default workspace is not yet generally available; callers not enabled for it receive a 403 while the capability rolls out. When permitted, it requires `confirm_default_settings_deletion=true` and additionally disables the account’s unscoped inference API keys; management (provisioning) keys are retained. Deleting any workspace permanently deletes its budgets and guardrails and disables its classifiers and broadcast destinations. [Management key](/docs/guides/overview/auth/management-api-keys) required. ### Example Usage @@ -158,14 +158,14 @@ with OpenRouter( ### Parameters -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *str* | :heavy_check_mark: | The workspace ID (UUID) or slug | production | -| `http_referer` | *Optional[str]* | :heavy_minus_sign: | 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.
| | -| `x_open_router_title` | *Optional[str]* | :heavy_minus_sign: | The app display name allows you to customize how your app appears in OpenRouter's dashboard.
| | -| `x_open_router_categories` | *Optional[str]* | :heavy_minus_sign: | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
| | -| `confirm_default_settings_deletion` | *Optional[bool]* | :heavy_minus_sign: | Required to delete the default workspace (currently limited to internal OpenRouter administrators while the capability rolls out). Deleting it permanently disables the account’s unscoped inference API keys (management/provisioning keys are retained) and its budgets, guardrails, classifiers, and broadcast destinations. Ignored for non-default workspaces. | false | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.mdx) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | The workspace ID (UUID) or slug | production | +| `http_referer` | *Optional[str]* | :heavy_minus_sign: | 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.
| | +| `x_open_router_title` | *Optional[str]* | :heavy_minus_sign: | The app display name allows you to customize how your app appears in OpenRouter's dashboard.
| | +| `x_open_router_categories` | *Optional[str]* | :heavy_minus_sign: | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
| | +| `confirm_default_settings_deletion` | *Optional[bool]* | :heavy_minus_sign: | Required to delete the default workspace (not yet generally available; callers not enabled for it receive a 403 while the capability rolls out). Deleting it permanently disables the account’s unscoped inference API keys (management/provisioning keys are retained) and its budgets, guardrails, classifiers, and broadcast destinations. Ignored for non-default workspaces. | false | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.mdx) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response diff --git a/pyproject.toml b/pyproject.toml index 68ae14eb..5d1d1c4d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.1.53" +version = "1.1.54" 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 81fa932c..ce1d1b5a 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.53" +__version__: str = "1.1.54" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.914.0" -__user_agent__: str = "speakeasy-sdk/python 1.1.53 2.914.0 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.1.54 2.914.0 1.0.0 openrouter" try: if __package__ is not None: diff --git a/src/openrouter/operations/deleteworkspace.py b/src/openrouter/operations/deleteworkspace.py index d6003d89..5bc55dd0 100644 --- a/src/openrouter/operations/deleteworkspace.py +++ b/src/openrouter/operations/deleteworkspace.py @@ -95,7 +95,7 @@ class DeleteWorkspaceRequestTypedDict(TypedDict): """ confirm_default_settings_deletion: NotRequired[bool] - r"""Required to delete the default workspace (currently limited to internal OpenRouter administrators while the capability rolls out). Deleting it permanently disables the account’s unscoped inference API keys (management/provisioning keys are retained) and its budgets, guardrails, classifiers, and broadcast destinations. Ignored for non-default workspaces.""" + r"""Required to delete the default workspace (not yet generally available; callers not enabled for it receive a 403 while the capability rolls out). Deleting it permanently disables the account’s unscoped inference API keys (management/provisioning keys are retained) and its budgets, guardrails, classifiers, and broadcast destinations. Ignored for non-default workspaces.""" class DeleteWorkspaceRequest(BaseModel): @@ -136,7 +136,7 @@ class DeleteWorkspaceRequest(BaseModel): Optional[bool], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = None - r"""Required to delete the default workspace (currently limited to internal OpenRouter administrators while the capability rolls out). Deleting it permanently disables the account’s unscoped inference API keys (management/provisioning keys are retained) and its budgets, guardrails, classifiers, and broadcast destinations. Ignored for non-default workspaces.""" + r"""Required to delete the default workspace (not yet generally available; callers not enabled for it receive a 403 while the capability rolls out). Deleting it permanently disables the account’s unscoped inference API keys (management/provisioning keys are retained) and its budgets, guardrails, classifiers, and broadcast destinations. Ignored for non-default workspaces.""" @model_serializer(mode="wrap") def serialize_model(self, handler): diff --git a/src/openrouter/workspaces.py b/src/openrouter/workspaces.py index bd71763e..fc95e700 100644 --- a/src/openrouter/workspaces.py +++ b/src/openrouter/workspaces.py @@ -695,7 +695,7 @@ def delete( ) -> components.DeleteWorkspaceResponse: r"""Delete a workspace - Delete an existing workspace. Workspaces with active API keys cannot be deleted; remove the keys first. Deleting the default workspace is currently limited to internal OpenRouter administrators while the capability rolls out; other callers receive a 403. When permitted, it requires `confirm_default_settings_deletion=true` and additionally disables the account’s unscoped inference API keys; management (provisioning) keys are retained. Deleting any workspace permanently deletes its budgets and guardrails and disables its classifiers and broadcast destinations. [Management key](/docs/guides/overview/auth/management-api-keys) required. + Delete an existing workspace. Workspaces with active API keys cannot be deleted; remove the keys first. Deleting the default workspace is not yet generally available; callers not enabled for it receive a 403 while the capability rolls out. When permitted, it requires `confirm_default_settings_deletion=true` and additionally disables the account’s unscoped inference API keys; management (provisioning) keys are retained. Deleting any workspace permanently deletes its budgets and guardrails and disables its classifiers and broadcast destinations. [Management key](/docs/guides/overview/auth/management-api-keys) required. :param id: The workspace ID (UUID) or slug :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. @@ -705,7 +705,7 @@ def delete( :param x_open_router_categories: Comma-separated list of app categories (e.g. \"cli-agent,cloud-agent\"). Used for marketplace rankings. - :param confirm_default_settings_deletion: Required to delete the default workspace (currently limited to internal OpenRouter administrators while the capability rolls out). Deleting it permanently disables the account’s unscoped inference API keys (management/provisioning keys are retained) and its budgets, guardrails, classifiers, and broadcast destinations. Ignored for non-default workspaces. + :param confirm_default_settings_deletion: Required to delete the default workspace (not yet generally available; callers not enabled for it receive a 403 while the capability rolls out). Deleting it permanently disables the account’s unscoped inference API keys (management/provisioning keys are retained) and its budgets, guardrails, classifiers, and broadcast destinations. Ignored for non-default workspaces. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -836,7 +836,7 @@ async def delete_async( ) -> components.DeleteWorkspaceResponse: r"""Delete a workspace - Delete an existing workspace. Workspaces with active API keys cannot be deleted; remove the keys first. Deleting the default workspace is currently limited to internal OpenRouter administrators while the capability rolls out; other callers receive a 403. When permitted, it requires `confirm_default_settings_deletion=true` and additionally disables the account’s unscoped inference API keys; management (provisioning) keys are retained. Deleting any workspace permanently deletes its budgets and guardrails and disables its classifiers and broadcast destinations. [Management key](/docs/guides/overview/auth/management-api-keys) required. + Delete an existing workspace. Workspaces with active API keys cannot be deleted; remove the keys first. Deleting the default workspace is not yet generally available; callers not enabled for it receive a 403 while the capability rolls out. When permitted, it requires `confirm_default_settings_deletion=true` and additionally disables the account’s unscoped inference API keys; management (provisioning) keys are retained. Deleting any workspace permanently deletes its budgets and guardrails and disables its classifiers and broadcast destinations. [Management key](/docs/guides/overview/auth/management-api-keys) required. :param id: The workspace ID (UUID) or slug :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. @@ -846,7 +846,7 @@ async def delete_async( :param x_open_router_categories: Comma-separated list of app categories (e.g. \"cli-agent,cloud-agent\"). Used for marketplace rankings. - :param confirm_default_settings_deletion: Required to delete the default workspace (currently limited to internal OpenRouter administrators while the capability rolls out). Deleting it permanently disables the account’s unscoped inference API keys (management/provisioning keys are retained) and its budgets, guardrails, classifiers, and broadcast destinations. Ignored for non-default workspaces. + :param confirm_default_settings_deletion: Required to delete the default workspace (not yet generally available; callers not enabled for it receive a 403 while the capability rolls out). Deleting it permanently disables the account’s unscoped inference API keys (management/provisioning keys are retained) and its budgets, guardrails, classifiers, and broadcast destinations. Ignored for non-default workspaces. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds diff --git a/uv.lock b/uv.lock index c3f2e9f6..77d6819b 100644 --- a/uv.lock +++ b/uv.lock @@ -213,7 +213,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.1.53" +version = "1.1.54" source = { editable = "." } dependencies = [ { name = "httpcore" },