import { z } from "zod"; import { mcpMethods } from "./rpc-mcp.js"; import { lsaMethods } from "./lsa.js"; export declare const rpcIdSchema: z.ZodUnion; export type RpcId = z.infer; export declare const rpcErrorSchema: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; export type RpcErrorObject = z.infer; export declare const rpcMessageSchema: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; method: z.ZodOptional; params: z.ZodOptional; result: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export type RpcMessage = z.infer; /** Application error codes carried in `error.data.code`. */ export declare const appErrorCodeSchema: z.ZodEnum<{ offline: "offline"; locked: "locked"; invalid_params: "invalid_params"; not_found: "not_found"; agent_unavailable: "agent_unavailable"; not_supported: "not_supported"; not_ready: "not_ready"; busy: "busy"; internal: "internal"; }>; export type AppErrorCode = z.infer; export declare const RPC_INVALID_PARAMS = -32602; export declare const RPC_METHOD_NOT_FOUND = -32601; export declare const RPC_APP_ERROR = -32000; /** * The host's RPC revision, in `machine.info`. Goes up when the host gains * methods or notifications an app may rely on, so an app can tell the * computer is older than itself and say so (an absent revision is 0). * 1: side conversations (`sessions.side`), `machine.info.protocol` itself. * 2: session terminals (`terminals.create` `sessionId`, `TerminalInfo.sessionId`). * 3: whole-computer CPU and physical memory sampling (`machine.metrics`). * 4: smart keep-awake & battery telemetry (`machine.keepAwake`), real git working-tree * diff/revert (`git.diff`, `git.revertFile`), fast `@file` search (`fs.projectFiles`), * clipboard & screen privacy (`clipboard.*`, `screen.privacy`), push-to-start wakeup * (`liveActivities.registerPushToStart`), and LSA Phase 1 steward RPCs (`lsa.*`). */ export declare const HOST_PROTOCOL = 4; export declare const gitDiffFileStatusSchema: z.ZodEnum<{ modified: "modified"; added: "added"; deleted: "deleted"; renamed: "renamed"; untracked: "untracked"; }>; export type GitDiffFileStatus = z.infer; export declare const gitDiffFileSchema: z.ZodObject<{ path: z.ZodString; oldPath: z.ZodOptional; status: z.ZodEnum<{ modified: "modified"; added: "added"; deleted: "deleted"; renamed: "renamed"; untracked: "untracked"; }>; oldText: z.ZodString; newText: z.ZodString; additions: z.ZodNumber; deletions: z.ZodNumber; binary: z.ZodOptional; }, z.core.$strip>; export type GitDiffFile = z.infer; export declare const gitDiffResultSchema: z.ZodObject<{ files: z.ZodArray; status: z.ZodEnum<{ modified: "modified"; added: "added"; deleted: "deleted"; renamed: "renamed"; untracked: "untracked"; }>; oldText: z.ZodString; newText: z.ZodString; additions: z.ZodNumber; deletions: z.ZodNumber; binary: z.ZodOptional; }, z.core.$strip>>; truncated: z.ZodBoolean; branch: z.ZodOptional; }, z.core.$strip>; export type GitDiffResult = z.infer; export declare const projectFileEntrySchema: z.ZodObject<{ path: z.ZodString; relativePath: z.ZodString; isDir: z.ZodOptional; }, z.core.$strip>; export type ProjectFileEntry = z.infer; export declare const screenPrivacyStateSchema: z.ZodObject<{ curtain: z.ZodBoolean; lockOnDisconnect: z.ZodBoolean; supported: z.ZodBoolean; }, z.core.$strip>; export type ScreenPrivacyState = z.infer; export declare const directoryEntrySchema: z.ZodObject<{ name: z.ZodString; path: z.ZodString; project: z.ZodOptional; file: z.ZodOptional; size: z.ZodOptional; }, z.core.$strip>; export type DirectoryEntry = z.infer; declare const acpMethods: { readonly "agents.editor": { readonly params: z.ZodObject<{ agent: z.ZodString; operation: z.ZodEnum<{ preview: "preview"; open: "open"; suggest: "suggest"; apply: "apply"; save: "save"; reject: "reject"; close: "close"; }>; editorId: z.ZodOptional; cwd: z.ZodOptional; path: z.ZodOptional; text: z.ZodOptional; position: z.ZodOptional>; suggestionId: z.ZodOptional; previewId: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ editorId: z.ZodOptional; path: z.ZodOptional; text: z.ZodOptional; version: z.ZodOptional; suggestions: z.ZodOptional; end: z.ZodObject<{ line: z.ZodNumber; character: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; newText: z.ZodString; }, z.core.$strip>>; cursorPosition: z.ZodOptional>>; id: z.ZodString; uri: z.ZodString; kind: z.ZodLiteral<"edit">; }, z.core.$strip>, z.ZodObject<{ position: z.ZodObject<{ line: z.ZodNumber; character: z.ZodNumber; }, z.core.$strip>; id: z.ZodString; uri: z.ZodString; kind: z.ZodLiteral<"jump">; }, z.core.$strip>, z.ZodObject<{ position: z.ZodObject<{ line: z.ZodNumber; character: z.ZodNumber; }, z.core.$strip>; newName: z.ZodString; id: z.ZodString; uri: z.ZodString; kind: z.ZodLiteral<"rename">; }, z.core.$strip>, z.ZodObject<{ search: z.ZodString; replace: z.ZodString; isRegex: z.ZodOptional>; id: z.ZodString; uri: z.ZodString; kind: z.ZodLiteral<"searchAndReplace">; }, z.core.$strip>], "kind">>>; preview: z.ZodOptional; position: z.ZodOptional>; }, z.core.$strip>>; position: z.ZodOptional>; }, z.core.$strip>; }; readonly "agents.acp": { readonly params: z.ZodObject<{ agent: z.ZodString; sessionId: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ features: z.ZodObject<{ protocolVersion: z.ZodNumber; authMethods: z.ZodArray; type: z.ZodEnum<{ agent: "agent"; terminal: "terminal"; }>; }, z.core.$strip>>; logout: z.ZodBoolean; providers: z.ZodBoolean; nes: z.ZodBoolean; additionalDirectories: z.ZodBoolean; mcpHttp: z.ZodBoolean; mcpSse: z.ZodBoolean; }, z.core.$strip>; settings: z.ZodObject<{ protocolVersion: z.ZodDefault, z.ZodLiteral<2>]>>; experimental: z.ZodDefault; mcpServers: z.ZodDefault; name: z.ZodString; command: z.ZodString; args: z.ZodDefault>; env: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"http">; name: z.ZodString; url: z.ZodURL; headers: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"sse">; name: z.ZodString; url: z.ZodURL; headers: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"acp">; name: z.ZodString; command: z.ZodString; args: z.ZodDefault>; env: z.ZodDefault>; }, z.core.$strip>], "type">>>; additionalDirectories: z.ZodDefault>; }, z.core.$strip>; interactions: z.ZodArray; toolCallId: z.ZodOptional; title: z.ZodString; detail: z.ZodOptional; tool: z.ZodOptional; kind: z.ZodOptional>; rawInput: z.ZodOptional; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; locations: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; url: z.ZodOptional>; options: z.ZodArray; }, z.core.$strip>>; questions: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; pattern: z.ZodOptional; format: z.ZodOptional; }, z.core.$strip>>; defaults: z.ZodOptional>; header: z.ZodOptional; text: z.ZodString; kind: z.ZodEnum<{ text: "text"; choice: "choice"; choices: "choices"; }>; options: z.ZodOptional; }, z.core.$strip>>>; other: z.ZodOptional; secret: z.ZodOptional; required: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; }, z.core.$strip>; }; readonly "agents.pending": { readonly params: z.ZodObject<{}, z.core.$loose>; readonly result: z.ZodObject<{ interactions: z.ZodArray; toolCallId: z.ZodOptional; title: z.ZodString; detail: z.ZodOptional; tool: z.ZodOptional; kind: z.ZodOptional>; rawInput: z.ZodOptional; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; locations: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; url: z.ZodOptional>; options: z.ZodArray; }, z.core.$strip>>; questions: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; pattern: z.ZodOptional; format: z.ZodOptional; }, z.core.$strip>>; defaults: z.ZodOptional>; header: z.ZodOptional; text: z.ZodString; kind: z.ZodEnum<{ text: "text"; choice: "choice"; choices: "choices"; }>; options: z.ZodOptional; }, z.core.$strip>>>; other: z.ZodOptional; secret: z.ZodOptional; required: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; }, z.core.$strip>>; }, z.core.$strip>; }; readonly "agents.configure": { readonly params: z.ZodObject<{ agent: z.ZodString; settings: z.ZodObject<{ protocolVersion: z.ZodDefault, z.ZodLiteral<2>]>>; experimental: z.ZodDefault; mcpServers: z.ZodDefault; name: z.ZodString; command: z.ZodString; args: z.ZodDefault>; env: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"http">; name: z.ZodString; url: z.ZodURL; headers: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"sse">; name: z.ZodString; url: z.ZodURL; headers: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"acp">; name: z.ZodString; command: z.ZodString; args: z.ZodDefault>; env: z.ZodDefault>; }, z.core.$strip>], "type">>>; additionalDirectories: z.ZodDefault>; }, z.core.$strip>; sessionId: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; readonly "agents.authenticate": { readonly params: z.ZodObject<{ agent: z.ZodString; methodId: z.ZodOptional; logout: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ terminalId: z.ZodOptional; }, z.core.$strip>; }; readonly "agents.respond": { readonly params: z.ZodObject<{ agent: z.ZodString; requestId: z.ZodString; optionId: z.ZodOptional; answers: z.ZodOptional; other: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; readonly "agents.providers": { readonly params: z.ZodObject<{ agent: z.ZodString; operation: z.ZodEnum<{ set: "set"; list: "list"; disable: "disable"; }>; config: z.ZodOptional; baseUrl: z.ZodOptional; headers: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; readonly result: z.ZodObject<{ providers: z.ZodArray; required: z.ZodBoolean; current: z.ZodOptional>>; }, z.core.$strip>>; }, z.core.$strip>; }; readonly "agents.custom": { readonly params: z.ZodObject<{ save: z.ZodOptional; command: z.ZodOptional; args: z.ZodDefault>; url: z.ZodOptional; headerEnv: z.ZodDefault>; settings: z.ZodPrefault, z.ZodLiteral<2>]>>; experimental: z.ZodDefault; mcpServers: z.ZodDefault; name: z.ZodString; command: z.ZodString; args: z.ZodDefault>; env: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"http">; name: z.ZodString; url: z.ZodURL; headers: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"sse">; name: z.ZodString; url: z.ZodURL; headers: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"acp">; name: z.ZodString; command: z.ZodString; args: z.ZodDefault>; env: z.ZodDefault>; }, z.core.$strip>], "type">>>; additionalDirectories: z.ZodDefault>; }, z.core.$strip>>; }, z.core.$strip>>; remove: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ agents: z.ZodArray; command: z.ZodOptional; args: z.ZodDefault>; url: z.ZodOptional; headerEnv: z.ZodDefault>; settings: z.ZodPrefault, z.ZodLiteral<2>]>>; experimental: z.ZodDefault; mcpServers: z.ZodDefault; name: z.ZodString; command: z.ZodString; args: z.ZodDefault>; env: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"http">; name: z.ZodString; url: z.ZodURL; headers: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"sse">; name: z.ZodString; url: z.ZodURL; headers: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"acp">; name: z.ZodString; command: z.ZodString; args: z.ZodDefault>; env: z.ZodDefault>; }, z.core.$strip>], "type">>>; additionalDirectories: z.ZodDefault>; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; }; }; declare const coreMethods: { readonly "desktop.shutdown": { readonly params: z.ZodObject<{ pid: z.ZodNumber; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; /** Opens a local path in the chosen desktop editor, file manager, or terminal (local only). */ readonly "desktop.openPath": { readonly params: z.ZodObject<{ path: z.ZodString; app: z.ZodOptional>; }, z.core.$strip>; readonly result: z.ZodObject<{ ok: z.ZodBoolean; }, z.core.$strip>; }; readonly "usage.summary": { readonly params: z.ZodObject<{ days: z.ZodDefault, z.ZodLiteral<7>, z.ZodLiteral<30>]>>; agent: z.ZodDefault; }, z.core.$strip>; readonly result: z.ZodObject<{ generatedAt: z.ZodNumber; days: z.ZodNumber; agent: z.ZodString; timezone: z.ZodString; totals: z.ZodObject<{ records: z.ZodNumber; sessions: z.ZodNumber; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cacheReadTokens: z.ZodNumber; cacheWriteTokens: z.ZodNumber; totalTokens: z.ZodNumber; estimatedCostUsd: z.ZodOptional; }, z.core.$strip>; daily: z.ZodArray; date: z.ZodString; }, z.core.$strip>>; models: z.ZodArray; agent: z.ZodString; model: z.ZodString; }, z.core.$strip>>; agents: z.ZodOptional; status: z.ZodEnum<{ available: "available"; no_data: "no_data"; }>; records: z.ZodNumber; totalTokens: z.ZodNumber; note: z.ZodString; estimatedCostUsd: z.ZodOptional; }, z.core.$strip>>>; estimatedCostUsd: z.ZodOptional; remoteStats: z.ZodOptional>; warnings: z.ZodArray; }, z.core.$strip>; }; readonly "liveActivities.subscribe": { readonly params: z.ZodObject<{ activityId: z.ZodString; serviceUrl: z.ZodURL; grant: z.ZodString; expiresAt: z.ZodNumber; computerKey: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$strip>; }; readonly "liveActivities.unsubscribe": { readonly params: z.ZodObject<{ activityId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$strip>; }; readonly "liveActivities.registerPushToStart": { readonly params: z.ZodObject<{ deviceId: z.ZodString; pushToStartToken: z.ZodString; platform: z.ZodEnum<{ ios: "ios"; android: "android"; }>; serviceUrl: z.ZodURL; grant: z.ZodString; expiresAt: z.ZodNumber; computerKey: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{ ok: z.ZodOptional; }, z.core.$loose>; }; readonly "machine.info": { readonly params: z.ZodObject<{}, z.core.$loose>; readonly result: z.ZodObject<{ machineId: z.ZodString; hostname: z.ZodString; naming: z.ZodOptional; configured: z.ZodBoolean; }, z.core.$strip>>; platform: z.ZodString; hostVersion: z.ZodString; protocol: z.ZodOptional; home: z.ZodOptional; agents: z.ZodArray; installed: z.ZodBoolean; version: z.ZodOptional; problem: z.ZodOptional; auth: z.ZodOptional; method: z.ZodOptional; hint: z.ZodOptional; }, z.core.$strip>>; capabilities: z.ZodObject<{ interrupt: z.ZodBoolean; steer: z.ZodBoolean; permissions: z.ZodBoolean; images: z.ZodBoolean; audio: z.ZodOptional; embeddedContext: z.ZodOptional; acp: z.ZodOptional; fork: z.ZodBoolean; side: z.ZodOptional; mcpApps: z.ZodOptional; models: z.ZodBoolean; modes: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>>; direct: z.ZodOptional; }, z.core.$strip>>; locked: z.ZodOptional; }, z.core.$strip>; }; readonly "machine.metrics": { readonly params: z.ZodObject<{}, z.core.$loose>; readonly result: z.ZodObject<{ sampledAt: z.ZodNumber; sampleIntervalMs: z.ZodNumber; cpu: z.ZodObject<{ usage: z.ZodNullable; cores: z.ZodNumber; model: z.ZodString; }, z.core.$strip>; memory: z.ZodObject<{ totalBytes: z.ZodNumber; usedBytes: z.ZodNumber; includesCache: z.ZodOptional; }, z.core.$strip>; disk: z.ZodOptional>; power: z.ZodOptional; charging: z.ZodOptional; }, z.core.$strip>>; keepAwake: z.ZodOptional; active: z.ZodBoolean; reason: z.ZodOptional; }, z.core.$strip>>; history: z.ZodOptional; cores: z.ZodNumber; model: z.ZodString; }, z.core.$strip>; memory: z.ZodObject<{ totalBytes: z.ZodNumber; usedBytes: z.ZodNumber; includesCache: z.ZodOptional; }, z.core.$strip>; disk: z.ZodOptional>; power: z.ZodOptional; charging: z.ZodOptional; }, z.core.$strip>>; keepAwake: z.ZodOptional; active: z.ZodBoolean; reason: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>>; }, z.core.$strip>; }; readonly "machine.keepAwake": { readonly params: z.ZodObject<{ mode: z.ZodOptional>; }, z.core.$strip>; readonly result: z.ZodObject<{ mode: z.ZodEnum<{ smart: "smart"; always: "always"; off: "off"; }>; active: z.ZodBoolean; reason: z.ZodOptional; }, z.core.$strip>; }; readonly "machine.rename": { /** Empty restores the configured default; names never change peer identities. */ readonly params: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{ machineId: z.ZodString; hostname: z.ZodString; naming: z.ZodOptional; configured: z.ZodBoolean; }, z.core.$strip>>; platform: z.ZodString; hostVersion: z.ZodString; protocol: z.ZodOptional; home: z.ZodOptional; agents: z.ZodArray; installed: z.ZodBoolean; version: z.ZodOptional; problem: z.ZodOptional; auth: z.ZodOptional; method: z.ZodOptional; hint: z.ZodOptional; }, z.core.$strip>>; capabilities: z.ZodObject<{ interrupt: z.ZodBoolean; steer: z.ZodBoolean; permissions: z.ZodBoolean; images: z.ZodBoolean; audio: z.ZodOptional; embeddedContext: z.ZodOptional; acp: z.ZodOptional; fork: z.ZodBoolean; side: z.ZodOptional; mcpApps: z.ZodOptional; models: z.ZodBoolean; modes: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>>; direct: z.ZodOptional; }, z.core.$strip>>; locked: z.ZodOptional; }, z.core.$strip>; }; readonly "projects.list": { readonly params: z.ZodObject<{ limit: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ projects: z.ZodArray; lastActiveAt: z.ZodNumber; sessionCount: z.ZodNumber; branch: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }; readonly "sessions.list": { readonly params: z.ZodObject<{ limit: z.ZodOptional; before: z.ZodOptional; beforeId: z.ZodOptional; includeArchived: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ sessions: z.ZodArray; preview: z.ZodOptional; cwd: z.ZodString; state: z.ZodEnum<{ error: "error"; unknown: "unknown"; running: "running"; idle: "idle"; waiting: "waiting"; offline: "offline"; }>; driver: z.ZodOptional>; pendingPermissions: z.ZodNumber; model: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; lastSeq: z.ZodNumber; archived: z.ZodBoolean; activity: z.ZodOptional; title: z.ZodOptional; toolKind: z.ZodOptional>; }, z.core.$strip>>; permission: z.ZodOptional; toolCallId: z.ZodOptional; title: z.ZodString; detail: z.ZodOptional; tool: z.ZodOptional; kind: z.ZodOptional>; rawInput: z.ZodOptional; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; locations: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; url: z.ZodOptional>; options: z.ZodArray; }, z.core.$strip>>; questions: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; pattern: z.ZodOptional; format: z.ZodOptional; }, z.core.$strip>>; defaults: z.ZodOptional>; header: z.ZodOptional; text: z.ZodString; kind: z.ZodEnum<{ text: "text"; choice: "choice"; choices: "choices"; }>; options: z.ZodOptional; }, z.core.$strip>>>; other: z.ZodOptional; secret: z.ZodOptional; required: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; asyncQuestions: z.ZodOptional; }, z.core.$strip>>>; queue: z.ZodOptional>>; worktree: z.ZodOptional>; parentId: z.ZodOptional; forkedFrom: z.ZodOptional; appId: z.ZodOptional; subagents: z.ZodOptional>; tasks: z.ZodOptional>; }, z.core.$strip>>; nextBefore: z.ZodOptional; nextBeforeId: z.ZodOptional; }, z.core.$strip>; }; readonly "sessions.get": { readonly params: z.ZodObject<{ sessionId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{ session: z.ZodOptional; preview: z.ZodOptional; cwd: z.ZodString; state: z.ZodEnum<{ error: "error"; unknown: "unknown"; running: "running"; idle: "idle"; waiting: "waiting"; offline: "offline"; }>; driver: z.ZodOptional>; pendingPermissions: z.ZodNumber; model: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; lastSeq: z.ZodNumber; archived: z.ZodBoolean; activity: z.ZodOptional; title: z.ZodOptional; toolKind: z.ZodOptional>; }, z.core.$strip>>; permission: z.ZodOptional; toolCallId: z.ZodOptional; title: z.ZodString; detail: z.ZodOptional; tool: z.ZodOptional; kind: z.ZodOptional>; rawInput: z.ZodOptional; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; locations: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; url: z.ZodOptional>; options: z.ZodArray; }, z.core.$strip>>; questions: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; pattern: z.ZodOptional; format: z.ZodOptional; }, z.core.$strip>>; defaults: z.ZodOptional>; header: z.ZodOptional; text: z.ZodString; kind: z.ZodEnum<{ text: "text"; choice: "choice"; choices: "choices"; }>; options: z.ZodOptional; }, z.core.$strip>>>; other: z.ZodOptional; secret: z.ZodOptional; required: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; asyncQuestions: z.ZodOptional; }, z.core.$strip>>>; queue: z.ZodOptional>>; worktree: z.ZodOptional>; parentId: z.ZodOptional; forkedFrom: z.ZodOptional; appId: z.ZodOptional; subagents: z.ZodOptional>; tasks: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; }; /** * The models a new session of `agent` can start on, for choosing one before * there is a session (whose own list comes later, in its `ls_config`). * `current` is the one the agent takes when `sessions.create` names none: * its own default, which a new session keeps unless another is picked. * Agents that tell their models only to a session give what they said in * the latest one opened on this computer; never asked by starting one, so * empty until there has been one (`current` too may be missing then). * With an empty list `sessions.create` takes no model. Hosts older than * this method answer "method not found". */ readonly "agents.models": { readonly params: z.ZodObject<{ agent: z.ZodString; cwd: z.ZodOptional; model: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ models: z.ZodArray; group: z.ZodOptional; }, z.core.$strip>>; current: z.ZodOptional; config: z.ZodOptional; type: z.ZodOptional>; category: z.ZodDefault>; current: z.ZodString; values: z.ZodArray; group: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>>; }, z.core.$strip>; }; readonly "sessions.create": { readonly params: z.ZodObject<{ agent: z.ZodString; cwd: z.ZodString; prompt: z.ZodOptional | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>>>; clientMessageId: z.ZodOptional; requestId: z.ZodOptional; model: z.ZodOptional; config: z.ZodOptional>; worktree: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ session: z.ZodObject<{ id: z.ZodString; agent: z.ZodString; nativeId: z.ZodString; title: z.ZodOptional; preview: z.ZodOptional; cwd: z.ZodString; state: z.ZodEnum<{ error: "error"; unknown: "unknown"; running: "running"; idle: "idle"; waiting: "waiting"; offline: "offline"; }>; driver: z.ZodOptional>; pendingPermissions: z.ZodNumber; model: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; lastSeq: z.ZodNumber; archived: z.ZodBoolean; activity: z.ZodOptional; title: z.ZodOptional; toolKind: z.ZodOptional>; }, z.core.$strip>>; permission: z.ZodOptional; toolCallId: z.ZodOptional; title: z.ZodString; detail: z.ZodOptional; tool: z.ZodOptional; kind: z.ZodOptional>; rawInput: z.ZodOptional; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; locations: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; url: z.ZodOptional>; options: z.ZodArray; }, z.core.$strip>>; questions: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; pattern: z.ZodOptional; format: z.ZodOptional; }, z.core.$strip>>; defaults: z.ZodOptional>; header: z.ZodOptional; text: z.ZodString; kind: z.ZodEnum<{ text: "text"; choice: "choice"; choices: "choices"; }>; options: z.ZodOptional; }, z.core.$strip>>>; other: z.ZodOptional; secret: z.ZodOptional; required: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; asyncQuestions: z.ZodOptional; }, z.core.$strip>>>; queue: z.ZodOptional>>; worktree: z.ZodOptional>; parentId: z.ZodOptional; forkedFrom: z.ZodOptional; appId: z.ZodOptional; subagents: z.ZodOptional>; tasks: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; }; /** * A new session that starts with this one's conversation: all of it, or up * to and including the turn of `itemId` (a message in it). The original is * untouched. With `worktree` the new session works in a new git worktree of * the project instead of the same directory. */ readonly "sessions.fork": { readonly params: z.ZodObject<{ sessionId: z.ZodString; itemId: z.ZodOptional; worktree: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ session: z.ZodObject<{ id: z.ZodString; agent: z.ZodString; nativeId: z.ZodString; title: z.ZodOptional; preview: z.ZodOptional; cwd: z.ZodString; state: z.ZodEnum<{ error: "error"; unknown: "unknown"; running: "running"; idle: "idle"; waiting: "waiting"; offline: "offline"; }>; driver: z.ZodOptional>; pendingPermissions: z.ZodNumber; model: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; lastSeq: z.ZodNumber; archived: z.ZodBoolean; activity: z.ZodOptional; title: z.ZodOptional; toolKind: z.ZodOptional>; }, z.core.$strip>>; permission: z.ZodOptional; toolCallId: z.ZodOptional; title: z.ZodString; detail: z.ZodOptional; tool: z.ZodOptional; kind: z.ZodOptional>; rawInput: z.ZodOptional; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; locations: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; url: z.ZodOptional>; options: z.ZodArray; }, z.core.$strip>>; questions: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; pattern: z.ZodOptional; format: z.ZodOptional; }, z.core.$strip>>; defaults: z.ZodOptional>; header: z.ZodOptional; text: z.ZodString; kind: z.ZodEnum<{ text: "text"; choice: "choice"; choices: "choices"; }>; options: z.ZodOptional; }, z.core.$strip>>>; other: z.ZodOptional; secret: z.ZodOptional; required: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; asyncQuestions: z.ZodOptional; }, z.core.$strip>>>; queue: z.ZodOptional>>; worktree: z.ZodOptional>; parentId: z.ZodOptional; forkedFrom: z.ZodOptional; appId: z.ZodOptional; subagents: z.ZodOptional>; tasks: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; }; readonly "sessions.subscribe": { readonly params: z.ZodObject<{ sessionId: z.ZodString; fromSeq: z.ZodNumber; lazyImages: z.ZodOptional; latest: z.ZodOptional; }, z.core.$strip>; /** * A fresh subscription starts at the session's latest turns, not at its * beginning: `startSeq` is the seq before the first event sent (0 when the * whole log was). `sessions.history` pages back from there. */ readonly result: z.ZodObject<{ session: z.ZodObject<{ id: z.ZodString; agent: z.ZodString; nativeId: z.ZodString; title: z.ZodOptional; preview: z.ZodOptional; cwd: z.ZodString; state: z.ZodEnum<{ error: "error"; unknown: "unknown"; running: "running"; idle: "idle"; waiting: "waiting"; offline: "offline"; }>; driver: z.ZodOptional>; pendingPermissions: z.ZodNumber; model: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; lastSeq: z.ZodNumber; archived: z.ZodBoolean; activity: z.ZodOptional; title: z.ZodOptional; toolKind: z.ZodOptional>; }, z.core.$strip>>; permission: z.ZodOptional; toolCallId: z.ZodOptional; title: z.ZodString; detail: z.ZodOptional; tool: z.ZodOptional; kind: z.ZodOptional>; rawInput: z.ZodOptional; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; locations: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; url: z.ZodOptional>; options: z.ZodArray; }, z.core.$strip>>; questions: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; pattern: z.ZodOptional; format: z.ZodOptional; }, z.core.$strip>>; defaults: z.ZodOptional>; header: z.ZodOptional; text: z.ZodString; kind: z.ZodEnum<{ text: "text"; choice: "choice"; choices: "choices"; }>; options: z.ZodOptional; }, z.core.$strip>>>; other: z.ZodOptional; secret: z.ZodOptional; required: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; asyncQuestions: z.ZodOptional; }, z.core.$strip>>>; queue: z.ZodOptional>>; worktree: z.ZodOptional>; parentId: z.ZodOptional; forkedFrom: z.ZodOptional; appId: z.ZodOptional; subagents: z.ZodOptional>; tasks: z.ZodOptional>; }, z.core.$strip>; startSeq: z.ZodOptional; }, z.core.$strip>; }; /** The page of events before `beforeSeq` (whole turns), oldest first; `startSeq` 0 means that was the beginning. */ readonly "sessions.history": { readonly params: z.ZodObject<{ sessionId: z.ZodString; beforeSeq: z.ZodNumber; lazyImages: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ events: z.ZodArray; messageId: z.ZodString; role: z.ZodEnum<{ user: "user"; agent: "agent"; thought: "thought"; session: "session"; }>; parentToolCallId: z.ZodOptional; content: z.ZodOptional | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>>>; append: z.ZodOptional; senderSessionId: z.ZodOptional; recipientSessionId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"user_message_chunk">; messageId: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"agent_message_chunk">; parentToolCallId: z.ZodOptional; messageId: z.ZodString; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; replace: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"agent_thought_chunk">; parentToolCallId: z.ZodOptional; messageId: z.ZodString; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; replace: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"tool_call">; toolCallId: z.ZodString; parentToolCallId: z.ZodOptional; title: z.ZodString; name: z.ZodOptional; kind: z.ZodEnum<{ search: "search"; delete: "delete"; other: "other"; read: "read"; edit: "edit"; move: "move"; execute: "execute"; think: "think"; fetch: "fetch"; switch_mode: "switch_mode"; }>; status: z.ZodEnum<{ pending: "pending"; in_progress: "in_progress"; completed: "completed"; failed: "failed"; }>; rawInput: z.ZodOptional; rawOutput: z.ZodOptional; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; locations: z.ZodOptional; }, z.core.$strip>>>; detail: z.ZodOptional; server: z.ZodString; tool: z.ZodString; app: z.ZodOptional>; connector: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"subagent">; action: z.ZodDefault>; task: z.ZodOptional; agentType: z.ZodOptional; name: z.ZodOptional; nativeSessionId: z.ZodOptional; canCancel: z.ZodOptional; model: z.ZodOptional; state: z.ZodOptional>; workflow: z.ZodOptional; name: z.ZodOptional; state: z.ZodOptional>; started: z.ZodOptional; completed: z.ZodOptional; tokens: z.ZodOptional; durationMs: z.ZodOptional; startedAt: z.ZodOptional; endedAt: z.ZodOptional; phases: z.ZodOptional>>; agents: z.ZodOptional; title: z.ZodString; state: z.ZodEnum<{ paused: "paused"; unknown: "unknown"; pending: "pending"; completed: "completed"; failed: "failed"; running: "running"; stopped: "stopped"; }>; phaseId: z.ZodOptional; model: z.ZodOptional; tokens: z.ZodOptional; toolCalls: z.ZodOptional; durationMs: z.ZodOptional; startedAt: z.ZodOptional; endedAt: z.ZodOptional; result: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"skill">; name: z.ZodString; description: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"web_search">; query: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_generation">; prompt: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"compaction">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"review">; phase: z.ZodEnum<{ started: "started"; finished: "finished"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"question">; text: z.ZodString; more: z.ZodOptional; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"tool_call_update">; toolCallId: z.ZodString; parentToolCallId: z.ZodOptional; status: z.ZodOptional>; title: z.ZodOptional; name: z.ZodOptional; kind: z.ZodOptional>; rawInput: z.ZodOptional; locations: z.ZodOptional; }, z.core.$strip>>>; detail: z.ZodOptional; server: z.ZodString; tool: z.ZodString; app: z.ZodOptional>; connector: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"subagent">; action: z.ZodDefault>; task: z.ZodOptional; agentType: z.ZodOptional; name: z.ZodOptional; nativeSessionId: z.ZodOptional; canCancel: z.ZodOptional; model: z.ZodOptional; state: z.ZodOptional>; workflow: z.ZodOptional; name: z.ZodOptional; state: z.ZodOptional>; started: z.ZodOptional; completed: z.ZodOptional; tokens: z.ZodOptional; durationMs: z.ZodOptional; startedAt: z.ZodOptional; endedAt: z.ZodOptional; phases: z.ZodOptional>>; agents: z.ZodOptional; title: z.ZodString; state: z.ZodEnum<{ paused: "paused"; unknown: "unknown"; pending: "pending"; completed: "completed"; failed: "failed"; running: "running"; stopped: "stopped"; }>; phaseId: z.ZodOptional; model: z.ZodOptional; tokens: z.ZodOptional; toolCalls: z.ZodOptional; durationMs: z.ZodOptional; startedAt: z.ZodOptional; endedAt: z.ZodOptional; result: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"skill">; name: z.ZodString; description: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"web_search">; query: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_generation">; prompt: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"compaction">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"review">; phase: z.ZodEnum<{ started: "started"; finished: "finished"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"question">; text: z.ZodString; more: z.ZodOptional; }, z.core.$strip>], "type">>; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; appendOutput: z.ZodOptional; replaceOutput: z.ZodOptional; replaceContent: z.ZodOptional; rawOutput: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"plan">; entries: z.ZodArray>; status: z.ZodEnum<{ pending: "pending"; in_progress: "in_progress"; completed: "completed"; }>; }, z.core.$strip>>; planId: z.ZodOptional; title: z.ZodOptional; markdown: z.ZodOptional>; path: z.ZodOptional>; removed: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_goal">; goal: z.ZodNullable; tokenBudget: z.ZodOptional>; tokensUsed: z.ZodOptional; timeUsedSeconds: z.ZodOptional; iterations: z.ZodOptional; lastReason: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"available_commands_update">; availableCommands: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"current_mode_update">; currentModeId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"session_info_update">; title: z.ZodOptional>; updatedAt: z.ZodOptional>; model: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"usage_update">; accounting: z.ZodOptional; model: z.ZodOptional; timestamp: z.ZodOptional; }, z.core.$strip>>; usedTokens: z.ZodOptional; contextWindow: z.ZodOptional; cost: z.ZodOptional>>; tokens: z.ZodOptional>; cachedReadTokens: z.ZodOptional>; cachedWriteTokens: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_async_questions">; questions: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_message_done">; parentToolCallId: z.ZodOptional; messageId: z.ZodString; role: z.ZodEnum<{ user: "user"; agent: "agent"; thought: "thought"; }>; questions: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_config">; options: z.ZodArray; type: z.ZodOptional>; category: z.ZodDefault>; current: z.ZodString; values: z.ZodArray; group: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_notice">; level: z.ZodEnum<{ info: "info"; warning: "warning"; }>; title: z.ZodString; detail: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_turn">; parentToolCallId: z.ZodOptional; state: z.ZodEnum<{ started: "started"; ended: "ended"; }>; turnId: z.ZodOptional; stopReason: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_permission">; requestId: z.ZodString; childSessionId: z.ZodOptional; toolCallId: z.ZodOptional; title: z.ZodString; detail: z.ZodOptional; tool: z.ZodOptional; kind: z.ZodOptional>; rawInput: z.ZodOptional; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; locations: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; url: z.ZodOptional>; options: z.ZodArray; }, z.core.$strip>>; questions: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; pattern: z.ZodOptional; format: z.ZodOptional; }, z.core.$strip>>; defaults: z.ZodOptional>; header: z.ZodOptional; text: z.ZodString; kind: z.ZodEnum<{ text: "text"; choice: "choice"; choices: "choices"; }>; options: z.ZodOptional; }, z.core.$strip>>>; other: z.ZodOptional; secret: z.ZodOptional; required: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_permission_resolved">; requestId: z.ZodString; optionId: z.ZodOptional; answers: z.ZodOptional; other: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_driver">; driver: z.ZodEnum<{ desktop: "desktop"; remote: "remote"; none: "none"; }>; deviceId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_status">; state: z.ZodEnum<{ error: "error"; unknown: "unknown"; running: "running"; idle: "idle"; waiting: "waiting"; offline: "offline"; }>; turnActive: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_task">; task: z.ZodObject<{ id: z.ZodString; kind: z.ZodEnum<{ shell: "shell"; monitor: "monitor"; }>; toolCallId: z.ZodOptional; title: z.ZodString; command: z.ZodOptional; state: z.ZodEnum<{ unknown: "unknown"; completed: "completed"; failed: "failed"; running: "running"; stopped: "stopped"; }>; startedAt: z.ZodNumber; endedAt: z.ZodOptional; summary: z.ZodOptional; exitCode: z.ZodOptional; output: z.ZodOptional; canStop: z.ZodOptional; lastSeq: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_error">; code: z.ZodString; message: z.ZodString; hint: z.ZodOptional; }, z.core.$strip>], "sessionUpdate">; }, z.core.$strip>>; startSeq: z.ZodNumber; }, z.core.$strip>; }; /** The sub-agents this session started, newest first, wherever in its history they are. */ readonly "sessions.subagents": { readonly params: z.ZodObject<{ sessionId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{ subagents: z.ZodArray; canCancel: z.ZodOptional; toolCallId: z.ZodString; parentToolCallId: z.ZodOptional; task: z.ZodString; agentType: z.ZodOptional; name: z.ZodOptional; running: z.ZodBoolean; failed: z.ZodOptional; startedAt: z.ZodNumber; endedAt: z.ZodOptional; state: z.ZodOptional>; workflow: z.ZodOptional; name: z.ZodOptional; state: z.ZodOptional>; started: z.ZodOptional; completed: z.ZodOptional; tokens: z.ZodOptional; durationMs: z.ZodOptional; startedAt: z.ZodOptional; endedAt: z.ZodOptional; phases: z.ZodOptional>>; agents: z.ZodOptional; title: z.ZodString; state: z.ZodEnum<{ paused: "paused"; unknown: "unknown"; pending: "pending"; completed: "completed"; failed: "failed"; running: "running"; stopped: "stopped"; }>; phaseId: z.ZodOptional; model: z.ZodOptional; tokens: z.ZodOptional; toolCalls: z.ZodOptional; durationMs: z.ZodOptional; startedAt: z.ZodOptional; endedAt: z.ZodOptional; result: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; lastSeq: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }; readonly "sessions.cancelSubagent": { readonly params: z.ZodObject<{ sessionId: z.ZodString; nativeSessionId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; /** * One sub-agent's conversation: the call that started it and the events * under it (the latest 2000), oldest first. Later ones arrive on the * session's own subscription, with this call as `parentToolCallId`. */ readonly "sessions.subagent": { readonly params: z.ZodObject<{ sessionId: z.ZodString; toolCallId: z.ZodString; lazyImages: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ events: z.ZodArray; messageId: z.ZodString; role: z.ZodEnum<{ user: "user"; agent: "agent"; thought: "thought"; session: "session"; }>; parentToolCallId: z.ZodOptional; content: z.ZodOptional | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>>>; append: z.ZodOptional; senderSessionId: z.ZodOptional; recipientSessionId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"user_message_chunk">; messageId: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"agent_message_chunk">; parentToolCallId: z.ZodOptional; messageId: z.ZodString; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; replace: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"agent_thought_chunk">; parentToolCallId: z.ZodOptional; messageId: z.ZodString; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; replace: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"tool_call">; toolCallId: z.ZodString; parentToolCallId: z.ZodOptional; title: z.ZodString; name: z.ZodOptional; kind: z.ZodEnum<{ search: "search"; delete: "delete"; other: "other"; read: "read"; edit: "edit"; move: "move"; execute: "execute"; think: "think"; fetch: "fetch"; switch_mode: "switch_mode"; }>; status: z.ZodEnum<{ pending: "pending"; in_progress: "in_progress"; completed: "completed"; failed: "failed"; }>; rawInput: z.ZodOptional; rawOutput: z.ZodOptional; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; locations: z.ZodOptional; }, z.core.$strip>>>; detail: z.ZodOptional; server: z.ZodString; tool: z.ZodString; app: z.ZodOptional>; connector: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"subagent">; action: z.ZodDefault>; task: z.ZodOptional; agentType: z.ZodOptional; name: z.ZodOptional; nativeSessionId: z.ZodOptional; canCancel: z.ZodOptional; model: z.ZodOptional; state: z.ZodOptional>; workflow: z.ZodOptional; name: z.ZodOptional; state: z.ZodOptional>; started: z.ZodOptional; completed: z.ZodOptional; tokens: z.ZodOptional; durationMs: z.ZodOptional; startedAt: z.ZodOptional; endedAt: z.ZodOptional; phases: z.ZodOptional>>; agents: z.ZodOptional; title: z.ZodString; state: z.ZodEnum<{ paused: "paused"; unknown: "unknown"; pending: "pending"; completed: "completed"; failed: "failed"; running: "running"; stopped: "stopped"; }>; phaseId: z.ZodOptional; model: z.ZodOptional; tokens: z.ZodOptional; toolCalls: z.ZodOptional; durationMs: z.ZodOptional; startedAt: z.ZodOptional; endedAt: z.ZodOptional; result: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"skill">; name: z.ZodString; description: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"web_search">; query: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_generation">; prompt: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"compaction">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"review">; phase: z.ZodEnum<{ started: "started"; finished: "finished"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"question">; text: z.ZodString; more: z.ZodOptional; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"tool_call_update">; toolCallId: z.ZodString; parentToolCallId: z.ZodOptional; status: z.ZodOptional>; title: z.ZodOptional; name: z.ZodOptional; kind: z.ZodOptional>; rawInput: z.ZodOptional; locations: z.ZodOptional; }, z.core.$strip>>>; detail: z.ZodOptional; server: z.ZodString; tool: z.ZodString; app: z.ZodOptional>; connector: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"subagent">; action: z.ZodDefault>; task: z.ZodOptional; agentType: z.ZodOptional; name: z.ZodOptional; nativeSessionId: z.ZodOptional; canCancel: z.ZodOptional; model: z.ZodOptional; state: z.ZodOptional>; workflow: z.ZodOptional; name: z.ZodOptional; state: z.ZodOptional>; started: z.ZodOptional; completed: z.ZodOptional; tokens: z.ZodOptional; durationMs: z.ZodOptional; startedAt: z.ZodOptional; endedAt: z.ZodOptional; phases: z.ZodOptional>>; agents: z.ZodOptional; title: z.ZodString; state: z.ZodEnum<{ paused: "paused"; unknown: "unknown"; pending: "pending"; completed: "completed"; failed: "failed"; running: "running"; stopped: "stopped"; }>; phaseId: z.ZodOptional; model: z.ZodOptional; tokens: z.ZodOptional; toolCalls: z.ZodOptional; durationMs: z.ZodOptional; startedAt: z.ZodOptional; endedAt: z.ZodOptional; result: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"skill">; name: z.ZodString; description: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"web_search">; query: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_generation">; prompt: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"compaction">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"review">; phase: z.ZodEnum<{ started: "started"; finished: "finished"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"question">; text: z.ZodString; more: z.ZodOptional; }, z.core.$strip>], "type">>; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; appendOutput: z.ZodOptional; replaceOutput: z.ZodOptional; replaceContent: z.ZodOptional; rawOutput: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"plan">; entries: z.ZodArray>; status: z.ZodEnum<{ pending: "pending"; in_progress: "in_progress"; completed: "completed"; }>; }, z.core.$strip>>; planId: z.ZodOptional; title: z.ZodOptional; markdown: z.ZodOptional>; path: z.ZodOptional>; removed: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_goal">; goal: z.ZodNullable; tokenBudget: z.ZodOptional>; tokensUsed: z.ZodOptional; timeUsedSeconds: z.ZodOptional; iterations: z.ZodOptional; lastReason: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"available_commands_update">; availableCommands: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"current_mode_update">; currentModeId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"session_info_update">; title: z.ZodOptional>; updatedAt: z.ZodOptional>; model: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"usage_update">; accounting: z.ZodOptional; model: z.ZodOptional; timestamp: z.ZodOptional; }, z.core.$strip>>; usedTokens: z.ZodOptional; contextWindow: z.ZodOptional; cost: z.ZodOptional>>; tokens: z.ZodOptional>; cachedReadTokens: z.ZodOptional>; cachedWriteTokens: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_async_questions">; questions: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_message_done">; parentToolCallId: z.ZodOptional; messageId: z.ZodString; role: z.ZodEnum<{ user: "user"; agent: "agent"; thought: "thought"; }>; questions: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_config">; options: z.ZodArray; type: z.ZodOptional>; category: z.ZodDefault>; current: z.ZodString; values: z.ZodArray; group: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_notice">; level: z.ZodEnum<{ info: "info"; warning: "warning"; }>; title: z.ZodString; detail: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_turn">; parentToolCallId: z.ZodOptional; state: z.ZodEnum<{ started: "started"; ended: "ended"; }>; turnId: z.ZodOptional; stopReason: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_permission">; requestId: z.ZodString; childSessionId: z.ZodOptional; toolCallId: z.ZodOptional; title: z.ZodString; detail: z.ZodOptional; tool: z.ZodOptional; kind: z.ZodOptional>; rawInput: z.ZodOptional; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; locations: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; url: z.ZodOptional>; options: z.ZodArray; }, z.core.$strip>>; questions: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; pattern: z.ZodOptional; format: z.ZodOptional; }, z.core.$strip>>; defaults: z.ZodOptional>; header: z.ZodOptional; text: z.ZodString; kind: z.ZodEnum<{ text: "text"; choice: "choice"; choices: "choices"; }>; options: z.ZodOptional; }, z.core.$strip>>>; other: z.ZodOptional; secret: z.ZodOptional; required: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_permission_resolved">; requestId: z.ZodString; optionId: z.ZodOptional; answers: z.ZodOptional; other: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_driver">; driver: z.ZodEnum<{ desktop: "desktop"; remote: "remote"; none: "none"; }>; deviceId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_status">; state: z.ZodEnum<{ error: "error"; unknown: "unknown"; running: "running"; idle: "idle"; waiting: "waiting"; offline: "offline"; }>; turnActive: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_task">; task: z.ZodObject<{ id: z.ZodString; kind: z.ZodEnum<{ shell: "shell"; monitor: "monitor"; }>; toolCallId: z.ZodOptional; title: z.ZodString; command: z.ZodOptional; state: z.ZodEnum<{ unknown: "unknown"; completed: "completed"; failed: "failed"; running: "running"; stopped: "stopped"; }>; startedAt: z.ZodNumber; endedAt: z.ZodOptional; summary: z.ZodOptional; exitCode: z.ZodOptional; output: z.ZodOptional; canStop: z.ZodOptional; lastSeq: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_error">; code: z.ZodString; message: z.ZodString; hint: z.ZodOptional; }, z.core.$strip>], "sessionUpdate">; }, z.core.$strip>>; }, z.core.$strip>; }; /** * Asks in a side conversation of the session (a new one without `sideId`): * answered from what the session knows, never added to it. Returns once the * question is on its way; the answer comes in `session.side`. Only for an * agent whose capabilities say `side`. */ readonly "sessions.side": { readonly params: z.ZodObject<{ sessionId: z.ZodString; sideId: z.ZodOptional; text: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{ side: z.ZodObject<{ sideId: z.ZodString; createdAt: z.ZodNumber; running: z.ZodBoolean; revision: z.ZodNumber; messages: z.ZodArray; text: z.ZodString; activity: z.ZodOptional>; error: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>; }; /** The session's open side conversations, oldest first. */ readonly "sessions.sides": { readonly params: z.ZodObject<{ sessionId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{ sides: z.ZodArray; text: z.ZodString; activity: z.ZodOptional>; error: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; }; /** Stops the answer under way. */ readonly "sessions.sideCancel": { readonly params: z.ZodObject<{ sessionId: z.ZodString; sideId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; /** Ends a side conversation: it is forgotten, and whatever the agent kept for it let go. */ readonly "sessions.sideClose": { readonly params: z.ZodObject<{ sessionId: z.ZodString; sideId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; /** The commands this session left running in the background, and the ones that have ended; newest first. */ readonly "sessions.tasks": { readonly params: z.ZodObject<{ sessionId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{ tasks: z.ZodArray; toolCallId: z.ZodOptional; title: z.ZodString; command: z.ZodOptional; state: z.ZodEnum<{ unknown: "unknown"; completed: "completed"; failed: "failed"; running: "running"; stopped: "stopped"; }>; startedAt: z.ZodNumber; endedAt: z.ZodOptional; summary: z.ZodOptional; exitCode: z.ZodOptional; output: z.ZodOptional; canStop: z.ZodOptional; lastSeq: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }; /** * A background task's output, a piece at a time from the end: the text * before byte `before` (default: the end), at most `limit` bytes. `start` is * where that text begins (0: the beginning); `size` is the whole output's. */ readonly "sessions.taskOutput": { readonly params: z.ZodObject<{ sessionId: z.ZodString; taskId: z.ZodString; before: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ text: z.ZodString; start: z.ZodNumber; size: z.ZodNumber; }, z.core.$strip>; }; /** Stops one background task, leaving the session's turn and its other tasks alone. */ readonly "sessions.stopTask": { readonly params: z.ZodObject<{ sessionId: z.ZodString; taskId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; /** Opens a read-only computer-use preview through the existing bulk-stream transport. */ readonly "sessions.preview": { readonly params: z.ZodObject<{ sessionId: z.ZodString; direct: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ port: z.ZodNumber; token: z.ZodString; }, z.core.$strip>; }; /** Explicit local user action; normal frame updates never reopen a dismissed preview. */ readonly "desktop.preview.show": { readonly params: z.ZodObject<{ sessionId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; /** The picture behind a `linkshell-event:` uri. */ readonly "sessions.image": { readonly params: z.ZodObject<{ sessionId: z.ZodString; uri: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{ mimeType: z.ZodString; data: z.ZodString; }, z.core.$strip>; }; readonly "sessions.unsubscribe": { readonly params: z.ZodObject<{ sessionId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; readonly "sessions.prompt": { readonly params: z.ZodObject<{ sessionId: z.ZodString; clientMessageId: z.ZodString; content: z.ZodArray | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>>; whenBusy: z.ZodOptional>; }, z.core.$strip>; /** queued: held until the running turn ends (see `whenBusy`, `sessions.sendQueued`). */ readonly result: z.ZodObject<{ delivery: z.ZodEnum<{ started: "started"; queued: "queued"; steered: "steered"; duplicate: "duplicate"; }>; }, z.core.$strip>; }; readonly "sessions.cancel": { readonly params: z.ZodObject<{ sessionId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; readonly "sessions.permission": { readonly params: z.ZodObject<{ sessionId: z.ZodString; requestId: z.ZodString; optionId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; /** * Answers the questions of a pending request (an `ls_permission` with * `questions`). Skipping or stopping instead is `sessions.permission` with * one of the request's options. */ readonly "sessions.answer": { readonly params: z.ZodObject<{ sessionId: z.ZodString; requestId: z.ZodString; answers: z.ZodArray; other: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; readonly "sessions.goal": { readonly params: z.ZodObject<{ sessionId: z.ZodString; change: z.ZodDiscriminatedUnion<[z.ZodObject<{ action: z.ZodLiteral<"get">; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"set">; objective: z.ZodString; tokenBudget: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"pause">; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"resume">; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"clear">; }, z.core.$strip>], "action">; }, z.core.$strip>; readonly result: z.ZodObject<{ goal: z.ZodNullable; tokenBudget: z.ZodOptional>; tokensUsed: z.ZodOptional; timeUsedSeconds: z.ZodOptional; iterations: z.ZodOptional; lastReason: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; }; readonly "sessions.setConfig": { readonly params: z.ZodObject<{ sessionId: z.ZodString; optionId: z.ZodString; value: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; /** * Sends a queued message (the first, or `clientMessageId`) now instead of * when the running turn ends: taken into that turn where the agent allows * it, otherwise the turn is stopped first, wherever it runs. */ readonly "sessions.sendQueued": { readonly params: z.ZodObject<{ sessionId: z.ZodString; clientMessageId: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; /** Puts the queued messages in this order (ids not named keep theirs, after the named ones). */ readonly "sessions.reorderQueue": { readonly params: z.ZodObject<{ sessionId: z.ZodString; clientMessageIds: z.ZodArray; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; /** Drops a message still waiting in the host's queue (see SessionSummary.queue). */ readonly "sessions.unqueue": { readonly params: z.ZodObject<{ sessionId: z.ZodString; clientMessageId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{ removed: z.ZodBoolean; }, z.core.$strip>; }; /** Archives (or restores) a session: hidden from lists, kept on disk; natively where the agent supports it. */ readonly "sessions.archive": { readonly params: z.ZodObject<{ sessionId: z.ZodString; archived: z.ZodBoolean; }, z.core.$strip>; readonly result: z.ZodObject<{ session: z.ZodObject<{ id: z.ZodString; agent: z.ZodString; nativeId: z.ZodString; title: z.ZodOptional; preview: z.ZodOptional; cwd: z.ZodString; state: z.ZodEnum<{ error: "error"; unknown: "unknown"; running: "running"; idle: "idle"; waiting: "waiting"; offline: "offline"; }>; driver: z.ZodOptional>; pendingPermissions: z.ZodNumber; model: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; lastSeq: z.ZodNumber; archived: z.ZodBoolean; activity: z.ZodOptional; title: z.ZodOptional; toolKind: z.ZodOptional>; }, z.core.$strip>>; permission: z.ZodOptional; toolCallId: z.ZodOptional; title: z.ZodString; detail: z.ZodOptional; tool: z.ZodOptional; kind: z.ZodOptional>; rawInput: z.ZodOptional; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; locations: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; url: z.ZodOptional>; options: z.ZodArray; }, z.core.$strip>>; questions: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; pattern: z.ZodOptional; format: z.ZodOptional; }, z.core.$strip>>; defaults: z.ZodOptional>; header: z.ZodOptional; text: z.ZodString; kind: z.ZodEnum<{ text: "text"; choice: "choice"; choices: "choices"; }>; options: z.ZodOptional; }, z.core.$strip>>>; other: z.ZodOptional; secret: z.ZodOptional; required: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; asyncQuestions: z.ZodOptional; }, z.core.$strip>>>; queue: z.ZodOptional>>; worktree: z.ZodOptional>; parentId: z.ZodOptional; forkedFrom: z.ZodOptional; appId: z.ZodOptional; subagents: z.ZodOptional>; tasks: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; }; /** Names a session; an empty title goes back to the agent's own. */ readonly "sessions.rename": { readonly params: z.ZodObject<{ sessionId: z.ZodString; title: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{ session: z.ZodObject<{ id: z.ZodString; agent: z.ZodString; nativeId: z.ZodString; title: z.ZodOptional; preview: z.ZodOptional; cwd: z.ZodString; state: z.ZodEnum<{ error: "error"; unknown: "unknown"; running: "running"; idle: "idle"; waiting: "waiting"; offline: "offline"; }>; driver: z.ZodOptional>; pendingPermissions: z.ZodNumber; model: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; lastSeq: z.ZodNumber; archived: z.ZodBoolean; activity: z.ZodOptional; title: z.ZodOptional; toolKind: z.ZodOptional>; }, z.core.$strip>>; permission: z.ZodOptional; toolCallId: z.ZodOptional; title: z.ZodString; detail: z.ZodOptional; tool: z.ZodOptional; kind: z.ZodOptional>; rawInput: z.ZodOptional; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; locations: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; url: z.ZodOptional>; options: z.ZodArray; }, z.core.$strip>>; questions: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; pattern: z.ZodOptional; format: z.ZodOptional; }, z.core.$strip>>; defaults: z.ZodOptional>; header: z.ZodOptional; text: z.ZodString; kind: z.ZodEnum<{ text: "text"; choice: "choice"; choices: "choices"; }>; options: z.ZodOptional; }, z.core.$strip>>>; other: z.ZodOptional; secret: z.ZodOptional; required: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; asyncQuestions: z.ZodOptional; }, z.core.$strip>>>; queue: z.ZodOptional>>; worktree: z.ZodOptional>; parentId: z.ZodOptional; forkedFrom: z.ZodOptional; appId: z.ZodOptional; subagents: z.ZodOptional>; tasks: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; }; /** * Deletes a session: the agent's own record where it has one (Codex thread, * Claude transcript), and LinkShell's copy either way. Not while it runs. */ /** * Deletes a session. Its worktree (when it has one that no other session * uses) goes with it if nothing in it would be lost; `worktree: "remove"` * removes it even with uncommitted changes or new commits, "keep" never. */ readonly "sessions.delete": { readonly params: z.ZodObject<{ sessionId: z.ZodString; worktree: z.ZodOptional>; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; readonly "sessions.takeover": { readonly params: z.ZodObject<{ sessionId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{ driver: z.ZodOptional>; }, z.core.$strip>; }; readonly "sessions.release": { readonly params: z.ZodObject<{ sessionId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{ driver: z.ZodOptional>; }, z.core.$strip>; }; /** * How a desktop terminal should launch the agent's native UI attached to the * host (used by `linkshell `). The shim execs exactly what it gets. * For handoff agents the calling connection becomes the session's desktop * controller: it receives `desktop.yield` when a device takes over. */ readonly "desktop.launch": { readonly params: z.ZodObject<{ agent: z.ZodString; sessionId: z.ZodOptional; args: z.ZodDefault>; cwd: z.ZodOptional; env: z.ZodOptional>; }, z.core.$strip>; readonly result: z.ZodObject<{ command: z.ZodString; args: z.ZodArray; env: z.ZodOptional>; sessionId: z.ZodOptional; }, z.core.$strip>; }; /** The shim's native UI exited after a `desktop.yield`; the device may drive now. */ readonly "desktop.yielded": { readonly params: z.ZodObject<{ sessionId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; /** The user is back at the keyboard: stop remote driving, relaunch the native UI. */ readonly "desktop.reclaim": { readonly params: z.ZodObject<{ sessionId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{ command: z.ZodString; args: z.ZodArray; env: z.ZodOptional>; }, z.core.$strip>; }; readonly "gateway.status": { readonly params: z.ZodObject<{}, z.core.$loose>; readonly result: z.ZodObject<{ url: z.ZodOptional; status: z.ZodEnum<{ offline: "offline"; off: "off"; connecting: "connecting"; online: "online"; }>; error: z.ZodOptional>; machine: z.ZodOptional>; account: z.ZodOptional; }, z.core.$strip>>; devices: z.ZodArray>; }, z.core.$strip>; }; /** * Applies the computer's current gateway choice and account (local only): * after `linkshell login` / `logout` or `linkshell host --gateway`, a running * host connects, moves or disconnects without a restart. */ readonly "gateway.refresh": { readonly params: z.ZodObject<{}, z.core.$loose>; readonly result: z.ZodObject<{ url: z.ZodOptional; status: z.ZodEnum<{ offline: "offline"; off: "off"; connecting: "connecting"; online: "online"; }>; error: z.ZodOptional>; machine: z.ZodOptional>; account: z.ZodOptional; }, z.core.$strip>>; devices: z.ZodArray>; }, z.core.$strip>; }; /** Explicitly end this computer's gateway account binding (local only). */ readonly "gateway.account.leave": { readonly params: z.ZodObject<{}, z.core.$loose>; readonly result: z.ZodObject<{}, z.core.$loose>; }; /** * Opens a pairing window (local only). `link` is what the QR encodes; the * code can be typed instead. `pairing.done` follows when a device pairs. */ readonly "pairing.start": { readonly params: z.ZodObject<{}, z.core.$loose>; readonly result: z.ZodObject<{ link: z.ZodString; code: z.ZodString; expiresAt: z.ZodNumber; gateway: z.ZodString; }, z.core.$strip>; }; readonly "devices.revoke": { readonly params: z.ZodObject<{ deviceId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; /** * Unlocks this connection with the password, or with a `token` an earlier unlock returned (so a * reconnect doesn't ask again). Hosts without the method have no password. Wrong guesses are * throttled per device (`busy`). */ readonly "access.unlock": { readonly params: z.ZodObject<{ password: z.ZodOptional; token: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ token: z.ZodString; expiresAt: z.ZodNumber; }, z.core.$strip>; }; /** Whether this computer has a password (local only). */ readonly "access.status": { readonly params: z.ZodObject<{}, z.core.$loose>; readonly result: z.ZodObject<{ password: z.ZodBoolean; }, z.core.$strip>; }; /** Sets the password, or removes it when none is given (local only). Remote connections reconnect. */ readonly "access.set": { readonly params: z.ZodObject<{ password: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ password: z.ZodBoolean; }, z.core.$strip>; }; /** What git says about `path`; no `git` when it isn't in a repository. */ readonly "git.info": { readonly params: z.ZodObject<{ path: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{ git: z.ZodOptional; head: z.ZodOptional; dirty: z.ZodBoolean; remote: z.ZodOptional; rootCommit: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }; /** Real git working-tree diff (or against `base`), bounded by `maxBytes` and including untracked text files by default. */ readonly "git.diff": { readonly params: z.ZodObject<{ cwd: z.ZodString; base: z.ZodOptional; includeUntracked: z.ZodOptional; maxBytes: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ files: z.ZodArray; status: z.ZodEnum<{ modified: "modified"; added: "added"; deleted: "deleted"; renamed: "renamed"; untracked: "untracked"; }>; oldText: z.ZodString; newText: z.ZodString; additions: z.ZodNumber; deletions: z.ZodNumber; binary: z.ZodOptional; }, z.core.$strip>>; truncated: z.ZodBoolean; branch: z.ZodOptional; }, z.core.$strip>; }; /** Restores a tracked file or removes an untracked file strictly inside the repository root. */ readonly "git.revertFile": { readonly params: z.ZodObject<{ cwd: z.ZodString; path: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{ ok: z.ZodBoolean; }, z.core.$strip>; }; /** Commits staged or specified paths inside `cwd`'s repository. */ readonly "git.commit": { readonly params: z.ZodObject<{ cwd: z.ZodString; message: z.ZodString; stageAll: z.ZodOptional; paths: z.ZodOptional>; }, z.core.$strip>; readonly result: z.ZodObject<{ sha: z.ZodString; branch: z.ZodOptional; summary: z.ZodString; }, z.core.$strip>; }; /** The worktrees LinkShell made, newest first. */ readonly "worktrees.list": { readonly params: z.ZodObject<{}, z.core.$loose>; readonly result: z.ZodObject<{ worktrees: z.ZodArray; dirty: z.ZodBoolean; ahead: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; }; /** Removes a worktree and its branch. Refused (`busy`) while a session uses it, or (`dirty`) when work in it would be lost, unless `force`. */ readonly "worktrees.remove": { readonly params: z.ZodObject<{ path: z.ZodString; force: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; /** Subdirectories of `path` (default: the home directory). */ readonly "fs.list": { readonly params: z.ZodObject<{ path: z.ZodOptional; hidden: z.ZodDefault; files: z.ZodDefault; }, z.core.$strip>; readonly result: z.ZodObject<{ path: z.ZodString; parent: z.ZodOptional; home: z.ZodString; entries: z.ZodArray; file: z.ZodOptional; size: z.ZodOptional; }, z.core.$strip>>; truncated: z.ZodOptional; }, z.core.$strip>; }; /** * A file's contents, for viewing. Text comes a part at a time: up to * `maxBytes` from `offset`, with `nextOffset` when more follows. A picture * comes whole, as base64. A binary file is only described, and a file too * big to look at on a phone (text over 20 MB, a picture over 10 MB) is * refused with `too_large`. */ readonly "fs.read": { readonly params: z.ZodObject<{ path: z.ZodString; offset: z.ZodDefault; maxBytes: z.ZodDefault; }, z.core.$strip>; readonly result: z.ZodObject<{ path: z.ZodString; size: z.ZodNumber; modifiedAt: z.ZodNumber; kind: z.ZodEnum<{ binary: "binary"; text: "text"; image: "image"; }>; text: z.ZodOptional; data: z.ZodOptional; mimeType: z.ZodOptional; truncated: z.ZodBoolean; nextOffset: z.ZodOptional; }, z.core.$strip>; }; /** Original file bytes, in bounded chunks, independently of preview limits. */ readonly "fs.download": { readonly params: z.ZodObject<{ path: z.ZodString; offset: z.ZodDefault; maxBytes: z.ZodDefault; revision: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ size: z.ZodNumber; revision: z.ZodString; data: z.ZodString; nextOffset: z.ZodNumber; done: z.ZodBoolean; }, z.core.$strip>; }; /** * Saves a file from the device into `dir`. A name that's taken gets a * numbered suffix ("photo 2.jpg") rather than overwriting; subsequent chunks * pass `appendPath` and `offset` so each chunk stays below the relay frame cap. */ readonly "fs.upload": { readonly params: z.ZodObject<{ dir: z.ZodString; name: z.ZodString; data: z.ZodString; offset: z.ZodOptional; appendPath: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ path: z.ZodString; size: z.ZodNumber; }, z.core.$strip>; }; /** * Replaces a UTF-8 text file (or creates one in an existing directory), * atomically and keeping its mode. With `expectedModifiedAt` (the * `modifiedAt` the editor last read) a file changed on disk since is refused * with `conflict` instead of being overwritten. */ readonly "fs.write": { readonly params: z.ZodObject<{ path: z.ZodString; text: z.ZodString; expectedModifiedAt: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ path: z.ZodString; modifiedAt: z.ZodNumber; size: z.ZodNumber; }, z.core.$strip>; }; /** Creates a directory `name` inside `parent`. */ readonly "fs.mkdir": { readonly params: z.ZodObject<{ parent: z.ZodString; name: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{ path: z.ZodString; }, z.core.$strip>; }; /** Directories under the home directory whose name contains `query`, projects first. */ readonly "fs.search": { readonly params: z.ZodObject<{ query: z.ZodString; limit: z.ZodDefault; }, z.core.$strip>; readonly result: z.ZodObject<{ entries: z.ZodArray; file: z.ZodOptional; size: z.ZodOptional; }, z.core.$strip>>; truncated: z.ZodBoolean; }, z.core.$strip>; }; /** Fast project file listing under `cwd` (`git ls-files` with directory walk fallback) for `@file` autocomplete. */ readonly "fs.projectFiles": { readonly params: z.ZodObject<{ cwd: z.ZodString; query: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ files: z.ZodArray; }, z.core.$strip>>; truncated: z.ZodBoolean; }, z.core.$strip>; }; readonly "clipboard.read": { readonly params: z.ZodObject<{}, z.core.$loose>; readonly result: z.ZodObject<{ text: z.ZodString; }, z.core.$strip>; }; readonly "clipboard.write": { readonly params: z.ZodObject<{ text: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{ ok: z.ZodBoolean; }, z.core.$strip>; }; readonly "terminals.list": { readonly params: z.ZodObject<{}, z.core.$loose>; readonly result: z.ZodObject<{ terminals: z.ZodArray; exitCode: z.ZodOptional>; interrupted: z.ZodOptional; sessionId: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }; readonly "terminals.create": { readonly params: z.ZodObject<{ cwd: z.ZodOptional; sessionId: z.ZodOptional; command: z.ZodOptional; cols: z.ZodDefault; rows: z.ZodDefault; }, z.core.$strip>; readonly result: z.ZodObject<{ terminal: z.ZodObject<{ id: z.ZodString; title: z.ZodString; cwd: z.ZodString; cols: z.ZodNumber; rows: z.ZodNumber; createdAt: z.ZodNumber; activeAt: z.ZodNumber; command: z.ZodOptional; exitCode: z.ZodOptional>; interrupted: z.ZodOptional; sessionId: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; }; /** * Start receiving `terminal.output` for a terminal. With `fromSeq` the host * sends only newer output when it still has it; otherwise `replay` holds the * recent screen history to redraw from scratch. */ readonly "terminals.attach": { readonly params: z.ZodObject<{ terminalId: z.ZodString; fromSeq: z.ZodOptional; replayFormat: z.ZodOptional>; fromFrame: z.ZodOptional; snapshot: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ terminal: z.ZodObject<{ id: z.ZodString; title: z.ZodString; cwd: z.ZodString; cols: z.ZodNumber; rows: z.ZodNumber; createdAt: z.ZodNumber; activeAt: z.ZodNumber; command: z.ZodOptional; exitCode: z.ZodOptional>; interrupted: z.ZodOptional; sessionId: z.ZodOptional; }, z.core.$strip>; replay: z.ZodString; reset: z.ZodBoolean; seq: z.ZodNumber; recording: z.ZodOptional>; state: z.ZodOptional>; }, z.core.$strip>; }; readonly "terminals.state": { readonly params: z.ZodObject<{ terminalId: z.ZodString; snapshotId: z.ZodString; offset: z.ZodNumber; }, z.core.$strip>; readonly result: z.ZodObject<{ data: z.ZodString; nextOffset: z.ZodNumber; done: z.ZodBoolean; }, z.core.$strip>; }; readonly "terminals.replay": { readonly params: z.ZodObject<{ terminalId: z.ZodString; afterFrame: z.ZodNumber; throughFrame: z.ZodNumber; }, z.core.$strip>; readonly result: z.ZodObject<{ frames: z.ZodArray>; nextFrame: z.ZodNumber; done: z.ZodBoolean; }, z.core.$strip>; }; readonly "terminals.detach": { readonly params: z.ZodObject<{ terminalId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; readonly "terminals.input": { readonly params: z.ZodObject<{ terminalId: z.ZodString; data: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; readonly "terminals.resize": { readonly params: z.ZodObject<{ terminalId: z.ZodString; cols: z.ZodNumber; rows: z.ZodNumber; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; readonly "terminals.close": { readonly params: z.ZodObject<{ terminalId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; /** Servers listening on the host that look like something to preview. */ readonly "ports.list": { readonly params: z.ZodObject<{}, z.core.$loose>; readonly result: z.ZodObject<{ ports: z.ZodArray; cwd: z.ZodOptional; title: z.ZodOptional; http: z.ZodBoolean; }, z.core.$strip>>; }, z.core.$strip>; }; /** * A TCP stream to `port` on the host's loopback, like `ssh -L`: the device * runs a local listener and carries each connection over this channel, so a * page, its WebSocket (hot reload) and its cookies all work unchanged. The * host's bytes arrive as `proxy.data`; the stream ends with `proxy.closed`. */ readonly "proxy.open": { readonly params: z.ZodObject<{ port: z.ZodNumber; direct: z.ZodOptional; }, z.core.$strip>; /** `channel`: the stream's number on the direct channel, when it goes there instead of over `proxy.*`. */ readonly result: z.ZodObject<{ streamId: z.ZodString; channel: z.ZodOptional; }, z.core.$strip>; }; /** * Sets up the direct channel (see `direct.ts`): the device's WebRTC offer, * holding the `linkshell-bulk` data channel, answered by the host. Each side * has gathered its addresses before sending. A new offer replaces the * connection made by an earlier one. */ readonly "direct.offer": { readonly params: z.ZodObject<{ sdp: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{ sdp: z.ZodString; }, z.core.$strip>; }; /** * Starts the host's screen viewer: a page plus H.264 stream on a loopback * port, opened like a preview (`proxy.open`) at `/?token=…&display=…`. */ readonly "screen.start": { readonly params: z.ZodObject<{}, z.core.$loose>; readonly result: z.ZodObject<{ port: z.ZodNumber; token: z.ZodString; displays: z.ZodArray>; }, z.core.$strip>; }; /** * Whether this computer's screen can be watched and controlled: the capture * program, and the two permissions the system gives to an app by name. With * `ask`, the system puts its own question for the first one missing and opens * its settings page there, on the computer. */ readonly "screen.access": { readonly params: z.ZodObject<{ ask: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ supported: z.ZodBoolean; ffmpeg: z.ZodBoolean; recording: z.ZodNullable; control: z.ZodNullable; app: z.ZodOptional; problem: z.ZodOptional; }, z.core.$strip>; }; /** Privacy curtain (dim/blank physical screen while viewing remotely) and auto-lock on disconnect. */ readonly "screen.privacy": { readonly params: z.ZodObject<{ curtain: z.ZodOptional; lockOnDisconnect: z.ZodOptional; }, z.core.$strip>; readonly result: z.ZodObject<{ curtain: z.ZodBoolean; lockOnDisconnect: z.ZodBoolean; supported: z.ZodBoolean; }, z.core.$strip>; }; /** Starts Fusion Mode's remote half on this computer and returns its control endpoint (docs/v2/fusion.md). */ readonly "fusion.start": { readonly params: z.ZodObject<{}, z.core.$loose>; readonly result: z.ZodObject<{ port: z.ZodNumber; token: z.ZodString; hosts: z.ZodArray; proto: z.ZodNumber; platform: z.ZodEnum<{ macos: "macos"; windows: "windows"; }>; }, z.core.$strip>; }; /** Ends any Fusion session on this computer: windows go back where they were, virtual displays go. */ readonly "fusion.stop": { readonly params: z.ZodObject<{}, z.core.$loose>; readonly result: z.ZodObject<{}, z.core.$loose>; }; /** Bytes to the host's end of a stream (base64). */ readonly "proxy.write": { readonly params: z.ZodObject<{ streamId: z.ZodString; data: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; readonly "proxy.close": { readonly params: z.ZodObject<{ streamId: z.ZodString; }, z.core.$strip>; readonly result: z.ZodObject<{}, z.core.$loose>; }; }; export declare const methods: typeof coreMethods & typeof acpMethods & typeof mcpMethods & typeof lsaMethods; export type MethodName = keyof typeof methods; export type MethodParams = z.input<(typeof methods)[M]["params"]>; export type MethodResult = z.infer<(typeof methods)[M]["result"]>; export declare function isMethodName(name: string): name is MethodName; export declare const notifications: { readonly "machine.changed": z.ZodObject<{ machineId: z.ZodString; hostname: z.ZodString; naming: z.ZodOptional; configured: z.ZodBoolean; }, z.core.$strip>>; platform: z.ZodString; hostVersion: z.ZodString; protocol: z.ZodOptional; home: z.ZodOptional; agents: z.ZodArray; installed: z.ZodBoolean; version: z.ZodOptional; problem: z.ZodOptional; auth: z.ZodOptional; method: z.ZodOptional; hint: z.ZodOptional; }, z.core.$strip>>; capabilities: z.ZodObject<{ interrupt: z.ZodBoolean; steer: z.ZodBoolean; permissions: z.ZodBoolean; images: z.ZodBoolean; audio: z.ZodOptional; embeddedContext: z.ZodOptional; acp: z.ZodOptional; fork: z.ZodBoolean; side: z.ZodOptional; mcpApps: z.ZodOptional; models: z.ZodBoolean; modes: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>>; direct: z.ZodOptional; }, z.core.$strip>>; locked: z.ZodOptional; }, z.core.$strip>; readonly "agent.changed": z.ZodObject<{ agent: z.ZodObject<{ id: z.ZodString; label: z.ZodString; tier: z.ZodEnum<{ terminal: "terminal"; remote: "remote"; multi_client: "multi_client"; handoff: "handoff"; }>; installed: z.ZodBoolean; version: z.ZodOptional; problem: z.ZodOptional; auth: z.ZodOptional; method: z.ZodOptional; hint: z.ZodOptional; }, z.core.$strip>>; capabilities: z.ZodObject<{ interrupt: z.ZodBoolean; steer: z.ZodBoolean; permissions: z.ZodBoolean; images: z.ZodBoolean; audio: z.ZodOptional; embeddedContext: z.ZodOptional; acp: z.ZodOptional; fork: z.ZodBoolean; side: z.ZodOptional; mcpApps: z.ZodOptional; models: z.ZodBoolean; modes: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>; readonly "agent.interaction": z.ZodObject<{ agent: z.ZodString; request: z.ZodUnion; toolCallId: z.ZodOptional; title: z.ZodString; detail: z.ZodOptional; tool: z.ZodOptional; kind: z.ZodOptional>; rawInput: z.ZodOptional; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; locations: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; url: z.ZodOptional>; options: z.ZodArray; }, z.core.$strip>>; questions: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; pattern: z.ZodOptional; format: z.ZodOptional; }, z.core.$strip>>; defaults: z.ZodOptional>; header: z.ZodOptional; text: z.ZodString; kind: z.ZodEnum<{ text: "text"; choice: "choice"; choices: "choices"; }>; options: z.ZodOptional; }, z.core.$strip>>>; other: z.ZodOptional; secret: z.ZodOptional; required: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ requestId: z.ZodString; resolved: z.ZodLiteral; }, z.core.$strip>]>; }, z.core.$strip>; readonly "session.notice": z.ZodObject<{ sessionId: z.ZodString; notice: z.ZodObject<{ severity: z.ZodString; title: z.ZodString; description: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; readonly "session.event": z.ZodObject<{ sessionId: z.ZodString; seq: z.ZodNumber; ts: z.ZodNumber; update: z.ZodDiscriminatedUnion<[z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_message">; messageId: z.ZodString; role: z.ZodEnum<{ user: "user"; agent: "agent"; thought: "thought"; session: "session"; }>; parentToolCallId: z.ZodOptional; content: z.ZodOptional | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>>>; append: z.ZodOptional; senderSessionId: z.ZodOptional; recipientSessionId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"user_message_chunk">; messageId: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"agent_message_chunk">; parentToolCallId: z.ZodOptional; messageId: z.ZodString; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; replace: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"agent_thought_chunk">; parentToolCallId: z.ZodOptional; messageId: z.ZodString; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; replace: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"tool_call">; toolCallId: z.ZodString; parentToolCallId: z.ZodOptional; title: z.ZodString; name: z.ZodOptional; kind: z.ZodEnum<{ search: "search"; delete: "delete"; other: "other"; read: "read"; edit: "edit"; move: "move"; execute: "execute"; think: "think"; fetch: "fetch"; switch_mode: "switch_mode"; }>; status: z.ZodEnum<{ pending: "pending"; in_progress: "in_progress"; completed: "completed"; failed: "failed"; }>; rawInput: z.ZodOptional; rawOutput: z.ZodOptional; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; locations: z.ZodOptional; }, z.core.$strip>>>; detail: z.ZodOptional; server: z.ZodString; tool: z.ZodString; app: z.ZodOptional>; connector: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"subagent">; action: z.ZodDefault>; task: z.ZodOptional; agentType: z.ZodOptional; name: z.ZodOptional; nativeSessionId: z.ZodOptional; canCancel: z.ZodOptional; model: z.ZodOptional; state: z.ZodOptional>; workflow: z.ZodOptional; name: z.ZodOptional; state: z.ZodOptional>; started: z.ZodOptional; completed: z.ZodOptional; tokens: z.ZodOptional; durationMs: z.ZodOptional; startedAt: z.ZodOptional; endedAt: z.ZodOptional; phases: z.ZodOptional>>; agents: z.ZodOptional; title: z.ZodString; state: z.ZodEnum<{ paused: "paused"; unknown: "unknown"; pending: "pending"; completed: "completed"; failed: "failed"; running: "running"; stopped: "stopped"; }>; phaseId: z.ZodOptional; model: z.ZodOptional; tokens: z.ZodOptional; toolCalls: z.ZodOptional; durationMs: z.ZodOptional; startedAt: z.ZodOptional; endedAt: z.ZodOptional; result: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"skill">; name: z.ZodString; description: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"web_search">; query: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_generation">; prompt: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"compaction">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"review">; phase: z.ZodEnum<{ started: "started"; finished: "finished"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"question">; text: z.ZodString; more: z.ZodOptional; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"tool_call_update">; toolCallId: z.ZodString; parentToolCallId: z.ZodOptional; status: z.ZodOptional>; title: z.ZodOptional; name: z.ZodOptional; kind: z.ZodOptional>; rawInput: z.ZodOptional; locations: z.ZodOptional; }, z.core.$strip>>>; detail: z.ZodOptional; server: z.ZodString; tool: z.ZodString; app: z.ZodOptional>; connector: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"subagent">; action: z.ZodDefault>; task: z.ZodOptional; agentType: z.ZodOptional; name: z.ZodOptional; nativeSessionId: z.ZodOptional; canCancel: z.ZodOptional; model: z.ZodOptional; state: z.ZodOptional>; workflow: z.ZodOptional; name: z.ZodOptional; state: z.ZodOptional>; started: z.ZodOptional; completed: z.ZodOptional; tokens: z.ZodOptional; durationMs: z.ZodOptional; startedAt: z.ZodOptional; endedAt: z.ZodOptional; phases: z.ZodOptional>>; agents: z.ZodOptional; title: z.ZodString; state: z.ZodEnum<{ paused: "paused"; unknown: "unknown"; pending: "pending"; completed: "completed"; failed: "failed"; running: "running"; stopped: "stopped"; }>; phaseId: z.ZodOptional; model: z.ZodOptional; tokens: z.ZodOptional; toolCalls: z.ZodOptional; durationMs: z.ZodOptional; startedAt: z.ZodOptional; endedAt: z.ZodOptional; result: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"skill">; name: z.ZodString; description: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"web_search">; query: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_generation">; prompt: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"compaction">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"review">; phase: z.ZodEnum<{ started: "started"; finished: "finished"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"question">; text: z.ZodString; more: z.ZodOptional; }, z.core.$strip>], "type">>; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; appendOutput: z.ZodOptional; replaceOutput: z.ZodOptional; replaceContent: z.ZodOptional; rawOutput: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"plan">; entries: z.ZodArray>; status: z.ZodEnum<{ pending: "pending"; in_progress: "in_progress"; completed: "completed"; }>; }, z.core.$strip>>; planId: z.ZodOptional; title: z.ZodOptional; markdown: z.ZodOptional>; path: z.ZodOptional>; removed: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_goal">; goal: z.ZodNullable; tokenBudget: z.ZodOptional>; tokensUsed: z.ZodOptional; timeUsedSeconds: z.ZodOptional; iterations: z.ZodOptional; lastReason: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"available_commands_update">; availableCommands: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"current_mode_update">; currentModeId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"session_info_update">; title: z.ZodOptional>; updatedAt: z.ZodOptional>; model: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"usage_update">; accounting: z.ZodOptional; model: z.ZodOptional; timestamp: z.ZodOptional; }, z.core.$strip>>; usedTokens: z.ZodOptional; contextWindow: z.ZodOptional; cost: z.ZodOptional>>; tokens: z.ZodOptional>; cachedReadTokens: z.ZodOptional>; cachedWriteTokens: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_async_questions">; questions: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_message_done">; parentToolCallId: z.ZodOptional; messageId: z.ZodString; role: z.ZodEnum<{ user: "user"; agent: "agent"; thought: "thought"; }>; questions: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_config">; options: z.ZodArray; type: z.ZodOptional>; category: z.ZodDefault>; current: z.ZodString; values: z.ZodArray; group: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_notice">; level: z.ZodEnum<{ info: "info"; warning: "warning"; }>; title: z.ZodString; detail: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_turn">; parentToolCallId: z.ZodOptional; state: z.ZodEnum<{ started: "started"; ended: "ended"; }>; turnId: z.ZodOptional; stopReason: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_permission">; requestId: z.ZodString; childSessionId: z.ZodOptional; toolCallId: z.ZodOptional; title: z.ZodString; detail: z.ZodOptional; tool: z.ZodOptional; kind: z.ZodOptional>; rawInput: z.ZodOptional; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; locations: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; url: z.ZodOptional>; options: z.ZodArray; }, z.core.$strip>>; questions: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; pattern: z.ZodOptional; format: z.ZodOptional; }, z.core.$strip>>; defaults: z.ZodOptional>; header: z.ZodOptional; text: z.ZodString; kind: z.ZodEnum<{ text: "text"; choice: "choice"; choices: "choices"; }>; options: z.ZodOptional; }, z.core.$strip>>>; other: z.ZodOptional; secret: z.ZodOptional; required: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_permission_resolved">; requestId: z.ZodString; optionId: z.ZodOptional; answers: z.ZodOptional; other: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_driver">; driver: z.ZodEnum<{ desktop: "desktop"; remote: "remote"; none: "none"; }>; deviceId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_status">; state: z.ZodEnum<{ error: "error"; unknown: "unknown"; running: "running"; idle: "idle"; waiting: "waiting"; offline: "offline"; }>; turnActive: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_task">; task: z.ZodObject<{ id: z.ZodString; kind: z.ZodEnum<{ shell: "shell"; monitor: "monitor"; }>; toolCallId: z.ZodOptional; title: z.ZodString; command: z.ZodOptional; state: z.ZodEnum<{ unknown: "unknown"; completed: "completed"; failed: "failed"; running: "running"; stopped: "stopped"; }>; startedAt: z.ZodNumber; endedAt: z.ZodOptional; summary: z.ZodOptional; exitCode: z.ZodOptional; output: z.ZodOptional; canStop: z.ZodOptional; lastSeq: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ sessionUpdate: z.ZodLiteral<"ls_error">; code: z.ZodString; message: z.ZodString; hint: z.ZodOptional; }, z.core.$strip>], "sessionUpdate">; }, z.core.$strip>; /** * Sent before a subscription's backlog when it doesn't continue from the * client's `fromSeq`: the events that follow start after `startSeq`, so a * client holding older events of this session drops them first. */ readonly "session.window": z.ZodObject<{ sessionId: z.ZodString; startSeq: z.ZodNumber; }, z.core.$strip>; readonly "session.summary": z.ZodObject<{ session: z.ZodObject<{ id: z.ZodString; agent: z.ZodString; nativeId: z.ZodString; title: z.ZodOptional; preview: z.ZodOptional; cwd: z.ZodString; state: z.ZodEnum<{ error: "error"; unknown: "unknown"; running: "running"; idle: "idle"; waiting: "waiting"; offline: "offline"; }>; driver: z.ZodOptional>; pendingPermissions: z.ZodNumber; model: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; lastSeq: z.ZodNumber; archived: z.ZodBoolean; activity: z.ZodOptional; title: z.ZodOptional; toolKind: z.ZodOptional>; }, z.core.$strip>>; permission: z.ZodOptional; toolCallId: z.ZodOptional; title: z.ZodString; detail: z.ZodOptional; tool: z.ZodOptional; kind: z.ZodOptional>; rawInput: z.ZodOptional; content: z.ZodOptional; content: z.ZodType<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ type: "text"; text: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "image"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "audio"; mimeType: string; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; data?: string | undefined; uri?: string | undefined; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; text?: string | undefined; blob?: string | undefined; assetUri?: string | undefined; _meta?: Record | undefined; }; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; } | { type: "resource_link"; uri: string; name: string; kind?: "file" | "skill" | "agent" | undefined; annotations?: { [x: string]: unknown; audience?: ("user" | "assistant")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record | undefined; title?: string | undefined; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; }, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional>; newText: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"patch">; path: z.ZodString; change: z.ZodEnum<{ add: "add"; delete: "delete"; update: "update"; }>; movePath: z.ZodOptional; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"terminal">; terminalId: z.ZodString; }, z.core.$strip>], "type">>>; locations: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; url: z.ZodOptional>; options: z.ZodArray; }, z.core.$strip>>; questions: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; pattern: z.ZodOptional; format: z.ZodOptional; }, z.core.$strip>>; defaults: z.ZodOptional>; header: z.ZodOptional; text: z.ZodString; kind: z.ZodEnum<{ text: "text"; choice: "choice"; choices: "choices"; }>; options: z.ZodOptional; }, z.core.$strip>>>; other: z.ZodOptional; secret: z.ZodOptional; required: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; asyncQuestions: z.ZodOptional; }, z.core.$strip>>>; queue: z.ZodOptional>>; worktree: z.ZodOptional>; parentId: z.ZodOptional; forkedFrom: z.ZodOptional; appId: z.ZodOptional; subagents: z.ZodOptional>; tasks: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; /** A side conversation changed (to every client), or ended (`closed`). */ readonly "session.side": z.ZodObject<{ sessionId: z.ZodString; side: z.ZodObject<{ sideId: z.ZodString; createdAt: z.ZodNumber; running: z.ZodBoolean; revision: z.ZodNumber; messages: z.ZodArray; text: z.ZodString; activity: z.ZodOptional>; error: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; closed: z.ZodOptional; }, z.core.$strip>; /** A session was deleted (from any device, or natively by the agent). */ readonly "session.removed": z.ZodObject<{ sessionId: z.ZodString; }, z.core.$strip>; readonly "session.preview.show": z.ZodObject<{ sessionId: z.ZodString; }, z.core.$strip>; /** To a desktop shim: a device is taking over; exit the native UI, then call desktop.yielded. */ readonly "desktop.yield": z.ZodObject<{ sessionId: z.ZodString; }, z.core.$strip>; /** To a desktop shim: progress from the remote driver, to show in the terminal. */ readonly "desktop.remoteActivity": z.ZodObject<{ sessionId: z.ZodString; line: z.ZodString; }, z.core.$strip>; readonly "pairing.done": z.ZodObject<{ device: z.ZodObject<{ id: z.ZodString; name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; readonly "gateway.changed": z.ZodObject<{ url: z.ZodOptional; status: z.ZodEnum<{ offline: "offline"; off: "off"; connecting: "connecting"; online: "online"; }>; error: z.ZodOptional>; machine: z.ZodOptional>; account: z.ZodOptional; }, z.core.$strip>>; devices: z.ZodArray>; }, z.core.$strip>; /** Output from an attached terminal, in order; `seq` increases by one per chunk. */ readonly "terminal.output": z.ZodObject<{ terminalId: z.ZodString; seq: z.ZodNumber; data: z.ZodString; frame: z.ZodOptional; cols: z.ZodOptional; rows: z.ZodOptional; }, z.core.$strip>; /** A terminal's list entry changed (title, size, exit), or it was closed (`closed`). */ readonly "terminal.changed": z.ZodObject<{ terminal: z.ZodObject<{ id: z.ZodString; title: z.ZodString; cwd: z.ZodString; cols: z.ZodNumber; rows: z.ZodNumber; createdAt: z.ZodNumber; activeAt: z.ZodNumber; command: z.ZodOptional; exitCode: z.ZodOptional>; interrupted: z.ZodOptional; sessionId: z.ZodOptional; }, z.core.$strip>; closed: z.ZodOptional; }, z.core.$strip>; /** Bytes from the host's end of a `proxy.open` stream (base64), in order. */ readonly "proxy.data": z.ZodObject<{ streamId: z.ZodString; data: z.ZodString; }, z.core.$strip>; /** The host's end of a stream closed (the server hung up, or refused). */ readonly "proxy.closed": z.ZodObject<{ streamId: z.ZodString; error: z.ZodOptional; }, z.core.$strip>; /** Zero-plaintext transition wakeup metadata. */ readonly "liveActivities.wakeup": z.ZodObject<{ machineId: z.ZodString; sessionId: z.ZodString; eventType: z.ZodEnum<{ error: "error"; completed: "completed"; question: "question"; approval: "approval"; }>; createdAt: z.ZodNumber; }, z.core.$strip>; }; export type NotificationName = keyof typeof notifications; export type NotificationParams = z.infer<(typeof notifications)[N]>; export {};