From 989f1f2634c63f58c638e505d5f894030c155d3c Mon Sep 17 00:00:00 2001 From: OpenRouter SDK Bot Date: Wed, 2 Sep 2026 23:27:34 +0000 Subject: [PATCH] chore: update OpenAPI spec [sdk-bot] --- .speakeasy/in.openapi.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 90988cc1..f8f765d2 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -7315,6 +7315,16 @@ components: name: 'My New Guardrail' reset_interval: 'monthly' properties: + allowed_data_regions: + 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.' + example: + - 'europe' + items: + $ref: '#/components/schemas/GuardrailDataRegion' + minItems: 1 + type: + - 'array' + - 'null' allowed_models: description: 'Array of model identifiers (slug or canonical_slug accepted)' example: @@ -10154,6 +10164,7 @@ components: type: 'object' Guardrail: example: + allowed_data_regions: null allowed_models: null allowed_providers: - 'openai' @@ -10185,6 +10196,15 @@ components: updated_at: '2025-08-24T15:45:00Z' workspace_id: '0df9e665-d932-5740-b2c7-b52af166bc11' properties: + allowed_data_regions: + 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.' + example: + - 'europe' + items: + $ref: '#/components/schemas/GuardrailDataRegion' + type: + - 'array' + - 'null' allowed_models: description: 'Array of model canonical_slugs (immutable identifiers)' example: @@ -10353,6 +10373,14 @@ components: - 'created_at' - 'workspace_id' type: 'object' + GuardrailDataRegion: + description: 'An OpenRouter data region: `global` (https://openrouter.ai), `europe` (https://eu.openrouter.ai), or `us` (https://us.openrouter.ai)' + enum: + - 'global' + - 'europe' + - 'us' + example: 'europe' + type: 'string' GuardrailInterval: description: 'Interval at which the limit resets (daily, weekly, monthly)' enum: @@ -25730,6 +25758,16 @@ components: name: 'Updated Guardrail Name' reset_interval: 'weekly' properties: + allowed_data_regions: + 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.' + example: + - 'europe' + items: + $ref: '#/components/schemas/GuardrailDataRegion' + minItems: 1 + type: + - 'array' + - 'null' allowed_models: description: 'Array of model identifiers (slug or canonical_slug accepted)' example: