diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 7e4c679b..5e8a99f9 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: 5be60b3df0b772d4a1e72412e5fa57bb + docChecksum: de4a9e4b87b115f169404f47064de6d3 docVersion: 1.0.0 speakeasyVersion: 1.787.0 generationVersion: 2.914.0 - releaseVersion: 1.1.59 - configChecksum: 55d10c7f7eb996038e890bb1afd9fbf3 + releaseVersion: 1.1.60 + configChecksum: 2e9c5b44700eaa0b089df5b9d4f7e4e5 repoURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git published: true persistentEdits: - generation_id: 36a3dd95-ed41-4ff9-9696-c4f3b05f7541 - pristine_commit_hash: 2a659f864394533e91de3b67b9a1fc1e82444c2f - pristine_tree_hash: c8cae87933ca431a58e624f5b156000a238fdd0b + generation_id: 9d934d88-b483-4626-9464-b7b3df7311ec + pristine_commit_hash: 8a7c21e4f10b24f9fd62d4197e2d8082d210f13d + pristine_tree_hash: efe5fb2d7cfee4d339f9c687fc427472f3a91ae6 features: python: acceptHeaders: 3.0.0 @@ -6182,8 +6182,8 @@ trackedFiles: pristine_git_object: c7f6f46cb7fe3707737c51c7a1ddb435be7fec2b docs/operations/deleteworkspacerequest.mdx: id: 189f48e44c13 - last_write_checksum: sha1:39f29bacfb11c79b1d953c79dca9e8101ef0b4c8 - pristine_git_object: 50cb6375efaf00c21c0d511bea0142d735017ab2 + last_write_checksum: sha1:c70339065b01a136e26e797e4778d36a535b91ed + pristine_git_object: ba1a6161de90b0ebcb0ce62f3a95deeb7b4f1e2a docs/operations/dimension.mdx: id: b487fdd43b73 last_write_checksum: sha1:eb74d7de28b0132eb9599a10b080291e8f81d4c0 @@ -7246,16 +7246,16 @@ trackedFiles: pristine_git_object: 3ea6c23aa5715eac2c8d2e0a3d385cbaf12ad979 docs/sdks/workspaces/README.mdx: id: 0c75d023ef6b - last_write_checksum: sha1:529c0cf0fa3881b3564ca8182df7e50c91cd4e7f - pristine_git_object: 2c171445cabef01e4d8e6c51d4cabafd48975e61 + last_write_checksum: sha1:c079746a64ae6d17d275a869566c100b54d955bf + pristine_git_object: 4c3befc7aeb1c06281c65f81b9004b30c8bd05f7 py.typed: id: 258c3ed47ae4 last_write_checksum: sha1:8efc425ffe830805ffcc0f3055871bdcdc542c60 pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:461cce938a63d76a3a9c60da3bb3e312671c4a3b - pristine_git_object: a40a9272baf34905d0b1060cb4b7bb4179a4f39a + last_write_checksum: sha1:44e269107c67c7413c4aa434aa87c238026325fb + pristine_git_object: d6f364265fcc9784a5f49c4dcb3ed6456c2d8b27 scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 @@ -7282,8 +7282,8 @@ trackedFiles: pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 src/openrouter/_version.py: id: d8d15ad6c586 - last_write_checksum: sha1:d0922f7cd84af53a51cf526ce58c6e053a7a865d - pristine_git_object: a6696aa915a48c66616e85550c7594ef07dc3f9a + last_write_checksum: sha1:96d33e809311e6ef991d97c6640fdc048989529c + pristine_git_object: a4394764f8cb16c26ada9efbba97bab5d3e5ae7b src/openrouter/analytics.py: id: cb406b5aaabb last_write_checksum: sha1:3ea0f1c73fb9c101b7bc5719da4dd7bf62ff469a @@ -10046,8 +10046,8 @@ trackedFiles: pristine_git_object: fec5503fa15f0f9588686f364f2066bf55f3ea80 src/openrouter/operations/deleteworkspace.py: id: f92017ce65e8 - last_write_checksum: sha1:8cf5ad942a8a16cd086fa390495f37709ec55148 - pristine_git_object: 5bc55dd0a33f1bb17eb34f05035cdabdc00ab1d4 + last_write_checksum: sha1:4ed5d02547fd400d801117e13ae108f6256fc591 + pristine_git_object: b27b1bcfab51efa2b5c42021ad5580b6cec06204 src/openrouter/operations/deleteworkspacebudget.py: id: 4043f35925db last_write_checksum: sha1:1b6fd5acfd6b53525c8dcff26148535d5acf0401 @@ -10446,8 +10446,8 @@ trackedFiles: pristine_git_object: 34a2f1e5eb9526f692341b5efa393b2b58fb7a57 src/openrouter/workspaces.py: id: cd6c533b1802 - last_write_checksum: sha1:b5ba462194c82678de9d89e2f30508d66606bdea - pristine_git_object: fc95e700ab5303c7ca8e1ea1ac739ae8157147bf + last_write_checksum: sha1:b796f38262144b21ebf8f77e0a842903b4098e24 + pristine_git_object: 4c12e3e5bf324b810114aef2df30c822a0583f86 examples: createResponses: speakeasy-default-create-responses: @@ -12179,4 +12179,6 @@ examples: "500": application/json: {"error": {"code": 500, "message": "Internal Server Error"}} examplesVersion: 1.0.2 -releaseNotes: "## Python SDK Changes:\n* `open_router.beta.responses.send()`: \n * `request.input.union(Array<>)[]` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `open_router.presets.create_presets_responses()`: \n * `request.input.union(Array<>)[]` **Changed** (Breaking ⚠️)\n* `open_router.responses.send()`: \n * `request.input.union(Array<>)[]` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n" +releaseNotes: | + ## Python SDK Changes: + * `open_router.workspaces.delete()`: `request.confirm_default_settings_deletion` **Removed** (Breaking ⚠️) diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 0daba9e1..e54096a4 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -36,7 +36,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.1.59 + version: 1.1.60 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index a07cc967..36de97d7 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -38557,7 +38557,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 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.' + 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. 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' @@ -38569,19 +38569,6 @@ paths: example: 'production' minLength: 1 type: 'string' - - 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 (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' - example: 'false' - type: 'boolean' - x-openrouter-type: 'boolean' - x-speakeasy-unknown-values: allow responses: '200': content: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 2ffbd782..183cc1b8 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:e5f94b78271b3e6e508bb4ab72d889ffe31bb7bacd05c975766869991c7f9b73 - sourceBlobDigest: sha256:2511f671bdd7c80fb2df94c623b8900b060d7ffc166f835b874239c1fbb15955 + sourceRevisionDigest: sha256:2ba3349f56552f267b97b06400d036afd9b5d13fac201deae9223e84287ad57b + sourceBlobDigest: sha256:19f53f583bafc517e7c5bace49eb9c42d6ac702d8227f0686a6012cad647d6c7 tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:e5f94b78271b3e6e508bb4ab72d889ffe31bb7bacd05c975766869991c7f9b73 - sourceBlobDigest: sha256:2511f671bdd7c80fb2df94c623b8900b060d7ffc166f835b874239c1fbb15955 + sourceRevisionDigest: sha256:2ba3349f56552f267b97b06400d036afd9b5d13fac201deae9223e84287ad57b + sourceBlobDigest: sha256:19f53f583bafc517e7c5bace49eb9c42d6ac702d8227f0686a6012cad647d6c7 codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:3cb620a70f2f72fa7df7a51587d6e8adc6d4413b6b1429965d01bebfc9fa6721 + codeSamplesRevisionDigest: sha256:ecec21d9e3359f659969ae2edfcc4bf3e1ddf8fff140aad424d1bb6277f6ac0b workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.787.0 diff --git a/RELEASES.md b/RELEASES.md index e5ef787b..b02de064 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1379,4 +1379,14 @@ Based on: ### Generated - [python v1.1.59] . ### Releases -- [PyPI v1.1.59] https://pypi.org/project/openrouter/1.1.59 - . \ No newline at end of file +- [PyPI v1.1.59] https://pypi.org/project/openrouter/1.1.59 - . + +## 2026-08-17 21:05:48 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.1.60] . +### Releases +- [PyPI v1.1.60] https://pypi.org/project/openrouter/1.1.60 - . \ No newline at end of file diff --git a/docs/operations/deleteworkspacerequest.mdx b/docs/operations/deleteworkspacerequest.mdx index 50cb6375..ba1a6161 100644 --- a/docs/operations/deleteworkspacerequest.mdx +++ b/docs/operations/deleteworkspacerequest.mdx @@ -4,10 +4,9 @@ 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 (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 +| 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 | \ No newline at end of file diff --git a/docs/sdks/workspaces/README.mdx b/docs/sdks/workspaces/README.mdx index 2c171445..4c3befc7 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 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. +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. 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,13 @@ 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 (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. | | +| 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.
| | +| `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 a40a9272..d6f36426 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.1.59" +version = "1.1.60" 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 a6696aa9..a4394764 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.59" +__version__: str = "1.1.60" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.914.0" -__user_agent__: str = "speakeasy-sdk/python 1.1.59 2.914.0 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.1.60 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 5bc55dd0..b27b1bcf 100644 --- a/src/openrouter/operations/deleteworkspace.py +++ b/src/openrouter/operations/deleteworkspace.py @@ -2,12 +2,7 @@ from __future__ import annotations from openrouter.types import BaseModel, UNSET_SENTINEL -from openrouter.utils import ( - FieldMetadata, - HeaderMetadata, - PathParamMetadata, - QueryParamMetadata, -) +from openrouter.utils import FieldMetadata, HeaderMetadata, PathParamMetadata import pydantic from pydantic import model_serializer from typing import Optional @@ -94,8 +89,6 @@ class DeleteWorkspaceRequestTypedDict(TypedDict): r"""Comma-separated list of app categories (e.g. \"cli-agent,cloud-agent\"). Used for marketplace rankings. """ - confirm_default_settings_deletion: NotRequired[bool] - 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): @@ -132,21 +125,10 @@ class DeleteWorkspaceRequest(BaseModel): """ - confirm_default_settings_deletion: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = None - 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): optional_fields = set( - [ - "HTTP-Referer", - "X-OpenRouter-Title", - "X-OpenRouter-Categories", - "confirm_default_settings_deletion", - ] + ["HTTP-Referer", "X-OpenRouter-Title", "X-OpenRouter-Categories"] ) serialized = handler(self) m = {} diff --git a/src/openrouter/workspaces.py b/src/openrouter/workspaces.py index fc95e700..4c12e3e5 100644 --- a/src/openrouter/workspaces.py +++ b/src/openrouter/workspaces.py @@ -687,7 +687,6 @@ def delete( http_referer: Optional[str] = None, x_open_router_title: Optional[str] = None, x_open_router_categories: Optional[str] = None, - confirm_default_settings_deletion: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -695,7 +694,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 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. + 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. 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 +704,6 @@ 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 (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 @@ -726,7 +724,6 @@ def delete( x_open_router_title=x_open_router_title, x_open_router_categories=x_open_router_categories, id=id, - confirm_default_settings_deletion=confirm_default_settings_deletion, ) req = self._build_request( @@ -828,7 +825,6 @@ async def delete_async( http_referer: Optional[str] = None, x_open_router_title: Optional[str] = None, x_open_router_categories: Optional[str] = None, - confirm_default_settings_deletion: Optional[bool] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -836,7 +832,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 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. + 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. 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 +842,6 @@ 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 (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 @@ -867,7 +862,6 @@ async def delete_async( x_open_router_title=x_open_router_title, x_open_router_categories=x_open_router_categories, id=id, - confirm_default_settings_deletion=confirm_default_settings_deletion, ) req = self._build_request_async( diff --git a/uv.lock b/uv.lock index f4bc1154..236fdc83 100644 --- a/uv.lock +++ b/uv.lock @@ -213,7 +213,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.1.59" +version = "1.1.60" source = { editable = "." } dependencies = [ { name = "httpcore" },