import { z } from 'zod'; import { FEISHU_PROFILE_NAME_SCOPE, type FeishuRecommendedScopeCapability } from './feishu-recommended-scopes.js'; export declare const PROVIDER_IDLE_TIMEOUT_MS_DEFAULT: number; export declare const PROVIDER_CHILD_IDLE_TIMEOUT_MS_DEFAULT: number; export declare const ClaudeCodeTransport: z.ZodEnum<{ "stream-json": "stream-json"; }>; export type ClaudeCodeTransport = z.infer; export declare const ANIMA_MANAGED_PROVIDER_ENV_KEYS: readonly ["ANIMA_AGENT_ID", "ANIMA_HOME", "ANIMA_INBOX_ITEM_ID", "ANIMA_RUNTIME_HOME", "ANIMA_SLACK_BOT_TOKEN", "CLAUDE_CONFIG_DIR", "FEISHU_API_BASE_URL", "FEISHU_APP_ID", "FEISHU_APP_SECRET", "FEISHU_BOT_OPEN_ID", "FEISHU_TENANT_ACCESS_TOKEN", "FEISHU_TENANT_ACCESS_TOKEN_EXPIRES_AT", "NO_COLOR", "SLACK_BOT_TOKEN"]; export declare function agentIdFromName(name: string): string; export declare const AgentCreateRequest: z.ZodObject<{ name: z.ZodString; homePath: z.ZodOptional; role: z.ZodString; provider: z.ZodObject<{ kind: z.ZodString; model: z.ZodString; reasoningEffort: z.ZodOptional; transport: z.ZodOptional; }, z.core.$strict>; teamId: z.ZodOptional; }, z.core.$strict>; export type AgentCreateRequest = z.infer; export declare const AgentUpdateHomeRequest: z.ZodObject<{ homePath: z.ZodString; }, z.core.$strict>; export type AgentUpdateHomeRequest = z.infer; export declare const AgentAssignTeamRequest: z.ZodObject<{ teamId: z.ZodString; }, z.core.$strict>; export type AgentAssignTeamRequest = z.infer; export declare const AgentUpdateProfileRequest: z.ZodObject<{ displayName: z.ZodOptional; role: z.ZodOptional; }, z.core.$strict>; export type AgentUpdateProfileRequest = z.infer; export declare const AgentUpdateProviderRequest: z.ZodObject<{ env: z.ZodOptional>>; kind: z.ZodOptional; model: z.ZodOptional; reasoningEffort: z.ZodOptional; transport: z.ZodOptional>; }, z.core.$strict>; export type AgentUpdateProviderRequest = z.infer; export declare const AgentConnectSlackRequest: z.ZodObject<{ appToken: z.ZodString; botToken: z.ZodString; }, z.core.$strict>; export type AgentConnectSlackRequest = z.infer; export declare const AgentSlackValidateRequest: z.ZodObject<{ appToken: z.ZodOptional; botToken: z.ZodOptional; }, z.core.$strict>; export type AgentSlackValidateRequest = z.infer; export type SlackTokenKind = 'app' | 'bot' | 'unknown'; export type SlackTokenValidationReason = 'missing_token' | 'wrong_token_type' | 'unknown_token_type' | 'invalid_token' | 'missing_connections_write' | 'not_bot_token' | 'slack_api_error'; export interface SlackTokenValidation { appId?: string; botAvatarUrl?: string; botHandle?: string; botName?: string; botUserId?: string; detected?: SlackTokenKind; expected: Exclude; reason?: SlackTokenValidationReason; teamId?: string; valid: boolean; workspaceIconUrl?: string; workspaceName?: string; } export interface SlackConnectionValidation { appId?: string; botAvatarUrl?: string; botHandle?: string; botName?: string; botUserId?: string; reason?: 'incomplete' | 'app_mismatch'; teamId?: string; valid: boolean; workspaceIconUrl?: string; workspaceName?: string; } export interface AgentSlackValidateResponse { app?: SlackTokenValidation; bot?: SlackTokenValidation; connection: SlackConnectionValidation; } export declare const AgentSetOwnerRequest: z.ZodObject<{ slackUserId: z.ZodString; openerNote: z.ZodOptional; introduce: z.ZodOptional; }, z.core.$strict>; export type AgentSetOwnerRequest = z.infer; export declare const SlackUserCandidate: z.ZodObject<{ slackUserId: z.ZodString; displayName: z.ZodString; handle: z.ZodOptional; avatarUrl: z.ZodOptional; }, z.core.$strict>; export type SlackUserCandidate = z.infer; export declare const CodexCliAgentProviderConfig: z.ZodObject<{ env: z.ZodOptional>; idleTimeoutMs: z.ZodOptional; kind: z.ZodLiteral<"codex-cli">; model: z.ZodOptional; providerChildIdleTimeoutMs: z.ZodOptional; reasoningEffort: z.ZodOptional; reasoningSummary: z.ZodOptional>; }, z.core.$strip>; export type CodexCliAgentProviderConfig = z.infer; export declare const ClaudeCodeAgentProviderConfig: z.ZodObject<{ accountId: z.ZodOptional; env: z.ZodOptional>; idleTimeoutMs: z.ZodOptional; kind: z.ZodLiteral<"claude-code">; model: z.ZodOptional; providerChildIdleTimeoutMs: z.ZodOptional; reasoningEffort: z.ZodOptional; transport: z.ZodOptional>; }, z.core.$strip>; export type ClaudeCodeAgentProviderConfig = z.infer; export declare const KimiCliAgentProviderConfig: z.ZodObject<{ env: z.ZodOptional>; idleTimeoutMs: z.ZodOptional; kind: z.ZodLiteral<"kimi-cli">; model: z.ZodOptional; providerChildIdleTimeoutMs: z.ZodOptional; reasoningEffort: z.ZodOptional; }, z.core.$strip>; export type KimiCliAgentProviderConfig = z.infer; export declare const GrokCliAgentProviderConfig: z.ZodObject<{ env: z.ZodOptional>; idleTimeoutMs: z.ZodOptional; kind: z.ZodLiteral<"grok-cli">; model: z.ZodOptional; providerChildIdleTimeoutMs: z.ZodOptional; reasoningEffort: z.ZodOptional; }, z.core.$strip>; export type GrokCliAgentProviderConfig = z.infer; export declare const OpenCodeCliAgentProviderConfig: z.ZodObject<{ env: z.ZodOptional>; idleTimeoutMs: z.ZodOptional; kind: z.ZodLiteral<"opencode-cli">; model: z.ZodOptional; providerChildIdleTimeoutMs: z.ZodOptional; reasoningEffort: z.ZodOptional; }, z.core.$strip>; export type OpenCodeCliAgentProviderConfig = z.infer; export declare const AgentProviderConfig: z.ZodPreprocess>; idleTimeoutMs: z.ZodOptional; kind: z.ZodLiteral<"codex-cli">; model: z.ZodOptional; providerChildIdleTimeoutMs: z.ZodOptional; reasoningEffort: z.ZodOptional; reasoningSummary: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ accountId: z.ZodOptional; env: z.ZodOptional>; idleTimeoutMs: z.ZodOptional; kind: z.ZodLiteral<"claude-code">; model: z.ZodOptional; providerChildIdleTimeoutMs: z.ZodOptional; reasoningEffort: z.ZodOptional; transport: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ env: z.ZodOptional>; idleTimeoutMs: z.ZodOptional; kind: z.ZodLiteral<"grok-cli">; model: z.ZodOptional; providerChildIdleTimeoutMs: z.ZodOptional; reasoningEffort: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ env: z.ZodOptional>; idleTimeoutMs: z.ZodOptional; kind: z.ZodLiteral<"kimi-cli">; model: z.ZodOptional; providerChildIdleTimeoutMs: z.ZodOptional; reasoningEffort: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ env: z.ZodOptional>; idleTimeoutMs: z.ZodOptional; kind: z.ZodLiteral<"opencode-cli">; model: z.ZodOptional; providerChildIdleTimeoutMs: z.ZodOptional; reasoningEffort: z.ZodOptional; }, z.core.$strip>], "kind">>; export type AgentProviderConfig = z.infer; export declare const SlackConfig: z.ZodPipe; appToken: z.ZodDefault; avatarUrl: z.ZodOptional; botHandle: z.ZodOptional; botName: z.ZodOptional; botProfileSyncedAt: z.ZodOptional; botToken: z.ZodDefault; botUserId: z.ZodOptional; connected: z.ZodOptional; manifestVersion: z.ZodDefault; teamId: z.ZodDefault; workspaceIconUrl: z.ZodDefault; workspaceName: z.ZodDefault; }, z.core.$strip>, z.ZodTransform<{ appToken: string; botToken: string; connected: boolean; manifestVersion: number; teamId: string; workspaceIconUrl: string; workspaceName: string; appId?: string | undefined; avatarUrl?: string | undefined; botHandle?: string | undefined; botName?: string | undefined; botProfileSyncedAt?: string | undefined; botUserId?: string | undefined; }, { appToken: string; botToken: string; manifestVersion: number; teamId: string; workspaceIconUrl: string; workspaceName: string; appId?: string | undefined; avatarUrl?: string | undefined; botHandle?: string | undefined; botName?: string | undefined; botProfileSyncedAt?: string | undefined; botUserId?: string | undefined; connected?: boolean | undefined; }>>; export type SlackConfig = z.infer; export declare const FeishuConfig: z.ZodPipe; appSecret: z.ZodDefault; avatarUrl: z.ZodOptional; botProfileSyncedAt: z.ZodOptional; botOpenId: z.ZodOptional; encryptKey: z.ZodDefault; ownerGreetingChatId: z.ZodOptional; ownerGreetingDeliveredAt: z.ZodOptional; ownerGreetingMessageId: z.ZodOptional; ownerGreetingPromptedAt: z.ZodOptional; ownerOpenId: z.ZodOptional; ownerTenantBrand: z.ZodOptional>; verificationToken: z.ZodDefault; connected: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ appId: string; appSecret: string; connected: boolean; encryptKey: string; verificationToken: string; avatarUrl?: string | undefined; botProfileSyncedAt?: string | undefined; botOpenId?: string | undefined; ownerGreetingChatId?: string | undefined; ownerGreetingDeliveredAt?: string | undefined; ownerGreetingMessageId?: string | undefined; ownerGreetingPromptedAt?: string | undefined; ownerOpenId?: string | undefined; ownerTenantBrand?: "feishu" | "lark" | undefined; }, { appId: string; appSecret: string; encryptKey: string; verificationToken: string; avatarUrl?: string | undefined; botProfileSyncedAt?: string | undefined; botOpenId?: string | undefined; ownerGreetingChatId?: string | undefined; ownerGreetingDeliveredAt?: string | undefined; ownerGreetingMessageId?: string | undefined; ownerGreetingPromptedAt?: string | undefined; ownerOpenId?: string | undefined; ownerTenantBrand?: "feishu" | "lark" | undefined; connected?: boolean | undefined; }>>; export type FeishuConfig = z.infer; export declare const AgentConnectFeishuRequest: z.ZodObject<{ appId: z.ZodString; appSecret: z.ZodString; botOpenId: z.ZodOptional; encryptKey: z.ZodOptional; verificationToken: z.ZodOptional; }, z.core.$strict>; export type AgentConnectFeishuRequest = z.infer; export declare const AgentFeishuRegisterAppRequest: z.ZodObject<{ botName: z.ZodOptional; }, z.core.$strict>; export type AgentFeishuRegisterAppRequest = z.infer; export declare const AgentFeishuRegisterAppStatus: z.ZodObject<{ agent: z.ZodOptional; error: z.ZodOptional; description: z.ZodOptional; message: z.ZodOptional; }, z.core.$strip>>; expireIn: z.ZodOptional; registrationId: z.ZodString; state: z.ZodEnum<{ failed: "failed"; starting: "starting"; waiting: "waiting"; connected: "connected"; slow_down: "slow_down"; domain_switched: "domain_switched"; }>; verificationUrl: z.ZodOptional; }, z.core.$strict>; export type AgentFeishuRegisterAppStatus = z.infer; export { FEISHU_PROFILE_NAME_SCOPE, FEISHU_RECOMMENDED_SCOPES, FEISHU_RECOMMENDED_SCOPE_NAMES, type FeishuRecommendedScope, type FeishuRecommendedScopeCapability, } from './feishu-recommended-scopes.js'; export interface AgentFeishuScopeGrant { granted: boolean; grantStatus?: number; scopeName: string; } export type AgentFeishuScopeCheckState = 'granted' | 'missing' | 'not_connected' | 'unknown'; export interface AgentFeishuRecommendedScopeStatusItem { capability: FeishuRecommendedScopeCapability; description: string; granted: boolean; grantStatus?: number; label: string; scope: string; } export interface AgentFeishuScopeAuthUrl { authUrl: string; label: string; scopes: string[]; } export interface AgentFeishuScopeStatus { appId?: string; connected: boolean; profileName: { authUrl?: string; granted: boolean; message?: string; scope: typeof FEISHU_PROFILE_NAME_SCOPE; state: AgentFeishuScopeCheckState; }; recommended: { authUrl?: string; authUrls?: AgentFeishuScopeAuthUrl[]; granted: boolean; message?: string; missingScopes: string[]; scopes: AgentFeishuRecommendedScopeStatusItem[]; state: AgentFeishuScopeCheckState; }; scopes?: AgentFeishuScopeGrant[]; } export declare const AgentOwner: z.ZodObject<{ slackUserId: z.ZodString; displayName: z.ZodString; handle: z.ZodOptional; avatarUrl: z.ZodOptional; onboardingPromptedAt: z.ZodOptional; }, z.core.$strict>; export type AgentOwner = z.infer; export declare const AgentProfileConfig: z.ZodObject<{ displayName: z.ZodString; role: z.ZodString; }, z.core.$strip>; export type AgentProfileConfig = z.infer; export declare function agentConfigSchema(fallbackId: string): z.ZodPreprocess; enabled: z.ZodOptional; id: z.ZodOptional; profile: z.ZodPreprocess; role: z.ZodOptional; }, z.core.$strict>>>; owner: z.ZodOptional; avatarUrl: z.ZodOptional; onboardingPromptedAt: z.ZodOptional; }, z.core.$strict>>; provider: z.ZodOptional>; idleTimeoutMs: z.ZodOptional; kind: z.ZodLiteral<"codex-cli">; model: z.ZodOptional; providerChildIdleTimeoutMs: z.ZodOptional; reasoningEffort: z.ZodOptional; reasoningSummary: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ accountId: z.ZodOptional; env: z.ZodOptional>; idleTimeoutMs: z.ZodOptional; kind: z.ZodLiteral<"claude-code">; model: z.ZodOptional; providerChildIdleTimeoutMs: z.ZodOptional; reasoningEffort: z.ZodOptional; transport: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ env: z.ZodOptional>; idleTimeoutMs: z.ZodOptional; kind: z.ZodLiteral<"grok-cli">; model: z.ZodOptional; providerChildIdleTimeoutMs: z.ZodOptional; reasoningEffort: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ env: z.ZodOptional>; idleTimeoutMs: z.ZodOptional; kind: z.ZodLiteral<"kimi-cli">; model: z.ZodOptional; providerChildIdleTimeoutMs: z.ZodOptional; reasoningEffort: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ env: z.ZodOptional>; idleTimeoutMs: z.ZodOptional; kind: z.ZodLiteral<"opencode-cli">; model: z.ZodOptional; providerChildIdleTimeoutMs: z.ZodOptional; reasoningEffort: z.ZodOptional; }, z.core.$strip>], "kind">>>; feishu: z.ZodOptional; appSecret: z.ZodDefault; avatarUrl: z.ZodOptional; botProfileSyncedAt: z.ZodOptional; botOpenId: z.ZodOptional; encryptKey: z.ZodDefault; ownerGreetingChatId: z.ZodOptional; ownerGreetingDeliveredAt: z.ZodOptional; ownerGreetingMessageId: z.ZodOptional; ownerGreetingPromptedAt: z.ZodOptional; ownerOpenId: z.ZodOptional; ownerTenantBrand: z.ZodOptional>; verificationToken: z.ZodDefault; connected: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ appId: string; appSecret: string; connected: boolean; encryptKey: string; verificationToken: string; avatarUrl?: string | undefined; botProfileSyncedAt?: string | undefined; botOpenId?: string | undefined; ownerGreetingChatId?: string | undefined; ownerGreetingDeliveredAt?: string | undefined; ownerGreetingMessageId?: string | undefined; ownerGreetingPromptedAt?: string | undefined; ownerOpenId?: string | undefined; ownerTenantBrand?: "feishu" | "lark" | undefined; }, { appId: string; appSecret: string; encryptKey: string; verificationToken: string; avatarUrl?: string | undefined; botProfileSyncedAt?: string | undefined; botOpenId?: string | undefined; ownerGreetingChatId?: string | undefined; ownerGreetingDeliveredAt?: string | undefined; ownerGreetingMessageId?: string | undefined; ownerGreetingPromptedAt?: string | undefined; ownerOpenId?: string | undefined; ownerTenantBrand?: "feishu" | "lark" | undefined; connected?: boolean | undefined; }>>>; slack: z.ZodOptional; appToken: z.ZodDefault; avatarUrl: z.ZodOptional; botHandle: z.ZodOptional; botName: z.ZodOptional; botProfileSyncedAt: z.ZodOptional; botToken: z.ZodDefault; botUserId: z.ZodOptional; connected: z.ZodOptional; manifestVersion: z.ZodDefault; teamId: z.ZodDefault; workspaceIconUrl: z.ZodDefault; workspaceName: z.ZodDefault; }, z.core.$strip>, z.ZodTransform<{ appToken: string; botToken: string; connected: boolean; manifestVersion: number; teamId: string; workspaceIconUrl: string; workspaceName: string; appId?: string | undefined; avatarUrl?: string | undefined; botHandle?: string | undefined; botName?: string | undefined; botProfileSyncedAt?: string | undefined; botUserId?: string | undefined; }, { appToken: string; botToken: string; manifestVersion: number; teamId: string; workspaceIconUrl: string; workspaceName: string; appId?: string | undefined; avatarUrl?: string | undefined; botHandle?: string | undefined; botName?: string | undefined; botProfileSyncedAt?: string | undefined; botUserId?: string | undefined; connected?: boolean | undefined; }>>>; homePath: z.ZodOptional; teamId: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ provider: { kind: "codex-cli"; env?: Record | undefined; idleTimeoutMs?: number | undefined; model?: string | undefined; providerChildIdleTimeoutMs?: number | undefined; reasoningEffort?: string | undefined; reasoningSummary?: "auto" | "concise" | "detailed" | "none" | undefined; } | { kind: "claude-code"; accountId?: string | undefined; env?: Record | undefined; idleTimeoutMs?: number | undefined; model?: string | undefined; providerChildIdleTimeoutMs?: number | undefined; reasoningEffort?: string | undefined; transport?: "stream-json" | undefined; } | { kind: "kimi-cli"; env?: Record | undefined; idleTimeoutMs?: number | undefined; model?: string | undefined; providerChildIdleTimeoutMs?: number | undefined; reasoningEffort?: string | undefined; } | { kind: "grok-cli"; env?: Record | undefined; idleTimeoutMs?: number | undefined; model?: string | undefined; providerChildIdleTimeoutMs?: number | undefined; reasoningEffort?: string | undefined; } | { kind: "opencode-cli"; env?: Record | undefined; idleTimeoutMs?: number | undefined; model?: string | undefined; providerChildIdleTimeoutMs?: number | undefined; reasoningEffort?: string | undefined; }; feishu: { appId: string; appSecret: string; connected: boolean; encryptKey: string; verificationToken: string; avatarUrl?: string | undefined; botProfileSyncedAt?: string | undefined; botOpenId?: string | undefined; ownerGreetingChatId?: string | undefined; ownerGreetingDeliveredAt?: string | undefined; ownerGreetingMessageId?: string | undefined; ownerGreetingPromptedAt?: string | undefined; ownerOpenId?: string | undefined; ownerTenantBrand?: "feishu" | "lark" | undefined; }; slack: { appToken: string; botToken: string; connected: boolean; manifestVersion: number; teamId: string; workspaceIconUrl: string; workspaceName: string; appId?: string | undefined; avatarUrl?: string | undefined; botHandle?: string | undefined; botName?: string | undefined; botProfileSyncedAt?: string | undefined; botUserId?: string | undefined; }; homePath: string; teamId: string; owner?: { slackUserId: string; displayName: string; handle?: string | undefined; avatarUrl?: string | undefined; onboardingPromptedAt?: string | undefined; } | undefined; createdAt: string; enabled: boolean; id: string; profile: { displayName: string; role: string; }; }, { createdAt?: string | undefined; enabled?: boolean | undefined; id?: string | undefined; profile?: { displayName?: string | undefined; role?: string | undefined; } | undefined; owner?: { slackUserId: string; displayName: string; handle?: string | undefined; avatarUrl?: string | undefined; onboardingPromptedAt?: string | undefined; } | undefined; provider?: { kind: "codex-cli"; env?: Record | undefined; idleTimeoutMs?: number | undefined; model?: string | undefined; providerChildIdleTimeoutMs?: number | undefined; reasoningEffort?: string | undefined; reasoningSummary?: "auto" | "concise" | "detailed" | "none" | undefined; } | { kind: "claude-code"; accountId?: string | undefined; env?: Record | undefined; idleTimeoutMs?: number | undefined; model?: string | undefined; providerChildIdleTimeoutMs?: number | undefined; reasoningEffort?: string | undefined; transport?: "stream-json" | undefined; } | { kind: "kimi-cli"; env?: Record | undefined; idleTimeoutMs?: number | undefined; model?: string | undefined; providerChildIdleTimeoutMs?: number | undefined; reasoningEffort?: string | undefined; } | { kind: "grok-cli"; env?: Record | undefined; idleTimeoutMs?: number | undefined; model?: string | undefined; providerChildIdleTimeoutMs?: number | undefined; reasoningEffort?: string | undefined; } | { kind: "opencode-cli"; env?: Record | undefined; idleTimeoutMs?: number | undefined; model?: string | undefined; providerChildIdleTimeoutMs?: number | undefined; reasoningEffort?: string | undefined; } | undefined; feishu?: { appId: string; appSecret: string; connected: boolean; encryptKey: string; verificationToken: string; avatarUrl?: string | undefined; botProfileSyncedAt?: string | undefined; botOpenId?: string | undefined; ownerGreetingChatId?: string | undefined; ownerGreetingDeliveredAt?: string | undefined; ownerGreetingMessageId?: string | undefined; ownerGreetingPromptedAt?: string | undefined; ownerOpenId?: string | undefined; ownerTenantBrand?: "feishu" | "lark" | undefined; } | undefined; slack?: { appToken: string; botToken: string; connected: boolean; manifestVersion: number; teamId: string; workspaceIconUrl: string; workspaceName: string; appId?: string | undefined; avatarUrl?: string | undefined; botHandle?: string | undefined; botName?: string | undefined; botProfileSyncedAt?: string | undefined; botUserId?: string | undefined; } | undefined; homePath?: string | undefined; teamId?: string | undefined; }>>>; export type AgentConfig = z.infer>; //# sourceMappingURL=agent-config.d.ts.map