chore: update OpenAPI spec from monorepo (#143)

Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
robert-j-y
2026-04-18 23:28:56 -05:00
committed by GitHub
co-authored by OpenRouter SDK Bot
parent 9ce403745a
commit e6703a5038
+38
View File
@@ -4930,6 +4930,11 @@ components:
type: string type: string
reset_interval: reset_interval:
$ref: '#/components/schemas/GuardrailInterval' $ref: '#/components/schemas/GuardrailInterval'
workspace_id:
description: The workspace to create the guardrail in. Defaults to the default workspace if not provided.
example: 0df9e665-d932-5740-b2c7-b52af166bc11
format: uuid
type: string
required: required:
- name - name
type: object type: object
@@ -4951,6 +4956,7 @@ components:
name: My New Guardrail name: My New Guardrail
reset_interval: monthly reset_interval: monthly
updated_at: null updated_at: null
workspace_id: 0df9e665-d932-5740-b2c7-b52af166bc11
properties: properties:
data: data:
allOf: allOf:
@@ -5620,6 +5626,7 @@ components:
name: Production Guardrail name: Production Guardrail
reset_interval: monthly reset_interval: monthly
updated_at: '2025-08-24T15:45:00Z' updated_at: '2025-08-24T15:45:00Z'
workspace_id: 0df9e665-d932-5740-b2c7-b52af166bc11
properties: properties:
data: data:
allOf: allOf:
@@ -5683,6 +5690,7 @@ components:
name: Production Guardrail name: Production Guardrail
reset_interval: monthly reset_interval: monthly
updated_at: '2025-08-24T15:45:00Z' updated_at: '2025-08-24T15:45:00Z'
workspace_id: 0df9e665-d932-5740-b2c7-b52af166bc11
properties: properties:
allowed_models: allowed_models:
description: Array of model canonical_slugs (immutable identifiers) description: Array of model canonical_slugs (immutable identifiers)
@@ -5756,10 +5764,15 @@ components:
example: '2025-08-24T15:45:00Z' example: '2025-08-24T15:45:00Z'
nullable: true nullable: true
type: string type: string
workspace_id:
description: The workspace ID this guardrail belongs to.
example: 0df9e665-d932-5740-b2c7-b52af166bc11
type: string
required: required:
- id - id
- name - name
- created_at - created_at
- workspace_id
type: object type: object
GuardrailInterval: GuardrailInterval:
description: Interval at which the limit resets (daily, weekly, monthly) description: Interval at which the limit resets (daily, weekly, monthly)
@@ -6556,6 +6569,7 @@ components:
name: Production Guardrail name: Production Guardrail
reset_interval: monthly reset_interval: monthly
updated_at: '2025-08-24T15:45:00Z' updated_at: '2025-08-24T15:45:00Z'
workspace_id: 0df9e665-d932-5740-b2c7-b52af166bc11
total_count: 1 total_count: 1
properties: properties:
data: data:
@@ -12333,6 +12347,7 @@ components:
name: Updated Guardrail Name name: Updated Guardrail Name
reset_interval: weekly reset_interval: weekly
updated_at: '2025-08-24T16:00:00Z' updated_at: '2025-08-24T16:00:00Z'
workspace_id: 0df9e665-d932-5740-b2c7-b52af166bc11
properties: properties:
data: data:
allOf: allOf:
@@ -15070,6 +15085,15 @@ paths:
maximum: 100 maximum: 100
minimum: 1 minimum: 1
type: integer type: integer
- description: Filter guardrails by workspace ID. By default, guardrails in the default workspace are returned.
in: query
name: workspace_id
required: false
schema:
description: Filter guardrails by workspace ID. By default, guardrails in the default workspace are returned.
example: 0df9e665-d932-5740-b2c7-b52af166bc11
format: uuid
type: string
responses: responses:
'200': '200':
content: content:
@@ -15091,6 +15115,7 @@ paths:
name: Production Guardrail name: Production Guardrail
reset_interval: monthly reset_interval: monthly
updated_at: '2025-08-24T15:45:00Z' updated_at: '2025-08-24T15:45:00Z'
workspace_id: 0df9e665-d932-5740-b2c7-b52af166bc11
total_count: 1 total_count: 1
schema: schema:
$ref: '#/components/schemas/ListGuardrailsResponse' $ref: '#/components/schemas/ListGuardrailsResponse'
@@ -15175,6 +15200,7 @@ paths:
name: My New Guardrail name: My New Guardrail
reset_interval: monthly reset_interval: monthly
updated_at: null updated_at: null
workspace_id: 0df9e665-d932-5740-b2c7-b52af166bc11
schema: schema:
$ref: '#/components/schemas/CreateGuardrailResponse' $ref: '#/components/schemas/CreateGuardrailResponse'
description: Guardrail created successfully description: Guardrail created successfully
@@ -15198,6 +15224,16 @@ paths:
schema: schema:
$ref: '#/components/schemas/UnauthorizedResponse' $ref: '#/components/schemas/UnauthorizedResponse'
description: Unauthorized - Authentication required or invalid credentials description: Unauthorized - Authentication required or invalid credentials
'403':
content:
application/json:
example:
error:
code: 403
message: Only management keys can perform this operation
schema:
$ref: '#/components/schemas/ForbiddenResponse'
description: Forbidden - Authentication successful but insufficient permissions
'500': '500':
content: content:
application/json: application/json:
@@ -15303,6 +15339,7 @@ paths:
name: Production Guardrail name: Production Guardrail
reset_interval: monthly reset_interval: monthly
updated_at: '2025-08-24T15:45:00Z' updated_at: '2025-08-24T15:45:00Z'
workspace_id: 0df9e665-d932-5740-b2c7-b52af166bc11
schema: schema:
$ref: '#/components/schemas/GetGuardrailResponse' $ref: '#/components/schemas/GetGuardrailResponse'
description: Guardrail details description: Guardrail details
@@ -15383,6 +15420,7 @@ paths:
name: Updated Guardrail Name name: Updated Guardrail Name
reset_interval: weekly reset_interval: weekly
updated_at: '2025-08-24T16:00:00Z' updated_at: '2025-08-24T16:00:00Z'
workspace_id: 0df9e665-d932-5740-b2c7-b52af166bc11
schema: schema:
$ref: '#/components/schemas/UpdateGuardrailResponse' $ref: '#/components/schemas/UpdateGuardrailResponse'
description: Guardrail updated successfully description: Guardrail updated successfully