import { z } from 'zod'; import { type AgentModelsOverride } from '../agent-config/index.js'; /** * Agent model ref. Always an object with explicit `primary` and optional * `fallbacks` chain. No string-form shorthand — every write site builds the * object explicitly so reads never branch on shape. */ export declare const AgentModelRefSchema: z.ZodObject<{ primary: z.ZodString; fallbacks: z.ZodDefault>; }, z.core.$strict>; export type AgentModelConfig = z.infer; /** * Image-generation model ref. {@link AgentModelRefSchema} plus runtime knobs * (`timeoutMs`, `autoProviderFallback`) used by the image-generation runtime. */ export declare const AgentImageGenerationModelSchema: z.ZodObject<{ primary: z.ZodString; fallbacks: z.ZodDefault>; timeoutMs: z.ZodOptional; autoProviderFallback: z.ZodDefault; }, z.core.$strict>; export type AgentImageGenerationModelConfig = z.infer; export declare const AgentModelsSchema: z.ZodObject<{ chat: z.ZodOptional>; }, z.core.$strict>>; intents: z.ZodOptional & z.core.$partial, z.ZodNullable>; }, z.core.$strict>>>>; imageUnderstanding: z.ZodOptional>; }, z.core.$strict>>>; computerUse: z.ZodOptional>; }, z.core.$strict>>>; imageGeneration: z.ZodOptional>; timeoutMs: z.ZodOptional; autoProviderFallback: z.ZodDefault; }, z.core.$strict>>>; }, z.core.$strict>; export type AgentModelsConfig = AgentModelsOverride; export declare const BrowserConfigSchema: z.ZodDefault; driver: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"playwright">; headless: z.ZodDefault; executablePath: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"cdp">; endpoint: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"remote">; provider: z.ZodEnum<{ browserbase: "browserbase"; "browser-use": "browser-use"; }>; apiKey: z.ZodOptional; projectId: z.ZodOptional; region: z.ZodOptional; }, z.core.$strict>], "kind">>; observation: z.ZodDefault; maxCharacters: z.ZodDefault; visualFallback: z.ZodDefault; }, z.core.$strict>>; limits: z.ZodDefault; sessionTimeoutMs: z.ZodDefault; maxSequenceLength: z.ZodDefault; }, z.core.$strict>>; security: z.ZodDefault>; allowedPrivateHosts: z.ZodDefault>; crossDomainNavigation: z.ZodDefault>; uploads: z.ZodDefault>; consequentialActions: z.ZodDefault>; }, z.core.$strict>>; }, z.core.$strict>>; export { TelegramTopicConfigSchema, TelegramGroupConfigSchema, TelegramAccountConfigSchema, TelegramConfigSchema, } from '../../extensions/telegram/src/config-schema.js'; export type { TelegramConfig } from '../../extensions/telegram/src/config-schema.js'; export { WeixinAccountConfigSchema, WeixinConfigSchema } from '../../extensions/weixin/src/config-schema.js'; export type { WeixinConfig } from '../../extensions/weixin/src/config-schema.js'; export declare const SessionDmScopeSchema: z.ZodEnum<{ main: "main"; "per-peer": "per-peer"; "per-channel-peer": "per-channel-peer"; "per-account-channel-peer": "per-account-channel-peer"; }>; export declare const SessionStorageConfigSchema: z.ZodObject<{ pruneAfterMs: z.ZodOptional; maxEntries: z.ZodOptional; }, z.core.$strip>; export declare const SessionResetModeSchema: z.ZodEnum<{ idle: "idle"; daily: "daily"; }>; export declare const SessionResetConfigSchema: z.ZodObject<{ mode: z.ZodOptional>; atHour: z.ZodOptional; idleMinutes: z.ZodOptional; }, z.core.$strict>; export declare const SessionResetByTypeSchema: z.ZodObject<{ direct: z.ZodOptional>; atHour: z.ZodOptional; idleMinutes: z.ZodOptional; }, z.core.$strict>>; group: z.ZodOptional>; atHour: z.ZodOptional; idleMinutes: z.ZodOptional; }, z.core.$strict>>; thread: z.ZodOptional>; atHour: z.ZodOptional; idleMinutes: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; export declare const SessionScopeSchema: z.ZodEnum<{ global: "global"; "per-sender": "per-sender"; }>; export declare const SessionConfigSchema: z.ZodDefault>; mainKey: z.ZodDefault; dmScope: z.ZodDefault>; identityLinks: z.ZodOptional>>; resetTriggers: z.ZodOptional>; reset: z.ZodOptional>; atHour: z.ZodOptional; idleMinutes: z.ZodOptional; }, z.core.$strict>>; resetByType: z.ZodOptional>; atHour: z.ZodOptional; idleMinutes: z.ZodOptional; }, z.core.$strict>>; group: z.ZodOptional>; atHour: z.ZodOptional; idleMinutes: z.ZodOptional; }, z.core.$strict>>; thread: z.ZodOptional>; atHour: z.ZodOptional; idleMinutes: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>; resetByChannel: z.ZodOptional>; atHour: z.ZodOptional; idleMinutes: z.ZodOptional; }, z.core.$strict>>>; storage: z.ZodOptional; maxEntries: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strict>>; /** Channel buckets — shapes validated post-parse by registered channel plugins. */ export declare const ChannelsConfigSchema: z.ZodDefault>; export declare const SearchProviderEntrySchema: z.ZodObject<{ type: z.ZodEnum<{ brave: "brave"; tavily: "tavily"; bing: "bing"; searxng: "searxng"; }>; apiKey: z.ZodOptional; url: z.ZodOptional; disabled: z.ZodOptional; }, z.core.$strip>; export type SearchProviderEntry = z.infer; export declare const WebSearchConfigSchema: z.ZodObject<{ maxResults: z.ZodDefault; providers: z.ZodDefault; apiKey: z.ZodOptional; url: z.ZodOptional; disabled: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; export type WebSearchConfig = z.infer; export declare const WebsiteBlocklistSchema: z.ZodObject<{ enabled: z.ZodDefault; domains: z.ZodDefault>; }, z.core.$strip>; export type WebsiteBlocklistConfig = z.infer; export declare const WebToolsConfigSchema: z.ZodObject<{ region: z.ZodOptional>; search: z.ZodOptional; providers: z.ZodDefault; apiKey: z.ZodOptional; url: z.ZodOptional; disabled: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; blocklist: z.ZodOptional; domains: z.ZodDefault>; }, z.core.$strip>>; }, z.core.$strip>; export type WebToolsConfig = z.infer; export declare const ToolsConfigSchema: z.ZodDefault>; search: z.ZodOptional; providers: z.ZodDefault; apiKey: z.ZodOptional; url: z.ZodOptional; disabled: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; blocklist: z.ZodOptional; domains: z.ZodDefault>; }, z.core.$strip>>; }, z.core.$strip>>; media: z.ZodLazy; model: z.ZodOptional; capabilities: z.ZodOptional>>; type: z.ZodOptional, z.ZodLiteral<"cli">]>>; command: z.ZodOptional; baseUrl: z.ZodOptional; headers: z.ZodOptional>; apiKey: z.ZodOptional; language: z.ZodOptional; prompt: z.ZodOptional; }, z.core.$catchall, z.ZodRecord]>>>>>; audio: z.ZodOptional; provider: z.ZodDefault; fallback: z.ZodDefault; order: z.ZodDefault>; }, z.core.$strip>>; timeoutMs: z.ZodOptional; models: z.ZodOptional; model: z.ZodOptional; capabilities: z.ZodOptional>>; type: z.ZodOptional, z.ZodLiteral<"cli">]>>; command: z.ZodOptional; baseUrl: z.ZodOptional; headers: z.ZodOptional>; apiKey: z.ZodOptional; language: z.ZodOptional; prompt: z.ZodOptional; }, z.core.$catchall, z.ZodRecord]>>>>>; providers: z.ZodOptional; model: z.ZodOptional; baseUrl: z.ZodOptional; headers: z.ZodOptional>; language: z.ZodOptional; prompt: z.ZodOptional; }, z.core.$catchall, z.ZodRecord]>>>>>; }, z.core.$strict>>; }, z.core.$strip>>>; }, z.core.$strip>>; export declare const RuntimeToolsConfigSchema: z.ZodDefault; node: z.ZodDefault; version: z.ZodOptional; preference: z.ZodDefault>; provision: z.ZodDefault>; }, z.core.$strip>>; python: z.ZodDefault; version: z.ZodOptional; preference: z.ZodDefault>; provision: z.ZodDefault>; }, z.core.$strip>>; uv: z.ZodDefault; version: z.ZodOptional; }, z.core.$strip>>; download: z.ZodDefault; proxy: z.ZodOptional; source: z.ZodDefault>; gatewayBaseUrl: z.ZodDefault; timeoutMs: z.ZodDefault; }, z.core.$strict>>; retention: z.ZodDefault; maxCacheBytes: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; export type RuntimeToolsConfig = z.infer; export declare const GatewayAuthRateLimitSchema: z.ZodOptional; maxAttempts: z.ZodDefault; windowMs: z.ZodDefault; blockDurationMs: z.ZodDefault; lockoutMs: z.ZodOptional; exemptLoopback: z.ZodDefault; burstCoalesceMs: z.ZodDefault; }, z.core.$strip>>; export declare const GatewaySecuritySchema: z.ZodOptional; }, z.core.$strip>>; export declare const GatewayTrustedProxySchema: z.ZodObject<{ userHeader: z.ZodString; requiredHeaders: z.ZodOptional>; allowUsers: z.ZodOptional>; allowLoopback: z.ZodOptional; }, z.core.$strict>; export declare const GatewayAuthSchema: z.ZodDefault>; token: z.ZodOptional; password: z.ZodOptional; allowTailscale: z.ZodOptional; rateLimit: z.ZodOptional; maxAttempts: z.ZodDefault; windowMs: z.ZodDefault; blockDurationMs: z.ZodDefault; lockoutMs: z.ZodOptional; exemptLoopback: z.ZodDefault; burstCoalesceMs: z.ZodDefault; }, z.core.$strip>>; trustedProxy: z.ZodOptional>; allowUsers: z.ZodOptional>; allowLoopback: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strip>>; export declare const GatewayTailscaleConsentSchema: z.ZodObject<{ version: z.ZodString; acceptedAt: z.ZodString; }, z.core.$strip>; export declare const GatewayTailscaleSchema: z.ZodDefault>; resetOnExit: z.ZodDefault; consent: z.ZodOptional>; }, z.core.$strip>>; export declare const GatewayRemoteSchema: z.ZodObject<{ url: z.ZodString; token: z.ZodOptional; password: z.ZodOptional; transport: z.ZodDefault>; sshTarget: z.ZodOptional; sshIdentity: z.ZodOptional; tlsFingerprint: z.ZodOptional; }, z.core.$strip>; export declare const GatewayTlsSchema: z.ZodDefault; autoGenerate: z.ZodDefault; certPath: z.ZodOptional; keyPath: z.ZodOptional; }, z.core.$strip>>; export declare const GatewayModeSchema: z.ZodDefault>; export declare const GatewayChannelConnectDeferModeSchema: z.ZodEnum<{ explicit: "explicit"; off: "off"; auto: "auto"; }>; export declare const TunnelConsentSchema: z.ZodObject<{ version: z.ZodString; acceptedAt: z.ZodString; }, z.core.$strip>; export declare const TunnelConfigSchema: z.ZodDefault; brokerUrl: z.ZodDefault; registrationSecret: z.ZodOptional; autoStart: z.ZodDefault; subdomain: z.ZodOptional; consent: z.ZodOptional>; }, z.core.$strip>>; export type TunnelConfig = z.infer; /** * Workspace-scoped concerns (file import, etc.). Distinct from * per-agent workspace paths; this block carries * feature configuration for workspace-related routes. */ export declare const WorkspaceImportConfigSchema: z.ZodObject<{ targetDir: z.ZodDefault; maxBytes: z.ZodDefault; allowOverwrite: z.ZodDefault; }, z.core.$strip>; export type WorkspaceImportConfig = z.infer; export declare const WorkspaceConfigSchema: z.ZodOptional; maxBytes: z.ZodDefault; allowOverwrite: z.ZodDefault; }, z.core.$strip>>; }, z.core.$strip>>; export type WorkspaceConfig = z.infer; export declare const GatewayBindModeSchema: z.ZodEnum<{ custom: "custom"; auto: "auto"; loopback: "loopback"; lan: "lan"; tailnet: "tailnet"; }>; export declare const GatewayWebchatConfigSchema: z.ZodDefault>; }, z.core.$strip>>; export declare const GatewayScenesConfigSchema: z.ZodDefault; }, z.core.$strip>>; export declare const GatewayConfigSchema: z.ZodDefault>; customBindHost: z.ZodOptional; port: z.ZodOptional; mode: z.ZodOptional>>; remote: z.ZodOptional; password: z.ZodOptional; transport: z.ZodDefault>; sshTarget: z.ZodOptional; sshIdentity: z.ZodOptional; tlsFingerprint: z.ZodOptional; }, z.core.$strip>>; tailscale: z.ZodOptional>; resetOnExit: z.ZodDefault; consent: z.ZodOptional>; }, z.core.$strip>>>; tls: z.ZodOptional; autoGenerate: z.ZodDefault; certPath: z.ZodOptional; keyPath: z.ZodOptional; }, z.core.$strip>>>; auth: z.ZodOptional>; token: z.ZodOptional; password: z.ZodOptional; allowTailscale: z.ZodOptional; rateLimit: z.ZodOptional; maxAttempts: z.ZodDefault; windowMs: z.ZodDefault; blockDurationMs: z.ZodDefault; lockoutMs: z.ZodOptional; exemptLoopback: z.ZodDefault; burstCoalesceMs: z.ZodDefault; }, z.core.$strip>>; trustedProxy: z.ZodOptional>; allowUsers: z.ZodOptional>; allowLoopback: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strip>>>; webchat: z.ZodOptional>; }, z.core.$strip>>>; scenes: z.ZodOptional; }, z.core.$strip>>>; corsOrigins: z.ZodOptional>; publicUrl: z.ZodOptional; dangerouslyAllowHostHeaderOriginFallback: z.ZodOptional; trustedProxies: z.ZodOptional>; allowRealIpFallback: z.ZodOptional; security: z.ZodOptional; }, z.core.$strip>>; channelConnectDeferMode: z.ZodOptional>; channelConnectDeferIds: z.ZodOptional>; channelConnectDeferSkipIds: z.ZodOptional>; skillsMarketplaceProvider: z.ZodOptional; skillsStoreBaseUrl: z.ZodOptional; share: z.ZodOptional; defaultTtlMs: z.ZodDefault; maxTtlMs: z.ZodDefault; maxActiveShares: z.ZodDefault; maxFileSize: z.ZodDefault; inlinePreviewMimes: z.ZodDefault>; directory: z.ZodDefault; maxFolderSize: z.ZodDefault; maxFileCount: z.ZodDefault; maxDepth: z.ZodDefault; listingCacheMs: z.ZodDefault; zipConcurrency: z.ZodDefault; }, z.core.$strip>>; note: z.ZodDefault; maxMarkdownBytes: z.ZodDefault; maxAttachmentCount: z.ZodDefault; maxAttachmentSize: z.ZodDefault; maxTotalSize: z.ZodDefault; assetTicketTtlMs: z.ZodDefault; revokeOnSourceDelete: z.ZodDefault; }, z.core.$strip>>; }, z.core.$strip>>; siteShare: z.ZodOptional; publicHostSuffix: z.ZodDefault; defaultTtlMs: z.ZodDefault; maxTtlMs: z.ZodDefault; maxActiveSites: z.ZodDefault; static: z.ZodDefault; maxRootDirSize: z.ZodDefault; maxFileCount: z.ZodDefault; rewriteEnabledByDefault: z.ZodDefault; }, z.core.$strip>>; proxy: z.ZodDefault; allowedUpstreamHosts: z.ZodDefault>; allowedUpstreamPorts: z.ZodDefault>; forwardWebSocket: z.ZodDefault; bodySizeLimit: z.ZodDefault; requestTimeoutMs: z.ZodDefault; wsIdleTimeoutMs: z.ZodDefault; rewriteSetCookiePath: z.ZodDefault; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>>; export declare const ModelsDevConfigSchema: z.ZodDefault; }, z.core.$strip>>; export declare const ModelCatalogConfigSchema: z.ZodDefault; refreshOnStartup: z.ZodDefault; intervalHours: z.ZodDefault; }, z.core.$strict>>; export declare const STTProviderConfigSchema: z.ZodObject<{ apiKey: z.ZodOptional; model: z.ZodOptional; baseUrl: z.ZodOptional; headers: z.ZodOptional>; language: z.ZodOptional; prompt: z.ZodOptional; }, z.core.$catchall, z.ZodRecord]>>>; export declare const STTFallbackConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; order: z.ZodDefault>; }, z.core.$strip>; export declare const MediaUnderstandingCapabilitiesSchema: z.ZodOptional>>; export declare const MediaUnderstandingModelSchema: z.ZodObject<{ provider: z.ZodOptional; model: z.ZodOptional; capabilities: z.ZodOptional>>; type: z.ZodOptional, z.ZodLiteral<"cli">]>>; command: z.ZodOptional; baseUrl: z.ZodOptional; headers: z.ZodOptional>; apiKey: z.ZodOptional; language: z.ZodOptional; prompt: z.ZodOptional; }, z.core.$catchall, z.ZodRecord]>>>; export declare const STTConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; provider: z.ZodDefault; fallback: z.ZodDefault; order: z.ZodDefault>; }, z.core.$strip>>; timeoutMs: z.ZodOptional; models: z.ZodOptional; model: z.ZodOptional; capabilities: z.ZodOptional>>; type: z.ZodOptional, z.ZodLiteral<"cli">]>>; command: z.ZodOptional; baseUrl: z.ZodOptional; headers: z.ZodOptional>; apiKey: z.ZodOptional; language: z.ZodOptional; prompt: z.ZodOptional; }, z.core.$catchall, z.ZodRecord]>>>>>; providers: z.ZodOptional; model: z.ZodOptional; baseUrl: z.ZodOptional; headers: z.ZodOptional>; language: z.ZodOptional; prompt: z.ZodOptional; }, z.core.$catchall, z.ZodRecord]>>>>>; }, z.core.$strict>; export declare const TTSProviderConfigSchema: z.ZodObject<{ apiKey: z.ZodOptional; model: z.ZodOptional; voice: z.ZodOptional; }, z.core.$catchall, z.ZodRecord]>>>; export declare const TTSFallbackConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; order: z.ZodDefault>; }, z.core.$strip>; export declare const TTSModelOverridesConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; allowText: z.ZodDefault; allowProvider: z.ZodDefault; allowVoice: z.ZodDefault; allowModelId: z.ZodDefault; allowVoiceSettings: z.ZodDefault; allowNormalization: z.ZodDefault; allowSeed: z.ZodDefault; }, z.core.$strip>; export declare const TTSEdgeConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; voice: z.ZodOptional; lang: z.ZodOptional; outputFormat: z.ZodOptional; pitch: z.ZodOptional; rate: z.ZodOptional; volume: z.ZodOptional; proxy: z.ZodOptional; timeoutMs: z.ZodOptional; }, z.core.$strip>; export declare const TTSSummarizationConfigSchema: z.ZodObject<{ enabled: z.ZodOptional; targetLength: z.ZodOptional; threshold: z.ZodOptional; model: z.ZodOptional; }, z.core.$strip>; export declare const TTSConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; provider: z.ZodDefault; trigger: z.ZodDefault>; fallback: z.ZodOptional; order: z.ZodDefault>; }, z.core.$strip>>; maxTextLength: z.ZodDefault; timeoutMs: z.ZodDefault; summarization: z.ZodOptional; targetLength: z.ZodOptional; threshold: z.ZodOptional; model: z.ZodOptional; }, z.core.$strip>>; modelOverrides: z.ZodOptional; allowText: z.ZodDefault; allowProvider: z.ZodDefault; allowVoice: z.ZodDefault; allowModelId: z.ZodDefault; allowVoiceSettings: z.ZodDefault; allowNormalization: z.ZodDefault; allowSeed: z.ZodDefault; }, z.core.$strip>>; providers: z.ZodOptional; model: z.ZodOptional; voice: z.ZodOptional; }, z.core.$catchall, z.ZodRecord]>>>>>; }, z.core.$strict>; export declare const VoiceRefinementConfigSchema: z.ZodObject<{ mode: z.ZodDefault>; model: z.ZodOptional; customInstruction: z.ZodOptional; }, z.core.$strict>; export declare const VoiceConfigSchema: z.ZodOptional>; language: z.ZodOptional>; input: z.ZodOptional>; model: z.ZodOptional; customInstruction: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>; realtime: z.ZodDefault; defaultEngine: z.ZodDefault>; silenceDurationMs: z.ZodDefault; idleTimeoutMs: z.ZodDefault; maxDictationMs: z.ZodDefault; maxConversationMs: z.ZodDefault; bargeIn: z.ZodDefault; stt: z.ZodOptional; model: z.ZodString; }, z.core.$strict>>; tts: z.ZodOptional; model: z.ZodOptional; voice: z.ZodOptional; }, z.core.$strict>>; omni: z.ZodOptional; model: z.ZodString; voice: z.ZodString; baseUrl: z.ZodOptional; apiKey: z.ZodOptional; instructions: z.ZodDefault; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>>; export declare const MessagesConfigSchema: z.ZodOptional; provider: z.ZodDefault; trigger: z.ZodDefault>; fallback: z.ZodOptional; order: z.ZodDefault>; }, z.core.$strip>>; maxTextLength: z.ZodDefault; timeoutMs: z.ZodDefault; summarization: z.ZodOptional; targetLength: z.ZodOptional; threshold: z.ZodOptional; model: z.ZodOptional; }, z.core.$strip>>; modelOverrides: z.ZodOptional; allowText: z.ZodDefault; allowProvider: z.ZodDefault; allowVoice: z.ZodDefault; allowModelId: z.ZodDefault; allowVoiceSettings: z.ZodDefault; allowNormalization: z.ZodDefault; allowSeed: z.ZodDefault; }, z.core.$strip>>; providers: z.ZodOptional; model: z.ZodOptional; voice: z.ZodOptional; }, z.core.$catchall, z.ZodRecord]>>>>>; }, z.core.$strict>>; }, z.core.$strip>>; export declare const ToolsMediaAudioConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; provider: z.ZodDefault; fallback: z.ZodDefault; order: z.ZodDefault>; }, z.core.$strip>>; timeoutMs: z.ZodOptional; models: z.ZodOptional; model: z.ZodOptional; capabilities: z.ZodOptional>>; type: z.ZodOptional, z.ZodLiteral<"cli">]>>; command: z.ZodOptional; baseUrl: z.ZodOptional; headers: z.ZodOptional>; apiKey: z.ZodOptional; language: z.ZodOptional; prompt: z.ZodOptional; }, z.core.$catchall, z.ZodRecord]>>>>>; providers: z.ZodOptional; model: z.ZodOptional; baseUrl: z.ZodOptional; headers: z.ZodOptional>; language: z.ZodOptional; prompt: z.ZodOptional; }, z.core.$catchall, z.ZodRecord]>>>>>; }, z.core.$strict>; export declare const ToolsMediaConfigSchema: z.ZodOptional; model: z.ZodOptional; capabilities: z.ZodOptional>>; type: z.ZodOptional, z.ZodLiteral<"cli">]>>; command: z.ZodOptional; baseUrl: z.ZodOptional; headers: z.ZodOptional>; apiKey: z.ZodOptional; language: z.ZodOptional; prompt: z.ZodOptional; }, z.core.$catchall, z.ZodRecord]>>>>>; audio: z.ZodOptional; provider: z.ZodDefault; fallback: z.ZodDefault; order: z.ZodDefault>; }, z.core.$strip>>; timeoutMs: z.ZodOptional; models: z.ZodOptional; model: z.ZodOptional; capabilities: z.ZodOptional>>; type: z.ZodOptional, z.ZodLiteral<"cli">]>>; command: z.ZodOptional; baseUrl: z.ZodOptional; headers: z.ZodOptional>; apiKey: z.ZodOptional; language: z.ZodOptional; prompt: z.ZodOptional; }, z.core.$catchall, z.ZodRecord]>>>>>; providers: z.ZodOptional; model: z.ZodOptional; baseUrl: z.ZodOptional; headers: z.ZodOptional>; language: z.ZodOptional; prompt: z.ZodOptional; }, z.core.$catchall, z.ZodRecord]>>>>>; }, z.core.$strict>>; }, z.core.$strip>>; /** * Optional Azure OpenAI overrides used when an OpenAI image-generation * request should hit an Azure deployment instead of `api.openai.com`. * * URL template (when present): * `https://.openai.azure.com/openai/deployments//images/generations?api-version=` */ export declare const ProviderAzureConfigSchema: z.ZodObject<{ resource: z.ZodOptional; deployment: z.ZodOptional; apiVersion: z.ZodOptional; }, z.core.$strict>; /** Per-vendor request overrides applied by the provider HTTP layer. */ export declare const ProviderRequestOverridesSchema: z.ZodObject<{ timeoutMs: z.ZodOptional; headers: z.ZodOptional>; }, z.core.$strict>; /** * Generic per-vendor provider config — used by image / audio / video * capability providers via `cfg.providers.`. */ export declare const ProviderAuthConfigSchema: z.ZodObject<{ baseUrl: z.ZodOptional; region: z.ZodOptional>; request: z.ZodOptional; headers: z.ZodOptional>; }, z.core.$strict>>; azure: z.ZodOptional; deployment: z.ZodOptional; apiVersion: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; export type ProviderAuthConfig = z.infer; /** * `cfg.providers.` stores non-secret connection settings. Credentials * live in the credential store or environment. Every entry is validated by * {@link ProviderAuthConfigSchema}. */ export declare const ProvidersConfigSchema: z.ZodRecord; region: z.ZodOptional>; request: z.ZodOptional; headers: z.ZodOptional>; }, z.core.$strict>>; azure: z.ZodOptional; deployment: z.ZodOptional; apiVersion: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>; export type ProvidersConfig = z.infer; export declare const ExtensionSecurityConfigSchema: z.ZodObject<{ checkPermissions: z.ZodDefault; allowUntrusted: z.ZodDefault; allow: z.ZodDefault>; trackProvenance: z.ZodDefault; allowPromptInjection: z.ZodDefault; }, z.core.$strip>; export declare const ExtensionSlotsConfigSchema: z.ZodObject<{ memory: z.ZodOptional; tts: z.ZodOptional; imageGeneration: z.ZodOptional; webSearch: z.ZodOptional; }, z.core.$strip>; export declare const ExtensionsConfigSchema: z.ZodType>; export declare const UpdateAutoConfigSchema: z.ZodOptional; stableDelayHours: z.ZodDefault; stableJitterHours: z.ZodDefault; betaCheckIntervalHours: z.ZodDefault; }, z.core.$strict>>; export declare const UpdateConfigSchema: z.ZodOptional; channel: z.ZodDefault>; auto: z.ZodOptional; stableDelayHours: z.ZodDefault; stableJitterHours: z.ZodDefault; betaCheckIntervalHours: z.ZodDefault; }, z.core.$strict>>; }, z.core.$strict>>; export type UpdateConfig = z.infer; export declare const CommandsConfigSchema: z.ZodOptional; }, z.core.$strict>>; export type CommandsConfig = z.infer; export declare const McpOAuthConfigSchema: z.ZodObject<{ type: z.ZodLiteral<"oauth">; clientId: z.ZodOptional; }, z.core.$strict>; export declare const McpServerSchema: z.ZodObject<{ command: z.ZodOptional; args: z.ZodOptional>; env: z.ZodOptional; suffix: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>]>>>; cwd: z.ZodOptional; workingDirectory: z.ZodOptional; url: z.ZodOptional; transport: z.ZodOptional>; headers: z.ZodOptional; suffix: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>]>>>; auth: z.ZodOptional; clientId: z.ZodOptional; }, z.core.$strict>>; connectionTimeoutMs: z.ZodOptional; requestTimeoutMs: z.ZodOptional; }, z.core.$catchall>; export declare const McpConfigSchema: z.ZodOptional; args: z.ZodOptional>; env: z.ZodOptional; suffix: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>]>>>; cwd: z.ZodOptional; workingDirectory: z.ZodOptional; url: z.ZodOptional; transport: z.ZodOptional>; headers: z.ZodOptional; suffix: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>]>>>; auth: z.ZodOptional; clientId: z.ZodOptional; }, z.core.$strict>>; connectionTimeoutMs: z.ZodOptional; requestTimeoutMs: z.ZodOptional; }, z.core.$catchall>>>; sessionIdleTtlMs: z.ZodOptional; }, z.core.$strict>>; export type McpServerConfig = z.infer; export type McpOAuthConfig = z.infer; export type McpConfig = z.infer; export declare const ConnectorsConfigSchema: z.ZodOptional>>; }, z.core.$strict>>; export type ConnectorsConfig = z.infer; export declare const ExperimentalConfigSchema: z.ZodDefault; }, z.core.$strict>>; export type ExperimentalConfig = z.infer; export declare const ConfigSchema: z.ZodDefault; capture: z.ZodDefault>; detailedUntil: z.ZodOptional; local: z.ZodPrefault; maxStoreMiB: z.ZodDefault; maxTraces: z.ZodDefault; maxSpans: z.ZodDefault; maxTraceKiB: z.ZodDefault; maxWriteMiBPerMinute: z.ZodDefault; }, z.core.$strip>>; langfuse: z.ZodPrefault; baseUrl: z.ZodDefault; }, z.core.$strip>>; }, z.core.$strict>>; }, z.core.$strip>>; userContext: z.ZodDefault; preferences: z.ZodDefault>; }, z.core.$strict>>; userModel: z.ZodDefault; writePolicy: z.ZodDefault>; sensitiveWritePolicy: z.ZodDefault>; showMemoryReferences: z.ZodDefault; processingPolicy: z.ZodDefault>; extraction: z.ZodDefault; maxHistoryMessages: z.ZodDefault; maxDurationMs: z.ZodDefault; }, z.core.$strict>>; maintenance: z.ZodDefault; timezone: z.ZodOptional; temporalSweepMinutes: z.ZodDefault; dailyTime: z.ZodDefault; weeklyDay: z.ZodDefault>; weeklyTime: z.ZodDefault; evidenceThreshold: z.ZodDefault; limit: z.ZodDefault; staleRetentionDays: z.ZodDefault; }, z.core.$strict>>; }, z.core.$strict>>; knowledgeMemory: z.ZodDefault; writePolicy: z.ZodDefault>; readScopes: z.ZodDefault>>; contentSources: z.ZodDefault>>; searchStrategy: z.ZodDefault>; searchTimeoutMs: z.ZodDefault; writeStrategy: z.ZodDefault>; allowExternalWrites: z.ZodDefault; allowedProviderIds: z.ZodOptional>; autoWriteKinds: z.ZodOptional>; }, z.core.$strict>>; contextPlanning: z.ZodDefault; maxAssertions: z.ZodDefault; maxKnowledge: z.ZodDefault; maxChars: z.ZodDefault; compaction: z.ZodDefault; idleMs: z.ZodDefault; triggerThreshold: z.ZodDefault; cooldownMs: z.ZodDefault; timeoutMs: z.ZodDefault; keepRecentTokens: z.ZodDefault; summaryMaxTokens: z.ZodDefault; model: z.ZodOptional; }, z.core.$strict>>; enabled: z.ZodDefault; triggerThreshold: z.ZodDefault; reserveTokens: z.ZodDefault; minMessagesBeforeCompact: z.ZodDefault; keepRecentTokens: z.ZodDefault; recentTurnsPreserve: z.ZodDefault; summaryMaxTokens: z.ZodDefault; summaryChunkTokens: z.ZodDefault; summaryTimeoutMs: z.ZodDefault; summaryRetries: z.ZodDefault; reasoningLevel: z.ZodDefault>; qualityGuard: z.ZodDefault; gapAudit: z.ZodDefault; model: z.ZodOptional; minToolResultKeepChars: z.ZodDefault; maxActiveTranscriptBytes: z.ZodDefault; postCompactionSections: z.ZodDefault>; }, z.core.$strict>>; }, z.core.$strict>>; homeIntelligence: z.ZodDefault; refreshOnContextChange: z.ZodDefault; }, z.core.$strict>>; }, z.core.$strict>>; session: z.ZodDefault>; mainKey: z.ZodDefault; dmScope: z.ZodDefault>; identityLinks: z.ZodOptional>>; resetTriggers: z.ZodOptional>; reset: z.ZodOptional>; atHour: z.ZodOptional; idleMinutes: z.ZodOptional; }, z.core.$strict>>; resetByType: z.ZodOptional>; atHour: z.ZodOptional; idleMinutes: z.ZodOptional; }, z.core.$strict>>; group: z.ZodOptional>; atHour: z.ZodOptional; idleMinutes: z.ZodOptional; }, z.core.$strict>>; thread: z.ZodOptional>; atHour: z.ZodOptional; idleMinutes: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>; resetByChannel: z.ZodOptional>; atHour: z.ZodOptional; idleMinutes: z.ZodOptional; }, z.core.$strict>>>; storage: z.ZodOptional; maxEntries: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strict>>; channels: z.ZodDefault>; gateway: z.ZodDefault>; customBindHost: z.ZodOptional; port: z.ZodOptional; mode: z.ZodOptional>>; remote: z.ZodOptional; password: z.ZodOptional; transport: z.ZodDefault>; sshTarget: z.ZodOptional; sshIdentity: z.ZodOptional; tlsFingerprint: z.ZodOptional; }, z.core.$strip>>; tailscale: z.ZodOptional>; resetOnExit: z.ZodDefault; consent: z.ZodOptional>; }, z.core.$strip>>>; tls: z.ZodOptional; autoGenerate: z.ZodDefault; certPath: z.ZodOptional; keyPath: z.ZodOptional; }, z.core.$strip>>>; auth: z.ZodOptional>; token: z.ZodOptional; password: z.ZodOptional; allowTailscale: z.ZodOptional; rateLimit: z.ZodOptional; maxAttempts: z.ZodDefault; windowMs: z.ZodDefault; blockDurationMs: z.ZodDefault; lockoutMs: z.ZodOptional; exemptLoopback: z.ZodDefault; burstCoalesceMs: z.ZodDefault; }, z.core.$strip>>; trustedProxy: z.ZodOptional>; allowUsers: z.ZodOptional>; allowLoopback: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strip>>>; webchat: z.ZodOptional>; }, z.core.$strip>>>; scenes: z.ZodOptional; }, z.core.$strip>>>; corsOrigins: z.ZodOptional>; publicUrl: z.ZodOptional; dangerouslyAllowHostHeaderOriginFallback: z.ZodOptional; trustedProxies: z.ZodOptional>; allowRealIpFallback: z.ZodOptional; security: z.ZodOptional; }, z.core.$strip>>; channelConnectDeferMode: z.ZodOptional>; channelConnectDeferIds: z.ZodOptional>; channelConnectDeferSkipIds: z.ZodOptional>; skillsMarketplaceProvider: z.ZodOptional; skillsStoreBaseUrl: z.ZodOptional; share: z.ZodOptional; defaultTtlMs: z.ZodDefault; maxTtlMs: z.ZodDefault; maxActiveShares: z.ZodDefault; maxFileSize: z.ZodDefault; inlinePreviewMimes: z.ZodDefault>; directory: z.ZodDefault; maxFolderSize: z.ZodDefault; maxFileCount: z.ZodDefault; maxDepth: z.ZodDefault; listingCacheMs: z.ZodDefault; zipConcurrency: z.ZodDefault; }, z.core.$strip>>; note: z.ZodDefault; maxMarkdownBytes: z.ZodDefault; maxAttachmentCount: z.ZodDefault; maxAttachmentSize: z.ZodDefault; maxTotalSize: z.ZodDefault; assetTicketTtlMs: z.ZodDefault; revokeOnSourceDelete: z.ZodDefault; }, z.core.$strip>>; }, z.core.$strip>>; siteShare: z.ZodOptional; publicHostSuffix: z.ZodDefault; defaultTtlMs: z.ZodDefault; maxTtlMs: z.ZodDefault; maxActiveSites: z.ZodDefault; static: z.ZodDefault; maxRootDirSize: z.ZodDefault; maxFileCount: z.ZodDefault; rewriteEnabledByDefault: z.ZodDefault; }, z.core.$strip>>; proxy: z.ZodDefault; allowedUpstreamHosts: z.ZodDefault>; allowedUpstreamPorts: z.ZodDefault>; forwardWebSocket: z.ZodDefault; bodySizeLimit: z.ZodDefault; requestTimeoutMs: z.ZodDefault; wsIdleTimeoutMs: z.ZodDefault; rewriteSetCookiePath: z.ZodDefault; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>>; browser: z.ZodDefault; driver: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"playwright">; headless: z.ZodDefault; executablePath: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"cdp">; endpoint: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"remote">; provider: z.ZodEnum<{ browserbase: "browserbase"; "browser-use": "browser-use"; }>; apiKey: z.ZodOptional; projectId: z.ZodOptional; region: z.ZodOptional; }, z.core.$strict>], "kind">>; observation: z.ZodDefault; maxCharacters: z.ZodDefault; visualFallback: z.ZodDefault; }, z.core.$strict>>; limits: z.ZodDefault; sessionTimeoutMs: z.ZodDefault; maxSequenceLength: z.ZodDefault; }, z.core.$strict>>; security: z.ZodDefault>; allowedPrivateHosts: z.ZodDefault>; crossDomainNavigation: z.ZodDefault>; uploads: z.ZodDefault>; consequentialActions: z.ZodDefault>; }, z.core.$strict>>; }, z.core.$strict>>; computer: z.ZodPrefault; maxActionsPerSession: z.ZodDefault; maxModelRequests: z.ZodDefault; maxSessionDurationMs: z.ZodDefault; idleGrantTtlMs: z.ZodDefault; }, z.core.$strict>>; tunnel: z.ZodOptional; brokerUrl: z.ZodDefault; registrationSecret: z.ZodOptional; autoStart: z.ZodDefault; subdomain: z.ZodOptional; consent: z.ZodOptional>; }, z.core.$strip>>>; workspace: z.ZodOptional; maxBytes: z.ZodDefault; allowOverwrite: z.ZodDefault; }, z.core.$strip>>; }, z.core.$strip>>; tools: z.ZodDefault>; search: z.ZodOptional; providers: z.ZodDefault; apiKey: z.ZodOptional; url: z.ZodOptional; disabled: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; blocklist: z.ZodOptional; domains: z.ZodDefault>; }, z.core.$strip>>; }, z.core.$strip>>; media: z.ZodLazy; model: z.ZodOptional; capabilities: z.ZodOptional>>; type: z.ZodOptional, z.ZodLiteral<"cli">]>>; command: z.ZodOptional; baseUrl: z.ZodOptional; headers: z.ZodOptional>; apiKey: z.ZodOptional; language: z.ZodOptional; prompt: z.ZodOptional; }, z.core.$catchall, z.ZodRecord]>>>>>; audio: z.ZodOptional; provider: z.ZodDefault; fallback: z.ZodDefault; order: z.ZodDefault>; }, z.core.$strip>>; timeoutMs: z.ZodOptional; models: z.ZodOptional; model: z.ZodOptional; capabilities: z.ZodOptional>>; type: z.ZodOptional, z.ZodLiteral<"cli">]>>; command: z.ZodOptional; baseUrl: z.ZodOptional; headers: z.ZodOptional>; apiKey: z.ZodOptional; language: z.ZodOptional; prompt: z.ZodOptional; }, z.core.$catchall, z.ZodRecord]>>>>>; providers: z.ZodOptional; model: z.ZodOptional; baseUrl: z.ZodOptional; headers: z.ZodOptional>; language: z.ZodOptional; prompt: z.ZodOptional; }, z.core.$catchall, z.ZodRecord]>>>>>; }, z.core.$strict>>; }, z.core.$strip>>>; }, z.core.$strip>>; runtimeTools: z.ZodDefault; node: z.ZodDefault; version: z.ZodOptional; preference: z.ZodDefault>; provision: z.ZodDefault>; }, z.core.$strip>>; python: z.ZodDefault; version: z.ZodOptional; preference: z.ZodDefault>; provision: z.ZodDefault>; }, z.core.$strip>>; uv: z.ZodDefault; version: z.ZodOptional; }, z.core.$strip>>; download: z.ZodDefault; proxy: z.ZodOptional; source: z.ZodDefault>; gatewayBaseUrl: z.ZodDefault; timeoutMs: z.ZodDefault; }, z.core.$strict>>; retention: z.ZodDefault; maxCacheBytes: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; mcp: z.ZodOptional; args: z.ZodOptional>; env: z.ZodOptional; suffix: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>]>>>; cwd: z.ZodOptional; workingDirectory: z.ZodOptional; url: z.ZodOptional; transport: z.ZodOptional>; headers: z.ZodOptional; suffix: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>]>>>; auth: z.ZodOptional; clientId: z.ZodOptional; }, z.core.$strict>>; connectionTimeoutMs: z.ZodOptional; requestTimeoutMs: z.ZodOptional; }, z.core.$catchall>>>; sessionIdleTtlMs: z.ZodOptional; }, z.core.$strict>>; connectors: z.ZodOptional>>; }, z.core.$strict>>; experimental: z.ZodDefault; }, z.core.$strict>>; platform: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodLiteral<"connected">; url: z.ZodString; workspaceId: z.ZodOptional; discovery: z.ZodObject<{ schemaVersion: z.ZodLiteral<"1">; platformId: z.ZodString; displayName: z.ZodString; deploymentMode: z.ZodEnum<{ development: "development"; private: "private"; cloud: "cloud"; }>; region: z.ZodString; endpoints: z.ZodObject<{ authorizationServer: z.ZodString; controlApi: z.ZodString; modelApi: z.ZodOptional; storeApi: z.ZodOptional; tunnelApi: z.ZodOptional; shareApi: z.ZodOptional; agentApi: z.ZodOptional; a2aApi: z.ZodOptional; realtime: z.ZodOptional; }, z.core.$strict>; capabilities: z.ZodRecord, z.ZodBoolean>; protocols: z.ZodObject<{ xopc: z.ZodObject<{ min: z.ZodString; max: z.ZodString; }, z.core.$strict>; mcp: z.ZodDefault>; a2a: z.ZodDefault>; }, z.core.$strict>; }, z.core.$strict>; }, z.core.$strict>], "mode">>; extensions: z.ZodDefault, unknown, z.core.$ZodTypeInternals, unknown>>>; providers: z.ZodOptional; region: z.ZodOptional>; request: z.ZodOptional; headers: z.ZodOptional>; }, z.core.$strict>>; azure: z.ZodOptional; deployment: z.ZodOptional; apiVersion: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>>; modelsDev: z.ZodDefault; }, z.core.$strip>>; modelCatalog: z.ZodDefault; refreshOnStartup: z.ZodDefault; intervalHours: z.ZodDefault; }, z.core.$strict>>; messages: z.ZodOptional; provider: z.ZodDefault; trigger: z.ZodDefault>; fallback: z.ZodOptional; order: z.ZodDefault>; }, z.core.$strip>>; maxTextLength: z.ZodDefault; timeoutMs: z.ZodDefault; summarization: z.ZodOptional; targetLength: z.ZodOptional; threshold: z.ZodOptional; model: z.ZodOptional; }, z.core.$strip>>; modelOverrides: z.ZodOptional; allowText: z.ZodDefault; allowProvider: z.ZodDefault; allowVoice: z.ZodDefault; allowModelId: z.ZodDefault; allowVoiceSettings: z.ZodDefault; allowNormalization: z.ZodDefault; allowSeed: z.ZodDefault; }, z.core.$strip>>; providers: z.ZodOptional; model: z.ZodOptional; voice: z.ZodOptional; }, z.core.$catchall, z.ZodRecord]>>>>>; }, z.core.$strict>>; }, z.core.$strip>>; voice: z.ZodOptional>; language: z.ZodOptional>; input: z.ZodOptional>; model: z.ZodOptional; customInstruction: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>; realtime: z.ZodDefault; defaultEngine: z.ZodDefault>; silenceDurationMs: z.ZodDefault; idleTimeoutMs: z.ZodDefault; maxDictationMs: z.ZodDefault; maxConversationMs: z.ZodDefault; bargeIn: z.ZodDefault; stt: z.ZodOptional; model: z.ZodString; }, z.core.$strict>>; tts: z.ZodOptional; model: z.ZodOptional; voice: z.ZodOptional; }, z.core.$strict>>; omni: z.ZodOptional; model: z.ZodString; voice: z.ZodString; baseUrl: z.ZodOptional; apiKey: z.ZodOptional; instructions: z.ZodDefault; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>>; update: z.ZodOptional; channel: z.ZodDefault>; auto: z.ZodOptional; stableDelayHours: z.ZodDefault; stableJitterHours: z.ZodDefault; betaCheckIntervalHours: z.ZodDefault; }, z.core.$strict>>; }, z.core.$strict>>; commands: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>; export type Config = z.infer; export type GatewayAuthConfig = z.infer; export type GatewayTrustedProxyConfig = z.infer; export type GatewayAuthRateLimitConfig = z.infer; export type GatewayBindMode = z.infer; export type STTConfig = z.infer; export type TTSConfig = z.infer; export type VoiceConfig = z.infer; /** * Parse a model reference string. */ export interface ParsedModelRef { provider: string; model: string; } export declare function getAgentDefaultModelRef(): string | undefined; export declare function getAgentDefaultImageModelConfig(): AgentModelConfig | undefined; export declare function getAgentDefaultImageGenerationModelConfig(agentId: string): AgentImageGenerationModelConfig | undefined; /** `provider/model` or null when invalid. */ export declare function parseModelRef(ref: string): ParsedModelRef | null;