Skip to content

Commit a55b4fe

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate (spec change merged) 1.3.156 (#1297)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
1 parent a1e330c commit a55b4fe

14 files changed

Lines changed: 181 additions & 174 deletions

File tree

‎.speakeasy/gen.lock‎

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: c48cf606-fb42-4a45-9c23-8f0555307828
33
management:
4-
docChecksum: ad64df57db005388ef0180bca93a668e
4+
docChecksum: 3dc6b9becb1dd17399124bc1dfabd38a
55
docVersion: 1.0.0
66
speakeasyVersion: 1.803.2
77
generationVersion: 2.950.13
8-
releaseVersion: 1.3.155
9-
configChecksum: 12b89731a35d72ec3993c48a1808819e
8+
releaseVersion: 1.3.156
9+
configChecksum: 1bf0170b4bad4ad5a834268897b1bfa3
1010
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
1111
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
1212
published: true
1313
persistentEdits:
14-
generation_id: fb165d8b-fb53-448d-b9db-ba3ddfb6b41f
15-
pristine_commit_hash: a50bc4edb56663b4d33d4cdf881d4e9112e15819
16-
pristine_tree_hash: 5ff35757e33bc4e72b878aa7ebf5215959e05247
14+
generation_id: 1ea63ca2-235e-46cf-8fcc-caaf87da85c2
15+
pristine_commit_hash: 2a98f8aec0376b7bfca0115b2715c08e0e81a7ea
16+
pristine_tree_hash: f9cddff889daf4e40e47bae67d81c07d5f1030c0
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -2772,8 +2772,8 @@ trackedFiles:
27722772
pristine_git_object: ad32bc42c733d9c38b955e3857469481325d458d
27732773
docs/components/createguardrailrequest.mdx:
27742774
id: c1a768f054c0
2775-
last_write_checksum: sha1:c21042a4a5fcf8cc1c0f8dcfda83efa24b2402aa
2776-
pristine_git_object: a3858424c3e767de1d51a6361d521290e49d226e
2775+
last_write_checksum: sha1:473d3717f62f7f8ec2973cb3412f2362274ff371
2776+
pristine_git_object: 934e197b283d4d82eb80356975cb3e02b115e97b
27772777
docs/components/createguardrailresponse.mdx:
27782778
id: 1477eebdf505
27792779
last_write_checksum: sha1:e13e8bf981d83c771dfc6d3e4ab81a949487dbd3
@@ -10736,8 +10736,8 @@ trackedFiles:
1073610736
pristine_git_object: 48b141f2096944a1423d0a1a7e64bdb34962c79e
1073710737
docs/operations/listguardrailsrequest.mdx:
1073810738
id: 99334b4d6619
10739-
last_write_checksum: sha1:3018d3d5df1a406b041195179ca97bb543f4b151
10740-
pristine_git_object: c84b9a13dd72c39b29d240e6a43236d3156c4707
10739+
last_write_checksum: sha1:3a1fa5646ac3d28cc74a9f1b74eae2b4adaa7121
10740+
pristine_git_object: c2991b605da74c034e8e328c2bc38e558fa36dd7
1074110741
docs/operations/listguardrailsresponse.mdx:
1074210742
id: b96388a22ab2
1074310743
last_write_checksum: sha1:4dec6c5f2c565ec9b07b358dd2c29b06a60fb683
@@ -11504,8 +11504,8 @@ trackedFiles:
1150411504
pristine_git_object: 0fa8a42f96cb4f234775f8bb07f8d985eb041bc3
1150511505
docs/sdks/guardrails/README.mdx:
1150611506
id: a0cd4218b8fa
11507-
last_write_checksum: sha1:d7e1c765f925bb303b9585638075e1ef44d617fa
11508-
pristine_git_object: 5549912bda5e7b96a81658a996a60715573f0603
11507+
last_write_checksum: sha1:1e7487cbc4699df83c7a798431b280cc2b5da8b2
11508+
pristine_git_object: 19715d9b3b226b45633808f7bab4507fb358c878
1150911509
docs/sdks/images/README.mdx:
1151011510
id: 534a6c102c4f
1151111511
last_write_checksum: sha1:079630beece943bdc653184e6d6448df72a62bd5
@@ -11588,8 +11588,8 @@ trackedFiles:
1158811588
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
1158911589
pyproject.toml:
1159011590
id: 5d07e7d72637
11591-
last_write_checksum: sha1:c46534dc22df5c939427a873c12bf226d7d6d0b8
11592-
pristine_git_object: 4367c4942dd87c77df9868c905e95f3a55f7e326
11591+
last_write_checksum: sha1:350c250d375e528f4b182f8715a6985301914463
11592+
pristine_git_object: df73c3fe6050eb939195dc78558ecd0c37ed8582
1159311593
scripts/prepare_readme.py:
1159411594
id: e0c5957a6035
1159511595
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -11616,8 +11616,8 @@ trackedFiles:
1161611616
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
1161711617
src/openrouter/_version.py:
1161811618
id: d8d15ad6c586
11619-
last_write_checksum: sha1:c539afb9331dafccfb71a9221c154ee1b5e7b014
11620-
pristine_git_object: b2b5c94c838e7f3165dca7a520a1082a5d007b73
11619+
last_write_checksum: sha1:f0c49655b2088e98075bdaf212c6553b47434dde
11620+
pristine_git_object: 57dc566face63e6cb1f59f2a216a469f0ea08edc
1162111621
src/openrouter/alpha.py:
1162211622
id: 306c4d93308d
1162311623
last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766
@@ -12836,8 +12836,8 @@ trackedFiles:
1283612836
pristine_git_object: c575c3dbc1aeeb262172f88c60d0e4eddddf5e21
1283712837
src/openrouter/components/createguardrailrequest.py:
1283812838
id: 34d69149fb33
12839-
last_write_checksum: sha1:d564398773edc7e939a540f8846854af2788b470
12840-
pristine_git_object: 825411407e93d56339d382e4e79c9c36ce0bece2
12839+
last_write_checksum: sha1:70f34d4bc244cd3b4c7c495e1113c7e27cf9768b
12840+
pristine_git_object: e93fe85d66f1149dcdf8366d5054157372343d95
1284112841
src/openrouter/components/createguardrailresponse.py:
1284212842
id: b4e1bdf1de5b
1284312843
last_write_checksum: sha1:ae20a5e7425510c240e5697d847b1cae65940bd6
@@ -15628,8 +15628,8 @@ trackedFiles:
1562815628
pristine_git_object: 9f5800f27db62a5159098c5cea96ed0dc312149d
1562915629
src/openrouter/guardrails.py:
1563015630
id: 705839f34e66
15631-
last_write_checksum: sha1:03183cc20b6c9f41b62b589ed6a6cb370ce50cc9
15632-
pristine_git_object: 7051ec6482027676d268b4a943217d117af98b05
15631+
last_write_checksum: sha1:c9e827a99a58270771866911589c6b31ceee16c3
15632+
pristine_git_object: af664037202c670135045f7a351f0b07ff6c8e88
1563315633
src/openrouter/httpclient.py:
1563415634
id: e9311185443d
1563515635
last_write_checksum: sha1:5e55338d6ee9f01ab648cad4380201a8a3da7dd7
@@ -16128,8 +16128,8 @@ trackedFiles:
1612816128
pristine_git_object: 49357f1052d225c348c08e831748d5dd23455ea0
1612916129
src/openrouter/operations/listguardrails.py:
1613016130
id: c99a9e7be93c
16131-
last_write_checksum: sha1:6fe758f70a1b8695d4e2d8de6240b465d8b48b4a
16132-
pristine_git_object: c7d05cc96dd5b5113e3febe24173a0c2a62c4119
16131+
last_write_checksum: sha1:5f3c90db667e2a1c3159fa442d9e08d56e6bc1ef
16132+
pristine_git_object: 556e75c731c7dd7d58c5a6769ffe6e8b0ef3654c
1613316133
src/openrouter/operations/listimagemodelendpoints.py:
1613416134
id: 40fd868ead3f
1613516135
last_write_checksum: sha1:2f4ba55f45f8fe4b5ce56cb6781fa8db455f8927
@@ -21573,6 +21573,3 @@ examples:
2157321573
"500":
2157421574
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
2157521575
examplesVersion: 1.0.2
21576-
releaseNotes: |
21577-
## Python SDK Changes:
21578-
* `open_router.alpha.extractions.create()`: `request` **Changed**

‎.speakeasy/gen.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ generation:
3737
documentation: mintlify
3838
preApplyUnionDiscriminators: true
3939
python:
40-
version: 1.3.155
40+
version: 1.3.156
4141
additionalDependencies:
4242
dev:
4343
pytest: '>=8.3'

‎.speakeasy/out.openapi.yaml‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10765,7 +10765,7 @@ components:
1076510765
reset_interval:
1076610766
$ref: '#/components/schemas/GuardrailInterval'
1076710767
workspace_id:
10768-
description: 'The workspace to create the guardrail in. When omitted, the guardrail is created in the default workspace; if that default has been deleted, the request returns a 400 and you must pass `workspace_id` explicitly. This only places the guardrail in the workspace; the created guardrail enforces nothing for that workspace''s traffic until it is assigned to API keys or members. To restrict all traffic in a workspace, update the workspace''s default guardrail instead.'
10768+
description: 'The workspace to create the guardrail in. When omitted, an organization management key creates the guardrail in the default workspace (a 400 if that default has been deleted, so pass `workspace_id` explicitly) and a workspace-scoped key creates it in its own workspace. A workspace-scoped key gets a 403 for any other workspace. This only places the guardrail in the workspace; the created guardrail enforces nothing for that workspace''s traffic until it is assigned to API keys or members. To restrict all traffic in a workspace, update the workspace''s default guardrail instead.'
1076910769
example: '0df9e665-d932-5740-b2c7-b52af166bc11'
1077010770
format: 'uuid'
1077110771
type: 'string'
@@ -46140,7 +46140,7 @@ paths:
4614046140
- $ref: "#/components/parameters/AppCategories"
4614146141
/guardrails:
4614246142
get:
46143-
description: 'List all guardrails for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
46143+
description: 'List all guardrails for the authenticated user. A workspace-scoped management key lists only its own workspace, which `workspace_id` defaults to; naming another workspace returns 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
4614446144
operationId: 'listGuardrails'
4614546145
parameters:
4614646146
- description: 'Number of records to skip for pagination'
@@ -46167,12 +46167,12 @@ paths:
4616746167
maximum: 100
4616846168
minimum: 1
4616946169
type: 'integer'
46170-
- description: 'Filter guardrails by workspace ID. By default, guardrails in the default workspace are returned.'
46170+
- description: 'Filter guardrails by workspace ID. When omitted, an organization management key gets guardrails in the default workspace and a workspace-scoped key gets guardrails in its own workspace. A workspace-scoped key gets 403 for any other workspace.'
4617146171
in: 'query'
4617246172
name: 'workspace_id'
4617346173
required: false
4617446174
schema:
46175-
description: 'Filter guardrails by workspace ID. By default, guardrails in the default workspace are returned.'
46175+
description: 'Filter guardrails by workspace ID. When omitted, an organization management key gets guardrails in the default workspace and a workspace-scoped key gets guardrails in its own workspace. A workspace-scoped key gets 403 for any other workspace.'
4617646176
example: '0df9e665-d932-5740-b2c7-b52af166bc11'
4617746177
format: 'uuid'
4617846178
type: 'string'
@@ -46259,7 +46259,7 @@ paths:
4625946259
results: '$.data'
4626046260
type: 'offsetLimit'
4626146261
post:
46262-
description: 'Create a new guardrail for the authenticated user. A newly created guardrail enforces nothing until it is assigned to API keys or organization members; `workspace_id` places the guardrail in a workspace but does not apply it to that workspace''s traffic. To restrict all traffic in a workspace, update the workspace''s default guardrail instead. Set `allowed_data_regions` to enforce [In-Region Routing](/docs/guides/features/in-region-routing#enforcing-in-region-routing-with-guardrails): governed requests must arrive through one of the listed OpenRouter domains and are rejected with a 403 otherwise. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
46262+
description: 'Create a new guardrail for the authenticated user. A newly created guardrail enforces nothing until it is assigned to API keys or organization members; `workspace_id` places the guardrail in a workspace but does not apply it to that workspace''s traffic. To restrict all traffic in a workspace, update the workspace''s default guardrail instead. Set `allowed_data_regions` to enforce [In-Region Routing](/docs/guides/features/in-region-routing#enforcing-in-region-routing-with-guardrails): governed requests must arrive through one of the listed OpenRouter domains and are rejected with a 403 otherwise. A workspace-scoped management key creates in its own workspace, which `workspace_id` defaults to; naming another workspace returns 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
4626346263
operationId: 'createGuardrail'
4626446264
requestBody:
4626546265
content:
@@ -46367,7 +46367,7 @@ paths:
4636746367
- $ref: "#/components/parameters/AppCategories"
4636846368
/guardrails/{id}:
4636946369
delete:
46370-
description: 'Delete an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
46370+
description: 'Delete an existing guardrail. A workspace-scoped management key reaches only guardrails in its own workspace; any other guardrail returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
4637146371
operationId: 'deleteGuardrail'
4637246372
parameters:
4637346373
- description: 'The unique identifier of the guardrail to delete'
@@ -46433,7 +46433,7 @@ paths:
4643346433
- 'Guardrails'
4643446434
x-speakeasy-name-override: 'delete'
4643546435
get:
46436-
description: 'Get a single guardrail by ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
46436+
description: 'Get a single guardrail by ID. A workspace-scoped management key reaches only guardrails in its own workspace; any other guardrail returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
4643746437
operationId: 'getGuardrail'
4643846438
parameters:
4643946439
- description: 'The unique identifier of the guardrail to retrieve'
@@ -46516,7 +46516,7 @@ paths:
4651646516
- 'Guardrails'
4651746517
x-speakeasy-name-override: 'get'
4651846518
patch:
46519-
description: 'Update an existing guardrail, or materialize an unconfigured workspace default guardrail. Collection fields use replace semantics: send the full desired set on every update. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
46519+
description: 'Update an existing guardrail, or materialize an unconfigured workspace default guardrail. Collection fields use replace semantics: send the full desired set on every update. A workspace-scoped management key reaches only guardrails in its own workspace; any other guardrail returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
4652046520
operationId: 'updateGuardrail'
4652146521
parameters:
4652246522
- description: 'The unique identifier of the guardrail to update'
@@ -46638,7 +46638,7 @@ paths:
4663846638
- $ref: "#/components/parameters/AppCategories"
4663946639
/guardrails/{id}/assignments/keys:
4664046640
get:
46641-
description: 'List all API key assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
46641+
description: 'List all API key assignments for a specific guardrail. A workspace-scoped management key reaches only guardrails in its own workspace; any other guardrail returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
4664246642
operationId: 'listGuardrailKeyAssignments'
4664346643
parameters:
4664446644
- description: 'The unique identifier of the guardrail'
@@ -46747,7 +46747,7 @@ paths:
4674746747
results: '$.data'
4674846748
type: 'offsetLimit'
4674946749
post:
46750-
description: 'Assign multiple API keys to a specific guardrail. A key may hold at most one guardrail; assigning replaces any existing assignment. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
46750+
description: 'Assign multiple API keys to a specific guardrail. A key may hold at most one guardrail; assigning replaces any existing assignment. A workspace-scoped management key reaches only guardrails in its own workspace (any other returns 404), and a batch naming an unknown or out-of-workspace key hash is rejected with 400 before anything changes. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
4675146751
operationId: 'bulkAssignKeysToGuardrail'
4675246752
parameters:
4675346753
- description: 'The unique identifier of the guardrail'
@@ -46837,7 +46837,7 @@ paths:
4683746837
- $ref: "#/components/parameters/AppCategories"
4683846838
/guardrails/{id}/assignments/keys/remove:
4683946839
post:
46840-
description: 'Unassign multiple API keys from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
46840+
description: 'Unassign multiple API keys from a specific guardrail. A workspace-scoped management key reaches only guardrails in its own workspace (any other returns 404), and a batch naming an unknown or out-of-workspace key hash is rejected with 400 before anything changes. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
4684146841
operationId: 'bulkUnassignKeysFromGuardrail'
4684246842
parameters:
4684346843
- description: 'The unique identifier of the guardrail'
@@ -46927,7 +46927,7 @@ paths:
4692746927
- $ref: "#/components/parameters/AppCategories"
4692846928
/guardrails/{id}/assignments/members:
4692946929
get:
46930-
description: 'List all organization member assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
46930+
description: 'List all organization member assignments for a specific guardrail. A workspace-scoped management key reaches only guardrails in its own workspace; any other guardrail returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
4693146931
operationId: 'listGuardrailMemberAssignments'
4693246932
parameters:
4693346933
- description: 'The unique identifier of the guardrail'
@@ -47035,7 +47035,7 @@ paths:
4703547035
results: '$.data'
4703647036
type: 'offsetLimit'
4703747037
post:
47038-
description: 'Assign multiple organization members to a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
47038+
description: 'Assign multiple organization members to a specific guardrail. Requires an organization-scoped management key; workspace-scoped management keys return 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
4703947039
operationId: 'bulkAssignMembersToGuardrail'
4704047040
parameters:
4704147041
- description: 'The unique identifier of the guardrail'
@@ -47126,7 +47126,7 @@ paths:
4712647126
- $ref: "#/components/parameters/AppCategories"
4712747127
/guardrails/{id}/assignments/members/remove:
4712847128
post:
47129-
description: 'Unassign multiple organization members from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
47129+
description: 'Unassign multiple organization members from a specific guardrail. Requires an organization-scoped management key; workspace-scoped management keys return 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
4713047130
operationId: 'bulkUnassignMembersFromGuardrail'
4713147131
parameters:
4713247132
- description: 'The unique identifier of the guardrail'
@@ -47217,7 +47217,7 @@ paths:
4721747217
- $ref: "#/components/parameters/AppCategories"
4721847218
/guardrails/assignments/keys:
4721947219
get:
47220-
description: 'List all API key guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
47220+
description: 'List all API key guardrail assignments for the authenticated user. A workspace-scoped management key lists only its own workspace, which `workspace_id` defaults to; naming another workspace returns 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
4722147221
operationId: 'listKeyAssignments'
4722247222
parameters:
4722347223
- description: 'Number of records to skip for pagination'
@@ -47332,7 +47332,7 @@ paths:
4733247332
- $ref: "#/components/parameters/AppCategories"
4733347333
/guardrails/assignments/members:
4733447334
get:
47335-
description: 'List all organization member guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
47335+
description: 'List all organization member guardrail assignments for the authenticated user. A workspace-scoped management key lists only its own workspace, which `workspace_id` defaults to; naming another workspace returns 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
4733647336
operationId: 'listMemberAssignments'
4733747337
parameters:
4733847338
- description: 'Number of records to skip for pagination'

‎.speakeasy/workflow.lock‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ speakeasyVersion: 1.803.2
22
sources:
33
OpenRouter API:
44
sourceNamespace: open-router-chat-completions-api
5-
sourceRevisionDigest: sha256:fb94baaeefa14fb3a3a76c9a64af47b66f5a397007cc017402da38c7f2266f39
6-
sourceBlobDigest: sha256:407df421edf7def991e54abf751267bc381d40169785d7e14d1032f060573c51
5+
sourceRevisionDigest: sha256:9e21e846dafaa2c36ad3733506b3106fc45dba689adee0f95543f36fefdb7b45
6+
sourceBlobDigest: sha256:2ced0693e6668959ef1098e232fff9689cb44732157a40e73d68f51da4f5a51e
77
tags:
88
- latest
99
- 1.0.0
1010
targets:
1111
open-router:
1212
source: OpenRouter API
1313
sourceNamespace: open-router-chat-completions-api
14-
sourceRevisionDigest: sha256:fb94baaeefa14fb3a3a76c9a64af47b66f5a397007cc017402da38c7f2266f39
15-
sourceBlobDigest: sha256:407df421edf7def991e54abf751267bc381d40169785d7e14d1032f060573c51
14+
sourceRevisionDigest: sha256:9e21e846dafaa2c36ad3733506b3106fc45dba689adee0f95543f36fefdb7b45
15+
sourceBlobDigest: sha256:2ced0693e6668959ef1098e232fff9689cb44732157a40e73d68f51da4f5a51e
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:34c88e518712fbec70cf76a0352e4dae4404622b6b23529e3550d8dca29d9d3f
17+
codeSamplesRevisionDigest: sha256:902152057d143bc0d494b8d705aa092c47754915042585e61aa4984e21e70472
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: 1.803.2

0 commit comments

Comments
 (0)