!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a09bf6-0799-7363-9ddc-aa62c2efa0a0")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,984378,e=>{"use strict";e.i(81174),e.i(560174);var t=e.i(159341);e.i(204067);var o=e.i(796805);let a=o.z.object({banned:o.z.boolean().optional(),ignored:o.z.boolean().optional(),allowed:o.z.boolean().optional(),moderated:o.z.boolean().optional(),image_moderated:o.z.boolean().optional()});o.z.record(o.z.string(),a);let i=o.z.object({banned:o.z.boolean().optional()});o.z.record(o.z.string(),i);let r=o.z.object({banned:o.z.boolean().optional()});o.z.record(o.z.string(),r);let n=o.z.object({enabled:o.z.boolean(),prevent_overrides:o.z.boolean().optional(),config:t.PluginPreferenceSchema.optional()}),s=o.z.record(o.z.string(),n);o.z.object({enabled:o.z.boolean().optional()});let l={Daily:"daily",Weekly:"weekly",Monthly:"monthly"},p=[l.Daily,l.Weekly,l.Monthly];o.z.object({organization_id:o.z.string(),name:o.z.string(),slug:o.z.string(),image_url:o.z.string().nullable(),email:o.z.string(),created_at:o.z.string(),updated_at:o.z.string().nullable(),stripe_customer_id:o.z.string().nullable(),stripe_payment_method_id:o.z.string().nullable(),stripe_payment_method_backup_list:o.z.array(o.z.string()).default([]),enable_invoices:o.z.boolean(),deleted:o.z.boolean().default(!1),creator_user_id:o.z.string().nullable()}),e.s(["UsageLimitType",0,l,"UserPluginSettingsSchema",0,s,"usageLimitTypeValues",0,p])},823118,e=>{"use strict";var t,o=((t={}).MistralOCR="mistral-ocr",t.Native="native",t.CloudflareAI="cloudflare-ai",t);e.s(["MAX_CLOUDFLARE_AI_PDF_BYTES",0,5242880,"PDFParserEngine",()=>o])},723157,e=>{"use strict";var t,o=((t={}).WebSearch="web",t.Moderation="moderation",t.FileParser="file-parser",t.FileResolver="file-resolver",t.Banned="banned",t.RestrictionPreflight="restriction-preflight",t.NormalizeRequest="normalize-request",t.StickySession="sticky-session",t.AdapterUsage="adapter-usage",t.Accounting="accounting",t.OutputStatistics="output-statistics",t.SecretSanitizer="secret-sanitizer",t.ResponseHealing="response-healing",t.AutoRouter="auto-router",t.AutoBetaRouter="auto-beta-router",t.BodyBuilder="bodybuilder",t.UsageCollector="usage-collector",t.FreeRouter="free-router",t.LatestRouter="latest-router",t.AnthropicSpeedRouter="anthropic-speed-router",t.OpenAIReasoningModeRouter="openai-reasoning-mode-router",t.ContentFilter="content-filter",t.ModelArmor="model-armor",t.Lakera="lakera",t.ServerTools="server-tools",t.WebFetch="web-fetch",t.ServerToolCost="server-tool-cost",t.ContextCompression="context-compression",t.ParetoRouter="pareto-router",t.RouterMetadata="router-metadata",t.Fusion="fusion",t.Phaser="phaser",t.AttestationGate="attestation-gate",t);let a=new Set(["web","web-fetch","file-parser","fusion"]);e.s(["PER_REQUEST_ONLY_PLUGIN_IDS",0,a,"PluginId",()=>o])},560174,e=>{"use strict";let t=new class{incr(e,t,o){}distribution(e,t,o){}histogram(e,t,o){}gauge(e,t,o){}},o=Symbol.for("openrouter.statsd");Symbol.for("openrouter.statsd.configured"),e.s(["getStatsd",0,function(){let e=globalThis[o];return e&&"object"==typeof e?e:t}])},868052,915683,29187,702978,158604,e=>{"use strict";var t,o=e.i(723157);e.i(204067);var a=e.i(796805);let i={Low:"low",Medium:"medium",High:"high",XHigh:"xhigh",Max:"max"},r=a.z.enum(i),n={low:{lower:0,upper:20},medium:{lower:20,upper:40},high:{lower:40,upper:60},xhigh:{lower:60,upper:80},max:{lower:80,upper:100}},s=i.Low,l=[i.Low,i.Medium,i.High,i.XHigh,i.Max];e.s(["COST_TIER_ORDER",0,l,"CostTier",0,i,"CostTierSchema",0,r,"DEFAULT_COST_TIER",0,s,"getCostTierFromLegacyTradeoff",0,function(e){let t=90-8*Math.min(10,Math.max(0,e));return l.find(e=>{let o=n[e];return t>=o.lower&&t65536>=e.reduce((e,t)=>e+t.length,0),{message:"Total model pattern length must be at most 65536 characters"}),c=a.z.object({id:a.z.literal(o.PluginId.AutoBetaRouter),enabled:a.z.boolean().optional().openapi({description:"Set to false to disable the auto-beta-router plugin for this request. Defaults to true."}),allowed_models:p.optional().openapi({description:'List of model patterns to filter which models the auto-beta-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. When not specified, every model ranked for the classified task type is a candidate, falling back to a default model set when rankings are unavailable.',example:["anthropic/*","openai/gpt-4o","google/*"]}),excluded_models:p.optional().openapi({description:'List of model patterns to exclude from auto-beta-router selection. Supports wildcards (e.g., "meta-llama/*" excludes all Llama models). Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. Applied after allowed_models, so an excluded pattern always wins over an allowed one.',example:["openai/gpt-4o","meta-llama/*"]}),cost_quality_tradeoff:a.z.number().int().min(0).max(10).optional().openapi({description:"Deprecated: Use cost_tier instead. Balances routing between cost and quality on a 0-10 scale. The auto-beta-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 9 when no cost setting is provided. It remains supported and retains ceiling behavior, but cost_tier takes precedence when both are provided.",example:9,deprecated:!0}),cost_tier:r.optional().openapi({description:"Named cost/quality setting. For auto-beta-router, tiers select cost-percentile bands: low = [0, 20), medium = [20, 40), high = [40, 60), xhigh = [60, 80), and max = [80, 100]. Takes precedence over the deprecated numeric cost_quality_tradeoff when both are provided.",example:"low"})}).openapi("AutoBetaRouterPlugin",{example:{id:"auto-beta-router",enabled:!0,allowed_models:["anthropic/*","openai/*"],excluded_models:["openai/gpt-4o"],cost_tier:"low"}});e.s(["AUTO_BETA_ROUTER_DEFAULT_COST_QUALITY_TRADEOFF",0,9,"AutoBetaRouterPreferencesSchema",0,c],29187);let d=a.z.object({id:a.z.literal(o.PluginId.AutoRouter),enabled:a.z.boolean().optional().openapi({description:"Set to false to disable the auto-router plugin for this request. Defaults to true."}),allowed_models:p.optional().openapi({description:'List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. When not specified, every model ranked for the classified task type is a candidate, falling back to a default model set when rankings are unavailable.',example:["anthropic/*","openai/gpt-4o","google/*"]}),excluded_models:p.optional().openapi({description:'List of model patterns to exclude from auto-router selection. Supports wildcards (e.g., "meta-llama/*" excludes all Llama models). Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. Applied after allowed_models, so an excluded pattern always wins over an allowed one.',example:["openai/gpt-4o","meta-llama/*"]}),cost_quality_tradeoff:a.z.number().int().min(0).max(10).optional().openapi({description:"Deprecated: Use cost_tier instead. Balances routing between cost and quality on a 0-10 scale. The auto-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 9 when no cost setting is provided. It remains supported and retains ceiling behavior, but cost_tier takes precedence when both are provided.",example:9,deprecated:!0}),cost_tier:r.optional().openapi({description:"Named cost/quality setting. Tiers select cost-percentile bands: low = [0, 20), medium = [20, 40), high = [40, 60), xhigh = [60, 80), and max = [80, 100]. Takes precedence over the deprecated numeric cost_quality_tradeoff when both are provided.",example:"low"}),pin_model:a.z.boolean().optional().openapi({description:"When true, reuses the model from the most recent assistant message's `model` attribute for subsequent turns. Defaults to false.",example:!1})}).openapi("AutoRouterPlugin",{example:{id:"auto-router",enabled:!0,allowed_models:["anthropic/*","openai/*"],excluded_models:["openai/gpt-4o"],cost_tier:"low",pin_model:!1}});e.s(["AUTO_ROUTER_DEFAULT_COST_QUALITY_TRADEOFF",0,9,"AutoRouterPreferencesSchema",0,d],868052);var u=((t={}).MiddleOut="middle-out",t);let m=a.z.enum(u).openapi("ContextCompressionEngine",{description:"The compression engine to use for context compression.",example:"middle-out"}),h=a.z.object({id:a.z.literal(o.PluginId.ContextCompression),enabled:a.z.boolean().optional().openapi({description:"Set to false to disable the context-compression plugin for this request. Defaults to true."}),engine:m.optional().openapi({description:'The compression engine to use. Defaults to "middle-out".'})}).openapi("ContextCompressionPlugin",{example:{id:"context-compression",enabled:!0,engine:"middle-out"}});e.s(["ContextCompressionPluginPreferencesSchema",0,h],702978);var g=e.i(823118);let z="pdf-text",b=a.z.union([a.z.enum(g.PDFParserEngine),a.z.literal(z)]).openapi("PDFParserEngine",{description:'The engine to use for parsing PDF files. "pdf-text" is deprecated and automatically redirected to "cloudflare-ai".',example:"cloudflare-ai"}),f=a.z.object({engine:b.optional()}).openapi("PDFParserOptions",{description:"Options for PDF parsing.",example:{engine:"cloudflare-ai"}}),y=a.z.object({id:a.z.literal(o.PluginId.FileParser),enabled:a.z.boolean().optional().openapi({description:"Set to false to disable the file-parser plugin for this request. Defaults to true."}),pdf:f.optional()}).openapi("FileParserPlugin",{example:{id:"file-parser",enabled:!0,pdf:{engine:"cloudflare-ai"}}});e.s(["DEPRECATED_PDF_TEXT_ENGINE",0,z,"FileParserPreferencesSchema",0,y],158604)},203088,465313,e=>{"use strict";var t=e.i(723157),o=e.i(204067),a=e.i(796805);e.s(["DEFAULT_FUSION_AGENT_STEPS",0,4,"MAX_ANALYSIS_MODELS",0,8,"MAX_FUSION_AGENT_STEPS_LIMIT",0,16,"MAX_FUSION_TOOLS",0,8],465313);let i={GeneralHigh:"general-high",GeneralBudget:"general-budget",GeneralFast:"general-fast"},r=a.z.union([a.z.string(),(0,o.zDouble)(),a.z.boolean(),a.z.null()]),n=a.z.union([r,a.z.array(r),a.z.record(a.z.string(),r)]),s=a.z.object({type:a.z.string().openapi({description:'Server tool type identifier (e.g. "openrouter:web_search", "openrouter:web_fetch").'}),parameters:a.z.record(a.z.string(),n).optional().openapi({description:"Optional configuration forwarded as the tool's `parameters` object."})}),l=a.z.object({id:a.z.literal(t.PluginId.Fusion),enabled:a.z.boolean().optional().openapi({description:"Set to false to disable Fusion configuration for a run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool. Defaults to true."}),preset:a.z.nativeEnum(i).optional().openapi({description:"Configuration for a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool. A curated OpenRouter preset (slugs follow `-`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and analyst model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence.",example:"general-high"}),analysis_models:a.z.array(a.z.string()).min(1).max(8).optional().openapi({description:'For a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool, slugs of models to run in parallel as the "expert panel" the analyst analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-sol-latest, ~google/gemini-pro-latest).',example:["~anthropic/claude-opus-latest","~openai/gpt-sol-latest","~google/gemini-pro-latest"]}),model:a.z.string().optional().openapi({description:"For a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool, the slug of the model that performs both the analyst step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset.",example:"~anthropic/claude-opus-latest"}),max_tool_calls:a.z.number().int().min(1).max(16).optional().openapi({description:"For a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool, the maximum number of tool-calling steps each panelist (analysis model) and the analyst model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 4. Capped at 16.",example:12}),tools:a.z.array(s).max(8).optional().openapi({description:'For a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool, server tools available to panelist and analyst inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: "openrouter:web_search" }, { type: "openrouter:web_fetch" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only).',example:[{type:"openrouter:web_search",parameters:{excluded_domains:["example.com"]}},{type:"openrouter:web_fetch"}]})}).openapi("FusionPlugin",{example:{id:"fusion",enabled:!0,analysis_models:["~anthropic/claude-opus-latest","~openai/gpt-sol-latest","~google/gemini-pro-latest"],model:"~anthropic/claude-opus-latest"}});e.s(["FusionPluginPreferencesSchema",0,l,"FusionPresetSlug",0,i],203088)},159341,325481,334714,680600,e=>{"use strict";e.i(823118);var t,o=e.i(723157);e.i(336422);var a=e.i(204067),i=e.i(796805),r=e.i(29187),n=e.i(868052),s=e.i(702978),l=e.i(158604),p=e.i(203088);let c=i.z.object({id:i.z.literal(o.PluginId.Moderation)}).openapi("ModerationPlugin",{example:{id:"moderation"}}),d=i.z.object({id:i.z.literal(o.PluginId.ParetoRouter),enabled:i.z.boolean().optional().openapi({description:"Set to false to disable the pareto-router plugin for this request. Defaults to true."}),min_coding_score:(0,a.zDouble)().min(0).max(1).optional().openapi({description:"Minimum coding quality score between 0 and 1. Maps to internal quality tiers: >= 0.66 → high (top coding models), >= 0.33 → medium (strong modern flagships), < 0.33 → low (capable coders above the median). Omit to default to the highest tier (equivalent to >= 0.66). Not used when max_price is set (price-based selection takes over).",minimum:0,maximum:1,example:.8}),max_price:(0,a.zDouble)().min(0).optional().openapi({description:"Maximum input price in USD per million tokens. When set, quality-tier selection (min_coding_score) is bypassed: the router computes the Pareto frontier over the top coding models and routes to the best-scoring frontier model priced at or below this cap, falling back through cheaper frontier models, then non-frontier models. Enforced against the price source given by price_source. Returns 404 when no candidate satisfies the cap.",minimum:0,example:5}),price_source:i.z.enum(["prompt","weighted_avg"]).optional().openapi({description:'Price source for the Pareto frontier cost axis and for enforcing max_price. "prompt" uses catalog list price (endpoint.pricing.prompt). "weighted_avg" uses traffic-weighted effective input price from ClickHouse, falling back to prompt price for models without traffic data. Defaults to "prompt".'})}).openapi("ParetoRouterPlugin",{example:{id:"pareto-router",enabled:!0,max_price:5,price_source:"prompt"}}),u=i.z.object({id:i.z.literal(o.PluginId.ResponseHealing),enabled:i.z.boolean().optional().openapi({description:"Set to false to disable the response-healing plugin for this request. Defaults to true."})}).openapi("ResponseHealingPlugin",{example:{id:"response-healing",enabled:!0}}),m=i.z.object({id:i.z.literal(o.PluginId.WebFetch),allowed_domains:i.z.array(i.z.string()).optional().openapi({description:"Only fetch from these domains."}),blocked_domains:i.z.array(i.z.string()).optional().openapi({description:"Never fetch from these domains."}),max_uses:(0,a.zInt)().min(1).optional().openapi({description:"Maximum number of web fetches per request. Once exceeded, the tool returns an error."}),max_content_tokens:(0,a.zInt)().min(1).optional().openapi({description:"Maximum content length in approximate tokens. Content exceeding this limit is truncated."})}).openapi("WebFetchPlugin",{example:{id:"web-fetch",max_uses:10}});var h=((t={}).Native="native",t.Exa="exa",t.Firecrawl="firecrawl",t.Parallel="parallel",t.Perplexity="perplexity",t);e.s(["WebSearchEngine",()=>h],325481);let g={Instant:"instant",Fast:"fast",Auto:"auto",DeepLite:"deep-lite",Deep:"deep",DeepReasoning:"deep-reasoning"},z={Turbo:"turbo",Fast:"fast",Basic:"basic",Advanced:"advanced"},b={...g,...z},f=new Map([[h.Exa,{modes:Object.values(g),defaultMode:g.Auto,legacyBillingMode:g.Auto}],[h.Parallel,{modes:Object.values(z),defaultMode:z.Basic,legacyBillingMode:z.Turbo}]]);function y(e){return void 0===e?void 0:f.get(e)}e.s(["ExaSearchMode",0,g,"ParallelSearchMode",0,z,"WebSearchMode",0,b,"getWebSearchModeConfig",0,y,"resolveWebSearchMode",0,function(e,t){let o=y(e);if(o)return void 0!==t&&o.modes.includes(t)?t:o.defaultMode}],334714);let _=i.z.enum(b).openapi("WebSearchMode",{description:"Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, fast, basic (default), and advanced. Modes unsupported by the selected engine are ignored.",example:b.Auto});e.s(["WebSearchModeSchema",0,_],680600);var x=e.i(800479);let w=i.z.enum(h).openapi("WebSearchEngine",{description:"The search engine to use for web search.",example:h.Exa}),v=i.z.object({id:i.z.literal(o.PluginId.WebSearch),enabled:i.z.boolean().optional().openapi({description:"Set to false to disable the web-search plugin for this request. Defaults to true."}),max_results:(0,a.zInt)().optional(),search_prompt:i.z.string().optional(),engine:w.optional(),mode:_.optional(),include_domains:i.z.array(i.z.string()).optional().openapi({description:'A list of domains to restrict web search results to. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog").',example:["example.com","*.substack.com","openai.com/blog"]}),exclude_domains:i.z.array(i.z.string()).optional().openapi({description:'A list of domains to exclude from web search results. Supports wildcards (e.g. "*.substack.com") and path filtering (e.g. "openai.com/blog").',example:["example.com","*.substack.com","openai.com/blog"]}),user_location:x.WebSearchUserLocationSchema.optional().openapi({description:"Approximate user location for location-biased search results. Passed through to native providers that support it (e.g. Anthropic)."}),max_uses:(0,a.zInt)().optional().openapi({description:"Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic)."})}).openapi("WebSearchPlugin",{example:{id:"web",enabled:!0,max_results:5}}),S=i.z.object({title:i.z.string().nullable(),url:i.z.string(),publishedDate:i.z.string().nullish(),author:i.z.string().nullish(),image:i.z.string().optional(),favicon:i.z.string().optional(),score:(0,a.zDouble)().optional(),id:i.z.string(),text:i.z.string().optional(),highlights:i.z.array(i.z.string()).optional(),highlightScores:i.z.array((0,a.zDouble)()).optional()});i.z.object({query:i.z.string(),useAutoprompt:i.z.boolean().optional(),type:i.z.enum(g).optional(),category:i.z.string().optional(),numResults:(0,a.zInt)().optional(),includeDomains:i.z.array(i.z.string()).optional(),excludeDomains:i.z.array(i.z.string()).optional(),startCrawlDate:i.z.string().datetime().optional(),endCrawlDate:i.z.string().datetime().optional(),startPublishedDate:i.z.string().datetime().optional(),endPublishedDate:i.z.string().datetime().optional(),includeText:i.z.array(i.z.string()).optional(),excludeText:i.z.array(i.z.string()).optional(),flags:i.z.array(i.z.string()).optional(),contents:i.z.object({text:i.z.object({maxCharacters:(0,a.zInt)().optional(),includeHtmlTags:i.z.boolean().optional()}).optional(),highlights:i.z.union([i.z.literal(!0),i.z.object({maxCharacters:(0,a.zInt)().optional(),maxTotalCharacters:(0,a.zInt)().optional(),query:i.z.string().optional(),dynamic:i.z.boolean().optional()})]).optional(),summary:i.z.object({query:i.z.string().optional()}).optional()}).optional()});let P=i.z.object({id:i.z.string(),status:i.z.enum(["success","error"]),error:i.z.object({tag:i.z.string().optional(),httpStatusCode:i.z.number().int().optional()}).optional()}),D=i.z.object({total:(0,a.zDouble)().optional(),breakDown:i.z.array(i.z.object({search:(0,a.zDouble)().optional(),contents:(0,a.zDouble)().optional(),breakdown:i.z.record(i.z.string(),(0,a.zDouble)()).optional()}).passthrough()).optional(),search:i.z.record(i.z.string(),(0,a.zDouble)()).optional(),contents:i.z.record(i.z.string(),(0,a.zDouble)()).optional()});i.z.object({results:i.z.array(S.passthrough()),autopromptString:i.z.string().optional(),resolvedSearchType:i.z.enum(["neural","keyword"]).optional().catch(void 0),statuses:i.z.array(P.passthrough()).optional(),requestId:i.z.string().optional(),searchTime:(0,a.zDouble)().optional(),costDollars:D.optional()});let T=i.z.object({title:i.z.string(),description:i.z.string().optional(),url:i.z.string(),markdown:i.z.string().optional(),summary:i.z.string().optional(),highlights:i.z.union([i.z.string(),i.z.array(i.z.string())]).optional()});i.z.object({success:i.z.boolean(),data:i.z.object({web:i.z.array(T.passthrough()).optional(),images:i.z.array(i.z.unknown()).optional(),news:i.z.array(i.z.unknown()).optional()}),creditsUsed:(0,a.zInt)().optional()});let A=i.z.enum(["markdown","html","rawHtml","links","screenshot","screenshot@fullPage","extract","json","summary"]),F=i.z.object({type:i.z.string(),query:i.z.string().optional()}),j=i.z.union([A,F]);i.z.object({query:i.z.string(),limit:(0,a.zInt)().optional(),includeDomains:i.z.array(i.z.string()).optional(),excludeDomains:i.z.array(i.z.string()).optional(),scrapeOptions:i.z.object({formats:i.z.array(j).optional(),onlyMainContent:i.z.boolean().optional()}).optional()}),i.z.object({apiKey:i.z.string(),alreadyExisted:i.z.boolean()}),i.z.object({teamName:i.z.string(),email:i.z.string()});let k=i.z.object({include_domains:i.z.array(i.z.string()).optional(),exclude_domains:i.z.array(i.z.string()).optional(),after_date:i.z.string().optional()}),E=i.z.object({source_policy:k.optional(),excerpt_settings:i.z.object({max_chars_per_result:(0,a.zInt)().optional()}).optional(),max_results:(0,a.zInt)().optional()});i.z.object({objective:i.z.string().optional(),search_queries:i.z.array(i.z.string()).min(1),max_chars_total:(0,a.zInt)().optional(),mode:i.z.enum(z),advanced_settings:E.optional()});let I=i.z.object({url:i.z.string(),title:i.z.string().nullish(),publish_date:i.z.string().nullish(),excerpts:i.z.array(i.z.string())});i.z.object({search_id:i.z.string(),session_id:i.z.string(),results:i.z.array(I.passthrough()),warnings:i.z.array(i.z.object({type:i.z.string().optional(),message:i.z.string().optional()}).passthrough()).nullish(),usage:i.z.array(i.z.object({name:i.z.string().optional(),count:(0,a.zInt)().optional()}).passthrough()).nullish()});let R=i.z.discriminatedUnion("id",[n.AutoRouterPreferencesSchema,r.AutoBetaRouterPreferencesSchema,c,v,m,l.FileParserPreferencesSchema,u,s.ContextCompressionPluginPreferencesSchema,d,p.FusionPluginPreferencesSchema]),M=i.z.array(R);e.s(["PluginPreferenceSchema",0,R,"PluginPreferencesSchema",0,M],159341)},800479,e=>{"use strict";e.i(204067);var t=e.i(796805);let o=t.z.object({type:t.z.literal("approximate"),city:t.z.string().nullish(),country:t.z.string().nullish(),region:t.z.string().nullish(),timezone:t.z.string().nullish()}).openapi("WebSearchUserLocation",{description:"Approximate user location for location-biased search results.",example:{type:"approximate",city:"San Francisco",region:"California",country:"US",timezone:"America/Los_Angeles"}});e.s(["WebSearchUserLocationSchema",0,o])},336422,e=>{"use strict";e.s(["assertNever",0,function(e){throw Error(`Unexpected value: ${e}`)}])}]); //# sourceMappingURL=3yocp5e97zbpn.js.map //# chunkId=01a09bf6-0799-7363-9ddc-aa62c2efa0a0