import { z } from "zod"; export declare const AgentErrorCodeSchema: z.ZodEnum<{ "account-not-entitled": "account-not-entitled"; "acp-auth-required": "acp-auth-required"; "agent-busy": "agent-busy"; "agent-domain-refused": "agent-domain-refused"; "claude-not-entitled": "claude-not-entitled"; "claude-reauth": "claude-reauth"; "claude-token-refused": "claude-token-refused"; "codex-advisory": "codex-advisory"; "codex-model-invalid": "codex-model-invalid"; "codex-reauth": "codex-reauth"; "context-overflow": "context-overflow"; "context-window-too-small": "context-window-too-small"; "engine-version-floor": "engine-version-floor"; "grok-model-invalid": "grok-model-invalid"; "harness-incomplete": "harness-incomplete"; "model-helper-only": "model-helper-only"; "model-unavailable": "model-unavailable"; "privacy-instructions": "privacy-instructions"; "privacy-unshielded": "privacy-unshielded"; "provider-outage": "provider-outage"; rate_limit: "rate_limit"; "safeguard-flagged": "safeguard-flagged"; "sandbox-disk-low": "sandbox-disk-low"; "sandbox-memory-low": "sandbox-memory-low"; "session-not-found": "session-not-found"; "subscription-required": "subscription-required"; "tools-unenforced": "tools-unenforced"; "trial-exhausted": "trial-exhausted"; "trial-model-unavailable": "trial-model-unavailable"; "trial-unavailable": "trial-unavailable"; "turn-cap": "turn-cap"; "unknown-command": "unknown-command"; "workspace-setup": "workspace-setup"; }>; export type AgentErrorCode = z.infer; export declare const AgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"session">; sessionId: z.ZodString; account: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"worktree">; branch: z.ZodString; base: z.ZodString; unenforced: z.ZodOptional; sync: z.ZodOptional; }, z.core.$strip>>; remote: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"landed">; landed: z.ZodBoolean; conflicts: z.ZodOptional; }, z.core.$strip>>; clean: z.ZodNumber; mainBranch: z.ZodOptional; }, z.core.$strip>>>; held: z.ZodOptional; deps: z.ZodOptional; deferred: z.ZodBoolean; }, z.core.$strip>>; into: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"preamble">; notes: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ window: z.ZodNumber; omitted: z.ZodArray; base: z.ZodBoolean; kind: z.ZodLiteral<"context_trim">; }, z.core.$strip>, z.ZodObject<{ mode: z.ZodEnum<{ carry: "carry"; summary: "summary"; trim: "trim"; }>; tokens: z.ZodOptional; from: z.ZodOptional; cleared: z.ZodOptional; model: z.ZodOptional; fellBack: z.ZodOptional; kind: z.ZodLiteral<"handoff">; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"init">; model: z.ZodString; prompt: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"checkpoint">; id: z.ZodString; index: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"steer">; text: z.ZodString; sentAt: z.ZodNumber; attachments: z.ZodOptional>; voice: z.ZodOptional>; errand: z.ZodOptional>; messageId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"delta">; text: z.ZodString; parentToolUseId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"text_end">; parentToolUseId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"thinking">; text: z.ZodString; parentToolUseId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"tool_call">; id: z.ZodString; name: z.ZodString; category: z.ZodEnum<{ delete: "delete"; edit: "edit"; execute: "execute"; fetch: "fetch"; move: "move"; other: "other"; read: "read"; search: "search"; think: "think"; }>; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; in_progress: "in_progress"; pending: "pending"; }>; target: z.ZodOptional; locations: z.ZodOptional; }, z.core.$strip>>>; content: z.ZodOptional; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional; newText: z.ZodString; truncated: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; path: z.ZodString; }, z.core.$strip>], "type">>>; input: z.ZodOptional; parentToolUseId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"tool_call_update">; id: z.ZodString; status: z.ZodOptional>; content: z.ZodOptional; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional; newText: z.ZodString; truncated: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; path: z.ZodString; }, z.core.$strip>], "type">>>; locations: z.ZodOptional; }, z.core.$strip>>>; exitCode: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"terminal">; session: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"browser">; session: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"subagent">; id: z.ZodString; subagentKind: z.ZodEnum<{ linked: "linked"; spawned: "spawned"; subagent: "subagent"; }>; agentType: z.ZodOptional; description: z.ZodOptional; model: z.ZodOptional; provider: z.ZodOptional; background: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"subagent_update">; id: z.ZodString; status: z.ZodOptional>; tokens: z.ZodOptional; toolUses: z.ZodOptional; lastTool: z.ZodOptional; summary: z.ZodOptional; error: z.ZodOptional; verification: z.ZodOptional; paths: z.ZodOptional>; check: z.ZodOptional; }, z.core.$strip>>; sdk: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"todos">; items: z.ZodArray; activeForm: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"commands">; items: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"usage">; account: z.ZodOptional; costUsd: z.ZodOptional; inputTokens: z.ZodOptional; outputTokens: z.ZodOptional; cacheReadTokens: z.ZodOptional; cacheCreationTokens: z.ZodOptional; durationMs: z.ZodOptional; numTurns: z.ZodOptional; openingCacheReadTokens: z.ZodOptional; openingCacheCreationTokens: z.ZodOptional; promptFingerprint: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ readTokens: z.ZodNumber; writtenTokens: z.ZodNumber; kept: z.ZodOptional>; kind: z.ZodLiteral<"prompt_cache">; }, z.core.$strip>, z.ZodObject<{ status: z.ZodEnum<{ allowed: "allowed"; allowed_warning: "allowed_warning"; rejected: "rejected"; }>; resetsAt: z.ZodOptional; rateLimitType: z.ZodOptional; utilization: z.ZodOptional; kind: z.ZodLiteral<"rate_limit_info">; account: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"fast_mode">; state: z.ZodEnum<{ cooldown: "cooldown"; off: "off"; on: "on"; }>; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"provider_retry">; attempt: z.ZodNumber; maxAttempts: z.ZodOptional; nextAttemptAt: z.ZodOptional; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"account_usage">; account: z.ZodOptional; windows: z.ZodArray; utilization: z.ZodNumber; resetsAt: z.ZodOptional; gates: z.ZodUnion, z.ZodLiteral<"none">, z.ZodObject<{ models: z.ZodArray; }, z.core.$strip>]>; rounded: z.ZodOptional; lapsedAt: z.ZodOptional; missingSince: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ tokens: z.ZodNumber; contextWindow: z.ZodNumber; cachedAt: z.ZodOptional; cacheTtlMs: z.ZodOptional; kind: z.ZodLiteral<"context_usage">; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"compact">; trigger: z.ZodString; preTokens: z.ZodOptional; postTokens: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"install">; reach: z.ZodEnum<{ "main-tree": "main-tree"; "own-copy": "own-copy"; }>; projects: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"agent_status">; key: z.ZodString; text: z.ZodNullable; source: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ level: z.ZodEnum<{ error: "error"; info: "info"; warning: "warning"; }>; source: z.ZodOptional; sent: z.ZodOptional; kind: z.ZodLiteral<"agent_notice">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ requestId: z.ZodString; text: z.ZodString; document: z.ZodOptional; plan: z.ZodOptional; }, z.core.$strip>>; kind: z.ZodLiteral<"plan">; }, z.core.$strip>, z.ZodObject<{ requestId: z.ZodString; questions: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>>; document: z.ZodOptional; plan: z.ZodOptional; }, z.core.$strip>>; kind: z.ZodLiteral<"question">; }, z.core.$strip>, z.ZodObject<{ toolName: z.ZodString; title: z.ZodOptional; displayName: z.ZodOptional; description: z.ZodOptional; reason: z.ZodOptional; path: z.ZodOptional; alwaysLabel: z.ZodOptional; alwaysAsks: z.ZodOptional>; program: z.ZodOptional; truncated: z.ZodBoolean; spans: z.ZodArray>; }, z.core.$strip>>; child: z.ZodOptional>; account: z.ZodOptional; effort: z.ZodOptional; thinking: z.ZodOptional; fast: z.ZodOptional; move: z.ZodEnum<{ answer: "answer"; send: "send"; spawn: "spawn"; }>; child: z.ZodOptional; task: z.ZodOptional; message: z.ZodOptional; on: z.ZodOptional; proposed: z.ZodOptional>; account: z.ZodOptional; effort: z.ZodOptional; thinking: z.ZodOptional; fast: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; explain: z.ZodOptional; requestId: z.ZodString; kind: z.ZodLiteral<"permission">; }, z.core.$strip>, z.ZodObject<{ requestId: z.ZodString; session: z.ZodString; account: z.ZodString; message: z.ZodString; kind: z.ZodLiteral<"browser_help">; }, z.core.$strip>, z.ZodObject<{ requestId: z.ZodString; session: z.ZodString; message: z.ZodString; kind: z.ZodLiteral<"terminal_help">; }, z.core.$strip>, z.ZodObject<{ requestId: z.ZodString; offer: z.ZodObject<{ entry: z.ZodString; name: z.ZodString; why: z.ZodOptional; }, z.core.$strip>; kind: z.ZodLiteral<"capability_offer">; }, z.core.$strip>, z.ZodObject<{ outcome: z.ZodEnum<{ connected: "connected"; unfinished: "unfinished"; }>; id: z.ZodOptional; kind: z.ZodLiteral<"capability_outcome">; requestId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ requestId: z.ZodString; offer: z.ZodObject<{ url: z.ZodString; description: z.ZodOptional; payTo: z.ZodString; network: z.ZodString; asset: z.ZodString; assetName: z.ZodString; amountUsd: z.ZodString; spentTodayUsd: z.ZodString; dailyCapUsd: z.ZodString; why: z.ZodOptional; }, z.core.$strip>; kind: z.ZodLiteral<"payment_offer">; }, z.core.$strip>, z.ZodObject<{ outcome: z.ZodEnum<{ failed: "failed"; paid: "paid"; }>; amountUsd: z.ZodString; transaction: z.ZodOptional; network: z.ZodOptional; kind: z.ZodLiteral<"payment_receipt">; requestId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ requestId: z.ZodString; offer: z.ZodObject<{ subject: z.ZodString; kind: z.ZodEnum<{ capability: "capability"; secret: "secret"; }>; lane: z.ZodEnum<{ browser: "browser"; code: "code"; desktop: "desktop"; device: "device"; gateway: "gateway"; otp: "otp"; session: "session"; shell: "shell"; ssh: "ssh"; }>; detail: z.ZodOptional; why: z.ZodOptional; approvers: z.ZodArray; scope: z.ZodEnum<{ conversation: "conversation"; use: "use"; }>; }, z.core.$strip>; kind: z.ZodLiteral<"credential_offer">; }, z.core.$strip>, z.ZodObject<{ outcome: z.ZodEnum<{ refused: "refused"; released: "released"; }>; approvedBy: z.ZodOptional; kind: z.ZodLiteral<"credential_receipt">; requestId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"need">; need: z.ZodObject<{ id: z.ZodString; conversationId: z.ZodString; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"capability">; entry: z.ZodString; name: z.ZodString; mode: z.ZodEnum<{ change: "change"; connect: "connect"; reconnect: "reconnect"; remove: "remove"; }>; instance: z.ZodOptional; target: z.ZodOptional; prefill: z.ZodOptional>; changes: z.ZodOptional>; reason: z.ZodOptional; reported: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"secret">; name: z.ZodString; where: z.ZodOptional; link: z.ZodOptional; hint: z.ZodOptional; replace: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"grant">; subject: z.ZodEnum<{ capability: "capability"; folder: "folder"; shelf: "shelf"; site: "site"; }>; what: z.ZodString; label: z.ZodString; persona: z.ZodOptional; scope: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"release">; subject: z.ZodString; approvers: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"environment">; tool: z.ZodString; steps: z.ZodString; approvedHash: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"automation">; automation: z.ZodObject<{ id: z.ZodString; trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"schedule">; cron: z.ZodString; tz: z.ZodOptional>>; afterSessions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"once">; at: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"event">; dailyMax: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"listener">; provider: z.ZodString; channelId: z.ZodOptional; eventType: z.ZodOptional; mentioned: z.ZodOptional; branch: z.ZodOptional; allowedOrigins: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"workspace">; event: z.ZodEnum<{ "agent.landed": "agent.landed"; "deps.broken": "deps.broken"; "deps.fixed": "deps.fixed"; "turn.settled": "turn.settled"; }>; repo: z.ZodOptional; }, z.core.$strip>], "kind">; guard: z.ZodOptional; source: z.ZodOptional; package: z.ZodString; range: z.ZodOptional; tag: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"github-release">; repo: z.ZodString; prereleases: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"url">; url: z.ZodString; select: z.ZodOptional; }, z.core.$strip>], "kind">>; fireOn: z.ZodOptional>; until: z.ZodOptional>; expiresAt: z.ZodOptional; target: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"conversation">; conversationId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"notify">; }, z.core.$strip>], "kind">>; note: z.ZodOptional; prompt: z.ZodString; webchat: z.ZodOptional>; requireName: z.ZodOptional; antiBot: z.ZodOptional>; turnstileSiteKey: z.ZodOptional; turnstileSecret: z.ZodOptional; googleClientId: z.ZodOptional; title: z.ZodOptional; greeting: z.ZodOptional; accent: z.ZodOptional; position: z.ZodOptional>; dailyMessageMax: z.ZodOptional; conversationMessageMax: z.ZodOptional; sessionTtlMinutes: z.ZodOptional; aiDisclosure: z.ZodOptional; aiDisclosureText: z.ZodOptional; }, z.core.$strip>>; issues: z.ZodOptional; dailyReportMax: z.ZodOptional; escalateAfter: z.ZodOptional; antiBot: z.ZodOptional>; title: z.ZodOptional; prompt: z.ZodOptional; thanks: z.ZodOptional; askEmail: z.ZodOptional; accent: z.ZodOptional; captureCrashes: z.ZodOptional; }, z.core.$strip>>; allowedTools: z.ZodOptional>; models: z.ZodOptional; thinking: z.ZodOptional; fast: z.ZodOptional; harness: z.ZodOptional>; }, z.core.$strip>>>; account: z.ZodOptional; actsAs: z.ZodOptional; senders: z.ZodOptional; ids: z.ZodOptional>; groups: z.ZodOptional>; actsAs: z.ZodOptional; requireApproval: z.ZodOptional; }, z.core.$strip>>; others: z.ZodEnum<{ allow: "allow"; hold: "hold"; ignore: "ignore"; }>; }, z.core.$strip>>; requireApproval: z.ZodOptional; holdForSeconds: z.ZodOptional; chore: z.ZodOptional; enabled: z.ZodBoolean; }, z.core.$strip>; replaces: z.ZodOptional; firstCheck: z.ZodOptional>; }, z.core.$strip>], "kind">; title: z.ZodString; why: z.ZodOptional; status: z.ZodEnum<{ cancelled: "cancelled"; declined: "declined"; met: "met"; open: "open"; working: "working"; }>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; answeredBy: z.ZodOptional; outcome: z.ZodOptional; told: z.ZodOptional>; unattended: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"page">; page: z.ZodObject<{ id: z.ZodString; title: z.ZodString; path: z.ZodString; height: z.ZodOptional; measured: z.ZodOptional; source: z.ZodOptional; revision: z.ZodOptional; superseded: z.ZodOptional; app: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"review">; review: z.ZodObject<{ id: z.ZodString; source: z.ZodEnum<{ claude: "claude"; codex: "codex"; }>; level: z.ZodOptional>; findings: z.ZodArray; endLine: z.ZodOptional; summary: z.ZodString; title: z.ZodOptional; scenario: z.ZodOptional; body: z.ZodOptional; category: z.ZodOptional; verdict: z.ZodOptional>; priority: z.ZodOptional; outcome: z.ZodOptional>; }, z.core.$strip>>; superseded: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ requestId: z.ZodString; page: z.ZodObject<{ id: z.ZodString; title: z.ZodString; path: z.ZodString; height: z.ZodOptional; measured: z.ZodOptional; source: z.ZodOptional; revision: z.ZodOptional; superseded: z.ZodOptional; app: z.ZodOptional>; }, z.core.$strip>; kind: z.ZodLiteral<"page_ask">; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"page_draft">; callId: z.ZodString; at: z.ZodNumber; text: z.ZodString; title: z.ZodOptional; done: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"resolved">; requestId: z.ZodString; reply: z.ZodOptional; requestId: z.ZodString; approve: z.ZodBoolean; feedback: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"question">; requestId: z.ZodString; answers: z.ZodOptional>>; attachments: z.ZodOptional>>; cancelled: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"permission">; requestId: z.ZodString; decision: z.ZodEnum<{ always: "always"; deny: "deny"; everything: "everything"; once: "once"; }>; feedback: z.ZodOptional; child: z.ZodOptional>; account: z.ZodOptional; effort: z.ZodOptional; thinking: z.ZodOptional; fast: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"browser_help">; requestId: z.ZodString; helped: z.ZodBoolean; note: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"terminal_help">; requestId: z.ZodString; helped: z.ZodBoolean; note: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"capability_offer">; requestId: z.ZodString; connect: z.ZodBoolean; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"payment_offer">; requestId: z.ZodString; approve: z.ZodBoolean; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"page_ask">; requestId: z.ZodString; value: z.ZodOptional; cancelled: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"credential_offer">; requestId: z.ZodString; approve: z.ZodBoolean; }, z.core.$strip>], "kind">>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"mode">; mode: z.ZodEnum<{ bypassPermissions: "bypassPermissions"; default: "default"; plan: "plan"; }>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"error">; message: z.ZodString; own: z.ZodOptional; code: z.ZodOptional>; refusal: z.ZodOptional; resumeAt: z.ZodOptional; }, z.core.$strip>>; privacyRoute: z.ZodOptional>; engine: z.ZodOptional; floor: z.ZodString; }, z.core.$strip>>; resetsAt: z.ZodOptional; account: z.ZodOptional; autoResume: z.ZodOptional>; nextAt: z.ZodOptional; held: z.ZodOptional; handoffTokens: z.ZodOptional; moving: z.ZodOptional; handoff: z.ZodOptional; basis: z.ZodEnum<{ setting: "setting"; size: "size"; }>; carry: z.ZodOptional; }, z.core.$strip>>; trim: z.ZodOptional>; summary: z.ZodOptional; }, z.core.$strip>>; chosen: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>>; outage: z.ZodOptional>; retries: z.ZodOptional>; memory: z.ZodOptional>; unattended: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"done">; }, z.core.$strip>], "kind">; export type AgentEvent = z.infer; export declare const TURN_FACT_KINDS: readonly ["session", "worktree", "init", "terminal", "browser", "commands", "usage", "rate_limit_info", "fast_mode", "provider_retry", "account_usage", "context_usage", "mode", "agent_status", "page_draft", "error"]; export type TurnFact = Extract; export declare const isTurnFact: (event: AgentEvent) => event is TurnFact; export declare const TurnFactSchema: z.ZodType; export declare const AttachFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"attached">; run: z.ZodString; startedAt: z.ZodNumber; seq: z.ZodNumber; rows: z.ZodArray; text: z.ZodString; rowId: z.ZodOptional; run: z.ZodOptional; sentAt: z.ZodOptional; openedAt: z.ZodOptional; messageId: z.ZodOptional; attachments: z.ZodOptional>; checkpointId: z.ZodOptional; rewindIndex: z.ZodOptional; thinking: z.ZodOptional; tools: z.ZodOptional>>>; todos: z.ZodOptional; activeForm: z.ZodOptional; }, z.core.$strip>>>; usage: z.ZodOptional; inputTokens: z.ZodOptional; outputTokens: z.ZodOptional; durationMs: z.ZodOptional; numTurns: z.ZodOptional; }, z.core.$strip>>; notes: z.ZodOptional>>; speaker: z.ZodOptional; email: z.ZodString; name: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"program">; token: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"agent">; conversationId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"sandbox">; source: z.ZodOptional; }, z.core.$strip>], "kind">>; errand: z.ZodOptional>; placed: z.ZodOptional; noticeAction: z.ZodOptional>; sandboxHeld: z.ZodOptional; noticeWait: z.ZodOptional>; noticeWaitId: z.ZodOptional; noticeCode: z.ZodOptional>>; }, z.core.$strip>>; agentNotice: z.ZodOptional; source: z.ZodOptional; sent: z.ZodOptional; }, z.core.$strip>>; plan: z.ZodOptional; plan: z.ZodOptional; }, z.core.$strip>>; status: z.ZodEnum<{ approved: "approved"; cancelled: "cancelled"; pending: "pending"; rejected: "rejected"; }>; }, z.core.$strip>>; question: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; document: z.ZodOptional; plan: z.ZodOptional; }, z.core.$strip>>; status: z.ZodEnum<{ answered: "answered"; cancelled: "cancelled"; pending: "pending"; }>; answers: z.ZodOptional>>; attachments: z.ZodOptional>>; }, z.core.$strip>>; permission: z.ZodOptional; displayName: z.ZodOptional; description: z.ZodOptional; reason: z.ZodOptional; path: z.ZodOptional; alwaysLabel: z.ZodOptional; alwaysAsks: z.ZodOptional>; program: z.ZodOptional; truncated: z.ZodBoolean; spans: z.ZodArray>; }, z.core.$strip>>; child: z.ZodOptional>; account: z.ZodOptional; effort: z.ZodOptional; thinking: z.ZodOptional; fast: z.ZodOptional; move: z.ZodEnum<{ answer: "answer"; send: "send"; spawn: "spawn"; }>; child: z.ZodOptional; task: z.ZodOptional; message: z.ZodOptional; on: z.ZodOptional; proposed: z.ZodOptional>; account: z.ZodOptional; effort: z.ZodOptional; thinking: z.ZodOptional; fast: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; explain: z.ZodOptional; requestId: z.ZodString; status: z.ZodEnum<{ allowed: "allowed"; always: "always"; cancelled: "cancelled"; denied: "denied"; everything: "everything"; pending: "pending"; }>; }, z.core.$strip>>; browserHelp: z.ZodOptional; }, z.core.$strip>>; terminalHelp: z.ZodOptional; }, z.core.$strip>>; capabilityOffer: z.ZodOptional; }, z.core.$strip>; status: z.ZodEnum<{ cancelled: "cancelled"; connecting: "connecting"; pending: "pending"; skipped: "skipped"; }>; outcome: z.ZodOptional; id: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; paymentOffer: z.ZodOptional; payTo: z.ZodString; network: z.ZodString; asset: z.ZodString; assetName: z.ZodString; amountUsd: z.ZodString; spentTodayUsd: z.ZodString; dailyCapUsd: z.ZodString; why: z.ZodOptional; }, z.core.$strip>; status: z.ZodEnum<{ approved: "approved"; cancelled: "cancelled"; pending: "pending"; skipped: "skipped"; }>; receipt: z.ZodOptional; amountUsd: z.ZodString; transaction: z.ZodOptional; network: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; watchWake: z.ZodOptional; note: z.ZodString; elapsed: z.ZodString; sent: z.ZodString; }, z.core.$strip>>; need: z.ZodOptional; entry: z.ZodString; name: z.ZodString; mode: z.ZodEnum<{ change: "change"; connect: "connect"; reconnect: "reconnect"; remove: "remove"; }>; instance: z.ZodOptional; target: z.ZodOptional; prefill: z.ZodOptional>; changes: z.ZodOptional>; reason: z.ZodOptional; reported: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"secret">; name: z.ZodString; where: z.ZodOptional; link: z.ZodOptional; hint: z.ZodOptional; replace: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"grant">; subject: z.ZodEnum<{ capability: "capability"; folder: "folder"; shelf: "shelf"; site: "site"; }>; what: z.ZodString; label: z.ZodString; persona: z.ZodOptional; scope: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"release">; subject: z.ZodString; approvers: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"environment">; tool: z.ZodString; steps: z.ZodString; approvedHash: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"automation">; automation: z.ZodObject<{ id: z.ZodString; trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"schedule">; cron: z.ZodString; tz: z.ZodOptional>>; afterSessions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"once">; at: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"event">; dailyMax: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"listener">; provider: z.ZodString; channelId: z.ZodOptional; eventType: z.ZodOptional; mentioned: z.ZodOptional; branch: z.ZodOptional; allowedOrigins: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"workspace">; event: z.ZodEnum<{ "agent.landed": "agent.landed"; "deps.broken": "deps.broken"; "deps.fixed": "deps.fixed"; "turn.settled": "turn.settled"; }>; repo: z.ZodOptional; }, z.core.$strip>], "kind">; guard: z.ZodOptional; source: z.ZodOptional; package: z.ZodString; range: z.ZodOptional; tag: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"github-release">; repo: z.ZodString; prereleases: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"url">; url: z.ZodString; select: z.ZodOptional; }, z.core.$strip>], "kind">>; fireOn: z.ZodOptional>; until: z.ZodOptional>; expiresAt: z.ZodOptional; target: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"conversation">; conversationId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"notify">; }, z.core.$strip>], "kind">>; note: z.ZodOptional; prompt: z.ZodString; webchat: z.ZodOptional>; requireName: z.ZodOptional; antiBot: z.ZodOptional>; turnstileSiteKey: z.ZodOptional; turnstileSecret: z.ZodOptional; googleClientId: z.ZodOptional; title: z.ZodOptional; greeting: z.ZodOptional; accent: z.ZodOptional; position: z.ZodOptional>; dailyMessageMax: z.ZodOptional; conversationMessageMax: z.ZodOptional; sessionTtlMinutes: z.ZodOptional; aiDisclosure: z.ZodOptional; aiDisclosureText: z.ZodOptional; }, z.core.$strip>>; issues: z.ZodOptional; dailyReportMax: z.ZodOptional; escalateAfter: z.ZodOptional; antiBot: z.ZodOptional>; title: z.ZodOptional; prompt: z.ZodOptional; thanks: z.ZodOptional; askEmail: z.ZodOptional; accent: z.ZodOptional; captureCrashes: z.ZodOptional; }, z.core.$strip>>; allowedTools: z.ZodOptional>; models: z.ZodOptional; thinking: z.ZodOptional; fast: z.ZodOptional; harness: z.ZodOptional>; }, z.core.$strip>>>; account: z.ZodOptional; actsAs: z.ZodOptional; senders: z.ZodOptional; ids: z.ZodOptional>; groups: z.ZodOptional>; actsAs: z.ZodOptional; requireApproval: z.ZodOptional; }, z.core.$strip>>; others: z.ZodEnum<{ allow: "allow"; hold: "hold"; ignore: "ignore"; }>; }, z.core.$strip>>; requireApproval: z.ZodOptional; holdForSeconds: z.ZodOptional; chore: z.ZodOptional; enabled: z.ZodBoolean; }, z.core.$strip>; replaces: z.ZodOptional; firstCheck: z.ZodOptional>; }, z.core.$strip>], "kind">; title: z.ZodString; why: z.ZodOptional; status: z.ZodEnum<{ cancelled: "cancelled"; declined: "declined"; met: "met"; open: "open"; working: "working"; }>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; answeredBy: z.ZodOptional; outcome: z.ZodOptional; told: z.ZodOptional>; unattended: z.ZodOptional; }, z.core.$strip>>; needWake: z.ZodOptional; title: z.ZodString; id: z.ZodString; sent: z.ZodString; }, z.core.$strip>>; agentWords: z.ZodOptional; from: z.ZodString; title: z.ZodOptional; failed: z.ZodOptional; sent: z.ZodString; }, z.core.$strip>>; backgroundJob: z.ZodOptional>; page: z.ZodOptional; measured: z.ZodOptional; source: z.ZodOptional; revision: z.ZodOptional; superseded: z.ZodOptional; app: z.ZodOptional>; }, z.core.$strip>>; review: z.ZodOptional; level: z.ZodOptional>; findings: z.ZodArray; endLine: z.ZodOptional; summary: z.ZodString; title: z.ZodOptional; scenario: z.ZodOptional; body: z.ZodOptional; category: z.ZodOptional; verdict: z.ZodOptional>; priority: z.ZodOptional; outcome: z.ZodOptional>; }, z.core.$strip>>; superseded: z.ZodOptional; }, z.core.$strip>>; pageAsk: z.ZodOptional; measured: z.ZodOptional; source: z.ZodOptional; revision: z.ZodOptional; superseded: z.ZodOptional; app: z.ZodOptional>; }, z.core.$strip>; status: z.ZodEnum<{ answered: "answered"; cancelled: "cancelled"; pending: "pending"; }>; value: z.ZodOptional; }, z.core.$strip>>; credentialOffer: z.ZodOptional; lane: z.ZodEnum<{ browser: "browser"; code: "code"; desktop: "desktop"; device: "device"; gateway: "gateway"; otp: "otp"; session: "session"; shell: "shell"; ssh: "ssh"; }>; detail: z.ZodOptional; why: z.ZodOptional; approvers: z.ZodArray; scope: z.ZodEnum<{ conversation: "conversation"; use: "use"; }>; }, z.core.$strip>; status: z.ZodEnum<{ approved: "approved"; cancelled: "cancelled"; pending: "pending"; skipped: "skipped"; }>; receipt: z.ZodOptional; approvedBy: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"patch">; seq: z.ZodNumber; patch: z.ZodDiscriminatedUnion<[z.ZodObject<{ op: z.ZodLiteral<"append">; row: z.ZodObject<{ role: z.ZodEnum<{ assistant: "assistant"; notice: "notice"; user: "user"; }>; text: z.ZodString; rowId: z.ZodOptional; run: z.ZodOptional; sentAt: z.ZodOptional; openedAt: z.ZodOptional; messageId: z.ZodOptional; attachments: z.ZodOptional>; checkpointId: z.ZodOptional; rewindIndex: z.ZodOptional; thinking: z.ZodOptional; tools: z.ZodOptional>>>; todos: z.ZodOptional; activeForm: z.ZodOptional; }, z.core.$strip>>>; usage: z.ZodOptional; inputTokens: z.ZodOptional; outputTokens: z.ZodOptional; durationMs: z.ZodOptional; numTurns: z.ZodOptional; }, z.core.$strip>>; notes: z.ZodOptional>>; speaker: z.ZodOptional; email: z.ZodString; name: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"program">; token: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"agent">; conversationId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"sandbox">; source: z.ZodOptional; }, z.core.$strip>], "kind">>; errand: z.ZodOptional>; placed: z.ZodOptional; noticeAction: z.ZodOptional>; sandboxHeld: z.ZodOptional; noticeWait: z.ZodOptional>; noticeWaitId: z.ZodOptional; noticeCode: z.ZodOptional>>; }, z.core.$strip>>; agentNotice: z.ZodOptional; source: z.ZodOptional; sent: z.ZodOptional; }, z.core.$strip>>; plan: z.ZodOptional; plan: z.ZodOptional; }, z.core.$strip>>; status: z.ZodEnum<{ approved: "approved"; cancelled: "cancelled"; pending: "pending"; rejected: "rejected"; }>; }, z.core.$strip>>; question: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; document: z.ZodOptional; plan: z.ZodOptional; }, z.core.$strip>>; status: z.ZodEnum<{ answered: "answered"; cancelled: "cancelled"; pending: "pending"; }>; answers: z.ZodOptional>>; attachments: z.ZodOptional>>; }, z.core.$strip>>; permission: z.ZodOptional; displayName: z.ZodOptional; description: z.ZodOptional; reason: z.ZodOptional; path: z.ZodOptional; alwaysLabel: z.ZodOptional; alwaysAsks: z.ZodOptional>; program: z.ZodOptional; truncated: z.ZodBoolean; spans: z.ZodArray>; }, z.core.$strip>>; child: z.ZodOptional>; account: z.ZodOptional; effort: z.ZodOptional; thinking: z.ZodOptional; fast: z.ZodOptional; move: z.ZodEnum<{ answer: "answer"; send: "send"; spawn: "spawn"; }>; child: z.ZodOptional; task: z.ZodOptional; message: z.ZodOptional; on: z.ZodOptional; proposed: z.ZodOptional>; account: z.ZodOptional; effort: z.ZodOptional; thinking: z.ZodOptional; fast: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; explain: z.ZodOptional; requestId: z.ZodString; status: z.ZodEnum<{ allowed: "allowed"; always: "always"; cancelled: "cancelled"; denied: "denied"; everything: "everything"; pending: "pending"; }>; }, z.core.$strip>>; browserHelp: z.ZodOptional; }, z.core.$strip>>; terminalHelp: z.ZodOptional; }, z.core.$strip>>; capabilityOffer: z.ZodOptional; }, z.core.$strip>; status: z.ZodEnum<{ cancelled: "cancelled"; connecting: "connecting"; pending: "pending"; skipped: "skipped"; }>; outcome: z.ZodOptional; id: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; paymentOffer: z.ZodOptional; payTo: z.ZodString; network: z.ZodString; asset: z.ZodString; assetName: z.ZodString; amountUsd: z.ZodString; spentTodayUsd: z.ZodString; dailyCapUsd: z.ZodString; why: z.ZodOptional; }, z.core.$strip>; status: z.ZodEnum<{ approved: "approved"; cancelled: "cancelled"; pending: "pending"; skipped: "skipped"; }>; receipt: z.ZodOptional; amountUsd: z.ZodString; transaction: z.ZodOptional; network: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; watchWake: z.ZodOptional; note: z.ZodString; elapsed: z.ZodString; sent: z.ZodString; }, z.core.$strip>>; need: z.ZodOptional; entry: z.ZodString; name: z.ZodString; mode: z.ZodEnum<{ change: "change"; connect: "connect"; reconnect: "reconnect"; remove: "remove"; }>; instance: z.ZodOptional; target: z.ZodOptional; prefill: z.ZodOptional>; changes: z.ZodOptional>; reason: z.ZodOptional; reported: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"secret">; name: z.ZodString; where: z.ZodOptional; link: z.ZodOptional; hint: z.ZodOptional; replace: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"grant">; subject: z.ZodEnum<{ capability: "capability"; folder: "folder"; shelf: "shelf"; site: "site"; }>; what: z.ZodString; label: z.ZodString; persona: z.ZodOptional; scope: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"release">; subject: z.ZodString; approvers: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"environment">; tool: z.ZodString; steps: z.ZodString; approvedHash: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"automation">; automation: z.ZodObject<{ id: z.ZodString; trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"schedule">; cron: z.ZodString; tz: z.ZodOptional>>; afterSessions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"once">; at: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"event">; dailyMax: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"listener">; provider: z.ZodString; channelId: z.ZodOptional; eventType: z.ZodOptional; mentioned: z.ZodOptional; branch: z.ZodOptional; allowedOrigins: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"workspace">; event: z.ZodEnum<{ "agent.landed": "agent.landed"; "deps.broken": "deps.broken"; "deps.fixed": "deps.fixed"; "turn.settled": "turn.settled"; }>; repo: z.ZodOptional; }, z.core.$strip>], "kind">; guard: z.ZodOptional; source: z.ZodOptional; package: z.ZodString; range: z.ZodOptional; tag: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"github-release">; repo: z.ZodString; prereleases: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"url">; url: z.ZodString; select: z.ZodOptional; }, z.core.$strip>], "kind">>; fireOn: z.ZodOptional>; until: z.ZodOptional>; expiresAt: z.ZodOptional; target: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"conversation">; conversationId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"notify">; }, z.core.$strip>], "kind">>; note: z.ZodOptional; prompt: z.ZodString; webchat: z.ZodOptional>; requireName: z.ZodOptional; antiBot: z.ZodOptional>; turnstileSiteKey: z.ZodOptional; turnstileSecret: z.ZodOptional; googleClientId: z.ZodOptional; title: z.ZodOptional; greeting: z.ZodOptional; accent: z.ZodOptional; position: z.ZodOptional>; dailyMessageMax: z.ZodOptional; conversationMessageMax: z.ZodOptional; sessionTtlMinutes: z.ZodOptional; aiDisclosure: z.ZodOptional; aiDisclosureText: z.ZodOptional; }, z.core.$strip>>; issues: z.ZodOptional; dailyReportMax: z.ZodOptional; escalateAfter: z.ZodOptional; antiBot: z.ZodOptional>; title: z.ZodOptional; prompt: z.ZodOptional; thanks: z.ZodOptional; askEmail: z.ZodOptional; accent: z.ZodOptional; captureCrashes: z.ZodOptional; }, z.core.$strip>>; allowedTools: z.ZodOptional>; models: z.ZodOptional; thinking: z.ZodOptional; fast: z.ZodOptional; harness: z.ZodOptional>; }, z.core.$strip>>>; account: z.ZodOptional; actsAs: z.ZodOptional; senders: z.ZodOptional; ids: z.ZodOptional>; groups: z.ZodOptional>; actsAs: z.ZodOptional; requireApproval: z.ZodOptional; }, z.core.$strip>>; others: z.ZodEnum<{ allow: "allow"; hold: "hold"; ignore: "ignore"; }>; }, z.core.$strip>>; requireApproval: z.ZodOptional; holdForSeconds: z.ZodOptional; chore: z.ZodOptional; enabled: z.ZodBoolean; }, z.core.$strip>; replaces: z.ZodOptional; firstCheck: z.ZodOptional>; }, z.core.$strip>], "kind">; title: z.ZodString; why: z.ZodOptional; status: z.ZodEnum<{ cancelled: "cancelled"; declined: "declined"; met: "met"; open: "open"; working: "working"; }>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; answeredBy: z.ZodOptional; outcome: z.ZodOptional; told: z.ZodOptional>; unattended: z.ZodOptional; }, z.core.$strip>>; needWake: z.ZodOptional; title: z.ZodString; id: z.ZodString; sent: z.ZodString; }, z.core.$strip>>; agentWords: z.ZodOptional; from: z.ZodString; title: z.ZodOptional; failed: z.ZodOptional; sent: z.ZodString; }, z.core.$strip>>; backgroundJob: z.ZodOptional>; page: z.ZodOptional; measured: z.ZodOptional; source: z.ZodOptional; revision: z.ZodOptional; superseded: z.ZodOptional; app: z.ZodOptional>; }, z.core.$strip>>; review: z.ZodOptional; level: z.ZodOptional>; findings: z.ZodArray; endLine: z.ZodOptional; summary: z.ZodString; title: z.ZodOptional; scenario: z.ZodOptional; body: z.ZodOptional; category: z.ZodOptional; verdict: z.ZodOptional>; priority: z.ZodOptional; outcome: z.ZodOptional>; }, z.core.$strip>>; superseded: z.ZodOptional; }, z.core.$strip>>; pageAsk: z.ZodOptional; measured: z.ZodOptional; source: z.ZodOptional; revision: z.ZodOptional; superseded: z.ZodOptional; app: z.ZodOptional>; }, z.core.$strip>; status: z.ZodEnum<{ answered: "answered"; cancelled: "cancelled"; pending: "pending"; }>; value: z.ZodOptional; }, z.core.$strip>>; credentialOffer: z.ZodOptional; lane: z.ZodEnum<{ browser: "browser"; code: "code"; desktop: "desktop"; device: "device"; gateway: "gateway"; otp: "otp"; session: "session"; shell: "shell"; ssh: "ssh"; }>; detail: z.ZodOptional; why: z.ZodOptional; approvers: z.ZodArray; scope: z.ZodEnum<{ conversation: "conversation"; use: "use"; }>; }, z.core.$strip>; status: z.ZodEnum<{ approved: "approved"; cancelled: "cancelled"; pending: "pending"; skipped: "skipped"; }>; receipt: z.ZodOptional; approvedBy: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ op: z.ZodLiteral<"replace">; index: z.ZodNumber; rowId: z.ZodOptional; row: z.ZodObject<{ role: z.ZodEnum<{ assistant: "assistant"; notice: "notice"; user: "user"; }>; text: z.ZodString; rowId: z.ZodOptional; run: z.ZodOptional; sentAt: z.ZodOptional; openedAt: z.ZodOptional; messageId: z.ZodOptional; attachments: z.ZodOptional>; checkpointId: z.ZodOptional; rewindIndex: z.ZodOptional; thinking: z.ZodOptional; tools: z.ZodOptional>>>; todos: z.ZodOptional; activeForm: z.ZodOptional; }, z.core.$strip>>>; usage: z.ZodOptional; inputTokens: z.ZodOptional; outputTokens: z.ZodOptional; durationMs: z.ZodOptional; numTurns: z.ZodOptional; }, z.core.$strip>>; notes: z.ZodOptional>>; speaker: z.ZodOptional; email: z.ZodString; name: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"program">; token: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"agent">; conversationId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"sandbox">; source: z.ZodOptional; }, z.core.$strip>], "kind">>; errand: z.ZodOptional>; placed: z.ZodOptional; noticeAction: z.ZodOptional>; sandboxHeld: z.ZodOptional; noticeWait: z.ZodOptional>; noticeWaitId: z.ZodOptional; noticeCode: z.ZodOptional>>; }, z.core.$strip>>; agentNotice: z.ZodOptional; source: z.ZodOptional; sent: z.ZodOptional; }, z.core.$strip>>; plan: z.ZodOptional; plan: z.ZodOptional; }, z.core.$strip>>; status: z.ZodEnum<{ approved: "approved"; cancelled: "cancelled"; pending: "pending"; rejected: "rejected"; }>; }, z.core.$strip>>; question: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; document: z.ZodOptional; plan: z.ZodOptional; }, z.core.$strip>>; status: z.ZodEnum<{ answered: "answered"; cancelled: "cancelled"; pending: "pending"; }>; answers: z.ZodOptional>>; attachments: z.ZodOptional>>; }, z.core.$strip>>; permission: z.ZodOptional; displayName: z.ZodOptional; description: z.ZodOptional; reason: z.ZodOptional; path: z.ZodOptional; alwaysLabel: z.ZodOptional; alwaysAsks: z.ZodOptional>; program: z.ZodOptional; truncated: z.ZodBoolean; spans: z.ZodArray>; }, z.core.$strip>>; child: z.ZodOptional>; account: z.ZodOptional; effort: z.ZodOptional; thinking: z.ZodOptional; fast: z.ZodOptional; move: z.ZodEnum<{ answer: "answer"; send: "send"; spawn: "spawn"; }>; child: z.ZodOptional; task: z.ZodOptional; message: z.ZodOptional; on: z.ZodOptional; proposed: z.ZodOptional>; account: z.ZodOptional; effort: z.ZodOptional; thinking: z.ZodOptional; fast: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; explain: z.ZodOptional; requestId: z.ZodString; status: z.ZodEnum<{ allowed: "allowed"; always: "always"; cancelled: "cancelled"; denied: "denied"; everything: "everything"; pending: "pending"; }>; }, z.core.$strip>>; browserHelp: z.ZodOptional; }, z.core.$strip>>; terminalHelp: z.ZodOptional; }, z.core.$strip>>; capabilityOffer: z.ZodOptional; }, z.core.$strip>; status: z.ZodEnum<{ cancelled: "cancelled"; connecting: "connecting"; pending: "pending"; skipped: "skipped"; }>; outcome: z.ZodOptional; id: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; paymentOffer: z.ZodOptional; payTo: z.ZodString; network: z.ZodString; asset: z.ZodString; assetName: z.ZodString; amountUsd: z.ZodString; spentTodayUsd: z.ZodString; dailyCapUsd: z.ZodString; why: z.ZodOptional; }, z.core.$strip>; status: z.ZodEnum<{ approved: "approved"; cancelled: "cancelled"; pending: "pending"; skipped: "skipped"; }>; receipt: z.ZodOptional; amountUsd: z.ZodString; transaction: z.ZodOptional; network: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; watchWake: z.ZodOptional; note: z.ZodString; elapsed: z.ZodString; sent: z.ZodString; }, z.core.$strip>>; need: z.ZodOptional; entry: z.ZodString; name: z.ZodString; mode: z.ZodEnum<{ change: "change"; connect: "connect"; reconnect: "reconnect"; remove: "remove"; }>; instance: z.ZodOptional; target: z.ZodOptional; prefill: z.ZodOptional>; changes: z.ZodOptional>; reason: z.ZodOptional; reported: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"secret">; name: z.ZodString; where: z.ZodOptional; link: z.ZodOptional; hint: z.ZodOptional; replace: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"grant">; subject: z.ZodEnum<{ capability: "capability"; folder: "folder"; shelf: "shelf"; site: "site"; }>; what: z.ZodString; label: z.ZodString; persona: z.ZodOptional; scope: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"release">; subject: z.ZodString; approvers: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"environment">; tool: z.ZodString; steps: z.ZodString; approvedHash: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"automation">; automation: z.ZodObject<{ id: z.ZodString; trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"schedule">; cron: z.ZodString; tz: z.ZodOptional>>; afterSessions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"once">; at: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"event">; dailyMax: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"listener">; provider: z.ZodString; channelId: z.ZodOptional; eventType: z.ZodOptional; mentioned: z.ZodOptional; branch: z.ZodOptional; allowedOrigins: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"workspace">; event: z.ZodEnum<{ "agent.landed": "agent.landed"; "deps.broken": "deps.broken"; "deps.fixed": "deps.fixed"; "turn.settled": "turn.settled"; }>; repo: z.ZodOptional; }, z.core.$strip>], "kind">; guard: z.ZodOptional; source: z.ZodOptional; package: z.ZodString; range: z.ZodOptional; tag: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"github-release">; repo: z.ZodString; prereleases: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"url">; url: z.ZodString; select: z.ZodOptional; }, z.core.$strip>], "kind">>; fireOn: z.ZodOptional>; until: z.ZodOptional>; expiresAt: z.ZodOptional; target: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"conversation">; conversationId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"notify">; }, z.core.$strip>], "kind">>; note: z.ZodOptional; prompt: z.ZodString; webchat: z.ZodOptional>; requireName: z.ZodOptional; antiBot: z.ZodOptional>; turnstileSiteKey: z.ZodOptional; turnstileSecret: z.ZodOptional; googleClientId: z.ZodOptional; title: z.ZodOptional; greeting: z.ZodOptional; accent: z.ZodOptional; position: z.ZodOptional>; dailyMessageMax: z.ZodOptional; conversationMessageMax: z.ZodOptional; sessionTtlMinutes: z.ZodOptional; aiDisclosure: z.ZodOptional; aiDisclosureText: z.ZodOptional; }, z.core.$strip>>; issues: z.ZodOptional; dailyReportMax: z.ZodOptional; escalateAfter: z.ZodOptional; antiBot: z.ZodOptional>; title: z.ZodOptional; prompt: z.ZodOptional; thanks: z.ZodOptional; askEmail: z.ZodOptional; accent: z.ZodOptional; captureCrashes: z.ZodOptional; }, z.core.$strip>>; allowedTools: z.ZodOptional>; models: z.ZodOptional; thinking: z.ZodOptional; fast: z.ZodOptional; harness: z.ZodOptional>; }, z.core.$strip>>>; account: z.ZodOptional; actsAs: z.ZodOptional; senders: z.ZodOptional; ids: z.ZodOptional>; groups: z.ZodOptional>; actsAs: z.ZodOptional; requireApproval: z.ZodOptional; }, z.core.$strip>>; others: z.ZodEnum<{ allow: "allow"; hold: "hold"; ignore: "ignore"; }>; }, z.core.$strip>>; requireApproval: z.ZodOptional; holdForSeconds: z.ZodOptional; chore: z.ZodOptional; enabled: z.ZodBoolean; }, z.core.$strip>; replaces: z.ZodOptional; firstCheck: z.ZodOptional>; }, z.core.$strip>], "kind">; title: z.ZodString; why: z.ZodOptional; status: z.ZodEnum<{ cancelled: "cancelled"; declined: "declined"; met: "met"; open: "open"; working: "working"; }>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; answeredBy: z.ZodOptional; outcome: z.ZodOptional; told: z.ZodOptional>; unattended: z.ZodOptional; }, z.core.$strip>>; needWake: z.ZodOptional; title: z.ZodString; id: z.ZodString; sent: z.ZodString; }, z.core.$strip>>; agentWords: z.ZodOptional; from: z.ZodString; title: z.ZodOptional; failed: z.ZodOptional; sent: z.ZodString; }, z.core.$strip>>; backgroundJob: z.ZodOptional>; page: z.ZodOptional; measured: z.ZodOptional; source: z.ZodOptional; revision: z.ZodOptional; superseded: z.ZodOptional; app: z.ZodOptional>; }, z.core.$strip>>; review: z.ZodOptional; level: z.ZodOptional>; findings: z.ZodArray; endLine: z.ZodOptional; summary: z.ZodString; title: z.ZodOptional; scenario: z.ZodOptional; body: z.ZodOptional; category: z.ZodOptional; verdict: z.ZodOptional>; priority: z.ZodOptional; outcome: z.ZodOptional>; }, z.core.$strip>>; superseded: z.ZodOptional; }, z.core.$strip>>; pageAsk: z.ZodOptional; measured: z.ZodOptional; source: z.ZodOptional; revision: z.ZodOptional; superseded: z.ZodOptional; app: z.ZodOptional>; }, z.core.$strip>; status: z.ZodEnum<{ answered: "answered"; cancelled: "cancelled"; pending: "pending"; }>; value: z.ZodOptional; }, z.core.$strip>>; credentialOffer: z.ZodOptional; lane: z.ZodEnum<{ browser: "browser"; code: "code"; desktop: "desktop"; device: "device"; gateway: "gateway"; otp: "otp"; session: "session"; shell: "shell"; ssh: "ssh"; }>; detail: z.ZodOptional; why: z.ZodOptional; approvers: z.ZodArray; scope: z.ZodEnum<{ conversation: "conversation"; use: "use"; }>; }, z.core.$strip>; status: z.ZodEnum<{ approved: "approved"; cancelled: "cancelled"; pending: "pending"; skipped: "skipped"; }>; receipt: z.ZodOptional; approvedBy: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ op: z.ZodLiteral<"drop">; index: z.ZodNumber; rowId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ op: z.ZodLiteral<"text">; index: z.ZodNumber; rowId: z.ZodOptional; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ op: z.ZodLiteral<"thinking">; index: z.ZodNumber; rowId: z.ZodOptional; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ op: z.ZodLiteral<"toolThinking">; index: z.ZodNumber; rowId: z.ZodOptional; id: z.ZodString; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ op: z.ZodLiteral<"tool">; index: z.ZodNumber; rowId: z.ZodOptional; tool: z.ZodType>; parent: z.ZodOptional; }, z.core.$strip>], "op">; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"fact">; seq: z.ZodNumber; fact: z.ZodType>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"end">; }, z.core.$strip>], "kind">; export type AttachFrame = z.infer; //# sourceMappingURL=agent-events.d.ts.map