diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 0b5cc3b1..f7ac624a 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -6337,14 +6337,14 @@ components: type: 'web_search_preview' properties: allowed_domains: - description: 'Limit search results to these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, and most native providers (Anthropic, OpenAI, xAI). Cannot be used with excluded_domains.' + description: 'Limit search results to these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, and most native providers (Anthropic, OpenAI, SpaceXAI). Cannot be used with excluded_domains.' items: type: 'string' type: 'array' engine: $ref: '#/components/schemas/WebSearchEngineEnum' excluded_domains: - description: 'Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, Anthropic, OpenAI, and xAI. Cannot be used with allowed_domains.' + description: 'Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, Anthropic, OpenAI, and SpaceXAI. Cannot be used with allowed_domains.' items: type: 'string' type: 'array' @@ -6379,6 +6379,8 @@ components: type: 'string' user_location: $ref: '#/components/schemas/WebSearchUserLocationServerTool' + x_search: + $ref: '#/components/schemas/XSearchOptions' required: - 'type' type: 'object' @@ -13135,6 +13137,8 @@ components: type: 'string' user_location: $ref: '#/components/schemas/WebSearchUserLocation' + x_search: + $ref: '#/components/schemas/XSearchOptions' required: - 'type' type: 'object' @@ -22381,6 +22385,8 @@ components: type: 'string' user_location: $ref: '#/components/schemas/Preview_WebSearchUserLocation' + x_search: + $ref: '#/components/schemas/XSearchOptions' required: - 'type' type: 'object' @@ -22411,6 +22417,8 @@ components: type: 'string' user_location: $ref: '#/components/schemas/Preview_WebSearchUserLocation' + x_search: + $ref: '#/components/schemas/XSearchOptions' required: - 'type' type: 'object' @@ -28898,14 +28906,14 @@ components: search_context_size: 'medium' properties: allowed_domains: - description: 'Limit search results to these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, and most native providers (Anthropic, OpenAI, xAI). Cannot be used with excluded_domains.' + description: 'Limit search results to these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, and most native providers (Anthropic, OpenAI, SpaceXAI). Cannot be used with excluded_domains.' items: type: 'string' type: 'array' engine: $ref: '#/components/schemas/WebSearchEngineEnum' excluded_domains: - description: 'Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, Anthropic, OpenAI, and xAI. Cannot be used with allowed_domains.' + description: 'Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, Anthropic, OpenAI, and SpaceXAI. Cannot be used with allowed_domains.' items: type: 'string' type: 'array' @@ -28931,6 +28939,8 @@ components: $ref: '#/components/schemas/SearchQualityLevel' user_location: $ref: '#/components/schemas/WebSearchUserLocationServerTool' + x_search: + $ref: '#/components/schemas/XSearchOptions' type: 'object' WebSearchDomainFilter: example: @@ -29051,6 +29061,8 @@ components: type: 'approximate' required: - 'type' + x_search: + $ref: '#/components/schemas/XSearchOptions' required: - 'id' type: 'object' @@ -29085,6 +29097,8 @@ components: type: 'string' user_location: $ref: '#/components/schemas/WebSearchUserLocation' + x_search: + $ref: '#/components/schemas/XSearchOptions' required: - 'type' type: 'object' @@ -29111,14 +29125,14 @@ components: search_context_size: 'medium' properties: allowed_domains: - description: 'Limit search results to these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, and most native providers (Anthropic, OpenAI, xAI). Cannot be used with excluded_domains.' + description: 'Limit search results to these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, and most native providers (Anthropic, OpenAI, SpaceXAI). Cannot be used with excluded_domains.' items: type: 'string' type: 'array' engine: $ref: '#/components/schemas/WebSearchEngineEnum' excluded_domains: - description: 'Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, Anthropic, OpenAI, and xAI. Cannot be used with allowed_domains.' + description: 'Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, Anthropic, OpenAI, and SpaceXAI. Cannot be used with allowed_domains.' items: type: 'string' type: 'array' @@ -29144,6 +29158,8 @@ components: $ref: '#/components/schemas/SearchQualityLevel' user_location: $ref: '#/components/schemas/WebSearchUserLocationServerTool' + x_search: + $ref: '#/components/schemas/XSearchOptions' type: 'object' WebSearchSource: example: @@ -29455,6 +29471,47 @@ components: - 'role' - 'created_at' type: 'object' + XSearchOptions: + additionalProperties: false + description: 'Enable SpaceXAI X (Twitter) search alongside native web search, with optional filters. Only applies to SpaceXAI endpoints with native search; omit to search the web only. X search is billed separately by SpaceXAI, per post and per user profile fetched.' + example: + allowed_x_handles: + - 'OpenRouterAI' + from_date: '2025-01-01' + properties: + allowed_x_handles: + description: 'Only include posts from these X handles (max 20). Cannot be used with excluded_x_handles.' + example: + - 'OpenRouterAI' + items: + type: 'string' + maxItems: 20 + type: 'array' + enable_image_understanding: + description: 'Analyze images attached to matching posts.' + type: 'boolean' + enable_video_understanding: + description: 'Analyze videos attached to matching posts.' + type: 'boolean' + excluded_x_handles: + description: 'Exclude posts from these X handles (max 20). Cannot be used with allowed_x_handles.' + example: + - 'spamaccount' + items: + type: 'string' + maxItems: 20 + type: 'array' + from_date: + description: 'Start of the post date range (ISO 8601 date, e.g. "2025-01-01").' + example: '2025-01-01' + format: 'date' + type: 'string' + to_date: + description: 'End of the post date range (ISO 8601 date, e.g. "2025-12-31").' + example: '2025-12-31' + format: 'date' + type: 'string' + type: 'object' securitySchemes: apiKey: description: 'API key as bearer token in Authorization header'