From 1083096a14b655f008d209293ad120d97ad5d316 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 5 Dec 2026 05:24:12 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.803.2 --- .speakeasy/gen.lock | 29 ++++++++++++------------- .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 30 +++++++++++++------------- .speakeasy/workflow.lock | 10 ++++----- RELEASES.md | 12 ++++++++++- docs/sdks/guardrailpolicies/README.mdx | 10 ++++----- pyproject.toml | 2 +- src/openrouter/_version.py | 4 ++-- src/openrouter/guardrail_policies.py | 20 ++++++++--------- uv.lock | 2 +- 10 files changed, 65 insertions(+), 56 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 7c32b134..6be72eba 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: 44e816121f7386c21e0c62d08d159a7f + docChecksum: 3534d2fc1b56a60cfb5155d193ebbbae docVersion: 1.0.0 speakeasyVersion: 1.803.2 generationVersion: 2.950.13 - releaseVersion: 1.3.248 - configChecksum: 3b85946ca2851499a18603a125e13ee7 + releaseVersion: 1.3.249 + configChecksum: 9c96a31f744f8d97ae49afb34c00f652 repoURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git published: true persistentEdits: - generation_id: 2dce75bd-d14c-435f-9fb6-d0b6378f1073 - pristine_commit_hash: 1ed625264b0ece58a2e21c7aea790df8b1678689 - pristine_tree_hash: c928982858c19ce36478eb05df4806864c5511c2 + generation_id: 53118a64-20f8-4d36-b99a-bc3184324885 + pristine_commit_hash: 6a8793a6eb7a14a4d0f2837127b8b3557d4672a4 + pristine_tree_hash: 3800d01506b9490b5afb3b3a16a2bd3be9290ec2 features: python: acceptHeaders: 3.0.0 @@ -12600,8 +12600,8 @@ trackedFiles: pristine_git_object: 7ec17f429d4a03eb91f993e592edd019caeeb451 docs/sdks/guardrailpolicies/README.mdx: id: 0e5ed6ce5965 - last_write_checksum: sha1:1b84e58562930a8c90da470ca374e706a85a6aa6 - pristine_git_object: 0487a345570c6825ff5f920a6e81a3f6e8a20f8a + last_write_checksum: sha1:b904187d544cc7777bd60d680bada694d657c8ec + pristine_git_object: b6ff17f72f594b40aa22e3fc0df732c776ebe768 docs/sdks/guardrails/README.mdx: id: a0cd4218b8fa last_write_checksum: sha1:d5af5863ad27cfa25e66f238d58c53422282e73a @@ -12688,8 +12688,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:fd7fe0384911d4eb15199a8261b1db34b4a20af0 - pristine_git_object: 13352aa96fb0d98ff097db96d3d810ebab7b7e08 + last_write_checksum: sha1:99912460d4173130845589c3161201af31dd33ab + pristine_git_object: ec4076d23f45b1a0290e2fdfdf483fa4974533d7 scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 @@ -12716,8 +12716,8 @@ trackedFiles: pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 src/openrouter/_version.py: id: d8d15ad6c586 - last_write_checksum: sha1:a69a3e89c74fdf99e249c8784bf55b4ac1be3ac9 - pristine_git_object: 1f21bad301f60965eb2c4828b5298e417eb7c43f + last_write_checksum: sha1:652aea765469397ebfde8093c3195ab4bc5edef3 + pristine_git_object: 4c3aa128edd8f808bcd0193bc76509b425db3cea src/openrouter/alpha.py: id: 306c4d93308d last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766 @@ -17024,8 +17024,8 @@ trackedFiles: pristine_git_object: 67c135fcabfa563a3f7e2721d2618041ef8d7650 src/openrouter/guardrail_policies.py: id: 0505548eb66e - last_write_checksum: sha1:16f5f8055ac33690f85d15ada1ca2b3619c39bc7 - pristine_git_object: 724c517913837ea635fe2c33d68c00a4e371e14e + last_write_checksum: sha1:cc2844ab420956f2c625fe72ffbd1d3ae5ecb004 + pristine_git_object: 682e02dded6ae838155af717788529bb5a37fdbe src/openrouter/guardrails.py: id: 705839f34e66 last_write_checksum: sha1:69bf7403b0ab33a52b621377a3ee404f47f8983b @@ -23427,4 +23427,3 @@ examples: "500": application/json: {"error": {"code": 500, "message": "Internal Server Error"}} examplesVersion: 1.0.2 -releaseNotes: "## Python SDK Changes:\n* `open_router.analytics.query_analytics()`: `request.api_key_tag_key` **Added**\n* `open_router.api_keys.list()`: \n * `request.tag` **Added**\n * `response.data[].tags` **Added**\n* `open_router.api_keys.create()`: \n * `request.tags` **Added**\n * `response.data.tags` **Added**\n* `open_router.api_keys.get()`: `response.data.tags` **Added**\n* `open_router.api_keys.update()`: \n * `request.tags` **Added**\n * `response.data.tags` **Added**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index e4033d99..454c3ff4 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -37,7 +37,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.3.248 + version: 1.3.249 additionalDependencies: dev: pytest: '>=8.3' diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index 6bcd7b4b..7274f887 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -54034,7 +54034,7 @@ paths: - $ref: "#/components/parameters/AppCategories" /guardrails/policies/capacity: get: - description: 'List the capacity policies in a workspace. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required.' + description: 'List the capacity policies in a workspace. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.' operationId: 'listCapacityPolicies' parameters: - description: 'Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned' @@ -54099,10 +54099,10 @@ paths: example: error: code: 403 - message: 'Only management keys can perform this operation' + message: 'Capacity policies are only available to Enterprise customers in the private beta.' schema: $ref: '#/components/schemas/ForbiddenResponse' - description: 'Forbidden - Authentication successful but insufficient permissions' + description: 'Forbidden - Insufficient permissions, or the organization does not have access to the Enterprise private beta' '404': content: application/json: @@ -54139,7 +54139,7 @@ paths: results: '$.data' type: 'offsetLimit' post: - description: 'Create a capacity policy in a workspace. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required.' + description: 'Create a capacity policy in a workspace. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.' operationId: 'createCapacityPolicy' requestBody: content: @@ -54180,10 +54180,10 @@ paths: example: error: code: 403 - message: 'Only management keys can perform this operation' + message: 'Capacity policies are only available to Enterprise customers in the private beta.' schema: $ref: '#/components/schemas/ForbiddenResponse' - description: 'Forbidden - Authentication successful but insufficient permissions' + description: 'Forbidden - Insufficient permissions, or the organization does not have access to the Enterprise private beta' '404': content: application/json: @@ -54224,7 +54224,7 @@ paths: - $ref: "#/components/parameters/AppCategories" /guardrails/policies/capacity/{id}: delete: - description: 'Delete a capacity policy. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required.' + description: 'Delete a capacity policy. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.' operationId: 'deleteCapacityPolicy' parameters: - description: 'Policy ID' @@ -54278,10 +54278,10 @@ paths: example: error: code: 403 - message: 'Only management keys can perform this operation' + message: 'Capacity policies are only available to Enterprise customers in the private beta.' schema: $ref: '#/components/schemas/ForbiddenResponse' - description: 'Forbidden - Authentication successful but insufficient permissions' + description: 'Forbidden - Insufficient permissions, or the organization does not have access to the Enterprise private beta' '404': content: application/json: @@ -54317,7 +54317,7 @@ paths: - 'Guardrail Policies' x-speakeasy-name-override: 'deleteCapacityPolicy' get: - description: 'Get a capacity policy with its member and API key assignments. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required.' + description: 'Get a capacity policy with its member and API key assignments. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.' operationId: 'getCapacityPolicy' parameters: - description: 'Policy ID' @@ -54371,10 +54371,10 @@ paths: example: error: code: 403 - message: 'Only management keys can perform this operation' + message: 'Capacity policies are only available to Enterprise customers in the private beta.' schema: $ref: '#/components/schemas/ForbiddenResponse' - description: 'Forbidden - Authentication successful but insufficient permissions' + description: 'Forbidden - Insufficient permissions, or the organization does not have access to the Enterprise private beta' '404': content: application/json: @@ -54400,7 +54400,7 @@ paths: - 'Guardrail Policies' x-speakeasy-name-override: 'getCapacityPolicy' put: - description: 'Replace a capacity policy''s name and config, and optionally its assignments. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required.' + description: 'Replace a capacity policy''s name and config, and optionally its assignments. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.' operationId: 'updateCapacityPolicy' parameters: - description: 'Policy ID' @@ -54451,10 +54451,10 @@ paths: example: error: code: 403 - message: 'Only management keys can perform this operation' + message: 'Capacity policies are only available to Enterprise customers in the private beta.' schema: $ref: '#/components/schemas/ForbiddenResponse' - description: 'Forbidden - Authentication successful but insufficient permissions' + description: 'Forbidden - Insufficient permissions, or the organization does not have access to the Enterprise private beta' '404': content: application/json: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index cba122ef..380faf74 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:ef54628eec226fb9a27fb9f62f76b00199afae0ccb8cda126c2a3660f18cf07e - sourceBlobDigest: sha256:84db5b4d90dc3fc96f5774ea337beabaca528058d776a084cf8e920aa92d8710 + sourceRevisionDigest: sha256:898831486e74b7b1fdc330f2b661b2dc3bf23385aafa524379986c07424c3c66 + sourceBlobDigest: sha256:d0244ee95fd73eb73950dece5f5442c8609b49389be838d08f99bc9c983576dd tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:ef54628eec226fb9a27fb9f62f76b00199afae0ccb8cda126c2a3660f18cf07e - sourceBlobDigest: sha256:84db5b4d90dc3fc96f5774ea337beabaca528058d776a084cf8e920aa92d8710 + sourceRevisionDigest: sha256:898831486e74b7b1fdc330f2b661b2dc3bf23385aafa524379986c07424c3c66 + sourceBlobDigest: sha256:d0244ee95fd73eb73950dece5f5442c8609b49389be838d08f99bc9c983576dd codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:133780529bb319337ea0c3509deeb4e5551a755b43cd1e7a343780a3cdeec3e0 + codeSamplesRevisionDigest: sha256:22ef2e2ab712db95bd12305ba9a593a1fe08d53f72b51f25da19950f14cfdda6 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.803.2 diff --git a/RELEASES.md b/RELEASES.md index 20187b4a..ad4800fc 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -5249,4 +5249,14 @@ Based on: ### Generated - [python v1.3.248] . ### Releases -- [PyPI v1.3.248] https://pypi.org/project/openrouter/1.3.248 - . \ No newline at end of file +- [PyPI v1.3.248] https://pypi.org/project/openrouter/1.3.248 - . + +## 2026-12-05 05:20:36 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.3.249] . +### Releases +- [PyPI v1.3.249] https://pypi.org/project/openrouter/1.3.249 - . \ No newline at end of file diff --git a/docs/sdks/guardrailpolicies/README.mdx b/docs/sdks/guardrailpolicies/README.mdx index 0487a345..b6ff17f7 100644 --- a/docs/sdks/guardrailpolicies/README.mdx +++ b/docs/sdks/guardrailpolicies/README.mdx @@ -1040,7 +1040,7 @@ with OpenRouter( ## list_capacity_policies -List the capacity policies in a workspace. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required. +List the capacity policies in a workspace. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required. ### Example Usage @@ -1094,7 +1094,7 @@ with OpenRouter( ## create_capacity_policy -Create a capacity policy in a workspace. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required. +Create a capacity policy in a workspace. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required. ### Example Usage @@ -1166,7 +1166,7 @@ with OpenRouter( ## delete_capacity_policy -Delete a capacity policy. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required. +Delete a capacity policy. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required. ### Example Usage @@ -1218,7 +1218,7 @@ with OpenRouter( ## get_capacity_policy -Get a capacity policy with its member and API key assignments. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required. +Get a capacity policy with its member and API key assignments. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required. ### Example Usage @@ -1269,7 +1269,7 @@ with OpenRouter( ## update_capacity_policy -Replace a capacity policy's name and config, and optionally its assignments. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required. +Replace a capacity policy's name and config, and optionally its assignments. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required. ### Example Usage diff --git a/pyproject.toml b/pyproject.toml index 13352aa9..ec4076d2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.3.248" +version = "1.3.249" 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 1f21bad3..4c3aa128 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.248" +__version__: str = "1.3.249" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.950.13" -__user_agent__: str = "speakeasy-sdk/python 1.3.248 2.950.13 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.3.249 2.950.13 1.0.0 openrouter" try: if __package__ is not None: diff --git a/src/openrouter/guardrail_policies.py b/src/openrouter/guardrail_policies.py index 724c5179..682e02dd 100644 --- a/src/openrouter/guardrail_policies.py +++ b/src/openrouter/guardrail_policies.py @@ -5777,7 +5777,7 @@ def list_capacity_policies( ) -> Optional[operations.ListCapacityPoliciesResponse]: r"""List capacity policies - List the capacity policies in a workspace. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required. + List the capacity policies in a workspace. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required. :param workspace_id: Workspace the capacity policy belongs to. Capacity policies require an organization-scoped management key. :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. @@ -5954,7 +5954,7 @@ async def list_capacity_policies_async( ) -> Optional[operations.ListCapacityPoliciesResponse]: r"""List capacity policies - List the capacity policies in a workspace. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required. + List the capacity policies in a workspace. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required. :param workspace_id: Workspace the capacity policy belongs to. Capacity policies require an organization-scoped management key. :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. @@ -6144,7 +6144,7 @@ def create_capacity_policy( ) -> components.CapacityGuardrailPolicyResponse: r"""Create a capacity policy - Create a capacity policy in a workspace. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required. + Create a capacity policy in a workspace. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required. :param config: :param name: Policy name @@ -6334,7 +6334,7 @@ async def create_capacity_policy_async( ) -> components.CapacityGuardrailPolicyResponse: r"""Create a capacity policy - Create a capacity policy in a workspace. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required. + Create a capacity policy in a workspace. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required. :param config: :param name: Policy name @@ -6513,7 +6513,7 @@ def delete_capacity_policy( ) -> components.DeleteGuardrailPolicyResponse: r"""Delete a capacity policy - Delete a capacity policy. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required. + Delete a capacity policy. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required. :param id: Policy ID :param workspace_id: Workspace the capacity policy belongs to. Capacity policies require an organization-scoped management key. @@ -6661,7 +6661,7 @@ async def delete_capacity_policy_async( ) -> components.DeleteGuardrailPolicyResponse: r"""Delete a capacity policy - Delete a capacity policy. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required. + Delete a capacity policy. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required. :param id: Policy ID :param workspace_id: Workspace the capacity policy belongs to. Capacity policies require an organization-scoped management key. @@ -6809,7 +6809,7 @@ def get_capacity_policy( ) -> components.CapacityGuardrailPolicyDetailResponse: r"""Get a capacity policy - Get a capacity policy with its member and API key assignments. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required. + Get a capacity policy with its member and API key assignments. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required. :param id: Policy ID :param workspace_id: Workspace the capacity policy belongs to. Capacity policies require an organization-scoped management key. @@ -6952,7 +6952,7 @@ async def get_capacity_policy_async( ) -> components.CapacityGuardrailPolicyDetailResponse: r"""Get a capacity policy - Get a capacity policy with its member and API key assignments. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required. + Get a capacity policy with its member and API key assignments. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required. :param id: Policy ID :param workspace_id: Workspace the capacity policy belongs to. Capacity policies require an organization-scoped management key. @@ -7105,7 +7105,7 @@ def update_capacity_policy( ) -> components.CapacityGuardrailPolicyResponse: r"""Update a capacity policy - Replace a capacity policy's name and config, and optionally its assignments. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required. + Replace a capacity policy's name and config, and optionally its assignments. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required. :param id: Policy ID :param config: @@ -7292,7 +7292,7 @@ async def update_capacity_policy_async( ) -> components.CapacityGuardrailPolicyResponse: r"""Update a capacity policy - Replace a capacity policy's name and config, and optionally its assignments. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required. + Replace a capacity policy's name and config, and optionally its assignments. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required. :param id: Policy ID :param config: diff --git a/uv.lock b/uv.lock index 51361156..3e4ae64c 100644 --- a/uv.lock +++ b/uv.lock @@ -231,7 +231,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.3.248" +version = "1.3.249" source = { editable = "." } dependencies = [ { name = "httpcore" },