Skip to content

Commit e6703a5

Browse files
robert-j-yOpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#143)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent 9ce4037 commit e6703a5

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4930,6 +4930,11 @@ components:
49304930
type: string
49314931
reset_interval:
49324932
$ref: '#/components/schemas/GuardrailInterval'
4933+
workspace_id:
4934+
description: The workspace to create the guardrail in. Defaults to the default workspace if not provided.
4935+
example: 0df9e665-d932-5740-b2c7-b52af166bc11
4936+
format: uuid
4937+
type: string
49334938
required:
49344939
- name
49354940
type: object
@@ -4951,6 +4956,7 @@ components:
49514956
name: My New Guardrail
49524957
reset_interval: monthly
49534958
updated_at: null
4959+
workspace_id: 0df9e665-d932-5740-b2c7-b52af166bc11
49544960
properties:
49554961
data:
49564962
allOf:
@@ -5620,6 +5626,7 @@ components:
56205626
name: Production Guardrail
56215627
reset_interval: monthly
56225628
updated_at: '2025-08-24T15:45:00Z'
5629+
workspace_id: 0df9e665-d932-5740-b2c7-b52af166bc11
56235630
properties:
56245631
data:
56255632
allOf:
@@ -5683,6 +5690,7 @@ components:
56835690
name: Production Guardrail
56845691
reset_interval: monthly
56855692
updated_at: '2025-08-24T15:45:00Z'
5693+
workspace_id: 0df9e665-d932-5740-b2c7-b52af166bc11
56865694
properties:
56875695
allowed_models:
56885696
description: Array of model canonical_slugs (immutable identifiers)
@@ -5756,10 +5764,15 @@ components:
57565764
example: '2025-08-24T15:45:00Z'
57575765
nullable: true
57585766
type: string
5767+
workspace_id:
5768+
description: The workspace ID this guardrail belongs to.
5769+
example: 0df9e665-d932-5740-b2c7-b52af166bc11
5770+
type: string
57595771
required:
57605772
- id
57615773
- name
57625774
- created_at
5775+
- workspace_id
57635776
type: object
57645777
GuardrailInterval:
57655778
description: Interval at which the limit resets (daily, weekly, monthly)
@@ -6556,6 +6569,7 @@ components:
65566569
name: Production Guardrail
65576570
reset_interval: monthly
65586571
updated_at: '2025-08-24T15:45:00Z'
6572+
workspace_id: 0df9e665-d932-5740-b2c7-b52af166bc11
65596573
total_count: 1
65606574
properties:
65616575
data:
@@ -12333,6 +12347,7 @@ components:
1233312347
name: Updated Guardrail Name
1233412348
reset_interval: weekly
1233512349
updated_at: '2025-08-24T16:00:00Z'
12350+
workspace_id: 0df9e665-d932-5740-b2c7-b52af166bc11
1233612351
properties:
1233712352
data:
1233812353
allOf:
@@ -15070,6 +15085,15 @@ paths:
1507015085
maximum: 100
1507115086
minimum: 1
1507215087
type: integer
15088+
- description: Filter guardrails by workspace ID. By default, guardrails in the default workspace are returned.
15089+
in: query
15090+
name: workspace_id
15091+
required: false
15092+
schema:
15093+
description: Filter guardrails by workspace ID. By default, guardrails in the default workspace are returned.
15094+
example: 0df9e665-d932-5740-b2c7-b52af166bc11
15095+
format: uuid
15096+
type: string
1507315097
responses:
1507415098
'200':
1507515099
content:
@@ -15091,6 +15115,7 @@ paths:
1509115115
name: Production Guardrail
1509215116
reset_interval: monthly
1509315117
updated_at: '2025-08-24T15:45:00Z'
15118+
workspace_id: 0df9e665-d932-5740-b2c7-b52af166bc11
1509415119
total_count: 1
1509515120
schema:
1509615121
$ref: '#/components/schemas/ListGuardrailsResponse'
@@ -15175,6 +15200,7 @@ paths:
1517515200
name: My New Guardrail
1517615201
reset_interval: monthly
1517715202
updated_at: null
15203+
workspace_id: 0df9e665-d932-5740-b2c7-b52af166bc11
1517815204
schema:
1517915205
$ref: '#/components/schemas/CreateGuardrailResponse'
1518015206
description: Guardrail created successfully
@@ -15198,6 +15224,16 @@ paths:
1519815224
schema:
1519915225
$ref: '#/components/schemas/UnauthorizedResponse'
1520015226
description: Unauthorized - Authentication required or invalid credentials
15227+
'403':
15228+
content:
15229+
application/json:
15230+
example:
15231+
error:
15232+
code: 403
15233+
message: Only management keys can perform this operation
15234+
schema:
15235+
$ref: '#/components/schemas/ForbiddenResponse'
15236+
description: Forbidden - Authentication successful but insufficient permissions
1520115237
'500':
1520215238
content:
1520315239
application/json:
@@ -15303,6 +15339,7 @@ paths:
1530315339
name: Production Guardrail
1530415340
reset_interval: monthly
1530515341
updated_at: '2025-08-24T15:45:00Z'
15342+
workspace_id: 0df9e665-d932-5740-b2c7-b52af166bc11
1530615343
schema:
1530715344
$ref: '#/components/schemas/GetGuardrailResponse'
1530815345
description: Guardrail details
@@ -15383,6 +15420,7 @@ paths:
1538315420
name: Updated Guardrail Name
1538415421
reset_interval: weekly
1538515422
updated_at: '2025-08-24T16:00:00Z'
15423+
workspace_id: 0df9e665-d932-5740-b2c7-b52af166bc11
1538615424
schema:
1538715425
$ref: '#/components/schemas/UpdateGuardrailResponse'
1538815426
description: Guardrail updated successfully

0 commit comments

Comments
 (0)