From d1a9ffcc3e26522ef58fe3bbd25d46c1ae488fc0 Mon Sep 17 00:00:00 2001 From: OpenRouter SDK Bot Date: Mon, 21 Sep 2026 23:30:48 +0000 Subject: [PATCH] chore: update OpenAPI spec [sdk-bot] --- .speakeasy/in.openapi.yaml | 61 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index abc709c5..89212307 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -1775,6 +1775,49 @@ components: type: - 'object' - 'null' + AnthropicSafeguard: + additionalProperties: {} + description: 'A server-side safeguard Anthropic evaluates alongside the completion' + example: + classifier_context: + permission_mode: 'auto' + v: 1 + type: 'dangerous_tool_use' + properties: + classifier_context: + additionalProperties: {} + type: 'object' + type: + type: 'string' + required: + - 'type' + type: 'object' + AnthropicSafeguardResult: + additionalProperties: {} + description: 'The outcome of a server-side safeguard, keyed by tool-use id where applicable' + example: + status: + tool_uses: + toolu_01ABC: + outcome: 'not_flagged' + type: 'evaluated' + type: 'available' + type: 'dangerous_tool_use' + properties: + status: + additionalProperties: {} + properties: + type: + type: 'string' + required: + - 'type' + type: 'object' + type: + type: 'string' + required: + - 'type' + - 'status' + type: 'object' AnthropicSearchResultBlockParam: example: content: @@ -14316,6 +14359,12 @@ components: properties: container: $ref: '#/components/schemas/AnthropicContainer' + safeguard_results: + items: + $ref: '#/components/schemas/AnthropicSafeguardResult' + type: + - 'array' + - 'null' stop_details: $ref: '#/components/schemas/AnthropicRefusalStopDetails' stop_reason: @@ -14836,6 +14885,12 @@ components: $ref: '#/components/schemas/ProviderPreferences' route: $ref: '#/components/schemas/DeprecatedRoute' + safeguards: + items: + $ref: '#/components/schemas/AnthropicSafeguard' + type: + - 'array' + - 'null' service_tier: type: 'string' session_id: @@ -15162,6 +15217,12 @@ components: $ref: '#/components/schemas/OpenRouterMetadata' provider: $ref: '#/components/schemas/ProviderName' + safeguard_results: + items: + $ref: '#/components/schemas/AnthropicSafeguardResult' + type: + - 'array' + - 'null' usage: allOf: - $ref: '#/components/schemas/AnthropicUsage'