Skip to content

Commit 7bf3e15

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

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
@@ -7315,6 +7315,16 @@ components:
73157315
name: 'My New Guardrail'
73167316
reset_interval: 'monthly'
73177317
properties:
7318+
allowed_data_regions:
7319+
description: 'Data regions through which requests governed by this guardrail must arrive. `global` is https://openrouter.ai, `europe` is https://eu.openrouter.ai, and `us` is https://us.openrouter.ai. Requests arriving through any other region are rejected. `null` leaves the ingress region unrestricted. When several guardrails apply (workspace default, member, API key), the effective regions are the intersection of every non-null value. An empty array is rejected.'
7320+
example:
7321+
- 'europe'
7322+
items:
7323+
$ref: '#/components/schemas/GuardrailDataRegion'
7324+
minItems: 1
7325+
type:
7326+
- 'array'
7327+
- 'null'
73187328
allowed_models:
73197329
description: 'Array of model identifiers (slug or canonical_slug accepted)'
73207330
example:
@@ -10154,6 +10164,7 @@ components:
1015410164
type: 'object'
1015510165
Guardrail:
1015610166
example:
10167+
allowed_data_regions: null
1015710168
allowed_models: null
1015810169
allowed_providers:
1015910170
- 'openai'
@@ -10185,6 +10196,15 @@ components:
1018510196
updated_at: '2025-08-24T15:45:00Z'
1018610197
workspace_id: '0df9e665-d932-5740-b2c7-b52af166bc11'
1018710198
properties:
10199+
allowed_data_regions:
10200+
description: 'Data regions through which requests governed by this guardrail must arrive. `global` is https://openrouter.ai, `europe` is https://eu.openrouter.ai, and `us` is https://us.openrouter.ai. Requests arriving through any other region are rejected. `null` leaves the ingress region unrestricted. When several guardrails apply (workspace default, member, API key), the effective regions are the intersection of every non-null value.'
10201+
example:
10202+
- 'europe'
10203+
items:
10204+
$ref: '#/components/schemas/GuardrailDataRegion'
10205+
type:
10206+
- 'array'
10207+
- 'null'
1018810208
allowed_models:
1018910209
description: 'Array of model canonical_slugs (immutable identifiers)'
1019010210
example:
@@ -10353,6 +10373,14 @@ components:
1035310373
- 'created_at'
1035410374
- 'workspace_id'
1035510375
type: 'object'
10376+
GuardrailDataRegion:
10377+
description: 'An OpenRouter data region: `global` (https://openrouter.ai), `europe` (https://eu.openrouter.ai), or `us` (https://us.openrouter.ai)'
10378+
enum:
10379+
- 'global'
10380+
- 'europe'
10381+
- 'us'
10382+
example: 'europe'
10383+
type: 'string'
1035610384
GuardrailInterval:
1035710385
description: 'Interval at which the limit resets (daily, weekly, monthly)'
1035810386
enum:
@@ -25730,6 +25758,16 @@ components:
2573025758
name: 'Updated Guardrail Name'
2573125759
reset_interval: 'weekly'
2573225760
properties:
25761+
allowed_data_regions:
25762+
description: 'Data regions through which requests governed by this guardrail must arrive. `global` is https://openrouter.ai, `europe` is https://eu.openrouter.ai, and `us` is https://us.openrouter.ai. Requests arriving through any other region are rejected. `null` leaves the ingress region unrestricted. When several guardrails apply (workspace default, member, API key), the effective regions are the intersection of every non-null value. An empty array is rejected.'
25763+
example:
25764+
- 'europe'
25765+
items:
25766+
$ref: '#/components/schemas/GuardrailDataRegion'
25767+
minItems: 1
25768+
type:
25769+
- 'array'
25770+
- 'null'
2573325771
allowed_models:
2573425772
description: 'Array of model identifiers (slug or canonical_slug accepted)'
2573525773
example:

0 commit comments

Comments
 (0)