Skip to content

Commit a1e330c

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#1296)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent 6f7e12e commit a1e330c

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10670,7 +10670,7 @@ components:
1067010670
reset_interval:
1067110671
$ref: '#/components/schemas/GuardrailInterval'
1067210672
workspace_id:
10673-
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.'
10673+
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.'
1067410674
example: '0df9e665-d932-5740-b2c7-b52af166bc11'
1067510675
format: 'uuid'
1067610676
type: 'string'
@@ -45632,7 +45632,7 @@ paths:
4563245632
x-speakeasy-name-override: 'submitFeedback'
4563345633
/guardrails:
4563445634
get:
45635-
description: 'List all guardrails for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
45635+
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.'
4563645636
operationId: 'listGuardrails'
4563745637
parameters:
4563845638
- description: 'Number of records to skip for pagination'
@@ -45658,12 +45658,12 @@ paths:
4565845658
maximum: 100
4565945659
minimum: 1
4566045660
type: 'integer'
45661-
- description: 'Filter guardrails by workspace ID. By default, guardrails in the default workspace are returned.'
45661+
- 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.'
4566245662
in: 'query'
4566345663
name: 'workspace_id'
4566445664
required: false
4566545665
schema:
45666-
description: 'Filter guardrails by workspace ID. By default, guardrails in the default workspace are returned.'
45666+
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.'
4566745667
example: '0df9e665-d932-5740-b2c7-b52af166bc11'
4566845668
format: 'uuid'
4566945669
type: 'string'
@@ -45750,7 +45750,7 @@ paths:
4575045750
results: '$.data'
4575145751
type: 'offsetLimit'
4575245752
post:
45753-
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.'
45753+
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.'
4575445754
operationId: 'createGuardrail'
4575545755
requestBody:
4575645756
content:
@@ -45854,7 +45854,7 @@ paths:
4585445854
x-speakeasy-name-override: 'create'
4585545855
/guardrails/{id}:
4585645856
delete:
45857-
description: 'Delete an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
45857+
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.'
4585845858
operationId: 'deleteGuardrail'
4585945859
parameters:
4586045860
- description: 'The unique identifier of the guardrail to delete'
@@ -45920,7 +45920,7 @@ paths:
4592045920
- 'Guardrails'
4592145921
x-speakeasy-name-override: 'delete'
4592245922
get:
45923-
description: 'Get a single guardrail by ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
45923+
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.'
4592445924
operationId: 'getGuardrail'
4592545925
parameters:
4592645926
- description: 'The unique identifier of the guardrail to retrieve'
@@ -46003,7 +46003,7 @@ paths:
4600346003
- 'Guardrails'
4600446004
x-speakeasy-name-override: 'get'
4600546005
patch:
46006-
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.'
46006+
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.'
4600746007
operationId: 'updateGuardrail'
4600846008
parameters:
4600946009
- description: 'The unique identifier of the guardrail to update'
@@ -46121,7 +46121,7 @@ paths:
4612146121
x-speakeasy-name-override: 'update'
4612246122
/guardrails/{id}/assignments/keys:
4612346123
get:
46124-
description: 'List all API key assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
46124+
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.'
4612546125
operationId: 'listGuardrailKeyAssignments'
4612646126
parameters:
4612746127
- description: 'The unique identifier of the guardrail'
@@ -46229,7 +46229,7 @@ paths:
4622946229
results: '$.data'
4623046230
type: 'offsetLimit'
4623146231
post:
46232-
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.'
46232+
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.'
4623346233
operationId: 'bulkAssignKeysToGuardrail'
4623446234
parameters:
4623546235
- description: 'The unique identifier of the guardrail'
@@ -46315,7 +46315,7 @@ paths:
4631546315
x-speakeasy-name-override: 'bulkAssignKeys'
4631646316
/guardrails/{id}/assignments/keys/remove:
4631746317
post:
46318-
description: 'Unassign multiple API keys from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
46318+
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.'
4631946319
operationId: 'bulkUnassignKeysFromGuardrail'
4632046320
parameters:
4632146321
- description: 'The unique identifier of the guardrail'
@@ -46401,7 +46401,7 @@ paths:
4640146401
x-speakeasy-name-override: 'bulkUnassignKeys'
4640246402
/guardrails/{id}/assignments/members:
4640346403
get:
46404-
description: 'List all organization member assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
46404+
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.'
4640546405
operationId: 'listGuardrailMemberAssignments'
4640646406
parameters:
4640746407
- description: 'The unique identifier of the guardrail'
@@ -46508,7 +46508,7 @@ paths:
4650846508
results: '$.data'
4650946509
type: 'offsetLimit'
4651046510
post:
46511-
description: 'Assign multiple organization members to a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
46511+
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.'
4651246512
operationId: 'bulkAssignMembersToGuardrail'
4651346513
parameters:
4651446514
- description: 'The unique identifier of the guardrail'
@@ -46595,7 +46595,7 @@ paths:
4659546595
x-speakeasy-name-override: 'bulkAssignMembers'
4659646596
/guardrails/{id}/assignments/members/remove:
4659746597
post:
46598-
description: 'Unassign multiple organization members from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
46598+
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.'
4659946599
operationId: 'bulkUnassignMembersFromGuardrail'
4660046600
parameters:
4660146601
- description: 'The unique identifier of the guardrail'
@@ -46682,7 +46682,7 @@ paths:
4668246682
x-speakeasy-name-override: 'bulkUnassignMembers'
4668346683
/guardrails/assignments/keys:
4668446684
get:
46685-
description: 'List all API key guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
46685+
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.'
4668646686
operationId: 'listKeyAssignments'
4668746687
parameters:
4668846688
- description: 'Number of records to skip for pagination'
@@ -46792,7 +46792,7 @@ paths:
4679246792
type: 'offsetLimit'
4679346793
/guardrails/assignments/members:
4679446794
get:
46795-
description: 'List all organization member guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
46795+
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.'
4679646796
operationId: 'listMemberAssignments'
4679746797
parameters:
4679846798
- description: 'Number of records to skip for pagination'

0 commit comments

Comments
 (0)