From 5707b2d185092f92b2d1dbe6a9e7445b7aeefc0d Mon Sep 17 00:00:00 2001 From: OpenRouter SDK Bot Date: Fri, 24 Jul 2026 22:17:56 +0000 Subject: [PATCH] chore: update OpenAPI spec [sdk-bot] --- .speakeasy/in.openapi.yaml | 117 ++++++++++++++++++++++++++++++------- 1 file changed, 95 insertions(+), 22 deletions(-) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index f82cd57c..1b29b842 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -1178,6 +1178,10 @@ components: type: - 'string' - 'null' + encrypted_content: + type: + - 'string' + - 'null' type: enum: - 'compaction' @@ -11959,6 +11963,10 @@ components: type: - 'string' - 'null' + encrypted_content: + type: + - 'string' + - 'null' type: enum: - 'compaction_delta' @@ -12009,6 +12017,10 @@ components: type: - 'string' - 'null' + encrypted_content: + type: + - 'string' + - 'null' type: enum: - 'compaction' @@ -12360,6 +12372,10 @@ components: type: - 'string' - 'null' + encrypted_content: + type: + - 'string' + - 'null' type: enum: - 'compaction' @@ -13302,18 +13318,46 @@ components: type: 'tool_reference' type: 'tool_addition' properties: + cache_control: + $ref: '#/components/schemas/AnthropicCacheControlDirective' tool: - properties: - name: - type: 'string' - type: - enum: - - 'tool_reference' - type: 'string' - required: - - 'type' - - 'name' - type: 'object' + oneOf: + - properties: + name: + type: 'string' + type: + enum: + - 'tool_reference' + type: 'string' + required: + - 'type' + - 'name' + type: 'object' + - properties: + name: + type: 'string' + server_name: + type: 'string' + type: + enum: + - 'mcp_tool_reference' + type: 'string' + required: + - 'type' + - 'name' + - 'server_name' + type: 'object' + - properties: + server_name: + type: 'string' + type: + enum: + - 'mcp_toolset_reference' + type: 'string' + required: + - 'type' + - 'server_name' + type: 'object' type: enum: - 'tool_addition' @@ -13330,18 +13374,46 @@ components: type: 'tool_reference' type: 'tool_removal' properties: + cache_control: + $ref: '#/components/schemas/AnthropicCacheControlDirective' tool: - properties: - name: - type: 'string' - type: - enum: - - 'tool_reference' - type: 'string' - required: - - 'type' - - 'name' - type: 'object' + oneOf: + - properties: + name: + type: 'string' + type: + enum: + - 'tool_reference' + type: 'string' + required: + - 'type' + - 'name' + type: 'object' + - properties: + name: + type: 'string' + server_name: + type: 'string' + type: + enum: + - 'mcp_tool_reference' + type: 'string' + required: + - 'type' + - 'name' + - 'server_name' + type: 'object' + - properties: + server_name: + type: 'string' + type: + enum: + - 'mcp_toolset_reference' + type: 'string' + required: + - 'type' + - 'server_name' + type: 'object' type: enum: - 'tool_removal' @@ -16661,6 +16733,7 @@ components: enum: - 'end_turn' - 'max_tokens' + - 'model_context_window_exceeded' - 'stop_sequence' - 'tool_use' - 'pause_turn'