import { Static, TSchema, Type } from "typebox"; //#region packages/gateway-protocol/src/schema/agent.d.ts /** Stream event emitted by the agent runtime over the gateway protocol. */ declare const AgentEventSchema: Type.TObject<{ runId: Type.TString; seq: Type.TInteger; stream: Type.TString; ts: Type.TInteger; spawnedBy: Type.TOptional; isHeartbeat: Type.TOptional; data: Type.TRecord<"^.*$", Type.TUnknown>; }>; /** Request to execute a channel message action through a configured adapter. */ declare const MessageActionParamsSchema: Type.TObject<{ channel: Type.TString; action: Type.TString; params: Type.TRecord<"^.*$", Type.TUnknown>; accountId: Type.TOptional; requesterAccountId: Type.TOptional; requesterSenderId: Type.TOptional; senderIsOwner: Type.TOptional; sessionKey: Type.TOptional; sessionId: Type.TOptional; inboundTurnKind: Type.TOptional; agentId: Type.TOptional; toolContext: Type.TOptional; currentMessagingTarget: Type.TOptional; currentGraphChannelId: Type.TOptional; currentChannelProvider: Type.TOptional; currentThreadTs: Type.TOptional; currentMessageId: Type.TOptional>; replyToMode: Type.TOptional, Type.TLiteral<"first">, Type.TLiteral<"all">, Type.TLiteral<"batched">]>>; hasRepliedRef: Type.TOptional>; sameChannelThreadRequired: Type.TOptional; skipCrossContextDecoration: Type.TOptional; }>>; idempotencyKey: Type.TString; }>; /** Outbound send request shared by channel adapters. */ declare const SendParamsSchema: Type.TObject<{ to: Type.TString; message: Type.TOptional; mediaUrl: Type.TOptional; mediaUrls: Type.TOptional>; /** Base64 attachment payload for gateway-local media materialization. */ buffer: Type.TOptional; /** Optional filename for a base64 attachment payload. */ filename: Type.TOptional; /** Optional MIME type for a base64 attachment payload. */ contentType: Type.TOptional; asVoice: Type.TOptional; gifPlayback: Type.TOptional; channel: Type.TOptional; accountId: Type.TOptional; /** Optional agent id for per-agent media root resolution on gateway sends. */ agentId: Type.TOptional; /** Reply target message id for native quoted/threaded sends where supported. */ replyToId: Type.TOptional; /** Thread id (channel-specific meaning, e.g. Telegram forum topic id). */ threadId: Type.TOptional; /** Force document-style media sends where supported. */ forceDocument: Type.TOptional; /** Send silently (no notification) where supported. */ silent: Type.TOptional; /** Channel-specific parse mode for formatted text. */ parseMode: Type.TOptional>; /** Optional session key for mirroring delivered output back into the transcript. */ sessionKey: Type.TOptional; idempotencyKey: Type.TString; }>; /** Poll creation request for adapters that support native polls. */ declare const PollParamsSchema: Type.TObject<{ to: Type.TString; question: Type.TString; options: Type.TArray; maxSelections: Type.TOptional; /** Poll duration in seconds (channel-specific limits may apply). */ durationSeconds: Type.TOptional; durationHours: Type.TOptional; /** Send silently (no notification) where supported. */ silent: Type.TOptional; /** Poll anonymity where supported (e.g. Telegram polls default to anonymous). */ isAnonymous: Type.TOptional; /** Thread id (channel-specific meaning, e.g. Telegram forum topic id). */ threadId: Type.TOptional; channel: Type.TOptional; accountId: Type.TOptional; idempotencyKey: Type.TString; }>; /** Main agent-run request accepted by the gateway. */ declare const AgentParamsSchema: Type.TObject<{ message: Type.TString; agentId: Type.TOptional; provider: Type.TOptional; model: Type.TOptional; to: Type.TOptional; replyTo: Type.TOptional; sessionId: Type.TOptional; sessionKey: Type.TOptional; thinking: Type.TOptional; deliver: Type.TOptional; attachments: Type.TOptional>; channel: Type.TOptional; replyChannel: Type.TOptional; accountId: Type.TOptional; replyAccountId: Type.TOptional; threadId: Type.TOptional; groupId: Type.TOptional; groupChannel: Type.TOptional; groupSpace: Type.TOptional; timeout: Type.TOptional; bestEffortDeliver: Type.TOptional; lane: Type.TOptional; cwd: Type.TOptional; cleanupBundleMcpOnRunEnd: Type.TOptional; modelRun: Type.TOptional; promptMode: Type.TOptional, Type.TLiteral<"minimal">, Type.TLiteral<"none">]>>; extraSystemPrompt: Type.TOptional; bootstrapContextMode: Type.TOptional, Type.TLiteral<"lightweight">]>>; bootstrapContextRunKind: Type.TOptional, Type.TLiteral<"heartbeat">, Type.TLiteral<"cron">]>>; acpTurnSource: Type.TOptional>; internalRuntimeHandoffId: Type.TOptional; execApprovalFollowupExpectedSessionId: Type.TOptional; internalEvents: Type.TOptional; source: Type.TString; childSessionKey: Type.TString; childSessionId: Type.TOptional; announceType: Type.TString; taskLabel: Type.TString; status: Type.TString; statusLabel: Type.TString; result: Type.TString; attachments: Type.TOptional; path: Type.TOptional; url: Type.TOptional; mediaUrl: Type.TOptional; filePath: Type.TOptional; mimeType: Type.TOptional; name: Type.TOptional; }>>>; mediaUrls: Type.TOptional>; statsLine: Type.TOptional; replyInstruction: Type.TString; }>>>; inputProvenance: Type.TOptional; sourceSessionKey: Type.TOptional; sourceChannel: Type.TOptional; sourceTool: Type.TOptional; }>>; suppressPromptPersistence: Type.TOptional; sessionEffects: Type.TOptional, Type.TLiteral<"internal">]>>; sourceReplyDeliveryMode: Type.TOptional, Type.TLiteral<"message_tool_only">]>>; disableMessageTool: Type.TOptional; voiceWakeTrigger: Type.TOptional; idempotencyKey: Type.TString; label: Type.TOptional; }>; /** Identity lookup request for the current or selected agent/session. */ declare const AgentIdentityParamsSchema: Type.TObject<{ agentId: Type.TOptional; sessionKey: Type.TOptional; }>; /** Public display identity returned for an agent. */ declare const AgentIdentityResultSchema: Type.TObject<{ agentId: Type.TString; name: Type.TOptional; avatar: Type.TOptional; avatarSource: Type.TOptional; avatarStatus: Type.TOptional; avatarReason: Type.TOptional; emoji: Type.TOptional; }>; /** Wake request from external schedulers or devices into an agent session. */ declare const WakeParamsSchema: Type.TObject<{ mode: Type.TUnion<[Type.TLiteral<"now">, Type.TLiteral<"next-heartbeat">]>; text: Type.TString; sessionKey: Type.TOptional; /** * Optional agent id paired with `sessionKey`. Routes multi-agent setups * to the agent that owns the targeted session — closes the related half * of #46886 ("always routes to default agent"). */ agentId: Type.TOptional; }>; //#endregion //#region packages/gateway-protocol/src/schema/agents-models-skills.d.ts /** Condensed agent record returned by list APIs. */ declare const AgentSummarySchema: Type.TObject<{ id: Type.TString; name: Type.TOptional; identity: Type.TOptional; theme: Type.TOptional; emoji: Type.TOptional; avatar: Type.TOptional; avatarUrl: Type.TOptional; }>>; workspace: Type.TOptional; workspaceGit: Type.TOptional; model: Type.TOptional; fallbacks: Type.TOptional>; }>>; agentRuntime: Type.TOptional, Type.TLiteral<"none">]>>; source: Type.TUnion<[Type.TLiteral<"env">, Type.TLiteral<"agent">, Type.TLiteral<"defaults">, Type.TLiteral<"model">, Type.TLiteral<"provider">, Type.TLiteral<"implicit">]>; }>>; thinkingLevels: Type.TOptional>>; thinkingOptions: Type.TOptional>; thinkingDefault: Type.TOptional; }>; /** Empty request payload for listing configured agents. */ declare const AgentsListParamsSchema: Type.TObject<{}>; /** Agent list result including the default agent and session scoping mode. */ declare const AgentsListResultSchema: Type.TObject<{ defaultId: Type.TString; mainKey: Type.TString; scope: Type.TUnion<[Type.TLiteral<"per-sender">, Type.TLiteral<"global">]>; agents: Type.TArray; identity: Type.TOptional; theme: Type.TOptional; emoji: Type.TOptional; avatar: Type.TOptional; avatarUrl: Type.TOptional; }>>; workspace: Type.TOptional; workspaceGit: Type.TOptional; model: Type.TOptional; fallbacks: Type.TOptional>; }>>; agentRuntime: Type.TOptional, Type.TLiteral<"none">]>>; source: Type.TUnion<[Type.TLiteral<"env">, Type.TLiteral<"agent">, Type.TLiteral<"defaults">, Type.TLiteral<"model">, Type.TLiteral<"provider">, Type.TLiteral<"implicit">]>; }>>; thinkingLevels: Type.TOptional>>; thinkingOptions: Type.TOptional>; thinkingDefault: Type.TOptional; }>>; }>; /** Creates a configured agent with workspace, identity, and optional model. */ declare const AgentsCreateParamsSchema: Type.TObject<{ name: Type.TString; workspace: Type.TString; model: Type.TOptional; emoji: Type.TOptional; avatar: Type.TOptional; }>; /** Result returned after creating an agent. */ declare const AgentsCreateResultSchema: Type.TObject<{ ok: Type.TLiteral; agentId: Type.TString; name: Type.TString; workspace: Type.TString; model: Type.TOptional; }>; /** Updates mutable agent identity, workspace, and model fields. */ declare const AgentsUpdateParamsSchema: Type.TObject<{ agentId: Type.TString; name: Type.TOptional; workspace: Type.TOptional; model: Type.TOptional; emoji: Type.TOptional; avatar: Type.TOptional; }>; /** Result returned after updating an agent. */ declare const AgentsUpdateResultSchema: Type.TObject<{ ok: Type.TLiteral; agentId: Type.TString; }>; /** Deletes an agent and optionally its workspace/config files. */ declare const AgentsDeleteParamsSchema: Type.TObject<{ agentId: Type.TString; deleteFiles: Type.TOptional; }>; /** Result returned after deleting an agent and unbinding sessions. */ declare const AgentsDeleteResultSchema: Type.TObject<{ ok: Type.TLiteral; agentId: Type.TString; removedBindings: Type.TInteger; }>; /** File metadata and optional content for agent-local editable files. */ declare const AgentsFileEntrySchema: Type.TObject<{ name: Type.TString; path: Type.TString; missing: Type.TBoolean; size: Type.TOptional; updatedAtMs: Type.TOptional; content: Type.TOptional; }>; /** Lists editable files for one agent. */ declare const AgentsFilesListParamsSchema: Type.TObject<{ agentId: Type.TString; }>; /** Editable file list for an agent workspace. */ declare const AgentsFilesListResultSchema: Type.TObject<{ agentId: Type.TString; workspace: Type.TString; files: Type.TArray; updatedAtMs: Type.TOptional; content: Type.TOptional; }>>; }>; /** Reads one editable agent file by name. */ declare const AgentsFilesGetParamsSchema: Type.TObject<{ agentId: Type.TString; name: Type.TString; }>; /** Result for reading one editable agent file. */ declare const AgentsFilesGetResultSchema: Type.TObject<{ agentId: Type.TString; workspace: Type.TString; file: Type.TObject<{ name: Type.TString; path: Type.TString; missing: Type.TBoolean; size: Type.TOptional; updatedAtMs: Type.TOptional; content: Type.TOptional; }>; }>; /** Writes one editable agent file. */ declare const AgentsFilesSetParamsSchema: Type.TObject<{ agentId: Type.TString; name: Type.TString; content: Type.TString; }>; /** Result returned after writing an editable agent file. */ declare const AgentsFilesSetResultSchema: Type.TObject<{ ok: Type.TLiteral; agentId: Type.TString; workspace: Type.TString; file: Type.TObject<{ name: Type.TString; path: Type.TString; missing: Type.TBoolean; size: Type.TOptional; updatedAtMs: Type.TOptional; content: Type.TOptional; }>; }>; /** Model catalog request with optional visibility scope. */ declare const ModelsListParamsSchema: Type.TObject<{ view: Type.TOptional, Type.TLiteral<"configured">, Type.TLiteral<"all">]>>; }>; /** Reads installed skill status, optionally for a selected agent. */ declare const SkillsStatusParamsSchema: Type.TObject<{ agentId: Type.TOptional; }>; /** Starts a chunked skill archive upload. */ declare const SkillsUploadBeginParamsSchema: Type.TObject<{ kind: Type.TLiteral<"skill-archive">; slug: Type.TString; sizeBytes: Type.TInteger; sha256: Type.TOptional; force: Type.TOptional; idempotencyKey: Type.TOptional; }>; /** Uploads one base64-encoded chunk for a skill archive. */ declare const SkillsUploadChunkParamsSchema: Type.TObject<{ uploadId: Type.TString; offset: Type.TInteger; dataBase64: Type.TString; }>; /** Commits a completed skill archive upload. */ declare const SkillsUploadCommitParamsSchema: Type.TObject<{ uploadId: Type.TString; sha256: Type.TOptional; }>; /** Installs a skill from legacy install id, ClawHub, or uploaded archive. */ declare const SkillsInstallParamsSchema: Type.TUnion<[Type.TObject<{ agentId: Type.TOptional; name: Type.TString; installId: Type.TString; dangerouslyForceUnsafeInstall: Type.TOptional; timeoutMs: Type.TOptional; }>, Type.TObject<{ agentId: Type.TOptional; source: Type.TLiteral<"clawhub">; slug: Type.TString; version: Type.TOptional; force: Type.TOptional; acknowledgeClawHubRisk: Type.TOptional; timeoutMs: Type.TOptional; }>, Type.TObject<{ agentId: Type.TOptional; source: Type.TLiteral<"upload">; uploadId: Type.TString; slug: Type.TString; force: Type.TOptional; sha256: Type.TOptional; timeoutMs: Type.TOptional; }>]>; /** Updates installed skill settings or refreshes ClawHub-installed skills. */ declare const SkillsUpdateParamsSchema: Type.TUnion<[Type.TObject<{ skillKey: Type.TString; enabled: Type.TOptional; apiKey: Type.TOptional; env: Type.TOptional>; }>, Type.TObject<{ agentId: Type.TOptional; source: Type.TLiteral<"clawhub">; slug: Type.TOptional; all: Type.TOptional; acknowledgeClawHubRisk: Type.TOptional; }>]>; /** Searches the skill registry. */ declare const SkillsSearchParamsSchema: Type.TObject<{ query: Type.TOptional; limit: Type.TOptional; }>; /** Ranked skill registry search results. */ declare const SkillsSearchResultSchema: Type.TObject<{ results: Type.TArray; version: Type.TOptional; updatedAt: Type.TOptional; }>>; }>; /** Reads registry detail for one skill slug. */ declare const SkillsDetailParamsSchema: Type.TObject<{ slug: Type.TString; }>; /** Reads current security verdicts for configured skills. */ declare const SkillsSecurityVerdictsParamsSchema: Type.TObject<{ agentId: Type.TOptional; }>; /** Skill registry detail, latest version, metadata, and owner info. */ declare const SkillsDetailResultSchema: Type.TObject<{ skill: Type.TUnion<[Type.TObject<{ slug: Type.TString; displayName: Type.TString; summary: Type.TOptional; tags: Type.TOptional>; channel: Type.TOptional>; isOfficial: Type.TOptional>; createdAt: Type.TInteger; updatedAt: Type.TInteger; }>, Type.TNull]>; latestVersion: Type.TOptional; }>, Type.TNull]>>; metadata: Type.TOptional, Type.TNull]>>; systems: Type.TOptional, Type.TNull]>>; }>, Type.TNull]>>; owner: Type.TOptional>; displayName: Type.TOptional>; image: Type.TOptional>; official: Type.TOptional>; channel: Type.TOptional>; isOfficial: Type.TOptional>; }>, Type.TNull]>>; }>; /** Security verdict report for installed/requested skills. */ declare const SkillsSecurityVerdictsResultSchema: Type.TObject<{ schema: Type.TLiteral<"openclaw.skills.security-verdicts.v1">; items: Type.TArray; requestedSlug: Type.TString; requestedVersion: Type.TString; slug: Type.TOptional>; version: Type.TOptional>; displayName: Type.TOptional>; publisherHandle: Type.TOptional>; publisherDisplayName: Type.TOptional>; createdAt: Type.TOptional>; checkedAt: Type.TOptional>; skillUrl: Type.TOptional>; securityAuditUrl: Type.TOptional>; securityStatus: Type.TOptional>; securityPassed: Type.TOptional>; error: Type.TOptional; message: Type.TOptional; }>>; }>>; }>; /** Reads the rendered skill card for one installed skill. */ declare const SkillsSkillCardParamsSchema: Type.TObject<{ agentId: Type.TOptional; skillKey: Type.TString; }>; /** Rendered skill card content and file metadata. */ declare const SkillsSkillCardResultSchema: Type.TObject<{ schema: Type.TLiteral<"openclaw.skills.skill-card.v1">; skillKey: Type.TString; path: Type.TString; sizeBytes: Type.TInteger; content: Type.TString; }>; /** Lists skill-workshop proposals for the selected agent scope. */ declare const SkillsProposalsListParamsSchema: Type.TObject<{ agentId: Type.TOptional; }>; /** Proposal manifest response for dashboard/workshop list views. */ declare const SkillsProposalsListResultSchema: Type.TObject<{ schema: Type.TLiteral<"openclaw.skill-workshop.proposals-manifest.v1">; updatedAt: Type.TString; proposals: Type.TArray, Type.TLiteral<"update">]>; status: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"applied">, Type.TLiteral<"rejected">, Type.TLiteral<"quarantined">, Type.TLiteral<"stale">]>; title: Type.TString; description: Type.TString; skillName: Type.TString; skillKey: Type.TString; createdAt: Type.TString; updatedAt: Type.TString; scanState: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"clean">, Type.TLiteral<"failed">, Type.TLiteral<"quarantined">]>; }>>; }>; /** Reads a proposal record plus editable draft/support content. */ declare const SkillsProposalInspectParamsSchema: Type.TObject<{ agentId: Type.TOptional; proposalId: Type.TString; }>; /** Full proposal inspection result used before apply/revise decisions. */ declare const SkillsProposalInspectResultSchema: Type.TObject<{ record: Type.TObject<{ schema: Type.TLiteral<"openclaw.skill-workshop.proposal.v1">; id: Type.TString; kind: Type.TUnion<[Type.TLiteral<"create">, Type.TLiteral<"update">]>; status: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"applied">, Type.TLiteral<"rejected">, Type.TLiteral<"quarantined">, Type.TLiteral<"stale">]>; title: Type.TString; description: Type.TString; createdAt: Type.TString; updatedAt: Type.TString; createdBy: Type.TUnion<[Type.TLiteral<"skill-workshop">, Type.TLiteral<"cli">, Type.TLiteral<"gateway">]>; origin: Type.TOptional; sessionKey: Type.TOptional; runId: Type.TOptional; messageId: Type.TOptional; }>>; proposedVersion: Type.TString; draftFile: Type.TLiteral<"PROPOSAL.md">; draftHash: Type.TString; supportFiles: Type.TOptional; targetContentHash: Type.TOptional; }>>>; target: Type.TObject<{ skillName: Type.TString; skillKey: Type.TString; skillDir: Type.TString; skillFile: Type.TString; source: Type.TOptional; currentContentHash: Type.TOptional; }>; scan: Type.TObject<{ state: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"clean">, Type.TLiteral<"failed">, Type.TLiteral<"quarantined">]>; scannedAt: Type.TString; critical: Type.TInteger; warn: Type.TInteger; info: Type.TInteger; findings: Type.TArray, Type.TLiteral<"warn">, Type.TLiteral<"critical">]>; file: Type.TString; line: Type.TInteger; message: Type.TString; evidence: Type.TString; }>>; }>; goal: Type.TOptional; evidence: Type.TOptional; appliedAt: Type.TOptional; rejectedAt: Type.TOptional; quarantinedAt: Type.TOptional; staleAt: Type.TOptional; statusReason: Type.TOptional; }>; content: Type.TString; supportFiles: Type.TOptional>>; }>; /** Creates a proposal for a new skill. */ declare const SkillsProposalCreateParamsSchema: Type.TObject<{ agentId: Type.TOptional; name: Type.TString; description: Type.TString; content: Type.TString; supportFiles: Type.TOptional>>; goal: Type.TOptional; evidence: Type.TOptional; }>; /** Creates a proposal to update an existing skill. */ declare const SkillsProposalUpdateParamsSchema: Type.TObject<{ agentId: Type.TOptional; skillName: Type.TString; description: Type.TOptional; content: Type.TString; supportFiles: Type.TOptional>>; goal: Type.TOptional; evidence: Type.TOptional; }>; /** Replaces draft content/support files for an existing proposal. */ declare const SkillsProposalReviseParamsSchema: Type.TObject<{ agentId: Type.TOptional; proposalId: Type.TString; content: Type.TString; supportFiles: Type.TOptional>>; description: Type.TOptional; goal: Type.TOptional; evidence: Type.TOptional; }>; /** Starts an agent turn that revises a pending proposal from natural-language instructions. */ declare const SkillsProposalRequestRevisionParamsSchema: Type.TObject<{ agentId: Type.TOptional; targetAgentId: Type.TOptional; proposalId: Type.TString; instructions: Type.TString; sessionKey: Type.TString; sessionId: Type.TOptional; idempotencyKey: Type.TString; }>; /** Chat-run acknowledgement returned after queueing a Skill Workshop revision request. */ declare const SkillsProposalRequestRevisionResultSchema: Type.TObject<{ runId: Type.TString; status: Type.TUnion<[Type.TLiteral<"started">, Type.TLiteral<"in_flight">, Type.TLiteral<"ok">, Type.TLiteral<"timeout">, Type.TLiteral<"error">]>; }>; /** Shared approve/reject/quarantine action payload for one proposal. */ declare const SkillsProposalActionParamsSchema: Type.TObject<{ agentId: Type.TOptional; proposalId: Type.TString; reason: Type.TOptional; }>; /** Result returned after applying a skill proposal to disk. */ declare const SkillsProposalApplyResultSchema: Type.TObject<{ record: Type.TObject<{ schema: Type.TLiteral<"openclaw.skill-workshop.proposal.v1">; id: Type.TString; kind: Type.TUnion<[Type.TLiteral<"create">, Type.TLiteral<"update">]>; status: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"applied">, Type.TLiteral<"rejected">, Type.TLiteral<"quarantined">, Type.TLiteral<"stale">]>; title: Type.TString; description: Type.TString; createdAt: Type.TString; updatedAt: Type.TString; createdBy: Type.TUnion<[Type.TLiteral<"skill-workshop">, Type.TLiteral<"cli">, Type.TLiteral<"gateway">]>; origin: Type.TOptional; sessionKey: Type.TOptional; runId: Type.TOptional; messageId: Type.TOptional; }>>; proposedVersion: Type.TString; draftFile: Type.TLiteral<"PROPOSAL.md">; draftHash: Type.TString; supportFiles: Type.TOptional; targetContentHash: Type.TOptional; }>>>; target: Type.TObject<{ skillName: Type.TString; skillKey: Type.TString; skillDir: Type.TString; skillFile: Type.TString; source: Type.TOptional; currentContentHash: Type.TOptional; }>; scan: Type.TObject<{ state: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"clean">, Type.TLiteral<"failed">, Type.TLiteral<"quarantined">]>; scannedAt: Type.TString; critical: Type.TInteger; warn: Type.TInteger; info: Type.TInteger; findings: Type.TArray, Type.TLiteral<"warn">, Type.TLiteral<"critical">]>; file: Type.TString; line: Type.TInteger; message: Type.TString; evidence: Type.TString; }>>; }>; goal: Type.TOptional; evidence: Type.TOptional; appliedAt: Type.TOptional; rejectedAt: Type.TOptional; quarantinedAt: Type.TOptional; staleAt: Type.TOptional; statusReason: Type.TOptional; }>; targetSkillFile: Type.TString; }>; /** Proposal record result returned after non-apply proposal actions. */ declare const SkillsProposalRecordResultSchema: Type.TObject<{ schema: Type.TLiteral<"openclaw.skill-workshop.proposal.v1">; id: Type.TString; kind: Type.TUnion<[Type.TLiteral<"create">, Type.TLiteral<"update">]>; status: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"applied">, Type.TLiteral<"rejected">, Type.TLiteral<"quarantined">, Type.TLiteral<"stale">]>; title: Type.TString; description: Type.TString; createdAt: Type.TString; updatedAt: Type.TString; createdBy: Type.TUnion<[Type.TLiteral<"skill-workshop">, Type.TLiteral<"cli">, Type.TLiteral<"gateway">]>; origin: Type.TOptional; sessionKey: Type.TOptional; runId: Type.TOptional; messageId: Type.TOptional; }>>; proposedVersion: Type.TString; draftFile: Type.TLiteral<"PROPOSAL.md">; draftHash: Type.TString; supportFiles: Type.TOptional; targetContentHash: Type.TOptional; }>>>; target: Type.TObject<{ skillName: Type.TString; skillKey: Type.TString; skillDir: Type.TString; skillFile: Type.TString; source: Type.TOptional; currentContentHash: Type.TOptional; }>; scan: Type.TObject<{ state: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"clean">, Type.TLiteral<"failed">, Type.TLiteral<"quarantined">]>; scannedAt: Type.TString; critical: Type.TInteger; warn: Type.TInteger; info: Type.TInteger; findings: Type.TArray, Type.TLiteral<"warn">, Type.TLiteral<"critical">]>; file: Type.TString; line: Type.TInteger; message: Type.TString; evidence: Type.TString; }>>; }>; goal: Type.TOptional; evidence: Type.TOptional; appliedAt: Type.TOptional; rejectedAt: Type.TOptional; quarantinedAt: Type.TOptional; staleAt: Type.TOptional; statusReason: Type.TOptional; }>; /** Reads persisted skill lifecycle curation state. */ declare const SkillsCuratorStatusParamsSchema: Type.TObject<{}>; declare const SkillsCuratorStatusResultSchema: Type.TObject<{ lastAttemptAtMs: Type.TUnion<[Type.TNumber, Type.TNull]>; lastSuccessAtMs: Type.TUnion<[Type.TNumber, Type.TNull]>; lastError: Type.TUnion<[Type.TString, Type.TNull]>; counts: Type.TObject<{ active: Type.TNumber; stale: Type.TNumber; archived: Type.TNumber; }>; skills: Type.TArray, Type.TLiteral<"stale">, Type.TLiteral<"archived">]>; pinned: Type.TBoolean; createdAtMs: Type.TNumber; stateChangedAtMs: Type.TNumber; lastUsedAtMs: Type.TUnion<[Type.TNumber, Type.TNull]>; useCount: Type.TNumber; archivedReason: Type.TUnion<[Type.TString, Type.TNull]>; }>>; overlaps: Type.TArray>; }>; /** Pins, unpins, or explicitly restores one curated skill. */ declare const SkillsCuratorActionParamsSchema: Type.TObject<{ skill: Type.TString; }>; declare const SkillsCuratorActionResultSchema: Type.TObject<{ skillFile: Type.TString; skillKey: Type.TString; skillName: Type.TString; state: Type.TUnion<[Type.TLiteral<"active">, Type.TLiteral<"stale">, Type.TLiteral<"archived">]>; pinned: Type.TBoolean; createdAtMs: Type.TNumber; stateChangedAtMs: Type.TNumber; lastUsedAtMs: Type.TUnion<[Type.TNumber, Type.TNull]>; useCount: Type.TNumber; archivedReason: Type.TUnion<[Type.TString, Type.TNull]>; }>; /** Reads the configured tool catalog for an agent. */ declare const ToolsCatalogParamsSchema: Type.TObject<{ agentId: Type.TOptional; includePlugins: Type.TOptional; }>; /** Reads the effective tool set for one session. */ declare const ToolsEffectiveParamsSchema: Type.TObject<{ agentId: Type.TOptional; sessionKey: Type.TString; }>; /** Invokes one tool through the gateway tool dispatcher. */ declare const ToolsInvokeParamsSchema: Type.TObject<{ name: Type.TString; args: Type.TOptional>; sessionKey: Type.TOptional; agentId: Type.TOptional; confirm: Type.TOptional; idempotencyKey: Type.TOptional; }>; //#endregion //#region packages/gateway-protocol/src/schema/agents-workspace.d.ts /** * Read-only agent workspace browsing schemas. * * These contracts back the workspace file browser in operator clients * (mobile apps, Control UI). The surface is intentionally read-only: * write/delete/upload stay out of this namespace until a separately * reviewed mutation contract exists. */ /** One file or folder in an agent workspace directory listing. */ declare const AgentsWorkspaceEntrySchema: Type.TObject<{ path: Type.TString; name: Type.TString; kind: Type.TUnion<[Type.TLiteral<"file">, Type.TLiteral<"directory">]>; size: Type.TOptional; updatedAtMs: Type.TOptional; }>; /** Lists one directory of an agent workspace. */ declare const AgentsWorkspaceListParamsSchema: Type.TObject<{ agentId: Type.TString; path: Type.TOptional; offset: Type.TOptional; limit: Type.TOptional; }>; /** Paginated directory listing rooted at the agent workspace. */ declare const AgentsWorkspaceListResultSchema: Type.TObject<{ agentId: Type.TString; path: Type.TString; parentPath: Type.TOptional; entries: Type.TArray, Type.TLiteral<"directory">]>; size: Type.TOptional; updatedAtMs: Type.TOptional; }>>; totalEntries: Type.TInteger; offset: Type.TInteger; }>; /** One workspace file preview payload (UTF-8 text or base64 image). */ declare const AgentsWorkspaceFileSchema: Type.TObject<{ path: Type.TString; name: Type.TString; size: Type.TInteger; updatedAtMs: Type.TInteger; mimeType: Type.TString; encoding: Type.TUnion<[Type.TLiteral<"utf8">, Type.TLiteral<"base64">]>; content: Type.TString; }>; /** Reads one workspace file by workspace-relative path. */ declare const AgentsWorkspaceGetParamsSchema: Type.TObject<{ agentId: Type.TString; path: Type.TString; }>; /** Result for reading one workspace file. */ declare const AgentsWorkspaceGetResultSchema: Type.TObject<{ agentId: Type.TString; file: Type.TObject<{ path: Type.TString; name: Type.TString; size: Type.TInteger; updatedAtMs: Type.TInteger; mimeType: Type.TString; encoding: Type.TUnion<[Type.TLiteral<"utf8">, Type.TLiteral<"base64">]>; content: Type.TString; }>; }>; //#endregion //#region packages/gateway-protocol/src/schema/artifacts.d.ts /** Public artifact metadata returned before or alongside download data. */ declare const ArtifactSummarySchema: Type.TObject<{ id: Type.TString; type: Type.TString; title: Type.TString; mimeType: Type.TOptional; sizeBytes: Type.TOptional; sessionKey: Type.TOptional; runId: Type.TOptional; taskId: Type.TOptional; messageSeq: Type.TOptional; source: Type.TOptional; download: Type.TObject<{ mode: Type.TUnion<[Type.TLiteral<"bytes">, Type.TLiteral<"url">, Type.TLiteral<"unsupported">]>; }>; }>; /** List request payload for artifacts visible in the selected scope. */ declare const ArtifactsListParamsSchema: Type.TObject<{ sessionKey: Type.TOptional; runId: Type.TOptional; taskId: Type.TOptional; agentId: Type.TOptional; }>; /** Get request payload for one artifact summary. */ declare const ArtifactsGetParamsSchema: Type.TObject<{ artifactId: Type.TString; sessionKey: Type.TOptional; runId: Type.TOptional; taskId: Type.TOptional; agentId: Type.TOptional; }>; /** Download request payload for one artifact. */ declare const ArtifactsDownloadParamsSchema: Type.TObject<{ artifactId: Type.TString; sessionKey: Type.TOptional; runId: Type.TOptional; taskId: Type.TOptional; agentId: Type.TOptional; }>; //#endregion //#region packages/gateway-protocol/src/schema/audit.d.ts /** One content-free run/tool audit record. */ declare const AuditEventSchema: Type.TObject<{ eventId: Type.TString; sequence: Type.TInteger; sourceSequence: Type.TInteger; occurredAt: Type.TInteger; kind: Type.TUnion<[Type.TLiteral<"agent_run">, Type.TLiteral<"tool_action">]>; action: Type.TUnion<[Type.TLiteral<"agent.run.started">, Type.TLiteral<"agent.run.finished">, Type.TLiteral<"tool.action.started">, Type.TLiteral<"tool.action.finished">]>; status: Type.TUnion<[Type.TLiteral<"started">, Type.TLiteral<"succeeded">, Type.TLiteral<"failed">, Type.TLiteral<"cancelled">, Type.TLiteral<"timed_out">, Type.TLiteral<"blocked">, Type.TLiteral<"unknown">]>; errorCode: Type.TOptional, Type.TLiteral<"run_cancelled">, Type.TLiteral<"run_timed_out">, Type.TLiteral<"run_blocked">, Type.TLiteral<"tool_failed">, Type.TLiteral<"tool_cancelled">, Type.TLiteral<"tool_timed_out">, Type.TLiteral<"tool_blocked">, Type.TLiteral<"tool_outcome_unknown">]>>; actor: Type.TObject<{ type: Type.TUnion<[Type.TLiteral<"agent">, Type.TLiteral<"system">]>; id: Type.TString; }>; agentId: Type.TString; sessionKey: Type.TOptional; sessionId: Type.TOptional; runId: Type.TString; toolCallId: Type.TOptional; toolName: Type.TOptional; redaction: Type.TLiteral<"metadata_only">; }>; /** Bounded newest-first audit query filters. */ declare const AuditListParamsSchema: Type.TObject<{ agentId: Type.TOptional; sessionKey: Type.TOptional; runId: Type.TOptional; kind: Type.TOptional, Type.TLiteral<"tool_action">]>>; status: Type.TOptional, Type.TLiteral<"succeeded">, Type.TLiteral<"failed">, Type.TLiteral<"cancelled">, Type.TLiteral<"timed_out">, Type.TLiteral<"blocked">, Type.TLiteral<"unknown">]>>; after: Type.TOptional; before: Type.TOptional; limit: Type.TOptional; cursor: Type.TOptional; }>; /** Stable sequence-cursor page suitable for bounded JSON export. */ declare const AuditListResultSchema: Type.TObject<{ events: Type.TArray, Type.TLiteral<"tool_action">]>; action: Type.TUnion<[Type.TLiteral<"agent.run.started">, Type.TLiteral<"agent.run.finished">, Type.TLiteral<"tool.action.started">, Type.TLiteral<"tool.action.finished">]>; status: Type.TUnion<[Type.TLiteral<"started">, Type.TLiteral<"succeeded">, Type.TLiteral<"failed">, Type.TLiteral<"cancelled">, Type.TLiteral<"timed_out">, Type.TLiteral<"blocked">, Type.TLiteral<"unknown">]>; errorCode: Type.TOptional, Type.TLiteral<"run_cancelled">, Type.TLiteral<"run_timed_out">, Type.TLiteral<"run_blocked">, Type.TLiteral<"tool_failed">, Type.TLiteral<"tool_cancelled">, Type.TLiteral<"tool_timed_out">, Type.TLiteral<"tool_blocked">, Type.TLiteral<"tool_outcome_unknown">]>>; actor: Type.TObject<{ type: Type.TUnion<[Type.TLiteral<"agent">, Type.TLiteral<"system">]>; id: Type.TString; }>; agentId: Type.TString; sessionKey: Type.TOptional; sessionId: Type.TOptional; runId: Type.TString; toolCallId: Type.TOptional; toolName: Type.TOptional; redaction: Type.TLiteral<"metadata_only">; }>>; nextCursor: Type.TOptional; }>; //#endregion //#region packages/gateway-protocol/src/schema/channels.d.ts /** Reads Talk configuration; secrets are included only for trusted callers. */ declare const TalkConfigParamsSchema: Type.TObject<{ includeSecrets: Type.TOptional; }>; /** One-shot text-to-speech request with provider-specific voice tuning knobs. */ declare const TalkSpeakParamsSchema: Type.TObject<{ text: Type.TString; voiceId: Type.TOptional; modelId: Type.TOptional; outputFormat: Type.TOptional; speed: Type.TOptional; rateWpm: Type.TOptional; stability: Type.TOptional; similarity: Type.TOptional; style: Type.TOptional; speakerBoost: Type.TOptional; seed: Type.TOptional; normalize: Type.TOptional; language: Type.TOptional; latencyTier: Type.TOptional; }>; /** * One-shot text-to-speech request rendered with the configured TTS provider * chain (unlike `talk.speak`, which pins the Talk-mode provider). */ declare const TtsSpeakParamsSchema: Type.TObject<{ text: Type.TString; }>; /** Canonical Talk event envelope emitted to browser, relay, and channel consumers. */ declare const TalkEventSchema: Type.TObject<{ id: Type.TString; type: Type.TUnion<[Type.TLiteral<"session.started">, Type.TLiteral<"session.ready">, Type.TLiteral<"session.closed">, Type.TLiteral<"session.error">, Type.TLiteral<"session.replaced">, Type.TLiteral<"turn.started">, Type.TLiteral<"turn.ended">, Type.TLiteral<"turn.cancelled">, Type.TLiteral<"capture.started">, Type.TLiteral<"capture.stopped">, Type.TLiteral<"capture.cancelled">, Type.TLiteral<"capture.once">, Type.TLiteral<"input.audio.delta">, Type.TLiteral<"input.audio.committed">, Type.TLiteral<"transcript.delta">, Type.TLiteral<"transcript.done">, Type.TLiteral<"output.text.delta">, Type.TLiteral<"output.text.done">, Type.TLiteral<"output.audio.started">, Type.TLiteral<"output.audio.delta">, Type.TLiteral<"output.audio.done">, Type.TLiteral<"tool.call">, Type.TLiteral<"tool.progress">, Type.TLiteral<"tool.result">, Type.TLiteral<"tool.error">, Type.TLiteral<"usage.metrics">, Type.TLiteral<"latency.metrics">, Type.TLiteral<"health.changed">]>; sessionId: Type.TString; turnId: Type.TOptional; captureId: Type.TOptional; seq: Type.TInteger; timestamp: Type.TString; mode: Type.TUnion<[Type.TLiteral<"realtime">, Type.TLiteral<"stt-tts">, Type.TLiteral<"transcription">]>; transport: Type.TUnion<[Type.TLiteral<"webrtc">, Type.TLiteral<"provider-websocket">, Type.TLiteral<"gateway-relay">, Type.TLiteral<"managed-room">]>; brain: Type.TUnion<[Type.TLiteral<"agent-consult">, Type.TLiteral<"direct-tools">, Type.TLiteral<"none">]>; provider: Type.TOptional; final: Type.TOptional; callId: Type.TOptional; itemId: Type.TOptional; parentId: Type.TOptional; payload: Type.TUnknown; }>; /** Creates a browser-facing Talk client session. */ declare const TalkClientCreateParamsSchema: Type.TObject<{ sessionKey: Type.TOptional; provider: Type.TOptional; model: Type.TOptional; voice: Type.TOptional; vadThreshold: Type.TOptional; silenceDurationMs: Type.TOptional; prefixPaddingMs: Type.TOptional; reasoningEffort: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"stt-tts">, Type.TLiteral<"transcription">]>>; transport: Type.TOptional, Type.TLiteral<"provider-websocket">, Type.TLiteral<"gateway-relay">, Type.TLiteral<"managed-room">]>>; brain: Type.TOptional, Type.TLiteral<"direct-tools">, Type.TLiteral<"none">]>>; }>; /** Tool-call request from a browser/client session back into the agent runtime. */ declare const TalkClientToolCallParamsSchema: Type.TObject<{ sessionKey: Type.TString; callId: Type.TString; name: Type.TString; args: Type.TOptional; relaySessionId: Type.TOptional; }>; /** Agent run identity returned after accepting a Talk client tool call. */ declare const TalkClientToolCallResultSchema: Type.TObject<{ runId: Type.TString; idempotencyKey: Type.TString; }>; /** Text steering request for a Talk session bound to an agent turn. */ declare const TalkClientSteerParamsSchema: Type.TObject<{ sessionKey: Type.TString; text: Type.TString; mode: Type.TOptional, Type.TLiteral<"steer">, Type.TLiteral<"cancel">, Type.TLiteral<"followup">]>>; }>; /** Result of applying agent control to an embedded or reply-backed Talk run. */ declare const TalkAgentControlResultSchema: Type.TObject<{ ok: Type.TBoolean; mode: Type.TUnion<[Type.TLiteral<"status">, Type.TLiteral<"steer">, Type.TLiteral<"cancel">, Type.TLiteral<"followup">]>; sessionKey: Type.TString; sessionId: Type.TOptional; active: Type.TBoolean; queued: Type.TOptional; aborted: Type.TOptional; target: Type.TOptional, Type.TLiteral<"reply_run">]>>; reason: Type.TOptional; message: Type.TString; speak: Type.TBoolean; show: Type.TBoolean; suppress: Type.TBoolean; providerResult: Type.TOptional; message: Type.TString; }>>; enqueuedAtMs: Type.TOptional; deliveredAtMs: Type.TOptional; }>; /** Joins an existing managed-room Talk session. */ declare const TalkSessionJoinParamsSchema: Type.TObject<{ sessionId: Type.TString; token: Type.TString; }>; /** Creates a gateway-managed Talk session for realtime, transcription, or relay use. */ declare const TalkSessionCreateParamsSchema: Type.TObject<{ sessionKey: Type.TOptional; spawnedBy: Type.TOptional; provider: Type.TOptional; model: Type.TOptional; voice: Type.TOptional; vadThreshold: Type.TOptional; silenceDurationMs: Type.TOptional; prefixPaddingMs: Type.TOptional; reasoningEffort: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"stt-tts">, Type.TLiteral<"transcription">]>>; transport: Type.TOptional, Type.TLiteral<"provider-websocket">, Type.TLiteral<"gateway-relay">, Type.TLiteral<"managed-room">]>>; brain: Type.TOptional, Type.TLiteral<"direct-tools">, Type.TLiteral<"none">]>>; ttlMs: Type.TOptional; }>; /** Appends base64 audio to an active Talk session. */ declare const TalkSessionAppendAudioParamsSchema: Type.TObject<{ sessionId: Type.TString; audioBase64: Type.TString; timestamp: Type.TOptional; }>; /** Starts or advances a Talk turn within a session. */ declare const TalkSessionTurnParamsSchema: Type.TObject<{ sessionId: Type.TString; turnId: Type.TOptional; }>; /** Cancels the active or named Talk turn. */ declare const TalkSessionCancelTurnParamsSchema: Type.TObject<{ sessionId: Type.TString; turnId: Type.TOptional; reason: Type.TOptional; }>; /** Cancels currently streaming Talk output without necessarily ending the turn. */ declare const TalkSessionCancelOutputParamsSchema: Type.TObject<{ sessionId: Type.TString; turnId: Type.TOptional; reason: Type.TOptional; }>; /** Submits a tool result back to a Talk provider session. */ declare const TalkSessionSubmitToolResultParamsSchema: Type.TObject<{ sessionId: Type.TString; callId: Type.TString; result: Type.TUnknown; options: Type.TOptional; willContinue: Type.TOptional; }>>; }>; /** Steers a managed Talk session by session id rather than transcript key. */ declare const TalkSessionSteerParamsSchema: Type.TObject<{ sessionId: Type.TString; sessionKey: Type.TOptional; text: Type.TString; mode: Type.TOptional, Type.TLiteral<"steer">, Type.TLiteral<"cancel">, Type.TLiteral<"followup">]>>; }>; /** Closes a gateway-managed Talk session. */ declare const TalkSessionCloseParamsSchema: Type.TObject<{ sessionId: Type.TString; }>; /** Empty request payload for reading configured Talk provider capabilities. */ declare const TalkCatalogParamsSchema: Type.TObject<{}>; /** Provider, mode, transport, and audio-format catalog returned to clients. */ declare const TalkCatalogResultSchema: Type.TObject<{ modes: Type.TArray, Type.TLiteral<"stt-tts">, Type.TLiteral<"transcription">]>>; transports: Type.TArray, Type.TLiteral<"provider-websocket">, Type.TLiteral<"gateway-relay">, Type.TLiteral<"managed-room">]>>; brains: Type.TArray, Type.TLiteral<"direct-tools">, Type.TLiteral<"none">]>>; speech: Type.TObject<{ ready: Type.TOptional; activeProvider: Type.TOptional; providers: Type.TArray>; models: Type.TOptional>; voices: Type.TOptional>; defaultModel: Type.TOptional; modes: Type.TOptional, Type.TLiteral<"stt-tts">, Type.TLiteral<"transcription">]>>>; transports: Type.TOptional, Type.TLiteral<"provider-websocket">, Type.TLiteral<"gateway-relay">, Type.TLiteral<"managed-room">]>>>; brains: Type.TOptional, Type.TLiteral<"direct-tools">, Type.TLiteral<"none">]>>>; inputAudioFormats: Type.TOptional, Type.TLiteral<"g711_ulaw">]>; sampleRateHz: Type.TInteger; channels: Type.TInteger; }>>>; outputAudioFormats: Type.TOptional, Type.TLiteral<"g711_ulaw">]>; sampleRateHz: Type.TInteger; channels: Type.TInteger; }>>>; supportsBrowserSession: Type.TOptional; supportsBargeIn: Type.TOptional; supportsToolCalls: Type.TOptional; supportsVideoFrames: Type.TOptional; supportsSessionResumption: Type.TOptional; }>>; }>; transcription: Type.TObject<{ ready: Type.TOptional; activeProvider: Type.TOptional; providers: Type.TArray>; models: Type.TOptional>; voices: Type.TOptional>; defaultModel: Type.TOptional; modes: Type.TOptional, Type.TLiteral<"stt-tts">, Type.TLiteral<"transcription">]>>>; transports: Type.TOptional, Type.TLiteral<"provider-websocket">, Type.TLiteral<"gateway-relay">, Type.TLiteral<"managed-room">]>>>; brains: Type.TOptional, Type.TLiteral<"direct-tools">, Type.TLiteral<"none">]>>>; inputAudioFormats: Type.TOptional, Type.TLiteral<"g711_ulaw">]>; sampleRateHz: Type.TInteger; channels: Type.TInteger; }>>>; outputAudioFormats: Type.TOptional, Type.TLiteral<"g711_ulaw">]>; sampleRateHz: Type.TInteger; channels: Type.TInteger; }>>>; supportsBrowserSession: Type.TOptional; supportsBargeIn: Type.TOptional; supportsToolCalls: Type.TOptional; supportsVideoFrames: Type.TOptional; supportsSessionResumption: Type.TOptional; }>>; }>; realtime: Type.TObject<{ ready: Type.TOptional; activeProvider: Type.TOptional; providers: Type.TArray>; models: Type.TOptional>; voices: Type.TOptional>; defaultModel: Type.TOptional; modes: Type.TOptional, Type.TLiteral<"stt-tts">, Type.TLiteral<"transcription">]>>>; transports: Type.TOptional, Type.TLiteral<"provider-websocket">, Type.TLiteral<"gateway-relay">, Type.TLiteral<"managed-room">]>>>; brains: Type.TOptional, Type.TLiteral<"direct-tools">, Type.TLiteral<"none">]>>>; inputAudioFormats: Type.TOptional, Type.TLiteral<"g711_ulaw">]>; sampleRateHz: Type.TInteger; channels: Type.TInteger; }>>>; outputAudioFormats: Type.TOptional, Type.TLiteral<"g711_ulaw">]>; sampleRateHz: Type.TInteger; channels: Type.TInteger; }>>>; supportsBrowserSession: Type.TOptional; supportsBargeIn: Type.TOptional; supportsToolCalls: Type.TOptional; supportsVideoFrames: Type.TOptional; supportsSessionResumption: Type.TOptional; }>>; }>; }>; /** Session creation result with transport-specific ids and credentials. */ declare const TalkSessionCreateResultSchema: Type.TObject<{ sessionId: Type.TString; provider: Type.TOptional; mode: Type.TUnion<[Type.TLiteral<"realtime">, Type.TLiteral<"stt-tts">, Type.TLiteral<"transcription">]>; transport: Type.TUnion<[Type.TLiteral<"webrtc">, Type.TLiteral<"provider-websocket">, Type.TLiteral<"gateway-relay">, Type.TLiteral<"managed-room">]>; brain: Type.TUnion<[Type.TLiteral<"agent-consult">, Type.TLiteral<"direct-tools">, Type.TLiteral<"none">]>; relaySessionId: Type.TOptional; transcriptionSessionId: Type.TOptional; handoffId: Type.TOptional; roomId: Type.TOptional; roomUrl: Type.TOptional; token: Type.TOptional; audio: Type.TOptional; model: Type.TOptional; voice: Type.TOptional; expiresAt: Type.TOptional; }>; /** Result for a Talk turn request, optionally including emitted events. */ declare const TalkSessionTurnResultSchema: Type.TObject<{ ok: Type.TBoolean; turnId: Type.TOptional; events: Type.TOptional, Type.TLiteral<"session.ready">, Type.TLiteral<"session.closed">, Type.TLiteral<"session.error">, Type.TLiteral<"session.replaced">, Type.TLiteral<"turn.started">, Type.TLiteral<"turn.ended">, Type.TLiteral<"turn.cancelled">, Type.TLiteral<"capture.started">, Type.TLiteral<"capture.stopped">, Type.TLiteral<"capture.cancelled">, Type.TLiteral<"capture.once">, Type.TLiteral<"input.audio.delta">, Type.TLiteral<"input.audio.committed">, Type.TLiteral<"transcript.delta">, Type.TLiteral<"transcript.done">, Type.TLiteral<"output.text.delta">, Type.TLiteral<"output.text.done">, Type.TLiteral<"output.audio.started">, Type.TLiteral<"output.audio.delta">, Type.TLiteral<"output.audio.done">, Type.TLiteral<"tool.call">, Type.TLiteral<"tool.progress">, Type.TLiteral<"tool.result">, Type.TLiteral<"tool.error">, Type.TLiteral<"usage.metrics">, Type.TLiteral<"latency.metrics">, Type.TLiteral<"health.changed">]>; sessionId: Type.TString; turnId: Type.TOptional; captureId: Type.TOptional; seq: Type.TInteger; timestamp: Type.TString; mode: Type.TUnion<[Type.TLiteral<"realtime">, Type.TLiteral<"stt-tts">, Type.TLiteral<"transcription">]>; transport: Type.TUnion<[Type.TLiteral<"webrtc">, Type.TLiteral<"provider-websocket">, Type.TLiteral<"gateway-relay">, Type.TLiteral<"managed-room">]>; brain: Type.TUnion<[Type.TLiteral<"agent-consult">, Type.TLiteral<"direct-tools">, Type.TLiteral<"none">]>; provider: Type.TOptional; final: Type.TOptional; callId: Type.TOptional; itemId: Type.TOptional; parentId: Type.TOptional; payload: Type.TUnknown; }>>>; }>; /** Managed-room record returned to clients after joining an existing Talk session. */ declare const TalkSessionJoinResultSchema: Type.TObject<{ id: Type.TString; roomId: Type.TString; roomUrl: Type.TString; sessionKey: Type.TString; sessionId: Type.TOptional; channel: Type.TOptional; target: Type.TOptional; provider: Type.TOptional; model: Type.TOptional; voice: Type.TOptional; mode: Type.TUnion<[Type.TLiteral<"realtime">, Type.TLiteral<"stt-tts">, Type.TLiteral<"transcription">]>; transport: Type.TUnion<[Type.TLiteral<"webrtc">, Type.TLiteral<"provider-websocket">, Type.TLiteral<"gateway-relay">, Type.TLiteral<"managed-room">]>; brain: Type.TUnion<[Type.TLiteral<"agent-consult">, Type.TLiteral<"direct-tools">, Type.TLiteral<"none">]>; createdAt: Type.TNumber; expiresAt: Type.TNumber; room: Type.TObject<{ activeClientId: Type.TOptional; activeTurnId: Type.TOptional; recentTalkEvents: Type.TArray, Type.TLiteral<"session.ready">, Type.TLiteral<"session.closed">, Type.TLiteral<"session.error">, Type.TLiteral<"session.replaced">, Type.TLiteral<"turn.started">, Type.TLiteral<"turn.ended">, Type.TLiteral<"turn.cancelled">, Type.TLiteral<"capture.started">, Type.TLiteral<"capture.stopped">, Type.TLiteral<"capture.cancelled">, Type.TLiteral<"capture.once">, Type.TLiteral<"input.audio.delta">, Type.TLiteral<"input.audio.committed">, Type.TLiteral<"transcript.delta">, Type.TLiteral<"transcript.done">, Type.TLiteral<"output.text.delta">, Type.TLiteral<"output.text.done">, Type.TLiteral<"output.audio.started">, Type.TLiteral<"output.audio.delta">, Type.TLiteral<"output.audio.done">, Type.TLiteral<"tool.call">, Type.TLiteral<"tool.progress">, Type.TLiteral<"tool.result">, Type.TLiteral<"tool.error">, Type.TLiteral<"usage.metrics">, Type.TLiteral<"latency.metrics">, Type.TLiteral<"health.changed">]>; sessionId: Type.TString; turnId: Type.TOptional; captureId: Type.TOptional; seq: Type.TInteger; timestamp: Type.TString; mode: Type.TUnion<[Type.TLiteral<"realtime">, Type.TLiteral<"stt-tts">, Type.TLiteral<"transcription">]>; transport: Type.TUnion<[Type.TLiteral<"webrtc">, Type.TLiteral<"provider-websocket">, Type.TLiteral<"gateway-relay">, Type.TLiteral<"managed-room">]>; brain: Type.TUnion<[Type.TLiteral<"agent-consult">, Type.TLiteral<"direct-tools">, Type.TLiteral<"none">]>; provider: Type.TOptional; final: Type.TOptional; callId: Type.TOptional; itemId: Type.TOptional; parentId: Type.TOptional; payload: Type.TUnknown; }>>; }>; }>; /** Generic success result for Talk session lifecycle calls. */ declare const TalkSessionOkResultSchema: Type.TObject<{ ok: Type.TBoolean; }>; /** Union of all browser Talk session setup payloads. */ declare const TalkClientCreateResultSchema: Type.TUnion<[Type.TObject<{ provider: Type.TString; transport: Type.TLiteral<"webrtc">; clientSecret: Type.TString; offerUrl: Type.TOptional; offerHeaders: Type.TOptional>; model: Type.TOptional; voice: Type.TOptional; expiresAt: Type.TOptional; }>, Type.TObject<{ provider: Type.TString; transport: Type.TLiteral<"provider-websocket">; protocol: Type.TString; clientSecret: Type.TString; websocketUrl: Type.TString; audio: Type.TObject<{ inputEncoding: Type.TUnion<[Type.TLiteral<"pcm16">, Type.TLiteral<"g711_ulaw">]>; inputSampleRateHz: Type.TInteger; outputEncoding: Type.TUnion<[Type.TLiteral<"pcm16">, Type.TLiteral<"g711_ulaw">]>; outputSampleRateHz: Type.TInteger; }>; initialMessage: Type.TOptional; model: Type.TOptional; voice: Type.TOptional; expiresAt: Type.TOptional; }>, Type.TObject<{ provider: Type.TString; transport: Type.TLiteral<"gateway-relay">; relaySessionId: Type.TString; audio: Type.TObject<{ inputEncoding: Type.TUnion<[Type.TLiteral<"pcm16">, Type.TLiteral<"g711_ulaw">]>; inputSampleRateHz: Type.TInteger; outputEncoding: Type.TUnion<[Type.TLiteral<"pcm16">, Type.TLiteral<"g711_ulaw">]>; outputSampleRateHz: Type.TInteger; }>; model: Type.TOptional; voice: Type.TOptional; expiresAt: Type.TOptional; }>, Type.TObject<{ provider: Type.TString; transport: Type.TLiteral<"managed-room">; roomUrl: Type.TString; token: Type.TOptional; model: Type.TOptional; voice: Type.TOptional; expiresAt: Type.TOptional; }>]>; /** Full Talk config read result, including related session/UI context. */ declare const TalkConfigResultSchema: Type.TObject<{ config: Type.TObject<{ talk: Type.TOptional; providers: Type.TOptional; provider: Type.TString; id: Type.TString; }>, Type.TObject<{ source: Type.TLiteral<"file">; provider: Type.TString; id: Type.TUnsafe; }>, Type.TObject<{ source: Type.TLiteral<"exec">; provider: Type.TString; id: Type.TString; }>]>]>>; }>>>; realtime: Type.TOptional; providers: Type.TOptional; provider: Type.TString; id: Type.TString; }>, Type.TObject<{ source: Type.TLiteral<"file">; provider: Type.TString; id: Type.TUnsafe; }>, Type.TObject<{ source: Type.TLiteral<"exec">; provider: Type.TString; id: Type.TString; }>]>]>>; }>>>; model: Type.TOptional; speakerVoice: Type.TOptional; speakerVoiceId: Type.TOptional; voice: Type.TOptional; instructions: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"stt-tts">, Type.TLiteral<"transcription">]>>; transport: Type.TOptional, Type.TLiteral<"provider-websocket">, Type.TLiteral<"gateway-relay">, Type.TLiteral<"managed-room">]>>; vadThreshold: Type.TOptional; silenceDurationMs: Type.TOptional; prefixPaddingMs: Type.TOptional; reasoningEffort: Type.TOptional; brain: Type.TOptional, Type.TLiteral<"direct-tools">, Type.TLiteral<"none">]>>; consultRouting: Type.TOptional, Type.TLiteral<"force-agent-consult">]>>; }>>; resolved: Type.TOptional; provider: Type.TString; id: Type.TString; }>, Type.TObject<{ source: Type.TLiteral<"file">; provider: Type.TString; id: Type.TUnsafe; }>, Type.TObject<{ source: Type.TLiteral<"exec">; provider: Type.TString; id: Type.TString; }>]>]>>; }>; }>>; consultThinkingLevel: Type.TOptional; consultFastMode: Type.TOptional; speechLocale: Type.TOptional; interruptOnSpeech: Type.TOptional; silenceTimeoutMs: Type.TOptional; }>>; session: Type.TOptional; }>>; ui: Type.TOptional; }>>; }>; }>; /** Text-to-speech result with encoded audio and provider output metadata. */ declare const TalkSpeakResultSchema: Type.TObject<{ audioBase64: Type.TString; provider: Type.TString; outputFormat: Type.TOptional; voiceCompatible: Type.TOptional; mimeType: Type.TOptional; fileExtension: Type.TOptional; }>; /** Text-to-speech result for `tts.speak` with encoded audio and provider metadata. */ declare const TtsSpeakResultSchema: Type.TObject<{ audioBase64: Type.TString; provider: Type.TString; outputFormat: Type.TOptional; mimeType: Type.TOptional; fileExtension: Type.TOptional; }>; /** Channel status request, optionally probing one channel before returning. */ declare const ChannelsStatusParamsSchema: Type.TObject<{ probe: Type.TOptional; timeoutMs: Type.TOptional; channel: Type.TOptional; }>; /** Full channel status result for dashboard and operator diagnostics. */ declare const ChannelsStatusResultSchema: Type.TObject<{ ts: Type.TInteger; channelOrder: Type.TArray; channelLabels: Type.TRecord<"^.*$", Type.TString>; channelDetailLabels: Type.TOptional>; channelSystemImages: Type.TOptional>; channelMeta: Type.TOptional; }>>>; channels: Type.TRecord<"^.*$", Type.TUnknown>; channelAccounts: Type.TRecord<"^.*$", Type.TArray; enabled: Type.TOptional; configured: Type.TOptional; linked: Type.TOptional; running: Type.TOptional; connected: Type.TOptional; reconnectAttempts: Type.TOptional; lastConnectedAt: Type.TOptional; lastError: Type.TOptional; healthState: Type.TOptional; lastStartAt: Type.TOptional; lastStopAt: Type.TOptional; lastInboundAt: Type.TOptional; lastOutboundAt: Type.TOptional; lastTransportActivityAt: Type.TOptional; busy: Type.TOptional; activeRuns: Type.TOptional; lastRunActivityAt: Type.TOptional; lastProbeAt: Type.TOptional; mode: Type.TOptional; dmPolicy: Type.TOptional; allowFrom: Type.TOptional>; tokenSource: Type.TOptional; botTokenSource: Type.TOptional; appTokenSource: Type.TOptional; baseUrl: Type.TOptional; allowUnmentionedGroups: Type.TOptional; cliPath: Type.TOptional>; dbPath: Type.TOptional>; port: Type.TOptional>; probe: Type.TOptional; audit: Type.TOptional; application: Type.TOptional; }>>>; channelDefaultAccountId: Type.TRecord<"^.*$", Type.TString>; eventLoop: Type.TOptional, Type.TLiteral<"event_loop_utilization">, Type.TLiteral<"cpu">]>>; intervalMs: Type.TInteger; delayP99Ms: Type.TNumber; delayMaxMs: Type.TNumber; utilization: Type.TNumber; cpuCoreRatio: Type.TNumber; }>>; partial: Type.TOptional; warnings: Type.TOptional>; }>; /** Logs out one channel account. */ declare const ChannelsLogoutParamsSchema: Type.TObject<{ channel: Type.TString; accountId: Type.TOptional; }>; /** Stops one channel account runtime. */ declare const ChannelsStopParamsSchema: Type.TObject<{ channel: Type.TString; accountId: Type.TOptional; }>; /** Starts one channel account runtime. */ declare const ChannelsStartParamsSchema: Type.TObject<{ channel: Type.TString; accountId: Type.TOptional; }>; /** Starts browser/web login for a channel account. */ declare const WebLoginStartParamsSchema: Type.TObject<{ force: Type.TOptional; timeoutMs: Type.TOptional; verbose: Type.TOptional; accountId: Type.TOptional; }>; /** Waits for web login completion or the next QR code. */ declare const WebLoginWaitParamsSchema: Type.TObject<{ timeoutMs: Type.TOptional; accountId: Type.TOptional; currentQrDataUrl: Type.TOptional; }>; //#endregion //#region packages/gateway-protocol/src/schema/commands.d.ts /** Command catalog request filters. */ declare const CommandsListParamsSchema: Type.TObject<{ agentId: Type.TOptional; provider: Type.TOptional; scope: Type.TOptional, Type.TLiteral<"native">, Type.TLiteral<"both">]>>; includeArgs: Type.TOptional; }>; /** Bounded command catalog response. */ declare const CommandsListResultSchema: Type.TObject<{ commands: Type.TArray; textAliases: Type.TOptional>; description: Type.TString; category: Type.TOptional, Type.TLiteral<"options">, Type.TLiteral<"status">, Type.TLiteral<"management">, Type.TLiteral<"media">, Type.TLiteral<"tools">, Type.TLiteral<"docks">]>>; source: Type.TUnion<[Type.TLiteral<"native">, Type.TLiteral<"skill">, Type.TLiteral<"plugin">]>; scope: Type.TUnion<[Type.TLiteral<"text">, Type.TLiteral<"native">, Type.TLiteral<"both">]>; acceptsArgs: Type.TBoolean; args: Type.TOptional, Type.TLiteral<"number">, Type.TLiteral<"boolean">]>; required: Type.TOptional; choices: Type.TOptional>>; dynamic: Type.TOptional; }>>>; }>>; }>; //#endregion //#region packages/gateway-protocol/src/schema/config.d.ts /** Empty request payload for reading the current raw config. */ declare const ConfigGetParamsSchema: Type.TObject<{}>; /** Full raw config replacement request with optional base hash guard. */ declare const ConfigSetParamsSchema: Type.TObject<{ raw: Type.TString; baseHash: Type.TOptional; }>; /** Raw config apply request that may schedule a restart. */ declare const ConfigApplyParamsSchema: Type.TObject<{ readonly raw: Type.TString; readonly baseHash: Type.TOptional; readonly sessionKey: Type.TOptional; readonly deliveryContext: Type.TOptional; to: Type.TOptional; accountId: Type.TOptional; threadId: Type.TOptional>; }>>; readonly note: Type.TOptional; readonly restartDelayMs: Type.TOptional; }>; /** Raw config patch request that may schedule a restart. */ declare const ConfigPatchParamsSchema: Type.TObject<{ replacePaths: Type.TOptional>; raw: Type.TString; baseHash: Type.TOptional; sessionKey: Type.TOptional; deliveryContext: Type.TOptional; to: Type.TOptional; accountId: Type.TOptional; threadId: Type.TOptional>; }>>; note: Type.TOptional; restartDelayMs: Type.TOptional; }>; /** Empty request payload for fetching the generated config schema. */ declare const ConfigSchemaParamsSchema: Type.TObject<{}>; /** Schema lookup request for one config path. */ declare const ConfigSchemaLookupParamsSchema: Type.TObject<{ path: Type.TString; }>; /** Empty request payload for checking update/restart status. */ declare const UpdateStatusParamsSchema: Type.TObject<{}>; /** Request payload for running an update/restart flow with optional channel delivery context. */ declare const UpdateRunParamsSchema: Type.TObject<{ sessionKey: Type.TOptional; deliveryContext: Type.TOptional; to: Type.TOptional; accountId: Type.TOptional; threadId: Type.TOptional>; }>>; note: Type.TOptional; continuationMessage: Type.TOptional; restartDelayMs: Type.TOptional; timeoutMs: Type.TOptional; }>; /** Full generated config schema response. */ declare const ConfigSchemaResponseSchema: Type.TObject<{ schema: Type.TUnknown; uiHints: Type.TRecord<"^.*$", Type.TObject<{ label: Type.TOptional; help: Type.TOptional; tags: Type.TOptional>; group: Type.TOptional; order: Type.TOptional; advanced: Type.TOptional; sensitive: Type.TOptional; placeholder: Type.TOptional; itemTemplate: Type.TOptional; }>>; version: Type.TString; generatedAt: Type.TString; }>; /** Schema lookup response for one config path and its immediate children. */ declare const ConfigSchemaLookupResultSchema: Type.TObject<{ path: Type.TString; schema: Type.TUnknown; reloadKind: Type.TOptional, Type.TLiteral<"hot">, Type.TLiteral<"none">]>>; hint: Type.TOptional; help: Type.TOptional; tags: Type.TOptional>; group: Type.TOptional; order: Type.TOptional; advanced: Type.TOptional; sensitive: Type.TOptional; placeholder: Type.TOptional; itemTemplate: Type.TOptional; }>>; hintPath: Type.TOptional; children: Type.TArray]>>; required: Type.TBoolean; hasChildren: Type.TBoolean; reloadKind: Type.TOptional, Type.TLiteral<"hot">, Type.TLiteral<"none">]>>; hint: Type.TOptional; help: Type.TOptional; tags: Type.TOptional>; group: Type.TOptional; order: Type.TOptional; advanced: Type.TOptional; sensitive: Type.TOptional; placeholder: Type.TOptional; itemTemplate: Type.TOptional; }>>; hintPath: Type.TOptional; }>>; }>; //#endregion //#region packages/gateway-protocol/src/schema/crestodian.d.ts /** * Crestodian chat lets clients (macOS app onboarding, future UIs) hold the * setup/repair conversation over the gateway. It is configless-safe: the * engine answers deterministically before any model is configured. Omitting * `message` returns the welcome/greeting for a fresh session without input. */ declare const CrestodianChatParamsSchema: Type.TObject<{ sessionId: Type.TString; message: Type.TOptional; /** "onboarding" seeds the first-run setup proposal in the greeting. */ welcomeVariant: Type.TOptional]>>; /** Drop any in-flight approval/wizard state and start the session over. */ reset: Type.TOptional; }>; /** One Crestodian reply; `action` tells clients about conversation handoffs. */ declare const CrestodianChatResultSchema: Type.TObject<{ sessionId: Type.TString; reply: Type.TString; /** The next reply is a hosted-wizard secret and clients must mask its input/echo. */ sensitive: Type.TOptional; action: Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"open-agent">, Type.TLiteral<"exit">]>; }>; /** * Structured first-run inference setup for GUI clients: detect reusable AI * access (CLI logins, env keys, existing config), then activate one choice. * Activation live-tests the candidate and persists it only on success, so a * client can walk the ladder candidate-by-candidate without ever leaving a * broken default model behind. */ declare const CrestodianSetupDetectParamsSchema: Type.TObject<{}>; declare const CrestodianSetupDetectResultSchema: Type.TObject<{ candidates: Type.TArray, Type.TLiteral<"openai-api-key">, Type.TLiteral<"anthropic-api-key">, Type.TLiteral<"claude-cli">, Type.TLiteral<"codex-cli">, Type.TLiteral<"gemini-cli">]>; label: Type.TString; detail: Type.TString; modelRef: Type.TString; recommended: Type.TBoolean; /** true: verified; false: definitively logged out; absent: unknown. */ credentials: Type.TOptional; }>>; /** Text-inference key/token methods exposed by the Gateway provider registry. */ manualProviders: Type.TArray; }>>; workspace: Type.TString; configuredModel: Type.TOptional; setupComplete: Type.TBoolean; }>; declare const CrestodianSetupActivateParamsSchema: Type.TObject<{ kind: Type.TUnion<[Type.TLiteral<"existing-model">, Type.TLiteral<"openai-api-key">, Type.TLiteral<"anthropic-api-key">, Type.TLiteral<"claude-cli">, Type.TLiteral<"codex-cli">, Type.TLiteral<"gemini-cli">, Type.TLiteral<"api-key">]>; /** Manual step only: opaque provider-auth choice returned by detection. */ authChoice: Type.TOptional; /** Manual step only: the pasted API key or token; masked by clients, never echoed. */ apiKey: Type.TOptional; workspace: Type.TOptional; }>; declare const CrestodianSetupActivateResultSchema: Type.TObject<{ ok: Type.TBoolean; /** Present on success: the model ref that answered the live test. */ modelRef: Type.TOptional; latencyMs: Type.TOptional; /** Human-readable setup summary lines (workspace, model, gateway). */ lines: Type.TOptional>; /** Present on failure: coarse bucket for client copy + docs links. */ status: Type.TOptional, Type.TLiteral<"auth">, Type.TLiteral<"rate_limit">, Type.TLiteral<"billing">, Type.TLiteral<"timeout">, Type.TLiteral<"format">, Type.TLiteral<"unavailable">, Type.TLiteral<"unknown">]>>; error: Type.TOptional; }>; //#endregion //#region packages/gateway-protocol/src/schema/cron.d.ts /** Persisted cron job definition returned by scheduler list/get APIs. */ declare const CronJobSchema: Type.TObject<{ id: Type.TString; declarationKey: Type.TOptional; displayName: Type.TOptional; owner: Type.TOptional; sessionKey: Type.TOptional; }>>; agentId: Type.TOptional; sessionKey: Type.TOptional; name: Type.TString; description: Type.TOptional; enabled: Type.TBoolean; deleteAfterRun: Type.TOptional; createdAtMs: Type.TInteger; updatedAtMs: Type.TInteger; schedule: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"at">; at: Type.TString; }>, Type.TObject<{ kind: Type.TLiteral<"every">; everyMs: Type.TInteger; anchorMs: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"cron">; expr: Type.TString; tz: Type.TOptional; staggerMs: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"on-exit">; command: Type.TString; cwd: Type.TOptional; }>]>; trigger: Type.TOptional; }>>; sessionTarget: Type.TUnion<[Type.TLiteral<"main">, Type.TLiteral<"isolated">, Type.TLiteral<"current">, Type.TString]>; wakeMode: Type.TUnion<[Type.TLiteral<"next-heartbeat">, Type.TLiteral<"now">]>; payload: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"systemEvent">; text: Type.TString; }>, Type.TObject<{ kind: Type.TLiteral<"agentTurn">; message: Type.TSchema; model: Type.TOptional; fallbacks: Type.TOptional; thinking: Type.TOptional; timeoutSeconds: Type.TOptional; allowUnsafeExternalContent: Type.TOptional; lightContext: Type.TOptional; toolsAllow: Type.TOptional; toolsAllowIsDefault: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"command">; argv: Type.TSchema; cwd: Type.TOptional; env: Type.TOptional>; input: Type.TOptional; timeoutSeconds: Type.TOptional; noOutputTimeoutSeconds: Type.TOptional; outputMaxBytes: Type.TOptional; }>]>; delivery: Type.TOptional; channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"none">; }>, Type.TObject<{ completionDestination: Type.TOptional; to: Type.TString; }>>; to: Type.TOptional; channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"announce">; }>, Type.TObject<{ to: Type.TString; channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"webhook">; }>]>>; failureAlert: Type.TOptional, Type.TObject<{ after: Type.TOptional; channel: Type.TOptional, Type.TString]>>; to: Type.TOptional; cooldownMs: Type.TOptional; includeSkipped: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; accountId: Type.TOptional; }>]>>; state: Type.TObject<{ nextRunAtMs: Type.TOptional; runningAtMs: Type.TOptional; lastRunAtMs: Type.TOptional; lastRunStatus: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; lastStatus: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; lastError: Type.TOptional; lastDiagnostics: Type.TOptional; entries: Type.TArray, Type.TLiteral<"cron-setup">, Type.TLiteral<"model-preflight">, Type.TLiteral<"agent-run">, Type.TLiteral<"tool">, Type.TLiteral<"exec">, Type.TLiteral<"delivery">]>; severity: Type.TUnion<[Type.TLiteral<"info">, Type.TLiteral<"warn">, Type.TLiteral<"error">]>; message: Type.TString; toolName: Type.TOptional; exitCode: Type.TOptional>; truncated: Type.TOptional; }>>; }>>; lastDiagnosticSummary: Type.TOptional; lastErrorReason: Type.TOptional, Type.TLiteral<"auth_permanent">, Type.TLiteral<"format">, Type.TLiteral<"rate_limit">, Type.TLiteral<"overloaded">, Type.TLiteral<"billing">, Type.TLiteral<"server_error">, Type.TLiteral<"timeout">, Type.TLiteral<"context_overflow">, Type.TLiteral<"model_not_found">, Type.TLiteral<"session_expired">, Type.TLiteral<"empty_response">, Type.TLiteral<"no_error_details">, Type.TLiteral<"unclassified">, Type.TLiteral<"unknown">]>>; lastDurationMs: Type.TOptional; consecutiveErrors: Type.TOptional; consecutiveSkipped: Type.TOptional; lastDelivered: Type.TOptional; lastDeliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; lastDeliveryError: Type.TOptional; lastFailureNotificationDelivered: Type.TOptional; lastFailureNotificationDeliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; lastFailureNotificationDeliveryError: Type.TOptional; lastFailureAlertAtMs: Type.TOptional; lastTriggerEvalAtMs: Type.TOptional; triggerEvalCount: Type.TOptional; lastTriggerFireAtMs: Type.TOptional; triggerState: Type.TOptional; }>; nextRunAtMs: Type.TOptional; lastRunAtMs: Type.TOptional; lastRunStatus: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; lastRunError: Type.TOptional; lastDelivered: Type.TOptional; lastDeliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; lastDeliveryError: Type.TOptional; lastFailureNotificationDelivered: Type.TOptional; lastFailureNotificationDeliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; lastFailureNotificationDeliveryError: Type.TOptional; }>; /** Query params for listing cron jobs with filters and pagination. */ declare const CronListParamsSchema: Type.TObject<{ includeDisabled: Type.TOptional; limit: Type.TOptional; offset: Type.TOptional; query: Type.TOptional; enabled: Type.TOptional, Type.TLiteral<"enabled">, Type.TLiteral<"disabled">]>>; scheduleKind: Type.TOptional, Type.TLiteral<"at">, Type.TLiteral<"every">, Type.TLiteral<"cron">, Type.TLiteral<"on-exit">]>>; lastRunStatus: Type.TOptional, Type.TLiteral<"ok">, Type.TLiteral<"error">, Type.TLiteral<"skipped">, Type.TLiteral<"unknown">]>>; sortBy: Type.TOptional, Type.TLiteral<"updatedAtMs">, Type.TLiteral<"name">]>>; sortDir: Type.TOptional, Type.TLiteral<"desc">]>>; agentId: Type.TOptional; compact: Type.TOptional; }>; /** Empty request payload for scheduler status. */ declare const CronStatusParamsSchema: Type.TObject<{}>; /** Looks up a job by stable id or legacy jobId alias. */ declare const CronGetParamsSchema: Type.TUnion<[Type.TObject<{ id: Type.TString; }>, Type.TObject<{ jobId: Type.TString; }>]>; /** Creates a scheduled job with schedule, target, payload, and delivery policy. */ declare const CronAddParamsSchema: Type.TObject<{ schedule: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"at">; at: Type.TString; }>, Type.TObject<{ kind: Type.TLiteral<"every">; everyMs: Type.TInteger; anchorMs: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"cron">; expr: Type.TString; tz: Type.TOptional; staggerMs: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"on-exit">; command: Type.TString; cwd: Type.TOptional; }>]>; trigger: Type.TOptional; }>>; sessionTarget: Type.TUnion<[Type.TLiteral<"main">, Type.TLiteral<"isolated">, Type.TLiteral<"current">, Type.TString]>; wakeMode: Type.TUnion<[Type.TLiteral<"next-heartbeat">, Type.TLiteral<"now">]>; payload: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"systemEvent">; text: Type.TString; }>, Type.TObject<{ kind: Type.TLiteral<"agentTurn">; message: Type.TSchema; model: Type.TOptional; fallbacks: Type.TOptional; thinking: Type.TOptional; timeoutSeconds: Type.TOptional; allowUnsafeExternalContent: Type.TOptional; lightContext: Type.TOptional; toolsAllow: Type.TOptional; toolsAllowIsDefault: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"command">; argv: Type.TSchema; cwd: Type.TOptional; env: Type.TOptional>; input: Type.TOptional; timeoutSeconds: Type.TOptional; noOutputTimeoutSeconds: Type.TOptional; outputMaxBytes: Type.TOptional; }>]>; delivery: Type.TOptional; channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"none">; }>, Type.TObject<{ completionDestination: Type.TOptional; to: Type.TString; }>>; to: Type.TOptional; channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"announce">; }>, Type.TObject<{ to: Type.TString; channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"webhook">; }>]>>; failureAlert: Type.TOptional, Type.TObject<{ after: Type.TOptional; channel: Type.TOptional, Type.TString]>>; to: Type.TOptional; cooldownMs: Type.TOptional; includeSkipped: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; accountId: Type.TOptional; }>]>>; agentId: Type.TOptional>; sessionKey: Type.TOptional>; description: Type.TOptional; enabled: Type.TOptional; deleteAfterRun: Type.TOptional; name: Type.TString; declarationKey: Type.TOptional; displayName: Type.TOptional; owner: Type.TOptional; sessionKey: Type.TOptional; }>>; }>; /** Successful declaration-key convergence result. */ declare const CronDeclarativeAddResultSchema: Type.TObject<{ created: Type.TBoolean; updated: Type.TOptional; job: Type.TObject<{ id: Type.TString; declarationKey: Type.TOptional; displayName: Type.TOptional; owner: Type.TOptional; sessionKey: Type.TOptional; }>>; agentId: Type.TOptional; sessionKey: Type.TOptional; name: Type.TString; description: Type.TOptional; enabled: Type.TBoolean; deleteAfterRun: Type.TOptional; createdAtMs: Type.TInteger; updatedAtMs: Type.TInteger; schedule: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"at">; at: Type.TString; }>, Type.TObject<{ kind: Type.TLiteral<"every">; everyMs: Type.TInteger; anchorMs: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"cron">; expr: Type.TString; tz: Type.TOptional; staggerMs: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"on-exit">; command: Type.TString; cwd: Type.TOptional; }>]>; trigger: Type.TOptional; }>>; sessionTarget: Type.TUnion<[Type.TLiteral<"main">, Type.TLiteral<"isolated">, Type.TLiteral<"current">, Type.TString]>; wakeMode: Type.TUnion<[Type.TLiteral<"next-heartbeat">, Type.TLiteral<"now">]>; payload: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"systemEvent">; text: Type.TString; }>, Type.TObject<{ kind: Type.TLiteral<"agentTurn">; message: Type.TSchema; model: Type.TOptional; fallbacks: Type.TOptional; thinking: Type.TOptional; timeoutSeconds: Type.TOptional; allowUnsafeExternalContent: Type.TOptional; lightContext: Type.TOptional; toolsAllow: Type.TOptional; toolsAllowIsDefault: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"command">; argv: Type.TSchema; cwd: Type.TOptional; env: Type.TOptional>; input: Type.TOptional; timeoutSeconds: Type.TOptional; noOutputTimeoutSeconds: Type.TOptional; outputMaxBytes: Type.TOptional; }>]>; delivery: Type.TOptional; channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"none">; }>, Type.TObject<{ completionDestination: Type.TOptional; to: Type.TString; }>>; to: Type.TOptional; channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"announce">; }>, Type.TObject<{ to: Type.TString; channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"webhook">; }>]>>; failureAlert: Type.TOptional, Type.TObject<{ after: Type.TOptional; channel: Type.TOptional, Type.TString]>>; to: Type.TOptional; cooldownMs: Type.TOptional; includeSkipped: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; accountId: Type.TOptional; }>]>>; state: Type.TObject<{ nextRunAtMs: Type.TOptional; runningAtMs: Type.TOptional; lastRunAtMs: Type.TOptional; lastRunStatus: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; lastStatus: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; lastError: Type.TOptional; lastDiagnostics: Type.TOptional; entries: Type.TArray, Type.TLiteral<"cron-setup">, Type.TLiteral<"model-preflight">, Type.TLiteral<"agent-run">, Type.TLiteral<"tool">, Type.TLiteral<"exec">, Type.TLiteral<"delivery">]>; severity: Type.TUnion<[Type.TLiteral<"info">, Type.TLiteral<"warn">, Type.TLiteral<"error">]>; message: Type.TString; toolName: Type.TOptional; exitCode: Type.TOptional>; truncated: Type.TOptional; }>>; }>>; lastDiagnosticSummary: Type.TOptional; lastErrorReason: Type.TOptional, Type.TLiteral<"auth_permanent">, Type.TLiteral<"format">, Type.TLiteral<"rate_limit">, Type.TLiteral<"overloaded">, Type.TLiteral<"billing">, Type.TLiteral<"server_error">, Type.TLiteral<"timeout">, Type.TLiteral<"context_overflow">, Type.TLiteral<"model_not_found">, Type.TLiteral<"session_expired">, Type.TLiteral<"empty_response">, Type.TLiteral<"no_error_details">, Type.TLiteral<"unclassified">, Type.TLiteral<"unknown">]>>; lastDurationMs: Type.TOptional; consecutiveErrors: Type.TOptional; consecutiveSkipped: Type.TOptional; lastDelivered: Type.TOptional; lastDeliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; lastDeliveryError: Type.TOptional; lastFailureNotificationDelivered: Type.TOptional; lastFailureNotificationDeliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; lastFailureNotificationDeliveryError: Type.TOptional; lastFailureAlertAtMs: Type.TOptional; lastTriggerEvalAtMs: Type.TOptional; triggerEvalCount: Type.TOptional; lastTriggerFireAtMs: Type.TOptional; triggerState: Type.TOptional; }>; nextRunAtMs: Type.TOptional; lastRunAtMs: Type.TOptional; lastRunStatus: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; lastRunError: Type.TOptional; lastDelivered: Type.TOptional; lastDeliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; lastDeliveryError: Type.TOptional; lastFailureNotificationDelivered: Type.TOptional; lastFailureNotificationDeliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; lastFailureNotificationDeliveryError: Type.TOptional; }>; }>; /** Successful result from imperative create or declaration-key convergence. */ declare const CronAddResultSchema: Type.TUnion<[Type.TObject<{ id: Type.TString; declarationKey: Type.TOptional; displayName: Type.TOptional; owner: Type.TOptional; sessionKey: Type.TOptional; }>>; agentId: Type.TOptional; sessionKey: Type.TOptional; name: Type.TString; description: Type.TOptional; enabled: Type.TBoolean; deleteAfterRun: Type.TOptional; createdAtMs: Type.TInteger; updatedAtMs: Type.TInteger; schedule: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"at">; at: Type.TString; }>, Type.TObject<{ kind: Type.TLiteral<"every">; everyMs: Type.TInteger; anchorMs: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"cron">; expr: Type.TString; tz: Type.TOptional; staggerMs: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"on-exit">; command: Type.TString; cwd: Type.TOptional; }>]>; trigger: Type.TOptional; }>>; sessionTarget: Type.TUnion<[Type.TLiteral<"main">, Type.TLiteral<"isolated">, Type.TLiteral<"current">, Type.TString]>; wakeMode: Type.TUnion<[Type.TLiteral<"next-heartbeat">, Type.TLiteral<"now">]>; payload: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"systemEvent">; text: Type.TString; }>, Type.TObject<{ kind: Type.TLiteral<"agentTurn">; message: Type.TSchema; model: Type.TOptional; fallbacks: Type.TOptional; thinking: Type.TOptional; timeoutSeconds: Type.TOptional; allowUnsafeExternalContent: Type.TOptional; lightContext: Type.TOptional; toolsAllow: Type.TOptional; toolsAllowIsDefault: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"command">; argv: Type.TSchema; cwd: Type.TOptional; env: Type.TOptional>; input: Type.TOptional; timeoutSeconds: Type.TOptional; noOutputTimeoutSeconds: Type.TOptional; outputMaxBytes: Type.TOptional; }>]>; delivery: Type.TOptional; channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"none">; }>, Type.TObject<{ completionDestination: Type.TOptional; to: Type.TString; }>>; to: Type.TOptional; channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"announce">; }>, Type.TObject<{ to: Type.TString; channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"webhook">; }>]>>; failureAlert: Type.TOptional, Type.TObject<{ after: Type.TOptional; channel: Type.TOptional, Type.TString]>>; to: Type.TOptional; cooldownMs: Type.TOptional; includeSkipped: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; accountId: Type.TOptional; }>]>>; state: Type.TObject<{ nextRunAtMs: Type.TOptional; runningAtMs: Type.TOptional; lastRunAtMs: Type.TOptional; lastRunStatus: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; lastStatus: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; lastError: Type.TOptional; lastDiagnostics: Type.TOptional; entries: Type.TArray, Type.TLiteral<"cron-setup">, Type.TLiteral<"model-preflight">, Type.TLiteral<"agent-run">, Type.TLiteral<"tool">, Type.TLiteral<"exec">, Type.TLiteral<"delivery">]>; severity: Type.TUnion<[Type.TLiteral<"info">, Type.TLiteral<"warn">, Type.TLiteral<"error">]>; message: Type.TString; toolName: Type.TOptional; exitCode: Type.TOptional>; truncated: Type.TOptional; }>>; }>>; lastDiagnosticSummary: Type.TOptional; lastErrorReason: Type.TOptional, Type.TLiteral<"auth_permanent">, Type.TLiteral<"format">, Type.TLiteral<"rate_limit">, Type.TLiteral<"overloaded">, Type.TLiteral<"billing">, Type.TLiteral<"server_error">, Type.TLiteral<"timeout">, Type.TLiteral<"context_overflow">, Type.TLiteral<"model_not_found">, Type.TLiteral<"session_expired">, Type.TLiteral<"empty_response">, Type.TLiteral<"no_error_details">, Type.TLiteral<"unclassified">, Type.TLiteral<"unknown">]>>; lastDurationMs: Type.TOptional; consecutiveErrors: Type.TOptional; consecutiveSkipped: Type.TOptional; lastDelivered: Type.TOptional; lastDeliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; lastDeliveryError: Type.TOptional; lastFailureNotificationDelivered: Type.TOptional; lastFailureNotificationDeliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; lastFailureNotificationDeliveryError: Type.TOptional; lastFailureAlertAtMs: Type.TOptional; lastTriggerEvalAtMs: Type.TOptional; triggerEvalCount: Type.TOptional; lastTriggerFireAtMs: Type.TOptional; triggerState: Type.TOptional; }>; nextRunAtMs: Type.TOptional; lastRunAtMs: Type.TOptional; lastRunStatus: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; lastRunError: Type.TOptional; lastDelivered: Type.TOptional; lastDeliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; lastDeliveryError: Type.TOptional; lastFailureNotificationDelivered: Type.TOptional; lastFailureNotificationDeliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; lastFailureNotificationDeliveryError: Type.TOptional; }>, Type.TObject<{ created: Type.TBoolean; updated: Type.TOptional; job: Type.TObject<{ id: Type.TString; declarationKey: Type.TOptional; displayName: Type.TOptional; owner: Type.TOptional; sessionKey: Type.TOptional; }>>; agentId: Type.TOptional; sessionKey: Type.TOptional; name: Type.TString; description: Type.TOptional; enabled: Type.TBoolean; deleteAfterRun: Type.TOptional; createdAtMs: Type.TInteger; updatedAtMs: Type.TInteger; schedule: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"at">; at: Type.TString; }>, Type.TObject<{ kind: Type.TLiteral<"every">; everyMs: Type.TInteger; anchorMs: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"cron">; expr: Type.TString; tz: Type.TOptional; staggerMs: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"on-exit">; command: Type.TString; cwd: Type.TOptional; }>]>; trigger: Type.TOptional; }>>; sessionTarget: Type.TUnion<[Type.TLiteral<"main">, Type.TLiteral<"isolated">, Type.TLiteral<"current">, Type.TString]>; wakeMode: Type.TUnion<[Type.TLiteral<"next-heartbeat">, Type.TLiteral<"now">]>; payload: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"systemEvent">; text: Type.TString; }>, Type.TObject<{ kind: Type.TLiteral<"agentTurn">; message: Type.TSchema; model: Type.TOptional; fallbacks: Type.TOptional; thinking: Type.TOptional; timeoutSeconds: Type.TOptional; allowUnsafeExternalContent: Type.TOptional; lightContext: Type.TOptional; toolsAllow: Type.TOptional; toolsAllowIsDefault: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"command">; argv: Type.TSchema; cwd: Type.TOptional; env: Type.TOptional>; input: Type.TOptional; timeoutSeconds: Type.TOptional; noOutputTimeoutSeconds: Type.TOptional; outputMaxBytes: Type.TOptional; }>]>; delivery: Type.TOptional; channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"none">; }>, Type.TObject<{ completionDestination: Type.TOptional; to: Type.TString; }>>; to: Type.TOptional; channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"announce">; }>, Type.TObject<{ to: Type.TString; channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"webhook">; }>]>>; failureAlert: Type.TOptional, Type.TObject<{ after: Type.TOptional; channel: Type.TOptional, Type.TString]>>; to: Type.TOptional; cooldownMs: Type.TOptional; includeSkipped: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; accountId: Type.TOptional; }>]>>; state: Type.TObject<{ nextRunAtMs: Type.TOptional; runningAtMs: Type.TOptional; lastRunAtMs: Type.TOptional; lastRunStatus: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; lastStatus: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; lastError: Type.TOptional; lastDiagnostics: Type.TOptional; entries: Type.TArray, Type.TLiteral<"cron-setup">, Type.TLiteral<"model-preflight">, Type.TLiteral<"agent-run">, Type.TLiteral<"tool">, Type.TLiteral<"exec">, Type.TLiteral<"delivery">]>; severity: Type.TUnion<[Type.TLiteral<"info">, Type.TLiteral<"warn">, Type.TLiteral<"error">]>; message: Type.TString; toolName: Type.TOptional; exitCode: Type.TOptional>; truncated: Type.TOptional; }>>; }>>; lastDiagnosticSummary: Type.TOptional; lastErrorReason: Type.TOptional, Type.TLiteral<"auth_permanent">, Type.TLiteral<"format">, Type.TLiteral<"rate_limit">, Type.TLiteral<"overloaded">, Type.TLiteral<"billing">, Type.TLiteral<"server_error">, Type.TLiteral<"timeout">, Type.TLiteral<"context_overflow">, Type.TLiteral<"model_not_found">, Type.TLiteral<"session_expired">, Type.TLiteral<"empty_response">, Type.TLiteral<"no_error_details">, Type.TLiteral<"unclassified">, Type.TLiteral<"unknown">]>>; lastDurationMs: Type.TOptional; consecutiveErrors: Type.TOptional; consecutiveSkipped: Type.TOptional; lastDelivered: Type.TOptional; lastDeliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; lastDeliveryError: Type.TOptional; lastFailureNotificationDelivered: Type.TOptional; lastFailureNotificationDeliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; lastFailureNotificationDeliveryError: Type.TOptional; lastFailureAlertAtMs: Type.TOptional; lastTriggerEvalAtMs: Type.TOptional; triggerEvalCount: Type.TOptional; lastTriggerFireAtMs: Type.TOptional; triggerState: Type.TOptional; }>; nextRunAtMs: Type.TOptional; lastRunAtMs: Type.TOptional; lastRunStatus: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; lastRunError: Type.TOptional; lastDelivered: Type.TOptional; lastDeliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; lastDeliveryError: Type.TOptional; lastFailureNotificationDelivered: Type.TOptional; lastFailureNotificationDeliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; lastFailureNotificationDeliveryError: Type.TOptional; }>; }>]>; /** Updates a cron job by id or legacy jobId alias. */ declare const CronUpdateParamsSchema: Type.TUnion<[Type.TObject<{ id: Type.TString; }>, Type.TObject<{ jobId: Type.TString; }>]>; /** Removes a cron job by id or legacy jobId alias. */ declare const CronRemoveParamsSchema: Type.TUnion<[Type.TObject<{ id: Type.TString; }>, Type.TObject<{ jobId: Type.TString; }>]>; /** Runs a cron job immediately or only if due. */ declare const CronRunParamsSchema: Type.TUnion<[Type.TObject<{ id: Type.TString; }>, Type.TObject<{ jobId: Type.TString; }>]>; /** Query params for cron run history. */ declare const CronRunsParamsSchema: Type.TObject<{ scope: Type.TOptional, Type.TLiteral<"all">]>>; id: Type.TOptional; jobId: Type.TOptional; runId: Type.TOptional; limit: Type.TOptional; offset: Type.TOptional; statuses: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>>; status: Type.TOptional, Type.TLiteral<"ok">, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; deliveryStatuses: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>>; deliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; query: Type.TOptional; sortDir: Type.TOptional, Type.TLiteral<"desc">]>>; }>; //#endregion //#region packages/gateway-protocol/src/version.d.ts /** Current gateway protocol version emitted by modern clients and servers. */ declare const PROTOCOL_VERSION: 4; /** Lowest general client protocol version accepted by the gateway. */ declare const MIN_CLIENT_PROTOCOL_VERSION: 4; /** Lowest authenticated node protocol version accepted by the gateway. */ declare const MIN_NODE_PROTOCOL_VERSION: 3; /** Lowest lightweight probe protocol version accepted by the gateway. */ declare const MIN_PROBE_PROTOCOL_VERSION: 3; //#endregion //#region packages/gateway-protocol/src/schema/protocol-schemas.d.ts /** Public schema registry keyed by stable protocol schema name. */ declare const ProtocolSchemas: { ConnectParams: import("typebox").TObject<{ minProtocol: import("typebox").TInteger; maxProtocol: import("typebox").TInteger; client: import("typebox").TObject<{ id: import("typebox").TEnum<["webchat-ui", "openclaw-control-ui", "openclaw-tui", "webchat", "cli", "gateway-client", "openclaw-macos", "openclaw-ios", "openclaw-android", "node-host", "test", "fingerprint", "openclaw-probe"]>; displayName: import("typebox").TOptional; version: import("typebox").TString; platform: import("typebox").TString; deviceFamily: import("typebox").TOptional; modelIdentifier: import("typebox").TOptional; mode: import("typebox").TEnum<["webchat", "cli", "test", "probe", "ui", "backend", "node"]>; instanceId: import("typebox").TOptional; }>; caps: import("typebox").TOptional>; commands: import("typebox").TOptional>; permissions: import("typebox").TOptional>; pathEnv: import("typebox").TOptional; role: import("typebox").TOptional; scopes: import("typebox").TOptional>; device: import("typebox").TOptional>; auth: import("typebox").TOptional; bootstrapToken: import("typebox").TOptional; deviceToken: import("typebox").TOptional; password: import("typebox").TOptional; approvalRuntimeToken: import("typebox").TOptional; agentRuntimeIdentityToken: import("typebox").TOptional; }>>; locale: import("typebox").TOptional; userAgent: import("typebox").TOptional; }>; HelloOk: import("typebox").TObject<{ type: import("typebox").TLiteral<"hello-ok">; protocol: import("typebox").TInteger; server: import("typebox").TObject<{ version: import("typebox").TString; connId: import("typebox").TString; }>; features: import("typebox").TObject<{ methods: import("typebox").TArray; events: import("typebox").TArray; capabilities: import("typebox").TOptional>; }>; snapshot: import("typebox").TObject<{ presence: import("typebox").TArray; ip: import("typebox").TOptional; version: import("typebox").TOptional; platform: import("typebox").TOptional; deviceFamily: import("typebox").TOptional; modelIdentifier: import("typebox").TOptional; mode: import("typebox").TOptional; lastInputSeconds: import("typebox").TOptional; reason: import("typebox").TOptional; tags: import("typebox").TOptional>; text: import("typebox").TOptional; ts: import("typebox").TInteger; deviceId: import("typebox").TOptional; roles: import("typebox").TOptional>; scopes: import("typebox").TOptional>; instanceId: import("typebox").TOptional; }>>; health: import("typebox").TAny; stateVersion: import("typebox").TObject<{ presence: import("typebox").TInteger; health: import("typebox").TInteger; }>; uptimeMs: import("typebox").TInteger; configPath: import("typebox").TOptional; stateDir: import("typebox").TOptional; sessionDefaults: import("typebox").TOptional; }>>; authMode: import("typebox").TOptional, import("typebox").TLiteral<"token">, import("typebox").TLiteral<"password">, import("typebox").TLiteral<"trusted-proxy">]>>; updateAvailable: import("typebox").TOptional>; }>; controlUiTabs: import("typebox").TOptional; icon: import("typebox").TOptional; path: import("typebox").TOptional; group: import("typebox").TOptional, import("typebox").TLiteral<"agent">]>>; order: import("typebox").TOptional; }>>>; pluginSurfaceUrls: import("typebox").TOptional>; auth: import("typebox").TObject<{ deviceToken: import("typebox").TOptional; role: import("typebox").TString; scopes: import("typebox").TArray; issuedAtMs: import("typebox").TOptional; deviceTokens: import("typebox").TOptional; issuedAtMs: import("typebox").TInteger; }>>>; }>; policy: import("typebox").TObject<{ maxPayload: import("typebox").TInteger; maxBufferedBytes: import("typebox").TInteger; tickIntervalMs: import("typebox").TInteger; }>; }>; RequestFrame: import("typebox").TObject<{ type: import("typebox").TLiteral<"req">; id: import("typebox").TString; method: import("typebox").TString; params: import("typebox").TOptional; }>; ResponseFrame: import("typebox").TObject<{ type: import("typebox").TLiteral<"res">; id: import("typebox").TString; ok: import("typebox").TBoolean; payload: import("typebox").TOptional; error: import("typebox").TOptional; retryable: import("typebox").TOptional; retryAfterMs: import("typebox").TOptional; }>>; }>; EventFrame: import("typebox").TObject<{ type: import("typebox").TLiteral<"event">; event: import("typebox").TString; payload: import("typebox").TOptional; seq: import("typebox").TOptional; stateVersion: import("typebox").TOptional>; }>; GatewayFrame: import("typebox").TUnion<[import("typebox").TObject<{ type: import("typebox").TLiteral<"req">; id: import("typebox").TString; method: import("typebox").TString; params: import("typebox").TOptional; }>, import("typebox").TObject<{ type: import("typebox").TLiteral<"res">; id: import("typebox").TString; ok: import("typebox").TBoolean; payload: import("typebox").TOptional; error: import("typebox").TOptional; retryable: import("typebox").TOptional; retryAfterMs: import("typebox").TOptional; }>>; }>, import("typebox").TObject<{ type: import("typebox").TLiteral<"event">; event: import("typebox").TString; payload: import("typebox").TOptional; seq: import("typebox").TOptional; stateVersion: import("typebox").TOptional>; }>]>; PresenceEntry: import("typebox").TObject<{ host: import("typebox").TOptional; ip: import("typebox").TOptional; version: import("typebox").TOptional; platform: import("typebox").TOptional; deviceFamily: import("typebox").TOptional; modelIdentifier: import("typebox").TOptional; mode: import("typebox").TOptional; lastInputSeconds: import("typebox").TOptional; reason: import("typebox").TOptional; tags: import("typebox").TOptional>; text: import("typebox").TOptional; ts: import("typebox").TInteger; deviceId: import("typebox").TOptional; roles: import("typebox").TOptional>; scopes: import("typebox").TOptional>; instanceId: import("typebox").TOptional; }>; StateVersion: import("typebox").TObject<{ presence: import("typebox").TInteger; health: import("typebox").TInteger; }>; Snapshot: import("typebox").TObject<{ presence: import("typebox").TArray; ip: import("typebox").TOptional; version: import("typebox").TOptional; platform: import("typebox").TOptional; deviceFamily: import("typebox").TOptional; modelIdentifier: import("typebox").TOptional; mode: import("typebox").TOptional; lastInputSeconds: import("typebox").TOptional; reason: import("typebox").TOptional; tags: import("typebox").TOptional>; text: import("typebox").TOptional; ts: import("typebox").TInteger; deviceId: import("typebox").TOptional; roles: import("typebox").TOptional>; scopes: import("typebox").TOptional>; instanceId: import("typebox").TOptional; }>>; health: import("typebox").TAny; stateVersion: import("typebox").TObject<{ presence: import("typebox").TInteger; health: import("typebox").TInteger; }>; uptimeMs: import("typebox").TInteger; configPath: import("typebox").TOptional; stateDir: import("typebox").TOptional; sessionDefaults: import("typebox").TOptional; }>>; authMode: import("typebox").TOptional, import("typebox").TLiteral<"token">, import("typebox").TLiteral<"password">, import("typebox").TLiteral<"trusted-proxy">]>>; updateAvailable: import("typebox").TOptional>; }>; ErrorShape: import("typebox").TObject<{ code: import("typebox").TString; message: import("typebox").TString; details: import("typebox").TOptional; retryable: import("typebox").TOptional; retryAfterMs: import("typebox").TOptional; }>; EnvironmentStatus: import("typebox").TString; EnvironmentSummary: import("typebox").TObject<{ id: import("typebox").TString; type: import("typebox").TString; label: import("typebox").TOptional; status: import("typebox").TString; capabilities: import("typebox").TOptional>; }>; EnvironmentsListParams: import("typebox").TObject<{}>; EnvironmentsListResult: import("typebox").TObject<{ environments: import("typebox").TArray; status: import("typebox").TString; capabilities: import("typebox").TOptional>; }>>; }>; EnvironmentsStatusParams: import("typebox").TObject<{ environmentId: import("typebox").TString; }>; EnvironmentsStatusResult: import("typebox").TObject<{ id: import("typebox").TString; type: import("typebox").TString; label: import("typebox").TOptional; status: import("typebox").TString; capabilities: import("typebox").TOptional>; }>; SystemInfoParams: import("typebox").TObject<{}>; SystemInfoResult: import("typebox").TObject<{ machineName: import("typebox").TString; hostname: import("typebox").TString; platform: import("typebox").TString; release: import("typebox").TString; arch: import("typebox").TString; osLabel: import("typebox").TString; lanAddress: import("typebox").TOptional; port: import("typebox").TOptional; nodeVersion: import("typebox").TString; pid: import("typebox").TInteger; uptimeMs: import("typebox").TInteger; cpuCount: import("typebox").TInteger; cpuModel: import("typebox").TOptional; loadAverage: import("typebox").TOptional>; memoryTotalBytes: import("typebox").TInteger; memoryFreeBytes: import("typebox").TInteger; diskTotalBytes: import("typebox").TOptional; diskAvailableBytes: import("typebox").TOptional; diskPath: import("typebox").TOptional; }>; AgentEvent: import("typebox").TObject<{ runId: import("typebox").TString; seq: import("typebox").TInteger; stream: import("typebox").TString; ts: import("typebox").TInteger; spawnedBy: import("typebox").TOptional; isHeartbeat: import("typebox").TOptional; data: import("typebox").TRecord<"^.*$", import("typebox").TUnknown>; }>; MessageActionParams: import("typebox").TObject<{ channel: import("typebox").TString; action: import("typebox").TString; params: import("typebox").TRecord<"^.*$", import("typebox").TUnknown>; accountId: import("typebox").TOptional; requesterAccountId: import("typebox").TOptional; requesterSenderId: import("typebox").TOptional; senderIsOwner: import("typebox").TOptional; sessionKey: import("typebox").TOptional; sessionId: import("typebox").TOptional; inboundTurnKind: import("typebox").TOptional; agentId: import("typebox").TOptional; toolContext: import("typebox").TOptional; currentMessagingTarget: import("typebox").TOptional; currentGraphChannelId: import("typebox").TOptional; currentChannelProvider: import("typebox").TOptional; currentThreadTs: import("typebox").TOptional; currentMessageId: import("typebox").TOptional>; replyToMode: import("typebox").TOptional, import("typebox").TLiteral<"first">, import("typebox").TLiteral<"all">, import("typebox").TLiteral<"batched">]>>; hasRepliedRef: import("typebox").TOptional>; sameChannelThreadRequired: import("typebox").TOptional; skipCrossContextDecoration: import("typebox").TOptional; }>>; idempotencyKey: import("typebox").TString; }>; SendParams: import("typebox").TObject<{ to: import("typebox").TString; message: import("typebox").TOptional; mediaUrl: import("typebox").TOptional; mediaUrls: import("typebox").TOptional>; buffer: import("typebox").TOptional; filename: import("typebox").TOptional; contentType: import("typebox").TOptional; asVoice: import("typebox").TOptional; gifPlayback: import("typebox").TOptional; channel: import("typebox").TOptional; accountId: import("typebox").TOptional; agentId: import("typebox").TOptional; replyToId: import("typebox").TOptional; threadId: import("typebox").TOptional; forceDocument: import("typebox").TOptional; silent: import("typebox").TOptional; parseMode: import("typebox").TOptional>; sessionKey: import("typebox").TOptional; idempotencyKey: import("typebox").TString; }>; PollParams: import("typebox").TObject<{ to: import("typebox").TString; question: import("typebox").TString; options: import("typebox").TArray; maxSelections: import("typebox").TOptional; durationSeconds: import("typebox").TOptional; durationHours: import("typebox").TOptional; silent: import("typebox").TOptional; isAnonymous: import("typebox").TOptional; threadId: import("typebox").TOptional; channel: import("typebox").TOptional; accountId: import("typebox").TOptional; idempotencyKey: import("typebox").TString; }>; AgentParams: import("typebox").TObject<{ message: import("typebox").TString; agentId: import("typebox").TOptional; provider: import("typebox").TOptional; model: import("typebox").TOptional; to: import("typebox").TOptional; replyTo: import("typebox").TOptional; sessionId: import("typebox").TOptional; sessionKey: import("typebox").TOptional; thinking: import("typebox").TOptional; deliver: import("typebox").TOptional; attachments: import("typebox").TOptional>; channel: import("typebox").TOptional; replyChannel: import("typebox").TOptional; accountId: import("typebox").TOptional; replyAccountId: import("typebox").TOptional; threadId: import("typebox").TOptional; groupId: import("typebox").TOptional; groupChannel: import("typebox").TOptional; groupSpace: import("typebox").TOptional; timeout: import("typebox").TOptional; bestEffortDeliver: import("typebox").TOptional; lane: import("typebox").TOptional; cwd: import("typebox").TOptional; cleanupBundleMcpOnRunEnd: import("typebox").TOptional; modelRun: import("typebox").TOptional; promptMode: import("typebox").TOptional, import("typebox").TLiteral<"minimal">, import("typebox").TLiteral<"none">]>>; extraSystemPrompt: import("typebox").TOptional; bootstrapContextMode: import("typebox").TOptional, import("typebox").TLiteral<"lightweight">]>>; bootstrapContextRunKind: import("typebox").TOptional, import("typebox").TLiteral<"heartbeat">, import("typebox").TLiteral<"cron">]>>; acpTurnSource: import("typebox").TOptional>; internalRuntimeHandoffId: import("typebox").TOptional; execApprovalFollowupExpectedSessionId: import("typebox").TOptional; internalEvents: import("typebox").TOptional; source: import("typebox").TString; childSessionKey: import("typebox").TString; childSessionId: import("typebox").TOptional; announceType: import("typebox").TString; taskLabel: import("typebox").TString; status: import("typebox").TString; statusLabel: import("typebox").TString; result: import("typebox").TString; attachments: import("typebox").TOptional; path: import("typebox").TOptional; url: import("typebox").TOptional; mediaUrl: import("typebox").TOptional; filePath: import("typebox").TOptional; mimeType: import("typebox").TOptional; name: import("typebox").TOptional; }>>>; mediaUrls: import("typebox").TOptional>; statsLine: import("typebox").TOptional; replyInstruction: import("typebox").TString; }>>>; inputProvenance: import("typebox").TOptional; sourceSessionKey: import("typebox").TOptional; sourceChannel: import("typebox").TOptional; sourceTool: import("typebox").TOptional; }>>; suppressPromptPersistence: import("typebox").TOptional; sessionEffects: import("typebox").TOptional, import("typebox").TLiteral<"internal">]>>; sourceReplyDeliveryMode: import("typebox").TOptional, import("typebox").TLiteral<"message_tool_only">]>>; disableMessageTool: import("typebox").TOptional; voiceWakeTrigger: import("typebox").TOptional; idempotencyKey: import("typebox").TString; label: import("typebox").TOptional; }>; AgentIdentityParams: import("typebox").TObject<{ agentId: import("typebox").TOptional; sessionKey: import("typebox").TOptional; }>; AgentIdentityResult: import("typebox").TObject<{ agentId: import("typebox").TString; name: import("typebox").TOptional; avatar: import("typebox").TOptional; avatarSource: import("typebox").TOptional; avatarStatus: import("typebox").TOptional; avatarReason: import("typebox").TOptional; emoji: import("typebox").TOptional; }>; AgentWaitParams: import("typebox").TObject<{ runId: import("typebox").TString; timeoutMs: import("typebox").TOptional; }>; WakeParams: import("typebox").TObject<{ mode: import("typebox").TUnion<[import("typebox").TLiteral<"now">, import("typebox").TLiteral<"next-heartbeat">]>; text: import("typebox").TString; sessionKey: import("typebox").TOptional; agentId: import("typebox").TOptional; }>; WorktreeRecord: import("typebox").TObject<{ id: import("typebox").TString; name: import("typebox").TString; repoFingerprint: import("typebox").TString; repoRoot: import("typebox").TString; path: import("typebox").TString; branch: import("typebox").TString; baseRef: import("typebox").TString; ownerKind: import("typebox").TString; ownerId: import("typebox").TOptional; snapshotRef: import("typebox").TOptional; createdAt: import("typebox").TInteger; lastActiveAt: import("typebox").TInteger; removedAt: import("typebox").TOptional; }>; WorktreesListParams: import("typebox").TObject<{}>; WorktreesListResult: import("typebox").TObject<{ worktrees: import("typebox").TArray; snapshotRef: import("typebox").TOptional; createdAt: import("typebox").TInteger; lastActiveAt: import("typebox").TInteger; removedAt: import("typebox").TOptional; }>>; }>; WorktreesCreateParams: import("typebox").TObject<{ repoRoot: import("typebox").TString; name: import("typebox").TOptional; baseRef: import("typebox").TOptional; }>; WorktreesRemoveParams: import("typebox").TObject<{ id: import("typebox").TString; force: import("typebox").TOptional; }>; WorktreesRemoveResult: import("typebox").TObject<{ removed: import("typebox").TBoolean; snapshotRef: import("typebox").TOptional; }>; WorktreesRestoreParams: import("typebox").TObject<{ id: import("typebox").TString; }>; WorktreesGcParams: import("typebox").TObject<{}>; WorktreesGcResult: import("typebox").TObject<{ removed: import("typebox").TArray; orphansDeleted: import("typebox").TInteger; snapshotsPruned: import("typebox").TInteger; }>; NodePairRequestParams: import("typebox").TObject<{ nodeId: import("typebox").TString; displayName: import("typebox").TOptional; platform: import("typebox").TOptional; version: import("typebox").TOptional; coreVersion: import("typebox").TOptional; uiVersion: import("typebox").TOptional; deviceFamily: import("typebox").TOptional; modelIdentifier: import("typebox").TOptional; caps: import("typebox").TOptional>; commands: import("typebox").TOptional>; permissions: import("typebox").TOptional>; remoteIp: import("typebox").TOptional; silent: import("typebox").TOptional; }>; NodePairListParams: import("typebox").TObject<{}>; NodePairApproveParams: import("typebox").TObject<{ requestId: import("typebox").TString; }>; NodePairRejectParams: import("typebox").TObject<{ requestId: import("typebox").TString; }>; NodePairRemoveParams: import("typebox").TObject<{ nodeId: import("typebox").TString; }>; NodePairVerifyParams: import("typebox").TObject<{ nodeId: import("typebox").TString; token: import("typebox").TString; }>; NodeRenameParams: import("typebox").TObject<{ nodeId: import("typebox").TString; displayName: import("typebox").TString; }>; NodeListParams: import("typebox").TObject<{}>; NodePendingAckParams: import("typebox").TObject<{ ids: import("typebox").TArray; }>; NodeDescribeParams: import("typebox").TObject<{ nodeId: import("typebox").TString; }>; NodeInvokeParams: import("typebox").TObject<{ nodeId: import("typebox").TString; command: import("typebox").TString; params: import("typebox").TOptional; timeoutMs: import("typebox").TOptional; idempotencyKey: import("typebox").TString; }>; NodeInvokeResultParams: import("typebox").TObject<{ id: import("typebox").TString; nodeId: import("typebox").TString; ok: import("typebox").TBoolean; payload: import("typebox").TOptional; payloadJSON: import("typebox").TOptional; error: import("typebox").TOptional; message: import("typebox").TOptional; }>>; }>; NodeEventParams: import("typebox").TObject<{ event: import("typebox").TString; payload: import("typebox").TOptional; payloadJSON: import("typebox").TOptional; }>; NodeEventResult: import("typebox").TObject<{ ok: import("typebox").TBoolean; event: import("typebox").TString; handled: import("typebox").TBoolean; reason: import("typebox").TOptional; }>; NodePresenceAlivePayload: import("typebox").TObject<{ trigger: import("typebox").TString; sentAtMs: import("typebox").TOptional; displayName: import("typebox").TOptional; version: import("typebox").TOptional; platform: import("typebox").TOptional; deviceFamily: import("typebox").TOptional; modelIdentifier: import("typebox").TOptional; pushTransport: import("typebox").TOptional; }>; NodePresenceAliveReason: import("typebox").TString; NodePendingDrainParams: import("typebox").TObject<{ maxItems: import("typebox").TOptional; }>; NodePendingDrainResult: import("typebox").TObject<{ nodeId: import("typebox").TString; revision: import("typebox").TInteger; items: import("typebox").TArray>; payload: import("typebox").TOptional>; }>>; hasMore: import("typebox").TBoolean; }>; NodePendingEnqueueParams: import("typebox").TObject<{ nodeId: import("typebox").TString; type: import("typebox").TString; priority: import("typebox").TOptional; expiresInMs: import("typebox").TOptional; wake: import("typebox").TOptional; }>; NodePendingEnqueueResult: import("typebox").TObject<{ nodeId: import("typebox").TString; revision: import("typebox").TInteger; queued: import("typebox").TObject<{ id: import("typebox").TString; type: import("typebox").TString; priority: import("typebox").TString; createdAtMs: import("typebox").TInteger; expiresAtMs: import("typebox").TOptional>; payload: import("typebox").TOptional>; }>; wakeTriggered: import("typebox").TBoolean; }>; NodeInvokeRequestEvent: import("typebox").TObject<{ id: import("typebox").TString; nodeId: import("typebox").TString; command: import("typebox").TString; paramsJSON: import("typebox").TOptional; timeoutMs: import("typebox").TOptional; idempotencyKey: import("typebox").TOptional; }>; PushTestParams: import("typebox").TObject<{ nodeId: import("typebox").TString; title: import("typebox").TOptional; body: import("typebox").TOptional; environment: import("typebox").TOptional; }>; PushTestResult: import("typebox").TObject<{ ok: import("typebox").TBoolean; status: import("typebox").TInteger; apnsId: import("typebox").TOptional; reason: import("typebox").TOptional; tokenSuffix: import("typebox").TString; topic: import("typebox").TString; environment: import("typebox").TString; transport: import("typebox").TString; }>; SecretsReloadParams: import("typebox").TObject<{}>; SecretsResolveParams: import("typebox").TObject<{ commandName: import("typebox").TString; targetIds: import("typebox").TArray; allowedPaths: import("typebox").TOptional>; forcedActivePaths: import("typebox").TOptional>; optionalActivePaths: import("typebox").TOptional>; providerOverrides: import("typebox").TOptional; webFetch: import("typebox").TOptional; }>>; }>; SecretsResolveAssignment: import("typebox").TObject<{ path: import("typebox").TOptional; pathSegments: import("typebox").TArray; value: import("typebox").TUnknown; }>; SecretsResolveResult: import("typebox").TObject<{ ok: import("typebox").TOptional; assignments: import("typebox").TOptional; pathSegments: import("typebox").TArray; value: import("typebox").TUnknown; }>>>; diagnostics: import("typebox").TOptional>; inactiveRefPaths: import("typebox").TOptional>; }>; SessionsListParams: import("typebox").TObject<{ limit: import("typebox").TOptional; offset: import("typebox").TOptional; activeMinutes: import("typebox").TOptional; includeGlobal: import("typebox").TOptional; includeUnknown: import("typebox").TOptional; configuredAgentsOnly: import("typebox").TOptional; includeDerivedTitles: import("typebox").TOptional; includeLastMessage: import("typebox").TOptional; label: import("typebox").TOptional; spawnedBy: import("typebox").TOptional; agentId: import("typebox").TOptional; search: import("typebox").TOptional; archived: import("typebox").TOptional; }>; SessionsCleanupParams: import("typebox").TObject<{ agent: import("typebox").TOptional; allAgents: import("typebox").TOptional; enforce: import("typebox").TOptional; activeKey: import("typebox").TOptional; fixMissing: import("typebox").TOptional; fixDmScope: import("typebox").TOptional; }>; SessionsPreviewParams: import("typebox").TObject<{ keys: import("typebox").TArray; limit: import("typebox").TOptional; maxChars: import("typebox").TOptional; }>; SessionsDescribeParams: import("typebox").TObject<{ key: import("typebox").TString; includeDerivedTitles: import("typebox").TOptional; includeLastMessage: import("typebox").TOptional; }>; SessionsResolveParams: import("typebox").TObject<{ key: import("typebox").TOptional; sessionId: import("typebox").TOptional; label: import("typebox").TOptional; agentId: import("typebox").TOptional; spawnedBy: import("typebox").TOptional; includeGlobal: import("typebox").TOptional; includeUnknown: import("typebox").TOptional; allowMissing: import("typebox").TOptional; }>; SessionCompactionCheckpoint: import("typebox").TObject<{ checkpointId: import("typebox").TString; sessionKey: import("typebox").TString; sessionId: import("typebox").TString; createdAt: import("typebox").TInteger; reason: import("typebox").TUnion<[import("typebox").TLiteral<"manual">, import("typebox").TLiteral<"auto-threshold">, import("typebox").TLiteral<"overflow-retry">, import("typebox").TLiteral<"timeout-retry">]>; tokensBefore: import("typebox").TOptional; tokensAfter: import("typebox").TOptional; summary: import("typebox").TOptional; firstKeptEntryId: import("typebox").TOptional; preCompaction: import("typebox").TObject<{ sessionId: import("typebox").TString; sessionFile: import("typebox").TOptional; leafId: import("typebox").TOptional; entryId: import("typebox").TOptional; }>; postCompaction: import("typebox").TObject<{ sessionId: import("typebox").TString; sessionFile: import("typebox").TOptional; leafId: import("typebox").TOptional; entryId: import("typebox").TOptional; }>; }>; SessionOperationEvent: import("typebox").TObject<{ operationId: import("typebox").TString; operation: import("typebox").TLiteral<"compact">; phase: import("typebox").TUnion<[import("typebox").TLiteral<"start">, import("typebox").TLiteral<"end">]>; sessionKey: import("typebox").TString; agentId: import("typebox").TOptional; ts: import("typebox").TInteger; completed: import("typebox").TOptional; reason: import("typebox").TOptional; }>; SessionsCompactionListParams: import("typebox").TObject<{ key: import("typebox").TString; agentId: import("typebox").TOptional; }>; SessionsCompactionGetParams: import("typebox").TObject<{ key: import("typebox").TString; agentId: import("typebox").TOptional; checkpointId: import("typebox").TString; }>; SessionsCompactionBranchParams: import("typebox").TObject<{ key: import("typebox").TString; agentId: import("typebox").TOptional; checkpointId: import("typebox").TString; }>; SessionsCompactionRestoreParams: import("typebox").TObject<{ key: import("typebox").TString; agentId: import("typebox").TOptional; checkpointId: import("typebox").TString; }>; SessionsCompactionListResult: import("typebox").TObject<{ ok: import("typebox").TLiteral; key: import("typebox").TString; checkpoints: import("typebox").TArray, import("typebox").TLiteral<"auto-threshold">, import("typebox").TLiteral<"overflow-retry">, import("typebox").TLiteral<"timeout-retry">]>; tokensBefore: import("typebox").TOptional; tokensAfter: import("typebox").TOptional; summary: import("typebox").TOptional; firstKeptEntryId: import("typebox").TOptional; preCompaction: import("typebox").TObject<{ sessionId: import("typebox").TString; sessionFile: import("typebox").TOptional; leafId: import("typebox").TOptional; entryId: import("typebox").TOptional; }>; postCompaction: import("typebox").TObject<{ sessionId: import("typebox").TString; sessionFile: import("typebox").TOptional; leafId: import("typebox").TOptional; entryId: import("typebox").TOptional; }>; }>>; }>; SessionsCompactionGetResult: import("typebox").TObject<{ ok: import("typebox").TLiteral; key: import("typebox").TString; checkpoint: import("typebox").TObject<{ checkpointId: import("typebox").TString; sessionKey: import("typebox").TString; sessionId: import("typebox").TString; createdAt: import("typebox").TInteger; reason: import("typebox").TUnion<[import("typebox").TLiteral<"manual">, import("typebox").TLiteral<"auto-threshold">, import("typebox").TLiteral<"overflow-retry">, import("typebox").TLiteral<"timeout-retry">]>; tokensBefore: import("typebox").TOptional; tokensAfter: import("typebox").TOptional; summary: import("typebox").TOptional; firstKeptEntryId: import("typebox").TOptional; preCompaction: import("typebox").TObject<{ sessionId: import("typebox").TString; sessionFile: import("typebox").TOptional; leafId: import("typebox").TOptional; entryId: import("typebox").TOptional; }>; postCompaction: import("typebox").TObject<{ sessionId: import("typebox").TString; sessionFile: import("typebox").TOptional; leafId: import("typebox").TOptional; entryId: import("typebox").TOptional; }>; }>; }>; SessionsCompactionBranchResult: import("typebox").TObject<{ ok: import("typebox").TLiteral; sourceKey: import("typebox").TString; key: import("typebox").TString; sessionId: import("typebox").TString; checkpoint: import("typebox").TObject<{ checkpointId: import("typebox").TString; sessionKey: import("typebox").TString; sessionId: import("typebox").TString; createdAt: import("typebox").TInteger; reason: import("typebox").TUnion<[import("typebox").TLiteral<"manual">, import("typebox").TLiteral<"auto-threshold">, import("typebox").TLiteral<"overflow-retry">, import("typebox").TLiteral<"timeout-retry">]>; tokensBefore: import("typebox").TOptional; tokensAfter: import("typebox").TOptional; summary: import("typebox").TOptional; firstKeptEntryId: import("typebox").TOptional; preCompaction: import("typebox").TObject<{ sessionId: import("typebox").TString; sessionFile: import("typebox").TOptional; leafId: import("typebox").TOptional; entryId: import("typebox").TOptional; }>; postCompaction: import("typebox").TObject<{ sessionId: import("typebox").TString; sessionFile: import("typebox").TOptional; leafId: import("typebox").TOptional; entryId: import("typebox").TOptional; }>; }>; entry: import("typebox").TObject<{ sessionId: import("typebox").TString; updatedAt: import("typebox").TInteger; }>; }>; SessionsCompactionRestoreResult: import("typebox").TObject<{ ok: import("typebox").TLiteral; key: import("typebox").TString; sessionId: import("typebox").TString; checkpoint: import("typebox").TObject<{ checkpointId: import("typebox").TString; sessionKey: import("typebox").TString; sessionId: import("typebox").TString; createdAt: import("typebox").TInteger; reason: import("typebox").TUnion<[import("typebox").TLiteral<"manual">, import("typebox").TLiteral<"auto-threshold">, import("typebox").TLiteral<"overflow-retry">, import("typebox").TLiteral<"timeout-retry">]>; tokensBefore: import("typebox").TOptional; tokensAfter: import("typebox").TOptional; summary: import("typebox").TOptional; firstKeptEntryId: import("typebox").TOptional; preCompaction: import("typebox").TObject<{ sessionId: import("typebox").TString; sessionFile: import("typebox").TOptional; leafId: import("typebox").TOptional; entryId: import("typebox").TOptional; }>; postCompaction: import("typebox").TObject<{ sessionId: import("typebox").TString; sessionFile: import("typebox").TOptional; leafId: import("typebox").TOptional; entryId: import("typebox").TOptional; }>; }>; entry: import("typebox").TObject<{ sessionId: import("typebox").TString; updatedAt: import("typebox").TInteger; }>; }>; SessionFileBrowserEntry: import("typebox").TObject<{ path: import("typebox").TString; name: import("typebox").TString; kind: import("typebox").TUnion<[import("typebox").TLiteral<"file">, import("typebox").TLiteral<"directory">]>; sessionKind: import("typebox").TOptional, import("typebox").TLiteral<"read">, import("typebox").TLiteral<"mixed">]>>; size: import("typebox").TOptional; updatedAtMs: import("typebox").TOptional; }>; SessionFileBrowserResult: import("typebox").TObject<{ path: import("typebox").TString; parentPath: import("typebox").TOptional; search: import("typebox").TOptional; entries: import("typebox").TArray, import("typebox").TLiteral<"directory">]>; sessionKind: import("typebox").TOptional, import("typebox").TLiteral<"read">, import("typebox").TLiteral<"mixed">]>>; size: import("typebox").TOptional; updatedAtMs: import("typebox").TOptional; }>>; truncated: import("typebox").TOptional; }>; SessionFileKind: import("typebox").TUnion<[import("typebox").TLiteral<"modified">, import("typebox").TLiteral<"read">]>; SessionFileEntry: import("typebox").TObject<{ path: import("typebox").TString; workspacePath: import("typebox").TOptional; name: import("typebox").TString; kind: import("typebox").TUnion<[import("typebox").TLiteral<"modified">, import("typebox").TLiteral<"read">]>; missing: import("typebox").TBoolean; size: import("typebox").TOptional; updatedAtMs: import("typebox").TOptional; content: import("typebox").TOptional; }>; SessionFileRelevance: import("typebox").TUnion<[import("typebox").TLiteral<"modified">, import("typebox").TLiteral<"read">, import("typebox").TLiteral<"mixed">]>; SessionsFilesListParams: import("typebox").TObject<{ sessionKey: import("typebox").TString; agentId: import("typebox").TOptional; path: import("typebox").TOptional; search: import("typebox").TOptional; }>; SessionsFilesListResult: import("typebox").TObject<{ sessionKey: import("typebox").TString; root: import("typebox").TOptional; files: import("typebox").TArray; name: import("typebox").TString; kind: import("typebox").TUnion<[import("typebox").TLiteral<"modified">, import("typebox").TLiteral<"read">]>; missing: import("typebox").TBoolean; size: import("typebox").TOptional; updatedAtMs: import("typebox").TOptional; content: import("typebox").TOptional; }>>; browser: import("typebox").TOptional; search: import("typebox").TOptional; entries: import("typebox").TArray, import("typebox").TLiteral<"directory">]>; sessionKind: import("typebox").TOptional, import("typebox").TLiteral<"read">, import("typebox").TLiteral<"mixed">]>>; size: import("typebox").TOptional; updatedAtMs: import("typebox").TOptional; }>>; truncated: import("typebox").TOptional; }>>; }>; SessionsFilesGetParams: import("typebox").TObject<{ sessionKey: import("typebox").TString; path: import("typebox").TString; agentId: import("typebox").TOptional; }>; SessionsFilesGetResult: import("typebox").TObject<{ sessionKey: import("typebox").TString; root: import("typebox").TOptional; file: import("typebox").TObject<{ path: import("typebox").TString; workspacePath: import("typebox").TOptional; name: import("typebox").TString; kind: import("typebox").TUnion<[import("typebox").TLiteral<"modified">, import("typebox").TLiteral<"read">]>; missing: import("typebox").TBoolean; size: import("typebox").TOptional; updatedAtMs: import("typebox").TOptional; content: import("typebox").TOptional; }>; }>; SessionWorktreeInfo: import("typebox").TObject<{ id: import("typebox").TString; path: import("typebox").TString; branch: import("typebox").TString; }>; SessionsCreateParams: import("typebox").TObject<{ key: import("typebox").TOptional; agentId: import("typebox").TOptional; label: import("typebox").TOptional; model: import("typebox").TOptional; parentSessionKey: import("typebox").TOptional; fork: import("typebox").TOptional; emitCommandHooks: import("typebox").TOptional; task: import("typebox").TOptional; message: import("typebox").TOptional; worktree: import("typebox").TOptional; }>; SessionsCreateResult: import("typebox").TObject<{ ok: import("typebox").TLiteral; key: import("typebox").TString; sessionId: import("typebox").TOptional; entry: import("typebox").TOptional>; runStarted: import("typebox").TOptional; worktree: import("typebox").TOptional>; }>; SessionsSendParams: import("typebox").TObject<{ key: import("typebox").TString; agentId: import("typebox").TOptional; message: import("typebox").TString; thinking: import("typebox").TOptional; attachments: import("typebox").TOptional>; timeoutMs: import("typebox").TOptional; idempotencyKey: import("typebox").TOptional; }>; SessionsMessagesSubscribeParams: import("typebox").TObject<{ key: import("typebox").TString; agentId: import("typebox").TOptional; }>; SessionsMessagesUnsubscribeParams: import("typebox").TObject<{ key: import("typebox").TString; agentId: import("typebox").TOptional; }>; SessionsAbortParams: import("typebox").TObject<{ key: import("typebox").TOptional; runId: import("typebox").TOptional; agentId: import("typebox").TOptional; }>; SessionsPatchParams: import("typebox").TObject<{ key: import("typebox").TString; agentId: import("typebox").TOptional; label: import("typebox").TOptional>; category: import("typebox").TOptional>; archived: import("typebox").TOptional; pinned: import("typebox").TOptional; unread: import("typebox").TOptional; thinkingLevel: import("typebox").TOptional>; fastMode: import("typebox").TOptional, import("typebox").TNull]>>; verboseLevel: import("typebox").TOptional>; traceLevel: import("typebox").TOptional>; reasoningLevel: import("typebox").TOptional>; responseUsage: import("typebox").TOptional, import("typebox").TLiteral<"tokens">, import("typebox").TLiteral<"full">, import("typebox").TLiteral<"on">, import("typebox").TNull]>>; elevatedLevel: import("typebox").TOptional>; execHost: import("typebox").TOptional>; execSecurity: import("typebox").TOptional>; execAsk: import("typebox").TOptional>; execNode: import("typebox").TOptional>; model: import("typebox").TOptional>; spawnedBy: import("typebox").TOptional>; spawnedWorkspaceDir: import("typebox").TOptional>; spawnedCwd: import("typebox").TOptional>; spawnDepth: import("typebox").TOptional>; subagentRole: import("typebox").TOptional, import("typebox").TLiteral<"leaf">, import("typebox").TNull]>>; subagentControlScope: import("typebox").TOptional, import("typebox").TLiteral<"none">, import("typebox").TNull]>>; inheritedToolAllow: import("typebox").TOptional, import("typebox").TNull]>>; inheritedToolDeny: import("typebox").TOptional, import("typebox").TNull]>>; sendPolicy: import("typebox").TOptional, import("typebox").TLiteral<"deny">, import("typebox").TNull]>>; groupActivation: import("typebox").TOptional, import("typebox").TLiteral<"always">, import("typebox").TNull]>>; }>; SessionsPluginPatchParams: import("typebox").TObject<{ key: import("typebox").TString; pluginId: import("typebox").TString; namespace: import("typebox").TString; value: import("typebox").TOptional; unset: import("typebox").TOptional; }>; SessionsPluginPatchResult: import("typebox").TObject<{ ok: import("typebox").TLiteral; key: import("typebox").TString; value: import("typebox").TOptional; }>; SessionsResetParams: import("typebox").TObject<{ key: import("typebox").TString; agentId: import("typebox").TOptional; reason: import("typebox").TOptional, import("typebox").TLiteral<"reset">]>>; }>; SessionsDeleteParams: import("typebox").TObject<{ key: import("typebox").TString; agentId: import("typebox").TOptional; deleteTranscript: import("typebox").TOptional; expectedSessionId: import("typebox").TOptional; expectedLifecycleRevision: import("typebox").TOptional; expectedSessionUpdatedAt: import("typebox").TOptional; emitLifecycleHooks: import("typebox").TOptional; archivedOnly: import("typebox").TOptional; }>; SessionsCompactParams: import("typebox").TObject<{ key: import("typebox").TString; agentId: import("typebox").TOptional; maxLines: import("typebox").TOptional; }>; SessionsUsageParams: import("typebox").TObject<{ key: import("typebox").TOptional; agentId: import("typebox").TOptional; agentScope: import("typebox").TOptional>; startDate: import("typebox").TOptional; endDate: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"gateway">, import("typebox").TLiteral<"specific">]>>; range: import("typebox").TOptional, import("typebox").TLiteral<"30d">, import("typebox").TLiteral<"90d">, import("typebox").TLiteral<"1y">, import("typebox").TLiteral<"all">]>>; groupBy: import("typebox").TOptional, import("typebox").TLiteral<"family">]>>; includeHistorical: import("typebox").TOptional; utcOffset: import("typebox").TOptional; limit: import("typebox").TOptional; includeContextWeight: import("typebox").TOptional; }>; AuditEvent: import("typebox").TObject<{ eventId: import("typebox").TString; sequence: import("typebox").TInteger; sourceSequence: import("typebox").TInteger; occurredAt: import("typebox").TInteger; kind: import("typebox").TUnion<[import("typebox").TLiteral<"agent_run">, import("typebox").TLiteral<"tool_action">]>; action: import("typebox").TUnion<[import("typebox").TLiteral<"agent.run.started">, import("typebox").TLiteral<"agent.run.finished">, import("typebox").TLiteral<"tool.action.started">, import("typebox").TLiteral<"tool.action.finished">]>; status: import("typebox").TUnion<[import("typebox").TLiteral<"started">, import("typebox").TLiteral<"succeeded">, import("typebox").TLiteral<"failed">, import("typebox").TLiteral<"cancelled">, import("typebox").TLiteral<"timed_out">, import("typebox").TLiteral<"blocked">, import("typebox").TLiteral<"unknown">]>; errorCode: import("typebox").TOptional, import("typebox").TLiteral<"run_cancelled">, import("typebox").TLiteral<"run_timed_out">, import("typebox").TLiteral<"run_blocked">, import("typebox").TLiteral<"tool_failed">, import("typebox").TLiteral<"tool_cancelled">, import("typebox").TLiteral<"tool_timed_out">, import("typebox").TLiteral<"tool_blocked">, import("typebox").TLiteral<"tool_outcome_unknown">]>>; actor: import("typebox").TObject<{ type: import("typebox").TUnion<[import("typebox").TLiteral<"agent">, import("typebox").TLiteral<"system">]>; id: import("typebox").TString; }>; agentId: import("typebox").TString; sessionKey: import("typebox").TOptional; sessionId: import("typebox").TOptional; runId: import("typebox").TString; toolCallId: import("typebox").TOptional; toolName: import("typebox").TOptional; redaction: import("typebox").TLiteral<"metadata_only">; }>; AuditListParams: import("typebox").TObject<{ agentId: import("typebox").TOptional; sessionKey: import("typebox").TOptional; runId: import("typebox").TOptional; kind: import("typebox").TOptional, import("typebox").TLiteral<"tool_action">]>>; status: import("typebox").TOptional, import("typebox").TLiteral<"succeeded">, import("typebox").TLiteral<"failed">, import("typebox").TLiteral<"cancelled">, import("typebox").TLiteral<"timed_out">, import("typebox").TLiteral<"blocked">, import("typebox").TLiteral<"unknown">]>>; after: import("typebox").TOptional; before: import("typebox").TOptional; limit: import("typebox").TOptional; cursor: import("typebox").TOptional; }>; AuditListResult: import("typebox").TObject<{ events: import("typebox").TArray, import("typebox").TLiteral<"tool_action">]>; action: import("typebox").TUnion<[import("typebox").TLiteral<"agent.run.started">, import("typebox").TLiteral<"agent.run.finished">, import("typebox").TLiteral<"tool.action.started">, import("typebox").TLiteral<"tool.action.finished">]>; status: import("typebox").TUnion<[import("typebox").TLiteral<"started">, import("typebox").TLiteral<"succeeded">, import("typebox").TLiteral<"failed">, import("typebox").TLiteral<"cancelled">, import("typebox").TLiteral<"timed_out">, import("typebox").TLiteral<"blocked">, import("typebox").TLiteral<"unknown">]>; errorCode: import("typebox").TOptional, import("typebox").TLiteral<"run_cancelled">, import("typebox").TLiteral<"run_timed_out">, import("typebox").TLiteral<"run_blocked">, import("typebox").TLiteral<"tool_failed">, import("typebox").TLiteral<"tool_cancelled">, import("typebox").TLiteral<"tool_timed_out">, import("typebox").TLiteral<"tool_blocked">, import("typebox").TLiteral<"tool_outcome_unknown">]>>; actor: import("typebox").TObject<{ type: import("typebox").TUnion<[import("typebox").TLiteral<"agent">, import("typebox").TLiteral<"system">]>; id: import("typebox").TString; }>; agentId: import("typebox").TString; sessionKey: import("typebox").TOptional; sessionId: import("typebox").TOptional; runId: import("typebox").TString; toolCallId: import("typebox").TOptional; toolName: import("typebox").TOptional; redaction: import("typebox").TLiteral<"metadata_only">; }>>; nextCursor: import("typebox").TOptional; }>; TaskSummary: import("typebox").TObject<{ id: import("typebox").TString; kind: import("typebox").TOptional; runtime: import("typebox").TOptional; status: import("typebox").TUnion<[import("typebox").TLiteral<"queued">, import("typebox").TLiteral<"running">, import("typebox").TLiteral<"completed">, import("typebox").TLiteral<"failed">, import("typebox").TLiteral<"cancelled">, import("typebox").TLiteral<"timed_out">]>; title: import("typebox").TOptional; agentId: import("typebox").TOptional; sessionKey: import("typebox").TOptional; childSessionKey: import("typebox").TOptional; ownerKey: import("typebox").TOptional; runId: import("typebox").TOptional; taskId: import("typebox").TOptional; flowId: import("typebox").TOptional; parentTaskId: import("typebox").TOptional; sourceId: import("typebox").TOptional; createdAt: import("typebox").TOptional>; updatedAt: import("typebox").TOptional>; startedAt: import("typebox").TOptional>; endedAt: import("typebox").TOptional>; progressSummary: import("typebox").TOptional; terminalSummary: import("typebox").TOptional; error: import("typebox").TOptional; }>; TasksListParams: import("typebox").TObject<{ status: import("typebox").TOptional, import("typebox").TLiteral<"running">, import("typebox").TLiteral<"completed">, import("typebox").TLiteral<"failed">, import("typebox").TLiteral<"cancelled">, import("typebox").TLiteral<"timed_out">]>, import("typebox").TArray, import("typebox").TLiteral<"running">, import("typebox").TLiteral<"completed">, import("typebox").TLiteral<"failed">, import("typebox").TLiteral<"cancelled">, import("typebox").TLiteral<"timed_out">]>>]>>; agentId: import("typebox").TOptional; sessionKey: import("typebox").TOptional; limit: import("typebox").TOptional; cursor: import("typebox").TOptional; }>; TasksListResult: import("typebox").TObject<{ tasks: import("typebox").TArray; runtime: import("typebox").TOptional; status: import("typebox").TUnion<[import("typebox").TLiteral<"queued">, import("typebox").TLiteral<"running">, import("typebox").TLiteral<"completed">, import("typebox").TLiteral<"failed">, import("typebox").TLiteral<"cancelled">, import("typebox").TLiteral<"timed_out">]>; title: import("typebox").TOptional; agentId: import("typebox").TOptional; sessionKey: import("typebox").TOptional; childSessionKey: import("typebox").TOptional; ownerKey: import("typebox").TOptional; runId: import("typebox").TOptional; taskId: import("typebox").TOptional; flowId: import("typebox").TOptional; parentTaskId: import("typebox").TOptional; sourceId: import("typebox").TOptional; createdAt: import("typebox").TOptional>; updatedAt: import("typebox").TOptional>; startedAt: import("typebox").TOptional>; endedAt: import("typebox").TOptional>; progressSummary: import("typebox").TOptional; terminalSummary: import("typebox").TOptional; error: import("typebox").TOptional; }>>; nextCursor: import("typebox").TOptional; }>; TasksGetParams: import("typebox").TObject<{ taskId: import("typebox").TString; }>; TasksGetResult: import("typebox").TObject<{ task: import("typebox").TObject<{ id: import("typebox").TString; kind: import("typebox").TOptional; runtime: import("typebox").TOptional; status: import("typebox").TUnion<[import("typebox").TLiteral<"queued">, import("typebox").TLiteral<"running">, import("typebox").TLiteral<"completed">, import("typebox").TLiteral<"failed">, import("typebox").TLiteral<"cancelled">, import("typebox").TLiteral<"timed_out">]>; title: import("typebox").TOptional; agentId: import("typebox").TOptional; sessionKey: import("typebox").TOptional; childSessionKey: import("typebox").TOptional; ownerKey: import("typebox").TOptional; runId: import("typebox").TOptional; taskId: import("typebox").TOptional; flowId: import("typebox").TOptional; parentTaskId: import("typebox").TOptional; sourceId: import("typebox").TOptional; createdAt: import("typebox").TOptional>; updatedAt: import("typebox").TOptional>; startedAt: import("typebox").TOptional>; endedAt: import("typebox").TOptional>; progressSummary: import("typebox").TOptional; terminalSummary: import("typebox").TOptional; error: import("typebox").TOptional; }>; }>; TasksCancelParams: import("typebox").TObject<{ taskId: import("typebox").TString; reason: import("typebox").TOptional; }>; TasksCancelResult: import("typebox").TObject<{ found: import("typebox").TBoolean; cancelled: import("typebox").TBoolean; reason: import("typebox").TOptional; task: import("typebox").TOptional; runtime: import("typebox").TOptional; status: import("typebox").TUnion<[import("typebox").TLiteral<"queued">, import("typebox").TLiteral<"running">, import("typebox").TLiteral<"completed">, import("typebox").TLiteral<"failed">, import("typebox").TLiteral<"cancelled">, import("typebox").TLiteral<"timed_out">]>; title: import("typebox").TOptional; agentId: import("typebox").TOptional; sessionKey: import("typebox").TOptional; childSessionKey: import("typebox").TOptional; ownerKey: import("typebox").TOptional; runId: import("typebox").TOptional; taskId: import("typebox").TOptional; flowId: import("typebox").TOptional; parentTaskId: import("typebox").TOptional; sourceId: import("typebox").TOptional; createdAt: import("typebox").TOptional>; updatedAt: import("typebox").TOptional>; startedAt: import("typebox").TOptional>; endedAt: import("typebox").TOptional>; progressSummary: import("typebox").TOptional; terminalSummary: import("typebox").TOptional; error: import("typebox").TOptional; }>>; }>; ConfigGetParams: import("typebox").TObject<{}>; ConfigSetParams: import("typebox").TObject<{ raw: import("typebox").TString; baseHash: import("typebox").TOptional; }>; ConfigApplyParams: import("typebox").TObject<{ readonly raw: import("typebox").TString; readonly baseHash: import("typebox").TOptional; readonly sessionKey: import("typebox").TOptional; readonly deliveryContext: import("typebox").TOptional; to: import("typebox").TOptional; accountId: import("typebox").TOptional; threadId: import("typebox").TOptional>; }>>; readonly note: import("typebox").TOptional; readonly restartDelayMs: import("typebox").TOptional; }>; ConfigPatchParams: import("typebox").TObject<{ replacePaths: import("typebox").TOptional>; raw: import("typebox").TString; baseHash: import("typebox").TOptional; sessionKey: import("typebox").TOptional; deliveryContext: import("typebox").TOptional; to: import("typebox").TOptional; accountId: import("typebox").TOptional; threadId: import("typebox").TOptional>; }>>; note: import("typebox").TOptional; restartDelayMs: import("typebox").TOptional; }>; ConfigSchemaParams: import("typebox").TObject<{}>; ConfigSchemaLookupParams: import("typebox").TObject<{ path: import("typebox").TString; }>; ConfigSchemaResponse: import("typebox").TObject<{ schema: import("typebox").TUnknown; uiHints: import("typebox").TRecord<"^.*$", import("typebox").TObject<{ label: import("typebox").TOptional; help: import("typebox").TOptional; tags: import("typebox").TOptional>; group: import("typebox").TOptional; order: import("typebox").TOptional; advanced: import("typebox").TOptional; sensitive: import("typebox").TOptional; placeholder: import("typebox").TOptional; itemTemplate: import("typebox").TOptional; }>>; version: import("typebox").TString; generatedAt: import("typebox").TString; }>; ConfigSchemaLookupResult: import("typebox").TObject<{ path: import("typebox").TString; schema: import("typebox").TUnknown; reloadKind: import("typebox").TOptional, import("typebox").TLiteral<"hot">, import("typebox").TLiteral<"none">]>>; hint: import("typebox").TOptional; help: import("typebox").TOptional; tags: import("typebox").TOptional>; group: import("typebox").TOptional; order: import("typebox").TOptional; advanced: import("typebox").TOptional; sensitive: import("typebox").TOptional; placeholder: import("typebox").TOptional; itemTemplate: import("typebox").TOptional; }>>; hintPath: import("typebox").TOptional; children: import("typebox").TArray]>>; required: import("typebox").TBoolean; hasChildren: import("typebox").TBoolean; reloadKind: import("typebox").TOptional, import("typebox").TLiteral<"hot">, import("typebox").TLiteral<"none">]>>; hint: import("typebox").TOptional; help: import("typebox").TOptional; tags: import("typebox").TOptional>; group: import("typebox").TOptional; order: import("typebox").TOptional; advanced: import("typebox").TOptional; sensitive: import("typebox").TOptional; placeholder: import("typebox").TOptional; itemTemplate: import("typebox").TOptional; }>>; hintPath: import("typebox").TOptional; }>>; }>; CrestodianChatParams: import("typebox").TObject<{ sessionId: import("typebox").TString; message: import("typebox").TOptional; welcomeVariant: import("typebox").TOptional]>>; reset: import("typebox").TOptional; }>; CrestodianChatResult: import("typebox").TObject<{ sessionId: import("typebox").TString; reply: import("typebox").TString; sensitive: import("typebox").TOptional; action: import("typebox").TUnion<[import("typebox").TLiteral<"none">, import("typebox").TLiteral<"open-agent">, import("typebox").TLiteral<"exit">]>; }>; CrestodianSetupDetectParams: import("typebox").TObject<{}>; CrestodianSetupDetectResult: import("typebox").TObject<{ candidates: import("typebox").TArray, import("typebox").TLiteral<"openai-api-key">, import("typebox").TLiteral<"anthropic-api-key">, import("typebox").TLiteral<"claude-cli">, import("typebox").TLiteral<"codex-cli">, import("typebox").TLiteral<"gemini-cli">]>; label: import("typebox").TString; detail: import("typebox").TString; modelRef: import("typebox").TString; recommended: import("typebox").TBoolean; credentials: import("typebox").TOptional; }>>; manualProviders: import("typebox").TArray; }>>; workspace: import("typebox").TString; configuredModel: import("typebox").TOptional; setupComplete: import("typebox").TBoolean; }>; CrestodianSetupActivateParams: import("typebox").TObject<{ kind: import("typebox").TUnion<[import("typebox").TLiteral<"existing-model">, import("typebox").TLiteral<"openai-api-key">, import("typebox").TLiteral<"anthropic-api-key">, import("typebox").TLiteral<"claude-cli">, import("typebox").TLiteral<"codex-cli">, import("typebox").TLiteral<"gemini-cli">, import("typebox").TLiteral<"api-key">]>; authChoice: import("typebox").TOptional; apiKey: import("typebox").TOptional; workspace: import("typebox").TOptional; }>; CrestodianSetupActivateResult: import("typebox").TObject<{ ok: import("typebox").TBoolean; modelRef: import("typebox").TOptional; latencyMs: import("typebox").TOptional; lines: import("typebox").TOptional>; status: import("typebox").TOptional, import("typebox").TLiteral<"auth">, import("typebox").TLiteral<"rate_limit">, import("typebox").TLiteral<"billing">, import("typebox").TLiteral<"timeout">, import("typebox").TLiteral<"format">, import("typebox").TLiteral<"unavailable">, import("typebox").TLiteral<"unknown">]>>; error: import("typebox").TOptional; }>; WizardStartParams: import("typebox").TObject<{ mode: import("typebox").TOptional, import("typebox").TLiteral<"remote">]>>; workspace: import("typebox").TOptional; }>; WizardNextParams: import("typebox").TObject<{ sessionId: import("typebox").TString; answer: import("typebox").TOptional; }>>; }>; WizardCancelParams: import("typebox").TObject<{ sessionId: import("typebox").TString; }>; WizardStatusParams: import("typebox").TObject<{ sessionId: import("typebox").TString; }>; WizardStep: import("typebox").TObject<{ id: import("typebox").TString; type: import("typebox").TUnion<[import("typebox").TLiteral<"note">, import("typebox").TLiteral<"select">, import("typebox").TLiteral<"text">, import("typebox").TLiteral<"confirm">, import("typebox").TLiteral<"multiselect">, import("typebox").TLiteral<"progress">, import("typebox").TLiteral<"action">]>; title: import("typebox").TOptional; message: import("typebox").TOptional; format: import("typebox").TOptional]>>; options: import("typebox").TOptional; }>>>; initialValue: import("typebox").TOptional; placeholder: import("typebox").TOptional; sensitive: import("typebox").TOptional; executor: import("typebox").TOptional, import("typebox").TLiteral<"client">]>>; }>; WizardNextResult: import("typebox").TObject<{ done: import("typebox").TBoolean; step: import("typebox").TOptional, import("typebox").TLiteral<"select">, import("typebox").TLiteral<"text">, import("typebox").TLiteral<"confirm">, import("typebox").TLiteral<"multiselect">, import("typebox").TLiteral<"progress">, import("typebox").TLiteral<"action">]>; title: import("typebox").TOptional; message: import("typebox").TOptional; format: import("typebox").TOptional]>>; options: import("typebox").TOptional; }>>>; initialValue: import("typebox").TOptional; placeholder: import("typebox").TOptional; sensitive: import("typebox").TOptional; executor: import("typebox").TOptional, import("typebox").TLiteral<"client">]>>; }>>; status: import("typebox").TOptional, import("typebox").TLiteral<"done">, import("typebox").TLiteral<"cancelled">, import("typebox").TLiteral<"error">]>>; error: import("typebox").TOptional; }>; WizardStartResult: import("typebox").TObject<{ done: import("typebox").TBoolean; step: import("typebox").TOptional, import("typebox").TLiteral<"select">, import("typebox").TLiteral<"text">, import("typebox").TLiteral<"confirm">, import("typebox").TLiteral<"multiselect">, import("typebox").TLiteral<"progress">, import("typebox").TLiteral<"action">]>; title: import("typebox").TOptional; message: import("typebox").TOptional; format: import("typebox").TOptional]>>; options: import("typebox").TOptional; }>>>; initialValue: import("typebox").TOptional; placeholder: import("typebox").TOptional; sensitive: import("typebox").TOptional; executor: import("typebox").TOptional, import("typebox").TLiteral<"client">]>>; }>>; status: import("typebox").TOptional, import("typebox").TLiteral<"done">, import("typebox").TLiteral<"cancelled">, import("typebox").TLiteral<"error">]>>; error: import("typebox").TOptional; sessionId: import("typebox").TString; }>; WizardStatusResult: import("typebox").TObject<{ status: import("typebox").TUnion<[import("typebox").TLiteral<"running">, import("typebox").TLiteral<"done">, import("typebox").TLiteral<"cancelled">, import("typebox").TLiteral<"error">]>; error: import("typebox").TOptional; }>; TalkModeParams: import("typebox").TObject<{ enabled: import("typebox").TBoolean; phase: import("typebox").TOptional; }>; TalkEvent: import("typebox").TObject<{ id: import("typebox").TString; type: import("typebox").TUnion<[import("typebox").TLiteral<"session.started">, import("typebox").TLiteral<"session.ready">, import("typebox").TLiteral<"session.closed">, import("typebox").TLiteral<"session.error">, import("typebox").TLiteral<"session.replaced">, import("typebox").TLiteral<"turn.started">, import("typebox").TLiteral<"turn.ended">, import("typebox").TLiteral<"turn.cancelled">, import("typebox").TLiteral<"capture.started">, import("typebox").TLiteral<"capture.stopped">, import("typebox").TLiteral<"capture.cancelled">, import("typebox").TLiteral<"capture.once">, import("typebox").TLiteral<"input.audio.delta">, import("typebox").TLiteral<"input.audio.committed">, import("typebox").TLiteral<"transcript.delta">, import("typebox").TLiteral<"transcript.done">, import("typebox").TLiteral<"output.text.delta">, import("typebox").TLiteral<"output.text.done">, import("typebox").TLiteral<"output.audio.started">, import("typebox").TLiteral<"output.audio.delta">, import("typebox").TLiteral<"output.audio.done">, import("typebox").TLiteral<"tool.call">, import("typebox").TLiteral<"tool.progress">, import("typebox").TLiteral<"tool.result">, import("typebox").TLiteral<"tool.error">, import("typebox").TLiteral<"usage.metrics">, import("typebox").TLiteral<"latency.metrics">, import("typebox").TLiteral<"health.changed">]>; sessionId: import("typebox").TString; turnId: import("typebox").TOptional; captureId: import("typebox").TOptional; seq: import("typebox").TInteger; timestamp: import("typebox").TString; mode: import("typebox").TUnion<[import("typebox").TLiteral<"realtime">, import("typebox").TLiteral<"stt-tts">, import("typebox").TLiteral<"transcription">]>; transport: import("typebox").TUnion<[import("typebox").TLiteral<"webrtc">, import("typebox").TLiteral<"provider-websocket">, import("typebox").TLiteral<"gateway-relay">, import("typebox").TLiteral<"managed-room">]>; brain: import("typebox").TUnion<[import("typebox").TLiteral<"agent-consult">, import("typebox").TLiteral<"direct-tools">, import("typebox").TLiteral<"none">]>; provider: import("typebox").TOptional; final: import("typebox").TOptional; callId: import("typebox").TOptional; itemId: import("typebox").TOptional; parentId: import("typebox").TOptional; payload: import("typebox").TUnknown; }>; TalkCatalogParams: import("typebox").TObject<{}>; TalkCatalogResult: import("typebox").TObject<{ modes: import("typebox").TArray, import("typebox").TLiteral<"stt-tts">, import("typebox").TLiteral<"transcription">]>>; transports: import("typebox").TArray, import("typebox").TLiteral<"provider-websocket">, import("typebox").TLiteral<"gateway-relay">, import("typebox").TLiteral<"managed-room">]>>; brains: import("typebox").TArray, import("typebox").TLiteral<"direct-tools">, import("typebox").TLiteral<"none">]>>; speech: import("typebox").TObject<{ ready: import("typebox").TOptional; activeProvider: import("typebox").TOptional; providers: import("typebox").TArray>; models: import("typebox").TOptional>; voices: import("typebox").TOptional>; defaultModel: import("typebox").TOptional; modes: import("typebox").TOptional, import("typebox").TLiteral<"stt-tts">, import("typebox").TLiteral<"transcription">]>>>; transports: import("typebox").TOptional, import("typebox").TLiteral<"provider-websocket">, import("typebox").TLiteral<"gateway-relay">, import("typebox").TLiteral<"managed-room">]>>>; brains: import("typebox").TOptional, import("typebox").TLiteral<"direct-tools">, import("typebox").TLiteral<"none">]>>>; inputAudioFormats: import("typebox").TOptional, import("typebox").TLiteral<"g711_ulaw">]>; sampleRateHz: import("typebox").TInteger; channels: import("typebox").TInteger; }>>>; outputAudioFormats: import("typebox").TOptional, import("typebox").TLiteral<"g711_ulaw">]>; sampleRateHz: import("typebox").TInteger; channels: import("typebox").TInteger; }>>>; supportsBrowserSession: import("typebox").TOptional; supportsBargeIn: import("typebox").TOptional; supportsToolCalls: import("typebox").TOptional; supportsVideoFrames: import("typebox").TOptional; supportsSessionResumption: import("typebox").TOptional; }>>; }>; transcription: import("typebox").TObject<{ ready: import("typebox").TOptional; activeProvider: import("typebox").TOptional; providers: import("typebox").TArray>; models: import("typebox").TOptional>; voices: import("typebox").TOptional>; defaultModel: import("typebox").TOptional; modes: import("typebox").TOptional, import("typebox").TLiteral<"stt-tts">, import("typebox").TLiteral<"transcription">]>>>; transports: import("typebox").TOptional, import("typebox").TLiteral<"provider-websocket">, import("typebox").TLiteral<"gateway-relay">, import("typebox").TLiteral<"managed-room">]>>>; brains: import("typebox").TOptional, import("typebox").TLiteral<"direct-tools">, import("typebox").TLiteral<"none">]>>>; inputAudioFormats: import("typebox").TOptional, import("typebox").TLiteral<"g711_ulaw">]>; sampleRateHz: import("typebox").TInteger; channels: import("typebox").TInteger; }>>>; outputAudioFormats: import("typebox").TOptional, import("typebox").TLiteral<"g711_ulaw">]>; sampleRateHz: import("typebox").TInteger; channels: import("typebox").TInteger; }>>>; supportsBrowserSession: import("typebox").TOptional; supportsBargeIn: import("typebox").TOptional; supportsToolCalls: import("typebox").TOptional; supportsVideoFrames: import("typebox").TOptional; supportsSessionResumption: import("typebox").TOptional; }>>; }>; realtime: import("typebox").TObject<{ ready: import("typebox").TOptional; activeProvider: import("typebox").TOptional; providers: import("typebox").TArray>; models: import("typebox").TOptional>; voices: import("typebox").TOptional>; defaultModel: import("typebox").TOptional; modes: import("typebox").TOptional, import("typebox").TLiteral<"stt-tts">, import("typebox").TLiteral<"transcription">]>>>; transports: import("typebox").TOptional, import("typebox").TLiteral<"provider-websocket">, import("typebox").TLiteral<"gateway-relay">, import("typebox").TLiteral<"managed-room">]>>>; brains: import("typebox").TOptional, import("typebox").TLiteral<"direct-tools">, import("typebox").TLiteral<"none">]>>>; inputAudioFormats: import("typebox").TOptional, import("typebox").TLiteral<"g711_ulaw">]>; sampleRateHz: import("typebox").TInteger; channels: import("typebox").TInteger; }>>>; outputAudioFormats: import("typebox").TOptional, import("typebox").TLiteral<"g711_ulaw">]>; sampleRateHz: import("typebox").TInteger; channels: import("typebox").TInteger; }>>>; supportsBrowserSession: import("typebox").TOptional; supportsBargeIn: import("typebox").TOptional; supportsToolCalls: import("typebox").TOptional; supportsVideoFrames: import("typebox").TOptional; supportsSessionResumption: import("typebox").TOptional; }>>; }>; }>; TalkClientCreateParams: import("typebox").TObject<{ sessionKey: import("typebox").TOptional; provider: import("typebox").TOptional; model: import("typebox").TOptional; voice: import("typebox").TOptional; vadThreshold: import("typebox").TOptional; silenceDurationMs: import("typebox").TOptional; prefixPaddingMs: import("typebox").TOptional; reasoningEffort: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"stt-tts">, import("typebox").TLiteral<"transcription">]>>; transport: import("typebox").TOptional, import("typebox").TLiteral<"provider-websocket">, import("typebox").TLiteral<"gateway-relay">, import("typebox").TLiteral<"managed-room">]>>; brain: import("typebox").TOptional, import("typebox").TLiteral<"direct-tools">, import("typebox").TLiteral<"none">]>>; }>; TalkClientCreateResult: import("typebox").TUnion<[import("typebox").TObject<{ provider: import("typebox").TString; transport: import("typebox").TLiteral<"webrtc">; clientSecret: import("typebox").TString; offerUrl: import("typebox").TOptional; offerHeaders: import("typebox").TOptional>; model: import("typebox").TOptional; voice: import("typebox").TOptional; expiresAt: import("typebox").TOptional; }>, import("typebox").TObject<{ provider: import("typebox").TString; transport: import("typebox").TLiteral<"provider-websocket">; protocol: import("typebox").TString; clientSecret: import("typebox").TString; websocketUrl: import("typebox").TString; audio: import("typebox").TObject<{ inputEncoding: import("typebox").TUnion<[import("typebox").TLiteral<"pcm16">, import("typebox").TLiteral<"g711_ulaw">]>; inputSampleRateHz: import("typebox").TInteger; outputEncoding: import("typebox").TUnion<[import("typebox").TLiteral<"pcm16">, import("typebox").TLiteral<"g711_ulaw">]>; outputSampleRateHz: import("typebox").TInteger; }>; initialMessage: import("typebox").TOptional; model: import("typebox").TOptional; voice: import("typebox").TOptional; expiresAt: import("typebox").TOptional; }>, import("typebox").TObject<{ provider: import("typebox").TString; transport: import("typebox").TLiteral<"gateway-relay">; relaySessionId: import("typebox").TString; audio: import("typebox").TObject<{ inputEncoding: import("typebox").TUnion<[import("typebox").TLiteral<"pcm16">, import("typebox").TLiteral<"g711_ulaw">]>; inputSampleRateHz: import("typebox").TInteger; outputEncoding: import("typebox").TUnion<[import("typebox").TLiteral<"pcm16">, import("typebox").TLiteral<"g711_ulaw">]>; outputSampleRateHz: import("typebox").TInteger; }>; model: import("typebox").TOptional; voice: import("typebox").TOptional; expiresAt: import("typebox").TOptional; }>, import("typebox").TObject<{ provider: import("typebox").TString; transport: import("typebox").TLiteral<"managed-room">; roomUrl: import("typebox").TString; token: import("typebox").TOptional; model: import("typebox").TOptional; voice: import("typebox").TOptional; expiresAt: import("typebox").TOptional; }>]>; TalkClientSteerParams: import("typebox").TObject<{ sessionKey: import("typebox").TString; text: import("typebox").TString; mode: import("typebox").TOptional, import("typebox").TLiteral<"steer">, import("typebox").TLiteral<"cancel">, import("typebox").TLiteral<"followup">]>>; }>; TalkAgentControlResult: import("typebox").TObject<{ ok: import("typebox").TBoolean; mode: import("typebox").TUnion<[import("typebox").TLiteral<"status">, import("typebox").TLiteral<"steer">, import("typebox").TLiteral<"cancel">, import("typebox").TLiteral<"followup">]>; sessionKey: import("typebox").TString; sessionId: import("typebox").TOptional; active: import("typebox").TBoolean; queued: import("typebox").TOptional; aborted: import("typebox").TOptional; target: import("typebox").TOptional, import("typebox").TLiteral<"reply_run">]>>; reason: import("typebox").TOptional; message: import("typebox").TString; speak: import("typebox").TBoolean; show: import("typebox").TBoolean; suppress: import("typebox").TBoolean; providerResult: import("typebox").TOptional; message: import("typebox").TString; }>>; enqueuedAtMs: import("typebox").TOptional; deliveredAtMs: import("typebox").TOptional; }>; TalkClientToolCallParams: import("typebox").TObject<{ sessionKey: import("typebox").TString; callId: import("typebox").TString; name: import("typebox").TString; args: import("typebox").TOptional; relaySessionId: import("typebox").TOptional; }>; TalkClientToolCallResult: import("typebox").TObject<{ runId: import("typebox").TString; idempotencyKey: import("typebox").TString; }>; TalkConfigParams: import("typebox").TObject<{ includeSecrets: import("typebox").TOptional; }>; TalkConfigResult: import("typebox").TObject<{ config: import("typebox").TObject<{ talk: import("typebox").TOptional; providers: import("typebox").TOptional; provider: import("typebox").TString; id: import("typebox").TString; }>, import("typebox").TObject<{ source: import("typebox").TLiteral<"file">; provider: import("typebox").TString; id: import("typebox").TUnsafe; }>, import("typebox").TObject<{ source: import("typebox").TLiteral<"exec">; provider: import("typebox").TString; id: import("typebox").TString; }>]>]>>; }>>>; realtime: import("typebox").TOptional; providers: import("typebox").TOptional; provider: import("typebox").TString; id: import("typebox").TString; }>, import("typebox").TObject<{ source: import("typebox").TLiteral<"file">; provider: import("typebox").TString; id: import("typebox").TUnsafe; }>, import("typebox").TObject<{ source: import("typebox").TLiteral<"exec">; provider: import("typebox").TString; id: import("typebox").TString; }>]>]>>; }>>>; model: import("typebox").TOptional; speakerVoice: import("typebox").TOptional; speakerVoiceId: import("typebox").TOptional; voice: import("typebox").TOptional; instructions: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"stt-tts">, import("typebox").TLiteral<"transcription">]>>; transport: import("typebox").TOptional, import("typebox").TLiteral<"provider-websocket">, import("typebox").TLiteral<"gateway-relay">, import("typebox").TLiteral<"managed-room">]>>; vadThreshold: import("typebox").TOptional; silenceDurationMs: import("typebox").TOptional; prefixPaddingMs: import("typebox").TOptional; reasoningEffort: import("typebox").TOptional; brain: import("typebox").TOptional, import("typebox").TLiteral<"direct-tools">, import("typebox").TLiteral<"none">]>>; consultRouting: import("typebox").TOptional, import("typebox").TLiteral<"force-agent-consult">]>>; }>>; resolved: import("typebox").TOptional; provider: import("typebox").TString; id: import("typebox").TString; }>, import("typebox").TObject<{ source: import("typebox").TLiteral<"file">; provider: import("typebox").TString; id: import("typebox").TUnsafe; }>, import("typebox").TObject<{ source: import("typebox").TLiteral<"exec">; provider: import("typebox").TString; id: import("typebox").TString; }>]>]>>; }>; }>>; consultThinkingLevel: import("typebox").TOptional; consultFastMode: import("typebox").TOptional; speechLocale: import("typebox").TOptional; interruptOnSpeech: import("typebox").TOptional; silenceTimeoutMs: import("typebox").TOptional; }>>; session: import("typebox").TOptional; }>>; ui: import("typebox").TOptional; }>>; }>; }>; TalkSessionAppendAudioParams: import("typebox").TObject<{ sessionId: import("typebox").TString; audioBase64: import("typebox").TString; timestamp: import("typebox").TOptional; }>; TalkSessionCancelOutputParams: import("typebox").TObject<{ sessionId: import("typebox").TString; turnId: import("typebox").TOptional; reason: import("typebox").TOptional; }>; TalkSessionCancelTurnParams: import("typebox").TObject<{ sessionId: import("typebox").TString; turnId: import("typebox").TOptional; reason: import("typebox").TOptional; }>; TalkSessionCreateParams: import("typebox").TObject<{ sessionKey: import("typebox").TOptional; spawnedBy: import("typebox").TOptional; provider: import("typebox").TOptional; model: import("typebox").TOptional; voice: import("typebox").TOptional; vadThreshold: import("typebox").TOptional; silenceDurationMs: import("typebox").TOptional; prefixPaddingMs: import("typebox").TOptional; reasoningEffort: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"stt-tts">, import("typebox").TLiteral<"transcription">]>>; transport: import("typebox").TOptional, import("typebox").TLiteral<"provider-websocket">, import("typebox").TLiteral<"gateway-relay">, import("typebox").TLiteral<"managed-room">]>>; brain: import("typebox").TOptional, import("typebox").TLiteral<"direct-tools">, import("typebox").TLiteral<"none">]>>; ttlMs: import("typebox").TOptional; }>; TalkSessionCreateResult: import("typebox").TObject<{ sessionId: import("typebox").TString; provider: import("typebox").TOptional; mode: import("typebox").TUnion<[import("typebox").TLiteral<"realtime">, import("typebox").TLiteral<"stt-tts">, import("typebox").TLiteral<"transcription">]>; transport: import("typebox").TUnion<[import("typebox").TLiteral<"webrtc">, import("typebox").TLiteral<"provider-websocket">, import("typebox").TLiteral<"gateway-relay">, import("typebox").TLiteral<"managed-room">]>; brain: import("typebox").TUnion<[import("typebox").TLiteral<"agent-consult">, import("typebox").TLiteral<"direct-tools">, import("typebox").TLiteral<"none">]>; relaySessionId: import("typebox").TOptional; transcriptionSessionId: import("typebox").TOptional; handoffId: import("typebox").TOptional; roomId: import("typebox").TOptional; roomUrl: import("typebox").TOptional; token: import("typebox").TOptional; audio: import("typebox").TOptional; model: import("typebox").TOptional; voice: import("typebox").TOptional; expiresAt: import("typebox").TOptional; }>; TalkSessionJoinParams: import("typebox").TObject<{ sessionId: import("typebox").TString; token: import("typebox").TString; }>; TalkSessionJoinResult: import("typebox").TObject<{ id: import("typebox").TString; roomId: import("typebox").TString; roomUrl: import("typebox").TString; sessionKey: import("typebox").TString; sessionId: import("typebox").TOptional; channel: import("typebox").TOptional; target: import("typebox").TOptional; provider: import("typebox").TOptional; model: import("typebox").TOptional; voice: import("typebox").TOptional; mode: import("typebox").TUnion<[import("typebox").TLiteral<"realtime">, import("typebox").TLiteral<"stt-tts">, import("typebox").TLiteral<"transcription">]>; transport: import("typebox").TUnion<[import("typebox").TLiteral<"webrtc">, import("typebox").TLiteral<"provider-websocket">, import("typebox").TLiteral<"gateway-relay">, import("typebox").TLiteral<"managed-room">]>; brain: import("typebox").TUnion<[import("typebox").TLiteral<"agent-consult">, import("typebox").TLiteral<"direct-tools">, import("typebox").TLiteral<"none">]>; createdAt: import("typebox").TNumber; expiresAt: import("typebox").TNumber; room: import("typebox").TObject<{ activeClientId: import("typebox").TOptional; activeTurnId: import("typebox").TOptional; recentTalkEvents: import("typebox").TArray, import("typebox").TLiteral<"session.ready">, import("typebox").TLiteral<"session.closed">, import("typebox").TLiteral<"session.error">, import("typebox").TLiteral<"session.replaced">, import("typebox").TLiteral<"turn.started">, import("typebox").TLiteral<"turn.ended">, import("typebox").TLiteral<"turn.cancelled">, import("typebox").TLiteral<"capture.started">, import("typebox").TLiteral<"capture.stopped">, import("typebox").TLiteral<"capture.cancelled">, import("typebox").TLiteral<"capture.once">, import("typebox").TLiteral<"input.audio.delta">, import("typebox").TLiteral<"input.audio.committed">, import("typebox").TLiteral<"transcript.delta">, import("typebox").TLiteral<"transcript.done">, import("typebox").TLiteral<"output.text.delta">, import("typebox").TLiteral<"output.text.done">, import("typebox").TLiteral<"output.audio.started">, import("typebox").TLiteral<"output.audio.delta">, import("typebox").TLiteral<"output.audio.done">, import("typebox").TLiteral<"tool.call">, import("typebox").TLiteral<"tool.progress">, import("typebox").TLiteral<"tool.result">, import("typebox").TLiteral<"tool.error">, import("typebox").TLiteral<"usage.metrics">, import("typebox").TLiteral<"latency.metrics">, import("typebox").TLiteral<"health.changed">]>; sessionId: import("typebox").TString; turnId: import("typebox").TOptional; captureId: import("typebox").TOptional; seq: import("typebox").TInteger; timestamp: import("typebox").TString; mode: import("typebox").TUnion<[import("typebox").TLiteral<"realtime">, import("typebox").TLiteral<"stt-tts">, import("typebox").TLiteral<"transcription">]>; transport: import("typebox").TUnion<[import("typebox").TLiteral<"webrtc">, import("typebox").TLiteral<"provider-websocket">, import("typebox").TLiteral<"gateway-relay">, import("typebox").TLiteral<"managed-room">]>; brain: import("typebox").TUnion<[import("typebox").TLiteral<"agent-consult">, import("typebox").TLiteral<"direct-tools">, import("typebox").TLiteral<"none">]>; provider: import("typebox").TOptional; final: import("typebox").TOptional; callId: import("typebox").TOptional; itemId: import("typebox").TOptional; parentId: import("typebox").TOptional; payload: import("typebox").TUnknown; }>>; }>; }>; TalkSessionTurnParams: import("typebox").TObject<{ sessionId: import("typebox").TString; turnId: import("typebox").TOptional; }>; TalkSessionTurnResult: import("typebox").TObject<{ ok: import("typebox").TBoolean; turnId: import("typebox").TOptional; events: import("typebox").TOptional, import("typebox").TLiteral<"session.ready">, import("typebox").TLiteral<"session.closed">, import("typebox").TLiteral<"session.error">, import("typebox").TLiteral<"session.replaced">, import("typebox").TLiteral<"turn.started">, import("typebox").TLiteral<"turn.ended">, import("typebox").TLiteral<"turn.cancelled">, import("typebox").TLiteral<"capture.started">, import("typebox").TLiteral<"capture.stopped">, import("typebox").TLiteral<"capture.cancelled">, import("typebox").TLiteral<"capture.once">, import("typebox").TLiteral<"input.audio.delta">, import("typebox").TLiteral<"input.audio.committed">, import("typebox").TLiteral<"transcript.delta">, import("typebox").TLiteral<"transcript.done">, import("typebox").TLiteral<"output.text.delta">, import("typebox").TLiteral<"output.text.done">, import("typebox").TLiteral<"output.audio.started">, import("typebox").TLiteral<"output.audio.delta">, import("typebox").TLiteral<"output.audio.done">, import("typebox").TLiteral<"tool.call">, import("typebox").TLiteral<"tool.progress">, import("typebox").TLiteral<"tool.result">, import("typebox").TLiteral<"tool.error">, import("typebox").TLiteral<"usage.metrics">, import("typebox").TLiteral<"latency.metrics">, import("typebox").TLiteral<"health.changed">]>; sessionId: import("typebox").TString; turnId: import("typebox").TOptional; captureId: import("typebox").TOptional; seq: import("typebox").TInteger; timestamp: import("typebox").TString; mode: import("typebox").TUnion<[import("typebox").TLiteral<"realtime">, import("typebox").TLiteral<"stt-tts">, import("typebox").TLiteral<"transcription">]>; transport: import("typebox").TUnion<[import("typebox").TLiteral<"webrtc">, import("typebox").TLiteral<"provider-websocket">, import("typebox").TLiteral<"gateway-relay">, import("typebox").TLiteral<"managed-room">]>; brain: import("typebox").TUnion<[import("typebox").TLiteral<"agent-consult">, import("typebox").TLiteral<"direct-tools">, import("typebox").TLiteral<"none">]>; provider: import("typebox").TOptional; final: import("typebox").TOptional; callId: import("typebox").TOptional; itemId: import("typebox").TOptional; parentId: import("typebox").TOptional; payload: import("typebox").TUnknown; }>>>; }>; TalkSessionSteerParams: import("typebox").TObject<{ sessionId: import("typebox").TString; sessionKey: import("typebox").TOptional; text: import("typebox").TString; mode: import("typebox").TOptional, import("typebox").TLiteral<"steer">, import("typebox").TLiteral<"cancel">, import("typebox").TLiteral<"followup">]>>; }>; TalkSessionSubmitToolResultParams: import("typebox").TObject<{ sessionId: import("typebox").TString; callId: import("typebox").TString; result: import("typebox").TUnknown; options: import("typebox").TOptional; willContinue: import("typebox").TOptional; }>>; }>; TalkSessionCloseParams: import("typebox").TObject<{ sessionId: import("typebox").TString; }>; TalkSessionOkResult: import("typebox").TObject<{ ok: import("typebox").TBoolean; }>; TalkSpeakParams: import("typebox").TObject<{ text: import("typebox").TString; voiceId: import("typebox").TOptional; modelId: import("typebox").TOptional; outputFormat: import("typebox").TOptional; speed: import("typebox").TOptional; rateWpm: import("typebox").TOptional; stability: import("typebox").TOptional; similarity: import("typebox").TOptional; style: import("typebox").TOptional; speakerBoost: import("typebox").TOptional; seed: import("typebox").TOptional; normalize: import("typebox").TOptional; language: import("typebox").TOptional; latencyTier: import("typebox").TOptional; }>; TalkSpeakResult: import("typebox").TObject<{ audioBase64: import("typebox").TString; provider: import("typebox").TString; outputFormat: import("typebox").TOptional; voiceCompatible: import("typebox").TOptional; mimeType: import("typebox").TOptional; fileExtension: import("typebox").TOptional; }>; TtsSpeakParams: import("typebox").TObject<{ text: import("typebox").TString; }>; TtsSpeakResult: import("typebox").TObject<{ audioBase64: import("typebox").TString; provider: import("typebox").TString; outputFormat: import("typebox").TOptional; mimeType: import("typebox").TOptional; fileExtension: import("typebox").TOptional; }>; ChannelsStatusParams: import("typebox").TObject<{ probe: import("typebox").TOptional; timeoutMs: import("typebox").TOptional; channel: import("typebox").TOptional; }>; ChannelsStatusResult: import("typebox").TObject<{ ts: import("typebox").TInteger; channelOrder: import("typebox").TArray; channelLabels: import("typebox").TRecord<"^.*$", import("typebox").TString>; channelDetailLabels: import("typebox").TOptional>; channelSystemImages: import("typebox").TOptional>; channelMeta: import("typebox").TOptional; }>>>; channels: import("typebox").TRecord<"^.*$", import("typebox").TUnknown>; channelAccounts: import("typebox").TRecord<"^.*$", import("typebox").TArray; enabled: import("typebox").TOptional; configured: import("typebox").TOptional; linked: import("typebox").TOptional; running: import("typebox").TOptional; connected: import("typebox").TOptional; reconnectAttempts: import("typebox").TOptional; lastConnectedAt: import("typebox").TOptional; lastError: import("typebox").TOptional; healthState: import("typebox").TOptional; lastStartAt: import("typebox").TOptional; lastStopAt: import("typebox").TOptional; lastInboundAt: import("typebox").TOptional; lastOutboundAt: import("typebox").TOptional; lastTransportActivityAt: import("typebox").TOptional; busy: import("typebox").TOptional; activeRuns: import("typebox").TOptional; lastRunActivityAt: import("typebox").TOptional; lastProbeAt: import("typebox").TOptional; mode: import("typebox").TOptional; dmPolicy: import("typebox").TOptional; allowFrom: import("typebox").TOptional>; tokenSource: import("typebox").TOptional; botTokenSource: import("typebox").TOptional; appTokenSource: import("typebox").TOptional; baseUrl: import("typebox").TOptional; allowUnmentionedGroups: import("typebox").TOptional; cliPath: import("typebox").TOptional>; dbPath: import("typebox").TOptional>; port: import("typebox").TOptional>; probe: import("typebox").TOptional; audit: import("typebox").TOptional; application: import("typebox").TOptional; }>>>; channelDefaultAccountId: import("typebox").TRecord<"^.*$", import("typebox").TString>; eventLoop: import("typebox").TOptional, import("typebox").TLiteral<"event_loop_utilization">, import("typebox").TLiteral<"cpu">]>>; intervalMs: import("typebox").TInteger; delayP99Ms: import("typebox").TNumber; delayMaxMs: import("typebox").TNumber; utilization: import("typebox").TNumber; cpuCoreRatio: import("typebox").TNumber; }>>; partial: import("typebox").TOptional; warnings: import("typebox").TOptional>; }>; ChannelsStartParams: import("typebox").TObject<{ channel: import("typebox").TString; accountId: import("typebox").TOptional; }>; ChannelsStopParams: import("typebox").TObject<{ channel: import("typebox").TString; accountId: import("typebox").TOptional; }>; ChannelsLogoutParams: import("typebox").TObject<{ channel: import("typebox").TString; accountId: import("typebox").TOptional; }>; WebLoginStartParams: import("typebox").TObject<{ force: import("typebox").TOptional; timeoutMs: import("typebox").TOptional; verbose: import("typebox").TOptional; accountId: import("typebox").TOptional; }>; WebLoginWaitParams: import("typebox").TObject<{ timeoutMs: import("typebox").TOptional; accountId: import("typebox").TOptional; currentQrDataUrl: import("typebox").TOptional; }>; AgentSummary: import("typebox").TObject<{ id: import("typebox").TString; name: import("typebox").TOptional; identity: import("typebox").TOptional; theme: import("typebox").TOptional; emoji: import("typebox").TOptional; avatar: import("typebox").TOptional; avatarUrl: import("typebox").TOptional; }>>; workspace: import("typebox").TOptional; workspaceGit: import("typebox").TOptional; model: import("typebox").TOptional; fallbacks: import("typebox").TOptional>; }>>; agentRuntime: import("typebox").TOptional, import("typebox").TLiteral<"none">]>>; source: import("typebox").TUnion<[import("typebox").TLiteral<"env">, import("typebox").TLiteral<"agent">, import("typebox").TLiteral<"defaults">, import("typebox").TLiteral<"model">, import("typebox").TLiteral<"provider">, import("typebox").TLiteral<"implicit">]>; }>>; thinkingLevels: import("typebox").TOptional>>; thinkingOptions: import("typebox").TOptional>; thinkingDefault: import("typebox").TOptional; }>; AgentsCreateParams: import("typebox").TObject<{ name: import("typebox").TString; workspace: import("typebox").TString; model: import("typebox").TOptional; emoji: import("typebox").TOptional; avatar: import("typebox").TOptional; }>; AgentsCreateResult: import("typebox").TObject<{ ok: import("typebox").TLiteral; agentId: import("typebox").TString; name: import("typebox").TString; workspace: import("typebox").TString; model: import("typebox").TOptional; }>; AgentsUpdateParams: import("typebox").TObject<{ agentId: import("typebox").TString; name: import("typebox").TOptional; workspace: import("typebox").TOptional; model: import("typebox").TOptional; emoji: import("typebox").TOptional; avatar: import("typebox").TOptional; }>; AgentsUpdateResult: import("typebox").TObject<{ ok: import("typebox").TLiteral; agentId: import("typebox").TString; }>; AgentsDeleteParams: import("typebox").TObject<{ agentId: import("typebox").TString; deleteFiles: import("typebox").TOptional; }>; AgentsDeleteResult: import("typebox").TObject<{ ok: import("typebox").TLiteral; agentId: import("typebox").TString; removedBindings: import("typebox").TInteger; }>; AgentsFileEntry: import("typebox").TObject<{ name: import("typebox").TString; path: import("typebox").TString; missing: import("typebox").TBoolean; size: import("typebox").TOptional; updatedAtMs: import("typebox").TOptional; content: import("typebox").TOptional; }>; AgentsFilesListParams: import("typebox").TObject<{ agentId: import("typebox").TString; }>; AgentsFilesListResult: import("typebox").TObject<{ agentId: import("typebox").TString; workspace: import("typebox").TString; files: import("typebox").TArray; updatedAtMs: import("typebox").TOptional; content: import("typebox").TOptional; }>>; }>; AgentsFilesGetParams: import("typebox").TObject<{ agentId: import("typebox").TString; name: import("typebox").TString; }>; AgentsFilesGetResult: import("typebox").TObject<{ agentId: import("typebox").TString; workspace: import("typebox").TString; file: import("typebox").TObject<{ name: import("typebox").TString; path: import("typebox").TString; missing: import("typebox").TBoolean; size: import("typebox").TOptional; updatedAtMs: import("typebox").TOptional; content: import("typebox").TOptional; }>; }>; AgentsFilesSetParams: import("typebox").TObject<{ agentId: import("typebox").TString; name: import("typebox").TString; content: import("typebox").TString; }>; AgentsFilesSetResult: import("typebox").TObject<{ ok: import("typebox").TLiteral; agentId: import("typebox").TString; workspace: import("typebox").TString; file: import("typebox").TObject<{ name: import("typebox").TString; path: import("typebox").TString; missing: import("typebox").TBoolean; size: import("typebox").TOptional; updatedAtMs: import("typebox").TOptional; content: import("typebox").TOptional; }>; }>; AgentsWorkspaceEntry: import("typebox").TObject<{ path: import("typebox").TString; name: import("typebox").TString; kind: import("typebox").TUnion<[import("typebox").TLiteral<"file">, import("typebox").TLiteral<"directory">]>; size: import("typebox").TOptional; updatedAtMs: import("typebox").TOptional; }>; AgentsWorkspaceFile: import("typebox").TObject<{ path: import("typebox").TString; name: import("typebox").TString; size: import("typebox").TInteger; updatedAtMs: import("typebox").TInteger; mimeType: import("typebox").TString; encoding: import("typebox").TUnion<[import("typebox").TLiteral<"utf8">, import("typebox").TLiteral<"base64">]>; content: import("typebox").TString; }>; AgentsWorkspaceListParams: import("typebox").TObject<{ agentId: import("typebox").TString; path: import("typebox").TOptional; offset: import("typebox").TOptional; limit: import("typebox").TOptional; }>; AgentsWorkspaceListResult: import("typebox").TObject<{ agentId: import("typebox").TString; path: import("typebox").TString; parentPath: import("typebox").TOptional; entries: import("typebox").TArray, import("typebox").TLiteral<"directory">]>; size: import("typebox").TOptional; updatedAtMs: import("typebox").TOptional; }>>; totalEntries: import("typebox").TInteger; offset: import("typebox").TInteger; }>; AgentsWorkspaceGetParams: import("typebox").TObject<{ agentId: import("typebox").TString; path: import("typebox").TString; }>; AgentsWorkspaceGetResult: import("typebox").TObject<{ agentId: import("typebox").TString; file: import("typebox").TObject<{ path: import("typebox").TString; name: import("typebox").TString; size: import("typebox").TInteger; updatedAtMs: import("typebox").TInteger; mimeType: import("typebox").TString; encoding: import("typebox").TUnion<[import("typebox").TLiteral<"utf8">, import("typebox").TLiteral<"base64">]>; content: import("typebox").TString; }>; }>; ArtifactSummary: import("typebox").TObject<{ id: import("typebox").TString; type: import("typebox").TString; title: import("typebox").TString; mimeType: import("typebox").TOptional; sizeBytes: import("typebox").TOptional; sessionKey: import("typebox").TOptional; runId: import("typebox").TOptional; taskId: import("typebox").TOptional; messageSeq: import("typebox").TOptional; source: import("typebox").TOptional; download: import("typebox").TObject<{ mode: import("typebox").TUnion<[import("typebox").TLiteral<"bytes">, import("typebox").TLiteral<"url">, import("typebox").TLiteral<"unsupported">]>; }>; }>; ArtifactsListParams: import("typebox").TObject<{ sessionKey: import("typebox").TOptional; runId: import("typebox").TOptional; taskId: import("typebox").TOptional; agentId: import("typebox").TOptional; }>; ArtifactsListResult: import("typebox").TObject<{ artifacts: import("typebox").TArray; sizeBytes: import("typebox").TOptional; sessionKey: import("typebox").TOptional; runId: import("typebox").TOptional; taskId: import("typebox").TOptional; messageSeq: import("typebox").TOptional; source: import("typebox").TOptional; download: import("typebox").TObject<{ mode: import("typebox").TUnion<[import("typebox").TLiteral<"bytes">, import("typebox").TLiteral<"url">, import("typebox").TLiteral<"unsupported">]>; }>; }>>; }>; ArtifactsGetParams: import("typebox").TObject<{ artifactId: import("typebox").TString; sessionKey: import("typebox").TOptional; runId: import("typebox").TOptional; taskId: import("typebox").TOptional; agentId: import("typebox").TOptional; }>; ArtifactsGetResult: import("typebox").TObject<{ artifact: import("typebox").TObject<{ id: import("typebox").TString; type: import("typebox").TString; title: import("typebox").TString; mimeType: import("typebox").TOptional; sizeBytes: import("typebox").TOptional; sessionKey: import("typebox").TOptional; runId: import("typebox").TOptional; taskId: import("typebox").TOptional; messageSeq: import("typebox").TOptional; source: import("typebox").TOptional; download: import("typebox").TObject<{ mode: import("typebox").TUnion<[import("typebox").TLiteral<"bytes">, import("typebox").TLiteral<"url">, import("typebox").TLiteral<"unsupported">]>; }>; }>; }>; ArtifactsDownloadParams: import("typebox").TObject<{ artifactId: import("typebox").TString; sessionKey: import("typebox").TOptional; runId: import("typebox").TOptional; taskId: import("typebox").TOptional; agentId: import("typebox").TOptional; }>; ArtifactsDownloadResult: import("typebox").TObject<{ artifact: import("typebox").TObject<{ id: import("typebox").TString; type: import("typebox").TString; title: import("typebox").TString; mimeType: import("typebox").TOptional; sizeBytes: import("typebox").TOptional; sessionKey: import("typebox").TOptional; runId: import("typebox").TOptional; taskId: import("typebox").TOptional; messageSeq: import("typebox").TOptional; source: import("typebox").TOptional; download: import("typebox").TObject<{ mode: import("typebox").TUnion<[import("typebox").TLiteral<"bytes">, import("typebox").TLiteral<"url">, import("typebox").TLiteral<"unsupported">]>; }>; }>; encoding: import("typebox").TOptional>; data: import("typebox").TOptional; url: import("typebox").TOptional; }>; AgentsListParams: import("typebox").TObject<{}>; AgentsListResult: import("typebox").TObject<{ defaultId: import("typebox").TString; mainKey: import("typebox").TString; scope: import("typebox").TUnion<[import("typebox").TLiteral<"per-sender">, import("typebox").TLiteral<"global">]>; agents: import("typebox").TArray; identity: import("typebox").TOptional; theme: import("typebox").TOptional; emoji: import("typebox").TOptional; avatar: import("typebox").TOptional; avatarUrl: import("typebox").TOptional; }>>; workspace: import("typebox").TOptional; workspaceGit: import("typebox").TOptional; model: import("typebox").TOptional; fallbacks: import("typebox").TOptional>; }>>; agentRuntime: import("typebox").TOptional, import("typebox").TLiteral<"none">]>>; source: import("typebox").TUnion<[import("typebox").TLiteral<"env">, import("typebox").TLiteral<"agent">, import("typebox").TLiteral<"defaults">, import("typebox").TLiteral<"model">, import("typebox").TLiteral<"provider">, import("typebox").TLiteral<"implicit">]>; }>>; thinkingLevels: import("typebox").TOptional>>; thinkingOptions: import("typebox").TOptional>; thinkingDefault: import("typebox").TOptional; }>>; }>; ModelChoice: import("typebox").TObject<{ id: import("typebox").TString; name: import("typebox").TString; provider: import("typebox").TString; alias: import("typebox").TOptional; available: import("typebox").TOptional; contextWindow: import("typebox").TOptional; reasoning: import("typebox").TOptional; }>; ModelsListParams: import("typebox").TObject<{ view: import("typebox").TOptional, import("typebox").TLiteral<"configured">, import("typebox").TLiteral<"all">]>>; }>; ModelsListResult: import("typebox").TObject<{ models: import("typebox").TArray; available: import("typebox").TOptional; contextWindow: import("typebox").TOptional; reasoning: import("typebox").TOptional; }>>; }>; CommandEntry: import("typebox").TObject<{ name: import("typebox").TString; nativeName: import("typebox").TOptional; textAliases: import("typebox").TOptional>; description: import("typebox").TString; category: import("typebox").TOptional, import("typebox").TLiteral<"options">, import("typebox").TLiteral<"status">, import("typebox").TLiteral<"management">, import("typebox").TLiteral<"media">, import("typebox").TLiteral<"tools">, import("typebox").TLiteral<"docks">]>>; source: import("typebox").TUnion<[import("typebox").TLiteral<"native">, import("typebox").TLiteral<"skill">, import("typebox").TLiteral<"plugin">]>; scope: import("typebox").TUnion<[import("typebox").TLiteral<"text">, import("typebox").TLiteral<"native">, import("typebox").TLiteral<"both">]>; acceptsArgs: import("typebox").TBoolean; args: import("typebox").TOptional, import("typebox").TLiteral<"number">, import("typebox").TLiteral<"boolean">]>; required: import("typebox").TOptional; choices: import("typebox").TOptional>>; dynamic: import("typebox").TOptional; }>>>; }>; CommandsListParams: import("typebox").TObject<{ agentId: import("typebox").TOptional; provider: import("typebox").TOptional; scope: import("typebox").TOptional, import("typebox").TLiteral<"native">, import("typebox").TLiteral<"both">]>>; includeArgs: import("typebox").TOptional; }>; CommandsListResult: import("typebox").TObject<{ commands: import("typebox").TArray; textAliases: import("typebox").TOptional>; description: import("typebox").TString; category: import("typebox").TOptional, import("typebox").TLiteral<"options">, import("typebox").TLiteral<"status">, import("typebox").TLiteral<"management">, import("typebox").TLiteral<"media">, import("typebox").TLiteral<"tools">, import("typebox").TLiteral<"docks">]>>; source: import("typebox").TUnion<[import("typebox").TLiteral<"native">, import("typebox").TLiteral<"skill">, import("typebox").TLiteral<"plugin">]>; scope: import("typebox").TUnion<[import("typebox").TLiteral<"text">, import("typebox").TLiteral<"native">, import("typebox").TLiteral<"both">]>; acceptsArgs: import("typebox").TBoolean; args: import("typebox").TOptional, import("typebox").TLiteral<"number">, import("typebox").TLiteral<"boolean">]>; required: import("typebox").TOptional; choices: import("typebox").TOptional>>; dynamic: import("typebox").TOptional; }>>>; }>>; }>; SkillsStatusParams: import("typebox").TObject<{ agentId: import("typebox").TOptional; }>; ToolsCatalogParams: import("typebox").TObject<{ agentId: import("typebox").TOptional; includePlugins: import("typebox").TOptional; }>; ToolCatalogProfile: import("typebox").TObject<{ id: import("typebox").TUnion<[import("typebox").TLiteral<"minimal">, import("typebox").TLiteral<"coding">, import("typebox").TLiteral<"messaging">, import("typebox").TLiteral<"full">]>; label: import("typebox").TString; }>; ToolCatalogEntry: import("typebox").TObject<{ id: import("typebox").TString; label: import("typebox").TString; description: import("typebox").TString; source: import("typebox").TUnion<[import("typebox").TLiteral<"core">, import("typebox").TLiteral<"plugin">]>; pluginId: import("typebox").TOptional; optional: import("typebox").TOptional; risk: import("typebox").TOptional, import("typebox").TLiteral<"medium">, import("typebox").TLiteral<"high">]>>; tags: import("typebox").TOptional>; defaultProfiles: import("typebox").TArray, import("typebox").TLiteral<"coding">, import("typebox").TLiteral<"messaging">, import("typebox").TLiteral<"full">]>>; }>; ToolCatalogGroup: import("typebox").TObject<{ id: import("typebox").TString; label: import("typebox").TString; source: import("typebox").TUnion<[import("typebox").TLiteral<"core">, import("typebox").TLiteral<"plugin">]>; pluginId: import("typebox").TOptional; tools: import("typebox").TArray, import("typebox").TLiteral<"plugin">]>; pluginId: import("typebox").TOptional; optional: import("typebox").TOptional; risk: import("typebox").TOptional, import("typebox").TLiteral<"medium">, import("typebox").TLiteral<"high">]>>; tags: import("typebox").TOptional>; defaultProfiles: import("typebox").TArray, import("typebox").TLiteral<"coding">, import("typebox").TLiteral<"messaging">, import("typebox").TLiteral<"full">]>>; }>>; }>; ToolsCatalogResult: import("typebox").TObject<{ agentId: import("typebox").TString; profiles: import("typebox").TArray, import("typebox").TLiteral<"coding">, import("typebox").TLiteral<"messaging">, import("typebox").TLiteral<"full">]>; label: import("typebox").TString; }>>; groups: import("typebox").TArray, import("typebox").TLiteral<"plugin">]>; pluginId: import("typebox").TOptional; tools: import("typebox").TArray, import("typebox").TLiteral<"plugin">]>; pluginId: import("typebox").TOptional; optional: import("typebox").TOptional; risk: import("typebox").TOptional, import("typebox").TLiteral<"medium">, import("typebox").TLiteral<"high">]>>; tags: import("typebox").TOptional>; defaultProfiles: import("typebox").TArray, import("typebox").TLiteral<"coding">, import("typebox").TLiteral<"messaging">, import("typebox").TLiteral<"full">]>>; }>>; }>>; }>; ToolsEffectiveParams: import("typebox").TObject<{ agentId: import("typebox").TOptional; sessionKey: import("typebox").TString; }>; ToolsEffectiveEntry: import("typebox").TObject<{ id: import("typebox").TString; label: import("typebox").TString; description: import("typebox").TString; rawDescription: import("typebox").TString; source: import("typebox").TUnion<[import("typebox").TLiteral<"core">, import("typebox").TLiteral<"plugin">, import("typebox").TLiteral<"channel">, import("typebox").TLiteral<"mcp">]>; pluginId: import("typebox").TOptional; channelId: import("typebox").TOptional; risk: import("typebox").TOptional, import("typebox").TLiteral<"medium">, import("typebox").TLiteral<"high">]>>; tags: import("typebox").TOptional>; }>; ToolsEffectiveGroup: import("typebox").TObject<{ id: import("typebox").TUnion<[import("typebox").TLiteral<"core">, import("typebox").TLiteral<"plugin">, import("typebox").TLiteral<"channel">, import("typebox").TLiteral<"mcp">]>; label: import("typebox").TString; source: import("typebox").TUnion<[import("typebox").TLiteral<"core">, import("typebox").TLiteral<"plugin">, import("typebox").TLiteral<"channel">, import("typebox").TLiteral<"mcp">]>; tools: import("typebox").TArray, import("typebox").TLiteral<"plugin">, import("typebox").TLiteral<"channel">, import("typebox").TLiteral<"mcp">]>; pluginId: import("typebox").TOptional; channelId: import("typebox").TOptional; risk: import("typebox").TOptional, import("typebox").TLiteral<"medium">, import("typebox").TLiteral<"high">]>>; tags: import("typebox").TOptional>; }>>; }>; ToolsEffectiveNotice: import("typebox").TObject<{ id: import("typebox").TString; severity: import("typebox").TUnion<[import("typebox").TLiteral<"info">, import("typebox").TLiteral<"warning">]>; message: import("typebox").TString; }>; ToolsEffectiveResult: import("typebox").TObject<{ agentId: import("typebox").TString; profile: import("typebox").TString; groups: import("typebox").TArray, import("typebox").TLiteral<"plugin">, import("typebox").TLiteral<"channel">, import("typebox").TLiteral<"mcp">]>; label: import("typebox").TString; source: import("typebox").TUnion<[import("typebox").TLiteral<"core">, import("typebox").TLiteral<"plugin">, import("typebox").TLiteral<"channel">, import("typebox").TLiteral<"mcp">]>; tools: import("typebox").TArray, import("typebox").TLiteral<"plugin">, import("typebox").TLiteral<"channel">, import("typebox").TLiteral<"mcp">]>; pluginId: import("typebox").TOptional; channelId: import("typebox").TOptional; risk: import("typebox").TOptional, import("typebox").TLiteral<"medium">, import("typebox").TLiteral<"high">]>>; tags: import("typebox").TOptional>; }>>; }>>; notices: import("typebox").TOptional, import("typebox").TLiteral<"warning">]>; message: import("typebox").TString; }>>>; }>; ToolsInvokeParams: import("typebox").TObject<{ name: import("typebox").TString; args: import("typebox").TOptional>; sessionKey: import("typebox").TOptional; agentId: import("typebox").TOptional; confirm: import("typebox").TOptional; idempotencyKey: import("typebox").TOptional; }>; ToolsInvokeError: import("typebox").TObject<{ code: import("typebox").TString; message: import("typebox").TString; details: import("typebox").TOptional; }>; ToolsInvokeResult: import("typebox").TObject<{ ok: import("typebox").TBoolean; toolName: import("typebox").TString; output: import("typebox").TOptional; requiresApproval: import("typebox").TOptional; approvalId: import("typebox").TOptional; source: import("typebox").TOptional, import("typebox").TLiteral<"plugin">, import("typebox").TLiteral<"mcp">, import("typebox").TLiteral<"channel">, import("typebox").TString]>>; error: import("typebox").TOptional; }>>; }>; SkillsBinsParams: import("typebox").TObject<{}>; SkillsBinsResult: import("typebox").TObject<{ bins: import("typebox").TArray; }>; SkillsSearchParams: import("typebox").TObject<{ query: import("typebox").TOptional; limit: import("typebox").TOptional; }>; SkillsSearchResult: import("typebox").TObject<{ results: import("typebox").TArray; version: import("typebox").TOptional; updatedAt: import("typebox").TOptional; }>>; }>; SkillsDetailParams: import("typebox").TObject<{ slug: import("typebox").TString; }>; SkillsDetailResult: import("typebox").TObject<{ skill: import("typebox").TUnion<[import("typebox").TObject<{ slug: import("typebox").TString; displayName: import("typebox").TString; summary: import("typebox").TOptional; tags: import("typebox").TOptional>; channel: import("typebox").TOptional>; isOfficial: import("typebox").TOptional>; createdAt: import("typebox").TInteger; updatedAt: import("typebox").TInteger; }>, import("typebox").TNull]>; latestVersion: import("typebox").TOptional; }>, import("typebox").TNull]>>; metadata: import("typebox").TOptional, import("typebox").TNull]>>; systems: import("typebox").TOptional, import("typebox").TNull]>>; }>, import("typebox").TNull]>>; owner: import("typebox").TOptional>; displayName: import("typebox").TOptional>; image: import("typebox").TOptional>; official: import("typebox").TOptional>; channel: import("typebox").TOptional>; isOfficial: import("typebox").TOptional>; }>, import("typebox").TNull]>>; }>; SkillsCuratorActionParams: import("typebox").TObject<{ skill: import("typebox").TString; }>; SkillsCuratorActionResult: import("typebox").TObject<{ skillFile: import("typebox").TString; skillKey: import("typebox").TString; skillName: import("typebox").TString; state: import("typebox").TUnion<[import("typebox").TLiteral<"active">, import("typebox").TLiteral<"stale">, import("typebox").TLiteral<"archived">]>; pinned: import("typebox").TBoolean; createdAtMs: import("typebox").TNumber; stateChangedAtMs: import("typebox").TNumber; lastUsedAtMs: import("typebox").TUnion<[import("typebox").TNumber, import("typebox").TNull]>; useCount: import("typebox").TNumber; archivedReason: import("typebox").TUnion<[import("typebox").TString, import("typebox").TNull]>; }>; SkillsCuratorStatusParams: import("typebox").TObject<{}>; SkillsCuratorStatusResult: import("typebox").TObject<{ lastAttemptAtMs: import("typebox").TUnion<[import("typebox").TNumber, import("typebox").TNull]>; lastSuccessAtMs: import("typebox").TUnion<[import("typebox").TNumber, import("typebox").TNull]>; lastError: import("typebox").TUnion<[import("typebox").TString, import("typebox").TNull]>; counts: import("typebox").TObject<{ active: import("typebox").TNumber; stale: import("typebox").TNumber; archived: import("typebox").TNumber; }>; skills: import("typebox").TArray, import("typebox").TLiteral<"stale">, import("typebox").TLiteral<"archived">]>; pinned: import("typebox").TBoolean; createdAtMs: import("typebox").TNumber; stateChangedAtMs: import("typebox").TNumber; lastUsedAtMs: import("typebox").TUnion<[import("typebox").TNumber, import("typebox").TNull]>; useCount: import("typebox").TNumber; archivedReason: import("typebox").TUnion<[import("typebox").TString, import("typebox").TNull]>; }>>; overlaps: import("typebox").TArray>; }>; SkillsProposalsListParams: import("typebox").TObject<{ agentId: import("typebox").TOptional; }>; SkillsProposalsListResult: import("typebox").TObject<{ schema: import("typebox").TLiteral<"openclaw.skill-workshop.proposals-manifest.v1">; updatedAt: import("typebox").TString; proposals: import("typebox").TArray, import("typebox").TLiteral<"update">]>; status: import("typebox").TUnion<[import("typebox").TLiteral<"pending">, import("typebox").TLiteral<"applied">, import("typebox").TLiteral<"rejected">, import("typebox").TLiteral<"quarantined">, import("typebox").TLiteral<"stale">]>; title: import("typebox").TString; description: import("typebox").TString; skillName: import("typebox").TString; skillKey: import("typebox").TString; createdAt: import("typebox").TString; updatedAt: import("typebox").TString; scanState: import("typebox").TUnion<[import("typebox").TLiteral<"pending">, import("typebox").TLiteral<"clean">, import("typebox").TLiteral<"failed">, import("typebox").TLiteral<"quarantined">]>; }>>; }>; SkillsProposalInspectParams: import("typebox").TObject<{ agentId: import("typebox").TOptional; proposalId: import("typebox").TString; }>; SkillsProposalInspectResult: import("typebox").TObject<{ record: import("typebox").TObject<{ schema: import("typebox").TLiteral<"openclaw.skill-workshop.proposal.v1">; id: import("typebox").TString; kind: import("typebox").TUnion<[import("typebox").TLiteral<"create">, import("typebox").TLiteral<"update">]>; status: import("typebox").TUnion<[import("typebox").TLiteral<"pending">, import("typebox").TLiteral<"applied">, import("typebox").TLiteral<"rejected">, import("typebox").TLiteral<"quarantined">, import("typebox").TLiteral<"stale">]>; title: import("typebox").TString; description: import("typebox").TString; createdAt: import("typebox").TString; updatedAt: import("typebox").TString; createdBy: import("typebox").TUnion<[import("typebox").TLiteral<"skill-workshop">, import("typebox").TLiteral<"cli">, import("typebox").TLiteral<"gateway">]>; origin: import("typebox").TOptional; sessionKey: import("typebox").TOptional; runId: import("typebox").TOptional; messageId: import("typebox").TOptional; }>>; proposedVersion: import("typebox").TString; draftFile: import("typebox").TLiteral<"PROPOSAL.md">; draftHash: import("typebox").TString; supportFiles: import("typebox").TOptional; targetContentHash: import("typebox").TOptional; }>>>; target: import("typebox").TObject<{ skillName: import("typebox").TString; skillKey: import("typebox").TString; skillDir: import("typebox").TString; skillFile: import("typebox").TString; source: import("typebox").TOptional; currentContentHash: import("typebox").TOptional; }>; scan: import("typebox").TObject<{ state: import("typebox").TUnion<[import("typebox").TLiteral<"pending">, import("typebox").TLiteral<"clean">, import("typebox").TLiteral<"failed">, import("typebox").TLiteral<"quarantined">]>; scannedAt: import("typebox").TString; critical: import("typebox").TInteger; warn: import("typebox").TInteger; info: import("typebox").TInteger; findings: import("typebox").TArray, import("typebox").TLiteral<"warn">, import("typebox").TLiteral<"critical">]>; file: import("typebox").TString; line: import("typebox").TInteger; message: import("typebox").TString; evidence: import("typebox").TString; }>>; }>; goal: import("typebox").TOptional; evidence: import("typebox").TOptional; appliedAt: import("typebox").TOptional; rejectedAt: import("typebox").TOptional; quarantinedAt: import("typebox").TOptional; staleAt: import("typebox").TOptional; statusReason: import("typebox").TOptional; }>; content: import("typebox").TString; supportFiles: import("typebox").TOptional>>; }>; SkillsProposalCreateParams: import("typebox").TObject<{ agentId: import("typebox").TOptional; name: import("typebox").TString; description: import("typebox").TString; content: import("typebox").TString; supportFiles: import("typebox").TOptional>>; goal: import("typebox").TOptional; evidence: import("typebox").TOptional; }>; SkillsProposalUpdateParams: import("typebox").TObject<{ agentId: import("typebox").TOptional; skillName: import("typebox").TString; description: import("typebox").TOptional; content: import("typebox").TString; supportFiles: import("typebox").TOptional>>; goal: import("typebox").TOptional; evidence: import("typebox").TOptional; }>; SkillsProposalReviseParams: import("typebox").TObject<{ agentId: import("typebox").TOptional; proposalId: import("typebox").TString; content: import("typebox").TString; supportFiles: import("typebox").TOptional>>; description: import("typebox").TOptional; goal: import("typebox").TOptional; evidence: import("typebox").TOptional; }>; SkillsProposalRequestRevisionParams: import("typebox").TObject<{ agentId: import("typebox").TOptional; targetAgentId: import("typebox").TOptional; proposalId: import("typebox").TString; instructions: import("typebox").TString; sessionKey: import("typebox").TString; sessionId: import("typebox").TOptional; idempotencyKey: import("typebox").TString; }>; SkillsProposalRequestRevisionResult: import("typebox").TObject<{ runId: import("typebox").TString; status: import("typebox").TUnion<[import("typebox").TLiteral<"started">, import("typebox").TLiteral<"in_flight">, import("typebox").TLiteral<"ok">, import("typebox").TLiteral<"timeout">, import("typebox").TLiteral<"error">]>; }>; SkillsProposalActionParams: import("typebox").TObject<{ agentId: import("typebox").TOptional; proposalId: import("typebox").TString; reason: import("typebox").TOptional; }>; SkillsProposalApplyResult: import("typebox").TObject<{ record: import("typebox").TObject<{ schema: import("typebox").TLiteral<"openclaw.skill-workshop.proposal.v1">; id: import("typebox").TString; kind: import("typebox").TUnion<[import("typebox").TLiteral<"create">, import("typebox").TLiteral<"update">]>; status: import("typebox").TUnion<[import("typebox").TLiteral<"pending">, import("typebox").TLiteral<"applied">, import("typebox").TLiteral<"rejected">, import("typebox").TLiteral<"quarantined">, import("typebox").TLiteral<"stale">]>; title: import("typebox").TString; description: import("typebox").TString; createdAt: import("typebox").TString; updatedAt: import("typebox").TString; createdBy: import("typebox").TUnion<[import("typebox").TLiteral<"skill-workshop">, import("typebox").TLiteral<"cli">, import("typebox").TLiteral<"gateway">]>; origin: import("typebox").TOptional; sessionKey: import("typebox").TOptional; runId: import("typebox").TOptional; messageId: import("typebox").TOptional; }>>; proposedVersion: import("typebox").TString; draftFile: import("typebox").TLiteral<"PROPOSAL.md">; draftHash: import("typebox").TString; supportFiles: import("typebox").TOptional; targetContentHash: import("typebox").TOptional; }>>>; target: import("typebox").TObject<{ skillName: import("typebox").TString; skillKey: import("typebox").TString; skillDir: import("typebox").TString; skillFile: import("typebox").TString; source: import("typebox").TOptional; currentContentHash: import("typebox").TOptional; }>; scan: import("typebox").TObject<{ state: import("typebox").TUnion<[import("typebox").TLiteral<"pending">, import("typebox").TLiteral<"clean">, import("typebox").TLiteral<"failed">, import("typebox").TLiteral<"quarantined">]>; scannedAt: import("typebox").TString; critical: import("typebox").TInteger; warn: import("typebox").TInteger; info: import("typebox").TInteger; findings: import("typebox").TArray, import("typebox").TLiteral<"warn">, import("typebox").TLiteral<"critical">]>; file: import("typebox").TString; line: import("typebox").TInteger; message: import("typebox").TString; evidence: import("typebox").TString; }>>; }>; goal: import("typebox").TOptional; evidence: import("typebox").TOptional; appliedAt: import("typebox").TOptional; rejectedAt: import("typebox").TOptional; quarantinedAt: import("typebox").TOptional; staleAt: import("typebox").TOptional; statusReason: import("typebox").TOptional; }>; targetSkillFile: import("typebox").TString; }>; SkillsProposalRecordResult: import("typebox").TObject<{ schema: import("typebox").TLiteral<"openclaw.skill-workshop.proposal.v1">; id: import("typebox").TString; kind: import("typebox").TUnion<[import("typebox").TLiteral<"create">, import("typebox").TLiteral<"update">]>; status: import("typebox").TUnion<[import("typebox").TLiteral<"pending">, import("typebox").TLiteral<"applied">, import("typebox").TLiteral<"rejected">, import("typebox").TLiteral<"quarantined">, import("typebox").TLiteral<"stale">]>; title: import("typebox").TString; description: import("typebox").TString; createdAt: import("typebox").TString; updatedAt: import("typebox").TString; createdBy: import("typebox").TUnion<[import("typebox").TLiteral<"skill-workshop">, import("typebox").TLiteral<"cli">, import("typebox").TLiteral<"gateway">]>; origin: import("typebox").TOptional; sessionKey: import("typebox").TOptional; runId: import("typebox").TOptional; messageId: import("typebox").TOptional; }>>; proposedVersion: import("typebox").TString; draftFile: import("typebox").TLiteral<"PROPOSAL.md">; draftHash: import("typebox").TString; supportFiles: import("typebox").TOptional; targetContentHash: import("typebox").TOptional; }>>>; target: import("typebox").TObject<{ skillName: import("typebox").TString; skillKey: import("typebox").TString; skillDir: import("typebox").TString; skillFile: import("typebox").TString; source: import("typebox").TOptional; currentContentHash: import("typebox").TOptional; }>; scan: import("typebox").TObject<{ state: import("typebox").TUnion<[import("typebox").TLiteral<"pending">, import("typebox").TLiteral<"clean">, import("typebox").TLiteral<"failed">, import("typebox").TLiteral<"quarantined">]>; scannedAt: import("typebox").TString; critical: import("typebox").TInteger; warn: import("typebox").TInteger; info: import("typebox").TInteger; findings: import("typebox").TArray, import("typebox").TLiteral<"warn">, import("typebox").TLiteral<"critical">]>; file: import("typebox").TString; line: import("typebox").TInteger; message: import("typebox").TString; evidence: import("typebox").TString; }>>; }>; goal: import("typebox").TOptional; evidence: import("typebox").TOptional; appliedAt: import("typebox").TOptional; rejectedAt: import("typebox").TOptional; quarantinedAt: import("typebox").TOptional; staleAt: import("typebox").TOptional; statusReason: import("typebox").TOptional; }>; SkillsSecurityVerdictsParams: import("typebox").TObject<{ agentId: import("typebox").TOptional; }>; SkillsSecurityVerdictsResult: import("typebox").TObject<{ schema: import("typebox").TLiteral<"openclaw.skills.security-verdicts.v1">; items: import("typebox").TArray; requestedSlug: import("typebox").TString; requestedVersion: import("typebox").TString; slug: import("typebox").TOptional>; version: import("typebox").TOptional>; displayName: import("typebox").TOptional>; publisherHandle: import("typebox").TOptional>; publisherDisplayName: import("typebox").TOptional>; createdAt: import("typebox").TOptional>; checkedAt: import("typebox").TOptional>; skillUrl: import("typebox").TOptional>; securityAuditUrl: import("typebox").TOptional>; securityStatus: import("typebox").TOptional>; securityPassed: import("typebox").TOptional>; error: import("typebox").TOptional; message: import("typebox").TOptional; }>>; }>>; }>; SkillsSkillCardParams: import("typebox").TObject<{ agentId: import("typebox").TOptional; skillKey: import("typebox").TString; }>; SkillsSkillCardResult: import("typebox").TObject<{ schema: import("typebox").TLiteral<"openclaw.skills.skill-card.v1">; skillKey: import("typebox").TString; path: import("typebox").TString; sizeBytes: import("typebox").TInteger; content: import("typebox").TString; }>; SkillsUploadBeginParams: import("typebox").TObject<{ kind: import("typebox").TLiteral<"skill-archive">; slug: import("typebox").TString; sizeBytes: import("typebox").TInteger; sha256: import("typebox").TOptional; force: import("typebox").TOptional; idempotencyKey: import("typebox").TOptional; }>; SkillsUploadChunkParams: import("typebox").TObject<{ uploadId: import("typebox").TString; offset: import("typebox").TInteger; dataBase64: import("typebox").TString; }>; SkillsUploadCommitParams: import("typebox").TObject<{ uploadId: import("typebox").TString; sha256: import("typebox").TOptional; }>; SkillsInstallParams: import("typebox").TUnion<[import("typebox").TObject<{ agentId: import("typebox").TOptional; name: import("typebox").TString; installId: import("typebox").TString; dangerouslyForceUnsafeInstall: import("typebox").TOptional; timeoutMs: import("typebox").TOptional; }>, import("typebox").TObject<{ agentId: import("typebox").TOptional; source: import("typebox").TLiteral<"clawhub">; slug: import("typebox").TString; version: import("typebox").TOptional; force: import("typebox").TOptional; acknowledgeClawHubRisk: import("typebox").TOptional; timeoutMs: import("typebox").TOptional; }>, import("typebox").TObject<{ agentId: import("typebox").TOptional; source: import("typebox").TLiteral<"upload">; uploadId: import("typebox").TString; slug: import("typebox").TString; force: import("typebox").TOptional; sha256: import("typebox").TOptional; timeoutMs: import("typebox").TOptional; }>]>; SkillsUpdateParams: import("typebox").TUnion<[import("typebox").TObject<{ skillKey: import("typebox").TString; enabled: import("typebox").TOptional; apiKey: import("typebox").TOptional; env: import("typebox").TOptional>; }>, import("typebox").TObject<{ agentId: import("typebox").TOptional; source: import("typebox").TLiteral<"clawhub">; slug: import("typebox").TOptional; all: import("typebox").TOptional; acknowledgeClawHubRisk: import("typebox").TOptional; }>]>; CronJob: import("typebox").TObject<{ id: import("typebox").TString; declarationKey: import("typebox").TOptional; displayName: import("typebox").TOptional; owner: import("typebox").TOptional; sessionKey: import("typebox").TOptional; }>>; agentId: import("typebox").TOptional; sessionKey: import("typebox").TOptional; name: import("typebox").TString; description: import("typebox").TOptional; enabled: import("typebox").TBoolean; deleteAfterRun: import("typebox").TOptional; createdAtMs: import("typebox").TInteger; updatedAtMs: import("typebox").TInteger; schedule: import("typebox").TUnion<[import("typebox").TObject<{ kind: import("typebox").TLiteral<"at">; at: import("typebox").TString; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"every">; everyMs: import("typebox").TInteger; anchorMs: import("typebox").TOptional; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"cron">; expr: import("typebox").TString; tz: import("typebox").TOptional; staggerMs: import("typebox").TOptional; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"on-exit">; command: import("typebox").TString; cwd: import("typebox").TOptional; }>]>; trigger: import("typebox").TOptional; }>>; sessionTarget: import("typebox").TUnion<[import("typebox").TLiteral<"main">, import("typebox").TLiteral<"isolated">, import("typebox").TLiteral<"current">, import("typebox").TString]>; wakeMode: import("typebox").TUnion<[import("typebox").TLiteral<"next-heartbeat">, import("typebox").TLiteral<"now">]>; payload: import("typebox").TUnion<[import("typebox").TObject<{ kind: import("typebox").TLiteral<"systemEvent">; text: import("typebox").TString; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"agentTurn">; message: TSchema; model: import("typebox").TOptional; fallbacks: import("typebox").TOptional; thinking: import("typebox").TOptional; timeoutSeconds: import("typebox").TOptional; allowUnsafeExternalContent: import("typebox").TOptional; lightContext: import("typebox").TOptional; toolsAllow: import("typebox").TOptional; toolsAllowIsDefault: import("typebox").TOptional; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"command">; argv: TSchema; cwd: import("typebox").TOptional; env: import("typebox").TOptional>; input: import("typebox").TOptional; timeoutSeconds: import("typebox").TOptional; noOutputTimeoutSeconds: import("typebox").TOptional; outputMaxBytes: import("typebox").TOptional; }>]>; delivery: import("typebox").TOptional; channel: import("typebox").TOptional, import("typebox").TString]>>; threadId: import("typebox").TOptional>; accountId: import("typebox").TOptional; bestEffort: import("typebox").TOptional; failureDestination: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; accountId: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; }>>; mode: import("typebox").TLiteral<"none">; }>, import("typebox").TObject<{ completionDestination: import("typebox").TOptional; to: import("typebox").TString; }>>; to: import("typebox").TOptional; channel: import("typebox").TOptional, import("typebox").TString]>>; threadId: import("typebox").TOptional>; accountId: import("typebox").TOptional; bestEffort: import("typebox").TOptional; failureDestination: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; accountId: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; }>>; mode: import("typebox").TLiteral<"announce">; }>, import("typebox").TObject<{ to: import("typebox").TString; channel: import("typebox").TOptional, import("typebox").TString]>>; threadId: import("typebox").TOptional>; accountId: import("typebox").TOptional; bestEffort: import("typebox").TOptional; failureDestination: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; accountId: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; }>>; mode: import("typebox").TLiteral<"webhook">; }>]>>; failureAlert: import("typebox").TOptional, import("typebox").TObject<{ after: import("typebox").TOptional; channel: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; cooldownMs: import("typebox").TOptional; includeSkipped: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; accountId: import("typebox").TOptional; }>]>>; state: import("typebox").TObject<{ nextRunAtMs: import("typebox").TOptional; runningAtMs: import("typebox").TOptional; lastRunAtMs: import("typebox").TOptional; lastRunStatus: import("typebox").TOptional, import("typebox").TLiteral<"error">, import("typebox").TLiteral<"skipped">]>>; lastStatus: import("typebox").TOptional, import("typebox").TLiteral<"error">, import("typebox").TLiteral<"skipped">]>>; lastError: import("typebox").TOptional; lastDiagnostics: import("typebox").TOptional; entries: import("typebox").TArray, import("typebox").TLiteral<"cron-setup">, import("typebox").TLiteral<"model-preflight">, import("typebox").TLiteral<"agent-run">, import("typebox").TLiteral<"tool">, import("typebox").TLiteral<"exec">, import("typebox").TLiteral<"delivery">]>; severity: import("typebox").TUnion<[import("typebox").TLiteral<"info">, import("typebox").TLiteral<"warn">, import("typebox").TLiteral<"error">]>; message: import("typebox").TString; toolName: import("typebox").TOptional; exitCode: import("typebox").TOptional>; truncated: import("typebox").TOptional; }>>; }>>; lastDiagnosticSummary: import("typebox").TOptional; lastErrorReason: import("typebox").TOptional, import("typebox").TLiteral<"auth_permanent">, import("typebox").TLiteral<"format">, import("typebox").TLiteral<"rate_limit">, import("typebox").TLiteral<"overloaded">, import("typebox").TLiteral<"billing">, import("typebox").TLiteral<"server_error">, import("typebox").TLiteral<"timeout">, import("typebox").TLiteral<"context_overflow">, import("typebox").TLiteral<"model_not_found">, import("typebox").TLiteral<"session_expired">, import("typebox").TLiteral<"empty_response">, import("typebox").TLiteral<"no_error_details">, import("typebox").TLiteral<"unclassified">, import("typebox").TLiteral<"unknown">]>>; lastDurationMs: import("typebox").TOptional; consecutiveErrors: import("typebox").TOptional; consecutiveSkipped: import("typebox").TOptional; lastDelivered: import("typebox").TOptional; lastDeliveryStatus: import("typebox").TOptional, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>>; lastDeliveryError: import("typebox").TOptional; lastFailureNotificationDelivered: import("typebox").TOptional; lastFailureNotificationDeliveryStatus: import("typebox").TOptional, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>>; lastFailureNotificationDeliveryError: import("typebox").TOptional; lastFailureAlertAtMs: import("typebox").TOptional; lastTriggerEvalAtMs: import("typebox").TOptional; triggerEvalCount: import("typebox").TOptional; lastTriggerFireAtMs: import("typebox").TOptional; triggerState: import("typebox").TOptional; }>; nextRunAtMs: import("typebox").TOptional; lastRunAtMs: import("typebox").TOptional; lastRunStatus: import("typebox").TOptional, import("typebox").TLiteral<"error">, import("typebox").TLiteral<"skipped">]>>; lastRunError: import("typebox").TOptional; lastDelivered: import("typebox").TOptional; lastDeliveryStatus: import("typebox").TOptional, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>>; lastDeliveryError: import("typebox").TOptional; lastFailureNotificationDelivered: import("typebox").TOptional; lastFailureNotificationDeliveryStatus: import("typebox").TOptional, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>>; lastFailureNotificationDeliveryError: import("typebox").TOptional; }>; CronListParams: import("typebox").TObject<{ includeDisabled: import("typebox").TOptional; limit: import("typebox").TOptional; offset: import("typebox").TOptional; query: import("typebox").TOptional; enabled: import("typebox").TOptional, import("typebox").TLiteral<"enabled">, import("typebox").TLiteral<"disabled">]>>; scheduleKind: import("typebox").TOptional, import("typebox").TLiteral<"at">, import("typebox").TLiteral<"every">, import("typebox").TLiteral<"cron">, import("typebox").TLiteral<"on-exit">]>>; lastRunStatus: import("typebox").TOptional, import("typebox").TLiteral<"ok">, import("typebox").TLiteral<"error">, import("typebox").TLiteral<"skipped">, import("typebox").TLiteral<"unknown">]>>; sortBy: import("typebox").TOptional, import("typebox").TLiteral<"updatedAtMs">, import("typebox").TLiteral<"name">]>>; sortDir: import("typebox").TOptional, import("typebox").TLiteral<"desc">]>>; agentId: import("typebox").TOptional; compact: import("typebox").TOptional; }>; CronStatusParams: import("typebox").TObject<{}>; CronGetParams: import("typebox").TUnion<[import("typebox").TObject<{ id: import("typebox").TString; }>, import("typebox").TObject<{ jobId: import("typebox").TString; }>]>; CronAddParams: import("typebox").TObject<{ schedule: import("typebox").TUnion<[import("typebox").TObject<{ kind: import("typebox").TLiteral<"at">; at: import("typebox").TString; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"every">; everyMs: import("typebox").TInteger; anchorMs: import("typebox").TOptional; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"cron">; expr: import("typebox").TString; tz: import("typebox").TOptional; staggerMs: import("typebox").TOptional; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"on-exit">; command: import("typebox").TString; cwd: import("typebox").TOptional; }>]>; trigger: import("typebox").TOptional; }>>; sessionTarget: import("typebox").TUnion<[import("typebox").TLiteral<"main">, import("typebox").TLiteral<"isolated">, import("typebox").TLiteral<"current">, import("typebox").TString]>; wakeMode: import("typebox").TUnion<[import("typebox").TLiteral<"next-heartbeat">, import("typebox").TLiteral<"now">]>; payload: import("typebox").TUnion<[import("typebox").TObject<{ kind: import("typebox").TLiteral<"systemEvent">; text: import("typebox").TString; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"agentTurn">; message: TSchema; model: import("typebox").TOptional; fallbacks: import("typebox").TOptional; thinking: import("typebox").TOptional; timeoutSeconds: import("typebox").TOptional; allowUnsafeExternalContent: import("typebox").TOptional; lightContext: import("typebox").TOptional; toolsAllow: import("typebox").TOptional; toolsAllowIsDefault: import("typebox").TOptional; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"command">; argv: TSchema; cwd: import("typebox").TOptional; env: import("typebox").TOptional>; input: import("typebox").TOptional; timeoutSeconds: import("typebox").TOptional; noOutputTimeoutSeconds: import("typebox").TOptional; outputMaxBytes: import("typebox").TOptional; }>]>; delivery: import("typebox").TOptional; channel: import("typebox").TOptional, import("typebox").TString]>>; threadId: import("typebox").TOptional>; accountId: import("typebox").TOptional; bestEffort: import("typebox").TOptional; failureDestination: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; accountId: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; }>>; mode: import("typebox").TLiteral<"none">; }>, import("typebox").TObject<{ completionDestination: import("typebox").TOptional; to: import("typebox").TString; }>>; to: import("typebox").TOptional; channel: import("typebox").TOptional, import("typebox").TString]>>; threadId: import("typebox").TOptional>; accountId: import("typebox").TOptional; bestEffort: import("typebox").TOptional; failureDestination: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; accountId: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; }>>; mode: import("typebox").TLiteral<"announce">; }>, import("typebox").TObject<{ to: import("typebox").TString; channel: import("typebox").TOptional, import("typebox").TString]>>; threadId: import("typebox").TOptional>; accountId: import("typebox").TOptional; bestEffort: import("typebox").TOptional; failureDestination: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; accountId: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; }>>; mode: import("typebox").TLiteral<"webhook">; }>]>>; failureAlert: import("typebox").TOptional, import("typebox").TObject<{ after: import("typebox").TOptional; channel: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; cooldownMs: import("typebox").TOptional; includeSkipped: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; accountId: import("typebox").TOptional; }>]>>; agentId: import("typebox").TOptional>; sessionKey: import("typebox").TOptional>; description: import("typebox").TOptional; enabled: import("typebox").TOptional; deleteAfterRun: import("typebox").TOptional; name: import("typebox").TString; declarationKey: import("typebox").TOptional; displayName: import("typebox").TOptional; owner: import("typebox").TOptional; sessionKey: import("typebox").TOptional; }>>; }>; CronAddResult: import("typebox").TUnion<[import("typebox").TObject<{ id: import("typebox").TString; declarationKey: import("typebox").TOptional; displayName: import("typebox").TOptional; owner: import("typebox").TOptional; sessionKey: import("typebox").TOptional; }>>; agentId: import("typebox").TOptional; sessionKey: import("typebox").TOptional; name: import("typebox").TString; description: import("typebox").TOptional; enabled: import("typebox").TBoolean; deleteAfterRun: import("typebox").TOptional; createdAtMs: import("typebox").TInteger; updatedAtMs: import("typebox").TInteger; schedule: import("typebox").TUnion<[import("typebox").TObject<{ kind: import("typebox").TLiteral<"at">; at: import("typebox").TString; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"every">; everyMs: import("typebox").TInteger; anchorMs: import("typebox").TOptional; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"cron">; expr: import("typebox").TString; tz: import("typebox").TOptional; staggerMs: import("typebox").TOptional; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"on-exit">; command: import("typebox").TString; cwd: import("typebox").TOptional; }>]>; trigger: import("typebox").TOptional; }>>; sessionTarget: import("typebox").TUnion<[import("typebox").TLiteral<"main">, import("typebox").TLiteral<"isolated">, import("typebox").TLiteral<"current">, import("typebox").TString]>; wakeMode: import("typebox").TUnion<[import("typebox").TLiteral<"next-heartbeat">, import("typebox").TLiteral<"now">]>; payload: import("typebox").TUnion<[import("typebox").TObject<{ kind: import("typebox").TLiteral<"systemEvent">; text: import("typebox").TString; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"agentTurn">; message: TSchema; model: import("typebox").TOptional; fallbacks: import("typebox").TOptional; thinking: import("typebox").TOptional; timeoutSeconds: import("typebox").TOptional; allowUnsafeExternalContent: import("typebox").TOptional; lightContext: import("typebox").TOptional; toolsAllow: import("typebox").TOptional; toolsAllowIsDefault: import("typebox").TOptional; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"command">; argv: TSchema; cwd: import("typebox").TOptional; env: import("typebox").TOptional>; input: import("typebox").TOptional; timeoutSeconds: import("typebox").TOptional; noOutputTimeoutSeconds: import("typebox").TOptional; outputMaxBytes: import("typebox").TOptional; }>]>; delivery: import("typebox").TOptional; channel: import("typebox").TOptional, import("typebox").TString]>>; threadId: import("typebox").TOptional>; accountId: import("typebox").TOptional; bestEffort: import("typebox").TOptional; failureDestination: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; accountId: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; }>>; mode: import("typebox").TLiteral<"none">; }>, import("typebox").TObject<{ completionDestination: import("typebox").TOptional; to: import("typebox").TString; }>>; to: import("typebox").TOptional; channel: import("typebox").TOptional, import("typebox").TString]>>; threadId: import("typebox").TOptional>; accountId: import("typebox").TOptional; bestEffort: import("typebox").TOptional; failureDestination: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; accountId: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; }>>; mode: import("typebox").TLiteral<"announce">; }>, import("typebox").TObject<{ to: import("typebox").TString; channel: import("typebox").TOptional, import("typebox").TString]>>; threadId: import("typebox").TOptional>; accountId: import("typebox").TOptional; bestEffort: import("typebox").TOptional; failureDestination: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; accountId: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; }>>; mode: import("typebox").TLiteral<"webhook">; }>]>>; failureAlert: import("typebox").TOptional, import("typebox").TObject<{ after: import("typebox").TOptional; channel: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; cooldownMs: import("typebox").TOptional; includeSkipped: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; accountId: import("typebox").TOptional; }>]>>; state: import("typebox").TObject<{ nextRunAtMs: import("typebox").TOptional; runningAtMs: import("typebox").TOptional; lastRunAtMs: import("typebox").TOptional; lastRunStatus: import("typebox").TOptional, import("typebox").TLiteral<"error">, import("typebox").TLiteral<"skipped">]>>; lastStatus: import("typebox").TOptional, import("typebox").TLiteral<"error">, import("typebox").TLiteral<"skipped">]>>; lastError: import("typebox").TOptional; lastDiagnostics: import("typebox").TOptional; entries: import("typebox").TArray, import("typebox").TLiteral<"cron-setup">, import("typebox").TLiteral<"model-preflight">, import("typebox").TLiteral<"agent-run">, import("typebox").TLiteral<"tool">, import("typebox").TLiteral<"exec">, import("typebox").TLiteral<"delivery">]>; severity: import("typebox").TUnion<[import("typebox").TLiteral<"info">, import("typebox").TLiteral<"warn">, import("typebox").TLiteral<"error">]>; message: import("typebox").TString; toolName: import("typebox").TOptional; exitCode: import("typebox").TOptional>; truncated: import("typebox").TOptional; }>>; }>>; lastDiagnosticSummary: import("typebox").TOptional; lastErrorReason: import("typebox").TOptional, import("typebox").TLiteral<"auth_permanent">, import("typebox").TLiteral<"format">, import("typebox").TLiteral<"rate_limit">, import("typebox").TLiteral<"overloaded">, import("typebox").TLiteral<"billing">, import("typebox").TLiteral<"server_error">, import("typebox").TLiteral<"timeout">, import("typebox").TLiteral<"context_overflow">, import("typebox").TLiteral<"model_not_found">, import("typebox").TLiteral<"session_expired">, import("typebox").TLiteral<"empty_response">, import("typebox").TLiteral<"no_error_details">, import("typebox").TLiteral<"unclassified">, import("typebox").TLiteral<"unknown">]>>; lastDurationMs: import("typebox").TOptional; consecutiveErrors: import("typebox").TOptional; consecutiveSkipped: import("typebox").TOptional; lastDelivered: import("typebox").TOptional; lastDeliveryStatus: import("typebox").TOptional, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>>; lastDeliveryError: import("typebox").TOptional; lastFailureNotificationDelivered: import("typebox").TOptional; lastFailureNotificationDeliveryStatus: import("typebox").TOptional, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>>; lastFailureNotificationDeliveryError: import("typebox").TOptional; lastFailureAlertAtMs: import("typebox").TOptional; lastTriggerEvalAtMs: import("typebox").TOptional; triggerEvalCount: import("typebox").TOptional; lastTriggerFireAtMs: import("typebox").TOptional; triggerState: import("typebox").TOptional; }>; nextRunAtMs: import("typebox").TOptional; lastRunAtMs: import("typebox").TOptional; lastRunStatus: import("typebox").TOptional, import("typebox").TLiteral<"error">, import("typebox").TLiteral<"skipped">]>>; lastRunError: import("typebox").TOptional; lastDelivered: import("typebox").TOptional; lastDeliveryStatus: import("typebox").TOptional, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>>; lastDeliveryError: import("typebox").TOptional; lastFailureNotificationDelivered: import("typebox").TOptional; lastFailureNotificationDeliveryStatus: import("typebox").TOptional, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>>; lastFailureNotificationDeliveryError: import("typebox").TOptional; }>, import("typebox").TObject<{ created: import("typebox").TBoolean; updated: import("typebox").TOptional; job: import("typebox").TObject<{ id: import("typebox").TString; declarationKey: import("typebox").TOptional; displayName: import("typebox").TOptional; owner: import("typebox").TOptional; sessionKey: import("typebox").TOptional; }>>; agentId: import("typebox").TOptional; sessionKey: import("typebox").TOptional; name: import("typebox").TString; description: import("typebox").TOptional; enabled: import("typebox").TBoolean; deleteAfterRun: import("typebox").TOptional; createdAtMs: import("typebox").TInteger; updatedAtMs: import("typebox").TInteger; schedule: import("typebox").TUnion<[import("typebox").TObject<{ kind: import("typebox").TLiteral<"at">; at: import("typebox").TString; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"every">; everyMs: import("typebox").TInteger; anchorMs: import("typebox").TOptional; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"cron">; expr: import("typebox").TString; tz: import("typebox").TOptional; staggerMs: import("typebox").TOptional; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"on-exit">; command: import("typebox").TString; cwd: import("typebox").TOptional; }>]>; trigger: import("typebox").TOptional; }>>; sessionTarget: import("typebox").TUnion<[import("typebox").TLiteral<"main">, import("typebox").TLiteral<"isolated">, import("typebox").TLiteral<"current">, import("typebox").TString]>; wakeMode: import("typebox").TUnion<[import("typebox").TLiteral<"next-heartbeat">, import("typebox").TLiteral<"now">]>; payload: import("typebox").TUnion<[import("typebox").TObject<{ kind: import("typebox").TLiteral<"systemEvent">; text: import("typebox").TString; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"agentTurn">; message: TSchema; model: import("typebox").TOptional; fallbacks: import("typebox").TOptional; thinking: import("typebox").TOptional; timeoutSeconds: import("typebox").TOptional; allowUnsafeExternalContent: import("typebox").TOptional; lightContext: import("typebox").TOptional; toolsAllow: import("typebox").TOptional; toolsAllowIsDefault: import("typebox").TOptional; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"command">; argv: TSchema; cwd: import("typebox").TOptional; env: import("typebox").TOptional>; input: import("typebox").TOptional; timeoutSeconds: import("typebox").TOptional; noOutputTimeoutSeconds: import("typebox").TOptional; outputMaxBytes: import("typebox").TOptional; }>]>; delivery: import("typebox").TOptional; channel: import("typebox").TOptional, import("typebox").TString]>>; threadId: import("typebox").TOptional>; accountId: import("typebox").TOptional; bestEffort: import("typebox").TOptional; failureDestination: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; accountId: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; }>>; mode: import("typebox").TLiteral<"none">; }>, import("typebox").TObject<{ completionDestination: import("typebox").TOptional; to: import("typebox").TString; }>>; to: import("typebox").TOptional; channel: import("typebox").TOptional, import("typebox").TString]>>; threadId: import("typebox").TOptional>; accountId: import("typebox").TOptional; bestEffort: import("typebox").TOptional; failureDestination: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; accountId: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; }>>; mode: import("typebox").TLiteral<"announce">; }>, import("typebox").TObject<{ to: import("typebox").TString; channel: import("typebox").TOptional, import("typebox").TString]>>; threadId: import("typebox").TOptional>; accountId: import("typebox").TOptional; bestEffort: import("typebox").TOptional; failureDestination: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; accountId: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; }>>; mode: import("typebox").TLiteral<"webhook">; }>]>>; failureAlert: import("typebox").TOptional, import("typebox").TObject<{ after: import("typebox").TOptional; channel: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; cooldownMs: import("typebox").TOptional; includeSkipped: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; accountId: import("typebox").TOptional; }>]>>; state: import("typebox").TObject<{ nextRunAtMs: import("typebox").TOptional; runningAtMs: import("typebox").TOptional; lastRunAtMs: import("typebox").TOptional; lastRunStatus: import("typebox").TOptional, import("typebox").TLiteral<"error">, import("typebox").TLiteral<"skipped">]>>; lastStatus: import("typebox").TOptional, import("typebox").TLiteral<"error">, import("typebox").TLiteral<"skipped">]>>; lastError: import("typebox").TOptional; lastDiagnostics: import("typebox").TOptional; entries: import("typebox").TArray, import("typebox").TLiteral<"cron-setup">, import("typebox").TLiteral<"model-preflight">, import("typebox").TLiteral<"agent-run">, import("typebox").TLiteral<"tool">, import("typebox").TLiteral<"exec">, import("typebox").TLiteral<"delivery">]>; severity: import("typebox").TUnion<[import("typebox").TLiteral<"info">, import("typebox").TLiteral<"warn">, import("typebox").TLiteral<"error">]>; message: import("typebox").TString; toolName: import("typebox").TOptional; exitCode: import("typebox").TOptional>; truncated: import("typebox").TOptional; }>>; }>>; lastDiagnosticSummary: import("typebox").TOptional; lastErrorReason: import("typebox").TOptional, import("typebox").TLiteral<"auth_permanent">, import("typebox").TLiteral<"format">, import("typebox").TLiteral<"rate_limit">, import("typebox").TLiteral<"overloaded">, import("typebox").TLiteral<"billing">, import("typebox").TLiteral<"server_error">, import("typebox").TLiteral<"timeout">, import("typebox").TLiteral<"context_overflow">, import("typebox").TLiteral<"model_not_found">, import("typebox").TLiteral<"session_expired">, import("typebox").TLiteral<"empty_response">, import("typebox").TLiteral<"no_error_details">, import("typebox").TLiteral<"unclassified">, import("typebox").TLiteral<"unknown">]>>; lastDurationMs: import("typebox").TOptional; consecutiveErrors: import("typebox").TOptional; consecutiveSkipped: import("typebox").TOptional; lastDelivered: import("typebox").TOptional; lastDeliveryStatus: import("typebox").TOptional, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>>; lastDeliveryError: import("typebox").TOptional; lastFailureNotificationDelivered: import("typebox").TOptional; lastFailureNotificationDeliveryStatus: import("typebox").TOptional, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>>; lastFailureNotificationDeliveryError: import("typebox").TOptional; lastFailureAlertAtMs: import("typebox").TOptional; lastTriggerEvalAtMs: import("typebox").TOptional; triggerEvalCount: import("typebox").TOptional; lastTriggerFireAtMs: import("typebox").TOptional; triggerState: import("typebox").TOptional; }>; nextRunAtMs: import("typebox").TOptional; lastRunAtMs: import("typebox").TOptional; lastRunStatus: import("typebox").TOptional, import("typebox").TLiteral<"error">, import("typebox").TLiteral<"skipped">]>>; lastRunError: import("typebox").TOptional; lastDelivered: import("typebox").TOptional; lastDeliveryStatus: import("typebox").TOptional, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>>; lastDeliveryError: import("typebox").TOptional; lastFailureNotificationDelivered: import("typebox").TOptional; lastFailureNotificationDeliveryStatus: import("typebox").TOptional, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>>; lastFailureNotificationDeliveryError: import("typebox").TOptional; }>; }>]>; CronDeclarativeAddResult: import("typebox").TObject<{ created: import("typebox").TBoolean; updated: import("typebox").TOptional; job: import("typebox").TObject<{ id: import("typebox").TString; declarationKey: import("typebox").TOptional; displayName: import("typebox").TOptional; owner: import("typebox").TOptional; sessionKey: import("typebox").TOptional; }>>; agentId: import("typebox").TOptional; sessionKey: import("typebox").TOptional; name: import("typebox").TString; description: import("typebox").TOptional; enabled: import("typebox").TBoolean; deleteAfterRun: import("typebox").TOptional; createdAtMs: import("typebox").TInteger; updatedAtMs: import("typebox").TInteger; schedule: import("typebox").TUnion<[import("typebox").TObject<{ kind: import("typebox").TLiteral<"at">; at: import("typebox").TString; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"every">; everyMs: import("typebox").TInteger; anchorMs: import("typebox").TOptional; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"cron">; expr: import("typebox").TString; tz: import("typebox").TOptional; staggerMs: import("typebox").TOptional; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"on-exit">; command: import("typebox").TString; cwd: import("typebox").TOptional; }>]>; trigger: import("typebox").TOptional; }>>; sessionTarget: import("typebox").TUnion<[import("typebox").TLiteral<"main">, import("typebox").TLiteral<"isolated">, import("typebox").TLiteral<"current">, import("typebox").TString]>; wakeMode: import("typebox").TUnion<[import("typebox").TLiteral<"next-heartbeat">, import("typebox").TLiteral<"now">]>; payload: import("typebox").TUnion<[import("typebox").TObject<{ kind: import("typebox").TLiteral<"systemEvent">; text: import("typebox").TString; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"agentTurn">; message: TSchema; model: import("typebox").TOptional; fallbacks: import("typebox").TOptional; thinking: import("typebox").TOptional; timeoutSeconds: import("typebox").TOptional; allowUnsafeExternalContent: import("typebox").TOptional; lightContext: import("typebox").TOptional; toolsAllow: import("typebox").TOptional; toolsAllowIsDefault: import("typebox").TOptional; }>, import("typebox").TObject<{ kind: import("typebox").TLiteral<"command">; argv: TSchema; cwd: import("typebox").TOptional; env: import("typebox").TOptional>; input: import("typebox").TOptional; timeoutSeconds: import("typebox").TOptional; noOutputTimeoutSeconds: import("typebox").TOptional; outputMaxBytes: import("typebox").TOptional; }>]>; delivery: import("typebox").TOptional; channel: import("typebox").TOptional, import("typebox").TString]>>; threadId: import("typebox").TOptional>; accountId: import("typebox").TOptional; bestEffort: import("typebox").TOptional; failureDestination: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; accountId: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; }>>; mode: import("typebox").TLiteral<"none">; }>, import("typebox").TObject<{ completionDestination: import("typebox").TOptional; to: import("typebox").TString; }>>; to: import("typebox").TOptional; channel: import("typebox").TOptional, import("typebox").TString]>>; threadId: import("typebox").TOptional>; accountId: import("typebox").TOptional; bestEffort: import("typebox").TOptional; failureDestination: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; accountId: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; }>>; mode: import("typebox").TLiteral<"announce">; }>, import("typebox").TObject<{ to: import("typebox").TString; channel: import("typebox").TOptional, import("typebox").TString]>>; threadId: import("typebox").TOptional>; accountId: import("typebox").TOptional; bestEffort: import("typebox").TOptional; failureDestination: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; accountId: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; }>>; mode: import("typebox").TLiteral<"webhook">; }>]>>; failureAlert: import("typebox").TOptional, import("typebox").TObject<{ after: import("typebox").TOptional; channel: import("typebox").TOptional, import("typebox").TString]>>; to: import("typebox").TOptional; cooldownMs: import("typebox").TOptional; includeSkipped: import("typebox").TOptional; mode: import("typebox").TOptional, import("typebox").TLiteral<"webhook">]>>; accountId: import("typebox").TOptional; }>]>>; state: import("typebox").TObject<{ nextRunAtMs: import("typebox").TOptional; runningAtMs: import("typebox").TOptional; lastRunAtMs: import("typebox").TOptional; lastRunStatus: import("typebox").TOptional, import("typebox").TLiteral<"error">, import("typebox").TLiteral<"skipped">]>>; lastStatus: import("typebox").TOptional, import("typebox").TLiteral<"error">, import("typebox").TLiteral<"skipped">]>>; lastError: import("typebox").TOptional; lastDiagnostics: import("typebox").TOptional; entries: import("typebox").TArray, import("typebox").TLiteral<"cron-setup">, import("typebox").TLiteral<"model-preflight">, import("typebox").TLiteral<"agent-run">, import("typebox").TLiteral<"tool">, import("typebox").TLiteral<"exec">, import("typebox").TLiteral<"delivery">]>; severity: import("typebox").TUnion<[import("typebox").TLiteral<"info">, import("typebox").TLiteral<"warn">, import("typebox").TLiteral<"error">]>; message: import("typebox").TString; toolName: import("typebox").TOptional; exitCode: import("typebox").TOptional>; truncated: import("typebox").TOptional; }>>; }>>; lastDiagnosticSummary: import("typebox").TOptional; lastErrorReason: import("typebox").TOptional, import("typebox").TLiteral<"auth_permanent">, import("typebox").TLiteral<"format">, import("typebox").TLiteral<"rate_limit">, import("typebox").TLiteral<"overloaded">, import("typebox").TLiteral<"billing">, import("typebox").TLiteral<"server_error">, import("typebox").TLiteral<"timeout">, import("typebox").TLiteral<"context_overflow">, import("typebox").TLiteral<"model_not_found">, import("typebox").TLiteral<"session_expired">, import("typebox").TLiteral<"empty_response">, import("typebox").TLiteral<"no_error_details">, import("typebox").TLiteral<"unclassified">, import("typebox").TLiteral<"unknown">]>>; lastDurationMs: import("typebox").TOptional; consecutiveErrors: import("typebox").TOptional; consecutiveSkipped: import("typebox").TOptional; lastDelivered: import("typebox").TOptional; lastDeliveryStatus: import("typebox").TOptional, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>>; lastDeliveryError: import("typebox").TOptional; lastFailureNotificationDelivered: import("typebox").TOptional; lastFailureNotificationDeliveryStatus: import("typebox").TOptional, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>>; lastFailureNotificationDeliveryError: import("typebox").TOptional; lastFailureAlertAtMs: import("typebox").TOptional; lastTriggerEvalAtMs: import("typebox").TOptional; triggerEvalCount: import("typebox").TOptional; lastTriggerFireAtMs: import("typebox").TOptional; triggerState: import("typebox").TOptional; }>; nextRunAtMs: import("typebox").TOptional; lastRunAtMs: import("typebox").TOptional; lastRunStatus: import("typebox").TOptional, import("typebox").TLiteral<"error">, import("typebox").TLiteral<"skipped">]>>; lastRunError: import("typebox").TOptional; lastDelivered: import("typebox").TOptional; lastDeliveryStatus: import("typebox").TOptional, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>>; lastDeliveryError: import("typebox").TOptional; lastFailureNotificationDelivered: import("typebox").TOptional; lastFailureNotificationDeliveryStatus: import("typebox").TOptional, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>>; lastFailureNotificationDeliveryError: import("typebox").TOptional; }>; }>; CronUpdateParams: import("typebox").TUnion<[import("typebox").TObject<{ id: import("typebox").TString; }>, import("typebox").TObject<{ jobId: import("typebox").TString; }>]>; CronRemoveParams: import("typebox").TUnion<[import("typebox").TObject<{ id: import("typebox").TString; }>, import("typebox").TObject<{ jobId: import("typebox").TString; }>]>; CronRunParams: import("typebox").TUnion<[import("typebox").TObject<{ id: import("typebox").TString; }>, import("typebox").TObject<{ jobId: import("typebox").TString; }>]>; CronRunsParams: import("typebox").TObject<{ scope: import("typebox").TOptional, import("typebox").TLiteral<"all">]>>; id: import("typebox").TOptional; jobId: import("typebox").TOptional; runId: import("typebox").TOptional; limit: import("typebox").TOptional; offset: import("typebox").TOptional; statuses: import("typebox").TOptional, import("typebox").TLiteral<"error">, import("typebox").TLiteral<"skipped">]>>>; status: import("typebox").TOptional, import("typebox").TLiteral<"ok">, import("typebox").TLiteral<"error">, import("typebox").TLiteral<"skipped">]>>; deliveryStatuses: import("typebox").TOptional, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>>>; deliveryStatus: import("typebox").TOptional, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>>; query: import("typebox").TOptional; sortDir: import("typebox").TOptional, import("typebox").TLiteral<"desc">]>>; }>; CronRunLogEntry: import("typebox").TObject<{ ts: import("typebox").TInteger; jobId: import("typebox").TString; action: import("typebox").TLiteral<"finished">; status: import("typebox").TOptional, import("typebox").TLiteral<"error">, import("typebox").TLiteral<"skipped">]>>; error: import("typebox").TOptional; errorReason: import("typebox").TOptional, import("typebox").TLiteral<"auth_permanent">, import("typebox").TLiteral<"format">, import("typebox").TLiteral<"rate_limit">, import("typebox").TLiteral<"overloaded">, import("typebox").TLiteral<"billing">, import("typebox").TLiteral<"server_error">, import("typebox").TLiteral<"timeout">, import("typebox").TLiteral<"context_overflow">, import("typebox").TLiteral<"model_not_found">, import("typebox").TLiteral<"session_expired">, import("typebox").TLiteral<"empty_response">, import("typebox").TLiteral<"no_error_details">, import("typebox").TLiteral<"unclassified">, import("typebox").TLiteral<"unknown">]>>; summary: import("typebox").TOptional; diagnostics: import("typebox").TOptional; entries: import("typebox").TArray, import("typebox").TLiteral<"cron-setup">, import("typebox").TLiteral<"model-preflight">, import("typebox").TLiteral<"agent-run">, import("typebox").TLiteral<"tool">, import("typebox").TLiteral<"exec">, import("typebox").TLiteral<"delivery">]>; severity: import("typebox").TUnion<[import("typebox").TLiteral<"info">, import("typebox").TLiteral<"warn">, import("typebox").TLiteral<"error">]>; message: import("typebox").TString; toolName: import("typebox").TOptional; exitCode: import("typebox").TOptional>; truncated: import("typebox").TOptional; }>>; }>>; delivered: import("typebox").TOptional; deliveryStatus: import("typebox").TOptional, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>>; deliveryError: import("typebox").TOptional; failureNotificationDelivery: import("typebox").TOptional; status: import("typebox").TUnion<[import("typebox").TLiteral<"delivered">, import("typebox").TLiteral<"not-delivered">, import("typebox").TLiteral<"unknown">, import("typebox").TLiteral<"not-requested">]>; error: import("typebox").TOptional; }>>; sessionId: import("typebox").TOptional; sessionKey: import("typebox").TOptional; runId: import("typebox").TOptional; runAtMs: import("typebox").TOptional; durationMs: import("typebox").TOptional; nextRunAtMs: import("typebox").TOptional; triggerFired: import("typebox").TOptional; model: import("typebox").TOptional; provider: import("typebox").TOptional; usage: import("typebox").TOptional; output_tokens: import("typebox").TOptional; total_tokens: import("typebox").TOptional; cache_read_tokens: import("typebox").TOptional; cache_write_tokens: import("typebox").TOptional; }>>; jobName: import("typebox").TOptional; }>; LogsTailParams: import("typebox").TObject<{ cursor: import("typebox").TOptional; limit: import("typebox").TOptional; maxBytes: import("typebox").TOptional; }>; LogsTailResult: import("typebox").TObject<{ file: import("typebox").TString; cursor: import("typebox").TInteger; size: import("typebox").TInteger; lines: import("typebox").TArray; truncated: import("typebox").TOptional; reset: import("typebox").TOptional; }>; TerminalOpenParams: import("typebox").TObject<{ agentId: import("typebox").TOptional; cols: import("typebox").TInteger; rows: import("typebox").TInteger; }>; TerminalOpenResult: import("typebox").TObject<{ sessionId: import("typebox").TString; agentId: import("typebox").TString; shell: import("typebox").TString; cwd: import("typebox").TString; confined: import("typebox").TBoolean; }>; TerminalInputParams: import("typebox").TObject<{ sessionId: import("typebox").TString; data: import("typebox").TString; }>; TerminalResizeParams: import("typebox").TObject<{ sessionId: import("typebox").TString; cols: import("typebox").TInteger; rows: import("typebox").TInteger; }>; TerminalCloseParams: import("typebox").TObject<{ sessionId: import("typebox").TString; }>; TerminalAttachParams: import("typebox").TObject<{ sessionId: import("typebox").TString; }>; TerminalAttachResult: import("typebox").TObject<{ sessionId: import("typebox").TString; agentId: import("typebox").TString; shell: import("typebox").TString; cwd: import("typebox").TString; confined: import("typebox").TBoolean; buffer: import("typebox").TString; }>; TerminalSessionInfo: import("typebox").TObject<{ sessionId: import("typebox").TString; agentId: import("typebox").TString; shell: import("typebox").TString; cwd: import("typebox").TString; confined: import("typebox").TBoolean; attached: import("typebox").TBoolean; createdAtMs: import("typebox").TInteger; }>; TerminalListResult: import("typebox").TObject<{ sessions: import("typebox").TArray>; }>; TerminalTextParams: import("typebox").TObject<{ sessionId: import("typebox").TString; }>; TerminalTextResult: import("typebox").TObject<{ text: import("typebox").TString; }>; TerminalAckResult: import("typebox").TObject<{ ok: import("typebox").TBoolean; }>; TerminalDataEvent: import("typebox").TObject<{ sessionId: import("typebox").TString; seq: import("typebox").TInteger; data: import("typebox").TString; }>; TerminalExitEvent: import("typebox").TObject<{ sessionId: import("typebox").TString; exitCode: import("typebox").TOptional>; signal: import("typebox").TOptional>; reason: import("typebox").TOptional, import("typebox").TLiteral<"closed">, import("typebox").TLiteral<"disconnected">, import("typebox").TLiteral<"detached">, import("typebox").TLiteral<"error">]>>; error: import("typebox").TOptional; }>; TerminalEvent: import("typebox").TUnion<[import("typebox").TObject<{ sessionId: import("typebox").TString; seq: import("typebox").TInteger; data: import("typebox").TString; }>, import("typebox").TObject<{ sessionId: import("typebox").TString; exitCode: import("typebox").TOptional>; signal: import("typebox").TOptional>; reason: import("typebox").TOptional, import("typebox").TLiteral<"closed">, import("typebox").TLiteral<"disconnected">, import("typebox").TLiteral<"detached">, import("typebox").TLiteral<"error">]>>; error: import("typebox").TOptional; }>]>; ExecApprovalsGetParams: import("typebox").TObject<{}>; ExecApprovalsSetParams: import("typebox").TObject<{ file: import("typebox").TObject<{ version: import("typebox").TLiteral<1>; socket: import("typebox").TOptional; token: import("typebox").TOptional; }>>; defaults: import("typebox").TOptional; ask: import("typebox").TOptional; askFallback: import("typebox").TOptional; autoAllowSkills: import("typebox").TOptional; }>>; agents: import("typebox").TOptional; pattern: import("typebox").TString; source: import("typebox").TOptional>; commandText: import("typebox").TOptional; argPattern: import("typebox").TOptional; lastUsedAt: import("typebox").TOptional; lastUsedCommand: import("typebox").TOptional; lastResolvedPath: import("typebox").TOptional; }>>>; security: import("typebox").TOptional; ask: import("typebox").TOptional; askFallback: import("typebox").TOptional; autoAllowSkills: import("typebox").TOptional; }>>>; }>; baseHash: import("typebox").TOptional; }>; ExecApprovalsNodeGetParams: import("typebox").TObject<{ nodeId: import("typebox").TString; }>; ExecApprovalsNodeSnapshot: import("typebox").TObject<{ path: import("typebox").TOptional; exists: import("typebox").TOptional; hash: import("typebox").TOptional; file: import("typebox").TOptional; socket: import("typebox").TOptional; token: import("typebox").TOptional; }>>; defaults: import("typebox").TOptional; ask: import("typebox").TOptional; askFallback: import("typebox").TOptional; autoAllowSkills: import("typebox").TOptional; }>>; agents: import("typebox").TOptional; pattern: import("typebox").TString; source: import("typebox").TOptional>; commandText: import("typebox").TOptional; argPattern: import("typebox").TOptional; lastUsedAt: import("typebox").TOptional; lastUsedCommand: import("typebox").TOptional; lastResolvedPath: import("typebox").TOptional; }>>>; security: import("typebox").TOptional; ask: import("typebox").TOptional; askFallback: import("typebox").TOptional; autoAllowSkills: import("typebox").TOptional; }>>>; }>>; enabled: import("typebox").TOptional; baseHash: import("typebox").TOptional; defaultAction: import("typebox").TOptional, import("typebox").TLiteral<"deny">, import("typebox").TLiteral<"prompt">]>>; rules: import("typebox").TOptional, import("typebox").TLiteral<"deny">, import("typebox").TLiteral<"prompt">]>; shells: import("typebox").TOptional>; description: import("typebox").TOptional; enabled: import("typebox").TOptional; }>>>; constraints: import("typebox").TOptional; defaultAllowAllowed: import("typebox").TOptional; broadAllowRulesAllowed: import("typebox").TOptional; dangerousAllowRulesAllowed: import("typebox").TOptional; }>>; message: import("typebox").TOptional; }>; ExecApprovalsNodeSetParams: import("typebox").TObject<{ nodeId: import("typebox").TString; file: import("typebox").TOptional; socket: import("typebox").TOptional; token: import("typebox").TOptional; }>>; defaults: import("typebox").TOptional; ask: import("typebox").TOptional; askFallback: import("typebox").TOptional; autoAllowSkills: import("typebox").TOptional; }>>; agents: import("typebox").TOptional; pattern: import("typebox").TString; source: import("typebox").TOptional>; commandText: import("typebox").TOptional; argPattern: import("typebox").TOptional; lastUsedAt: import("typebox").TOptional; lastUsedCommand: import("typebox").TOptional; lastResolvedPath: import("typebox").TOptional; }>>>; security: import("typebox").TOptional; ask: import("typebox").TOptional; askFallback: import("typebox").TOptional; autoAllowSkills: import("typebox").TOptional; }>>>; }>>; native: import("typebox").TOptional, import("typebox").TLiteral<"deny">, import("typebox").TLiteral<"prompt">]>>; rules: import("typebox").TArray, import("typebox").TLiteral<"deny">, import("typebox").TLiteral<"prompt">]>; shells: import("typebox").TOptional>; description: import("typebox").TOptional; enabled: import("typebox").TOptional; }>>; }>>; baseHash: import("typebox").TOptional; }>; ExecApprovalsSnapshot: import("typebox").TObject<{ path: import("typebox").TString; exists: import("typebox").TBoolean; hash: import("typebox").TString; file: import("typebox").TObject<{ version: import("typebox").TLiteral<1>; socket: import("typebox").TOptional; token: import("typebox").TOptional; }>>; defaults: import("typebox").TOptional; ask: import("typebox").TOptional; askFallback: import("typebox").TOptional; autoAllowSkills: import("typebox").TOptional; }>>; agents: import("typebox").TOptional; pattern: import("typebox").TString; source: import("typebox").TOptional>; commandText: import("typebox").TOptional; argPattern: import("typebox").TOptional; lastUsedAt: import("typebox").TOptional; lastUsedCommand: import("typebox").TOptional; lastResolvedPath: import("typebox").TOptional; }>>>; security: import("typebox").TOptional; ask: import("typebox").TOptional; askFallback: import("typebox").TOptional; autoAllowSkills: import("typebox").TOptional; }>>>; }>; }>; ExecApprovalGetParams: import("typebox").TObject<{ id: import("typebox").TString; }>; ExecApprovalRequestParams: import("typebox").TObject<{ id: import("typebox").TOptional; command: import("typebox").TOptional; commandArgv: import("typebox").TOptional>; systemRunPlan: import("typebox").TOptional; cwd: import("typebox").TUnion<[import("typebox").TString, import("typebox").TNull]>; commandText: import("typebox").TString; commandPreview: import("typebox").TOptional>; agentId: import("typebox").TUnion<[import("typebox").TString, import("typebox").TNull]>; sessionKey: import("typebox").TUnion<[import("typebox").TString, import("typebox").TNull]>; mutableFileOperand: import("typebox").TOptional, import("typebox").TNull]>>; }>>; env: import("typebox").TOptional>; cwd: import("typebox").TOptional>; nodeId: import("typebox").TOptional>; host: import("typebox").TOptional>; security: import("typebox").TOptional>; ask: import("typebox").TOptional>; warningText: import("typebox").TOptional>; unavailableDecisions: import("typebox").TOptional>; commandSpans: import("typebox").TOptional>>; agentId: import("typebox").TOptional>; resolvedPath: import("typebox").TOptional>; sessionKey: import("typebox").TOptional>; turnSourceChannel: import("typebox").TOptional>; turnSourceTo: import("typebox").TOptional>; turnSourceAccountId: import("typebox").TOptional>; turnSourceThreadId: import("typebox").TOptional>; approvalReviewerDeviceIds: import("typebox").TOptional>; requireDeliveryRoute: import("typebox").TOptional; suppressDelivery: import("typebox").TOptional; timeoutMs: import("typebox").TOptional; twoPhase: import("typebox").TOptional; }>; ExecApprovalResolveParams: import("typebox").TObject<{ id: import("typebox").TString; decision: import("typebox").TString; }>; PluginApprovalRequestParams: import("typebox").TObject<{ pluginId: import("typebox").TOptional; title: import("typebox").TString; description: import("typebox").TString; severity: import("typebox").TOptional; toolName: import("typebox").TOptional; toolCallId: import("typebox").TOptional; allowedDecisions: import("typebox").TOptional>; agentId: import("typebox").TOptional; sessionKey: import("typebox").TOptional; approvalReviewerDeviceIds: import("typebox").TOptional>; turnSourceChannel: import("typebox").TOptional; turnSourceTo: import("typebox").TOptional; turnSourceAccountId: import("typebox").TOptional; turnSourceThreadId: import("typebox").TOptional>; timeoutMs: import("typebox").TOptional; twoPhase: import("typebox").TOptional; }>; PluginApprovalResolveParams: import("typebox").TObject<{ id: import("typebox").TString; decision: import("typebox").TString; }>; PluginControlUiDescriptor: import("typebox").TObject<{ id: import("typebox").TString; pluginId: import("typebox").TString; pluginName: import("typebox").TOptional; surface: import("typebox").TUnion<[import("typebox").TLiteral<"session">, import("typebox").TLiteral<"tool">, import("typebox").TLiteral<"run">, import("typebox").TLiteral<"settings">]>; label: import("typebox").TString; description: import("typebox").TOptional; placement: import("typebox").TOptional; schema: import("typebox").TOptional; requiredScopes: import("typebox").TOptional>; }>; PluginsSessionActionFailureResult: import("typebox").TObject<{ ok: import("typebox").TLiteral; error: import("typebox").TString; code: import("typebox").TOptional; details: import("typebox").TOptional; }>; PluginsSessionActionParams: import("typebox").TObject<{ pluginId: import("typebox").TString; actionId: import("typebox").TString; sessionKey: import("typebox").TOptional; payload: import("typebox").TOptional; }>; PluginsSessionActionResult: import("typebox").TUnion<[import("typebox").TObject<{ ok: import("typebox").TLiteral; result: import("typebox").TOptional; continueAgent: import("typebox").TOptional; reply: import("typebox").TOptional; }>, import("typebox").TObject<{ ok: import("typebox").TLiteral; error: import("typebox").TString; code: import("typebox").TOptional; details: import("typebox").TOptional; }>]>; PluginsSessionActionSuccessResult: import("typebox").TObject<{ ok: import("typebox").TLiteral; result: import("typebox").TOptional; continueAgent: import("typebox").TOptional; reply: import("typebox").TOptional; }>; PluginsUiDescriptorsParams: import("typebox").TObject<{}>; PluginsUiDescriptorsResult: import("typebox").TObject<{ ok: import("typebox").TLiteral; descriptors: import("typebox").TArray; surface: import("typebox").TUnion<[import("typebox").TLiteral<"session">, import("typebox").TLiteral<"tool">, import("typebox").TLiteral<"run">, import("typebox").TLiteral<"settings">]>; label: import("typebox").TString; description: import("typebox").TOptional; placement: import("typebox").TOptional; schema: import("typebox").TOptional; requiredScopes: import("typebox").TOptional>; }>>; }>; DevicePairListParams: import("typebox").TObject<{}>; DevicePairApproveParams: import("typebox").TObject<{ requestId: import("typebox").TString; }>; DevicePairRejectParams: import("typebox").TObject<{ requestId: import("typebox").TString; }>; DevicePairRemoveParams: import("typebox").TObject<{ deviceId: import("typebox").TString; }>; DevicePairSetupCodeParams: import("typebox").TObject<{ publicUrl: import("typebox").TOptional; preferRemoteUrl: import("typebox").TOptional; includeQr: import("typebox").TOptional; }>; DevicePairSetupCodeResult: import("typebox").TObject<{ setupCode: import("typebox").TString; qrDataUrl: import("typebox").TOptional; gatewayUrl: import("typebox").TString; gatewayUrls: import("typebox").TOptional>; auth: import("typebox").TUnion<[import("typebox").TLiteral<"token">, import("typebox").TLiteral<"password">]>; urlSource: import("typebox").TString; }>; DeviceTokenRotateParams: import("typebox").TObject<{ deviceId: import("typebox").TString; role: import("typebox").TString; scopes: import("typebox").TOptional>; }>; DeviceTokenRevokeParams: import("typebox").TObject<{ deviceId: import("typebox").TString; role: import("typebox").TString; }>; DevicePairRequestedEvent: import("typebox").TObject<{ requestId: import("typebox").TString; deviceId: import("typebox").TString; publicKey: import("typebox").TString; displayName: import("typebox").TOptional; platform: import("typebox").TOptional; deviceFamily: import("typebox").TOptional; clientId: import("typebox").TOptional; clientMode: import("typebox").TOptional; role: import("typebox").TOptional; roles: import("typebox").TOptional>; scopes: import("typebox").TOptional>; remoteIp: import("typebox").TOptional; silent: import("typebox").TOptional; isRepair: import("typebox").TOptional; ts: import("typebox").TInteger; }>; DevicePairResolvedEvent: import("typebox").TObject<{ requestId: import("typebox").TString; deviceId: import("typebox").TString; decision: import("typebox").TString; ts: import("typebox").TInteger; }>; ChatHistoryParams: import("typebox").TObject<{ sessionKey: import("typebox").TString; agentId: import("typebox").TOptional; limit: import("typebox").TOptional; offset: import("typebox").TOptional; maxChars: import("typebox").TOptional; }>; ChatMetadataParams: import("typebox").TObject<{ agentId: import("typebox").TOptional; }>; ChatMessageGetParams: import("typebox").TObject<{ sessionKey: import("typebox").TString; agentId: import("typebox").TOptional; messageId: import("typebox").TString; maxChars: import("typebox").TOptional; }>; ChatMessageGetResult: import("typebox").TObject<{ ok: import("typebox").TBoolean; message: import("typebox").TOptional; unavailableReason: import("typebox").TOptional, import("typebox").TLiteral<"oversized">, import("typebox").TLiteral<"not_visible">]>>; }>; ChatSendParams: import("typebox").TObject<{ sessionKey: import("typebox").TString; agentId: import("typebox").TOptional; sessionId: import("typebox").TOptional; message: import("typebox").TString; thinking: import("typebox").TOptional; fastMode: import("typebox").TOptional]>>; fastAutoOnSeconds: import("typebox").TOptional; deliver: import("typebox").TOptional; originatingChannel: import("typebox").TOptional; originatingTo: import("typebox").TOptional; originatingAccountId: import("typebox").TOptional; originatingThreadId: import("typebox").TOptional; attachments: import("typebox").TOptional>; timeoutMs: import("typebox").TOptional; systemInputProvenance: import("typebox").TOptional; sourceSessionKey: import("typebox").TOptional; sourceChannel: import("typebox").TOptional; sourceTool: import("typebox").TOptional; }>>; systemProvenanceReceipt: import("typebox").TOptional; suppressCommandInterpretation: import("typebox").TOptional; expectedSessionRoutingContract: import("typebox").TOptional; idempotencyKey: import("typebox").TString; }>; ChatAbortParams: import("typebox").TObject<{ sessionKey: import("typebox").TString; agentId: import("typebox").TOptional; runId: import("typebox").TOptional; preserveSideRuns: import("typebox").TOptional; }>; ChatInjectParams: import("typebox").TObject<{ sessionKey: import("typebox").TString; agentId: import("typebox").TOptional; message: import("typebox").TString; label: import("typebox").TOptional; }>; ChatDeltaEvent: import("typebox").TObject<{ state: import("typebox").TLiteral<"delta">; message: import("typebox").TOptional; deltaText: import("typebox").TString; replace: import("typebox").TOptional; usage: import("typebox").TOptional; runId: import("typebox").TString; sessionKey: import("typebox").TString; agentId: import("typebox").TOptional; spawnedBy: import("typebox").TOptional; seq: import("typebox").TInteger; }>; ChatFinalEvent: import("typebox").TObject<{ state: import("typebox").TLiteral<"final">; message: import("typebox").TOptional; usage: import("typebox").TOptional; stopReason: import("typebox").TOptional; runId: import("typebox").TString; sessionKey: import("typebox").TString; agentId: import("typebox").TOptional; spawnedBy: import("typebox").TOptional; seq: import("typebox").TInteger; }>; ChatAbortedEvent: import("typebox").TObject<{ state: import("typebox").TLiteral<"aborted">; message: import("typebox").TOptional; errorMessage: import("typebox").TOptional; stopReason: import("typebox").TOptional; runId: import("typebox").TString; sessionKey: import("typebox").TString; agentId: import("typebox").TOptional; spawnedBy: import("typebox").TOptional; seq: import("typebox").TInteger; }>; ChatErrorEvent: import("typebox").TObject<{ state: import("typebox").TLiteral<"error">; message: import("typebox").TOptional; errorMessage: import("typebox").TOptional; errorKind: import("typebox").TOptional, import("typebox").TLiteral<"timeout">, import("typebox").TLiteral<"rate_limit">, import("typebox").TLiteral<"context_length">, import("typebox").TLiteral<"unknown">]>>; usage: import("typebox").TOptional; stopReason: import("typebox").TOptional; runId: import("typebox").TString; sessionKey: import("typebox").TString; agentId: import("typebox").TOptional; spawnedBy: import("typebox").TOptional; seq: import("typebox").TInteger; }>; ChatEvent: import("typebox").TUnion<[import("typebox").TObject<{ state: import("typebox").TLiteral<"delta">; message: import("typebox").TOptional; deltaText: import("typebox").TString; replace: import("typebox").TOptional; usage: import("typebox").TOptional; runId: import("typebox").TString; sessionKey: import("typebox").TString; agentId: import("typebox").TOptional; spawnedBy: import("typebox").TOptional; seq: import("typebox").TInteger; }>, import("typebox").TObject<{ state: import("typebox").TLiteral<"final">; message: import("typebox").TOptional; usage: import("typebox").TOptional; stopReason: import("typebox").TOptional; runId: import("typebox").TString; sessionKey: import("typebox").TString; agentId: import("typebox").TOptional; spawnedBy: import("typebox").TOptional; seq: import("typebox").TInteger; }>, import("typebox").TObject<{ state: import("typebox").TLiteral<"aborted">; message: import("typebox").TOptional; errorMessage: import("typebox").TOptional; stopReason: import("typebox").TOptional; runId: import("typebox").TString; sessionKey: import("typebox").TString; agentId: import("typebox").TOptional; spawnedBy: import("typebox").TOptional; seq: import("typebox").TInteger; }>, import("typebox").TObject<{ state: import("typebox").TLiteral<"error">; message: import("typebox").TOptional; errorMessage: import("typebox").TOptional; errorKind: import("typebox").TOptional, import("typebox").TLiteral<"timeout">, import("typebox").TLiteral<"rate_limit">, import("typebox").TLiteral<"context_length">, import("typebox").TLiteral<"unknown">]>>; usage: import("typebox").TOptional; stopReason: import("typebox").TOptional; runId: import("typebox").TString; sessionKey: import("typebox").TString; agentId: import("typebox").TOptional; spawnedBy: import("typebox").TOptional; seq: import("typebox").TInteger; }>]>; UpdateStatusParams: import("typebox").TObject<{}>; UpdateRunParams: import("typebox").TObject<{ sessionKey: import("typebox").TOptional; deliveryContext: import("typebox").TOptional; to: import("typebox").TOptional; accountId: import("typebox").TOptional; threadId: import("typebox").TOptional>; }>>; note: import("typebox").TOptional; continuationMessage: import("typebox").TOptional; restartDelayMs: import("typebox").TOptional; timeoutMs: import("typebox").TOptional; }>; TickEvent: import("typebox").TObject<{ ts: import("typebox").TInteger; }>; ShutdownEvent: import("typebox").TObject<{ reason: import("typebox").TString; restartExpectedMs: import("typebox").TOptional; }>; }; //#endregion //#region packages/gateway-protocol/src/schema/types.d.ts /** Stable schema names registered in the protocol schema registry. */ type ProtocolSchemaName = keyof typeof ProtocolSchemas; /** Inferred TypeScript type for a named TypeBox protocol schema. */ type SchemaType = Static<(typeof ProtocolSchemas)[TName]>; /** Connection handshake, envelope, snapshot, and shared error wire types. */ type ConnectParams = SchemaType<"ConnectParams">; type HelloOk = SchemaType<"HelloOk">; type RequestFrame = SchemaType<"RequestFrame">; type ResponseFrame = SchemaType<"ResponseFrame">; type EventFrame = SchemaType<"EventFrame">; type GatewayFrame = SchemaType<"GatewayFrame">; type Snapshot = SchemaType<"Snapshot">; type PresenceEntry = SchemaType<"PresenceEntry">; type ErrorShape = SchemaType<"ErrorShape">; type StateVersion = SchemaType<"StateVersion">; /** Environment status RPC payloads used by CLI and Control UI surfaces. */ type EnvironmentStatus = SchemaType<"EnvironmentStatus">; type EnvironmentSummary = SchemaType<"EnvironmentSummary">; type EnvironmentsListParams = SchemaType<"EnvironmentsListParams">; type EnvironmentsListResult = SchemaType<"EnvironmentsListResult">; type EnvironmentsStatusParams = SchemaType<"EnvironmentsStatusParams">; type EnvironmentsStatusResult = SchemaType<"EnvironmentsStatusResult">; type SystemInfoParams = SchemaType<"SystemInfoParams">; type SystemInfoResult = SchemaType<"SystemInfoResult">; type WorktreeRecord = SchemaType<"WorktreeRecord">; type WorktreesListParams = SchemaType<"WorktreesListParams">; type WorktreesListResult = SchemaType<"WorktreesListResult">; type WorktreesCreateParams = SchemaType<"WorktreesCreateParams">; type WorktreesRemoveParams = SchemaType<"WorktreesRemoveParams">; type WorktreesRemoveResult = SchemaType<"WorktreesRemoveResult">; type WorktreesRestoreParams = SchemaType<"WorktreesRestoreParams">; type WorktreesGcParams = SchemaType<"WorktreesGcParams">; type WorktreesGcResult = SchemaType<"WorktreesGcResult">; /** Agent activity, identity, send, poll, wait, and wake protocol payloads. */ type AgentEvent = SchemaType<"AgentEvent">; type AgentIdentityParams = SchemaType<"AgentIdentityParams">; type AgentIdentityResult = SchemaType<"AgentIdentityResult">; type PollParams = SchemaType<"PollParams">; type AgentWaitParams = SchemaType<"AgentWaitParams">; type WakeParams = SchemaType<"WakeParams">; /** Node pairing, presence, invoke, and pending-queue protocol payloads. */ type NodePairRequestParams = SchemaType<"NodePairRequestParams">; type NodePairListParams = SchemaType<"NodePairListParams">; type NodePairApproveParams = SchemaType<"NodePairApproveParams">; type NodePairRejectParams = SchemaType<"NodePairRejectParams">; type NodePairRemoveParams = SchemaType<"NodePairRemoveParams">; type NodePairVerifyParams = SchemaType<"NodePairVerifyParams">; type NodeListParams = SchemaType<"NodeListParams">; type NodeInvokeParams = SchemaType<"NodeInvokeParams">; type NodeInvokeResultParams = SchemaType<"NodeInvokeResultParams">; type NodeEventParams = SchemaType<"NodeEventParams">; type NodeEventResult = SchemaType<"NodeEventResult">; type NodePresenceAlivePayload = SchemaType<"NodePresenceAlivePayload">; type NodePresenceAliveReason = SchemaType<"NodePresenceAliveReason">; type NodePendingDrainParams = SchemaType<"NodePendingDrainParams">; type NodePendingDrainResult = SchemaType<"NodePendingDrainResult">; type NodePendingEnqueueParams = SchemaType<"NodePendingEnqueueParams">; type NodePendingEnqueueResult = SchemaType<"NodePendingEnqueueResult">; /** Session lifecycle, message routing, compaction, patch, and usage payloads. */ type SessionsListParams = SchemaType<"SessionsListParams">; type SessionsCleanupParams = SchemaType<"SessionsCleanupParams">; type SessionsPreviewParams = SchemaType<"SessionsPreviewParams">; type SessionsDescribeParams = SchemaType<"SessionsDescribeParams">; type SessionsResolveParams = SchemaType<"SessionsResolveParams">; type SessionOperationEvent = SchemaType<"SessionOperationEvent">; type SessionWorktreeInfo = SchemaType<"SessionWorktreeInfo">; type SessionsCreateResult = SchemaType<"SessionsCreateResult">; type SessionsPatchParams = SchemaType<"SessionsPatchParams">; type SessionsResetParams = SchemaType<"SessionsResetParams">; type SessionsDeleteParams = SchemaType<"SessionsDeleteParams">; type SessionsCompactParams = SchemaType<"SessionsCompactParams">; type SessionsUsageParams = SchemaType<"SessionsUsageParams">; /** Metadata-only audit query payloads. */ type AuditEvent = SchemaType<"AuditEvent">; type AuditListParams = SchemaType<"AuditListParams">; type AuditListResult = SchemaType<"AuditListResult">; /** Task ledger query and cancellation payloads. */ type TaskSummary = SchemaType<"TaskSummary">; type TasksListParams = SchemaType<"TasksListParams">; type TasksListResult = SchemaType<"TasksListResult">; type TasksGetParams = SchemaType<"TasksGetParams">; type TasksGetResult = SchemaType<"TasksGetResult">; type TasksCancelParams = SchemaType<"TasksCancelParams">; type TasksCancelResult = SchemaType<"TasksCancelResult">; /** Config read/write/schema payloads plus update status and run controls. */ type ConfigGetParams = SchemaType<"ConfigGetParams">; type ConfigSetParams = SchemaType<"ConfigSetParams">; type ConfigApplyParams = SchemaType<"ConfigApplyParams">; type ConfigPatchParams = SchemaType<"ConfigPatchParams">; type ConfigSchemaParams = SchemaType<"ConfigSchemaParams">; type ConfigSchemaResponse = SchemaType<"ConfigSchemaResponse">; type UpdateStatusParams = SchemaType<"UpdateStatusParams">; /** Crestodian chat payloads exchanged by clients and the gateway. */ type CrestodianChatParams = SchemaType<"CrestodianChatParams">; type CrestodianChatResult = SchemaType<"CrestodianChatResult">; type CrestodianSetupDetectParams = SchemaType<"CrestodianSetupDetectParams">; type CrestodianSetupDetectResult = SchemaType<"CrestodianSetupDetectResult">; type CrestodianSetupActivateParams = SchemaType<"CrestodianSetupActivateParams">; type CrestodianSetupActivateResult = SchemaType<"CrestodianSetupActivateResult">; /** Wizard setup flow payloads exchanged by CLI, UI, and gateway. */ type WizardStartParams = SchemaType<"WizardStartParams">; type WizardNextParams = SchemaType<"WizardNextParams">; type WizardCancelParams = SchemaType<"WizardCancelParams">; type WizardStatusParams = SchemaType<"WizardStatusParams">; type WizardStep = SchemaType<"WizardStep">; type WizardNextResult = SchemaType<"WizardNextResult">; type WizardStartResult = SchemaType<"WizardStartResult">; type WizardStatusResult = SchemaType<"WizardStatusResult">; type TalkModeParams = SchemaType<"TalkModeParams">; type TalkCatalogParams = SchemaType<"TalkCatalogParams">; type TalkCatalogResult = SchemaType<"TalkCatalogResult">; type TalkConfigParams = SchemaType<"TalkConfigParams">; type TalkConfigResult = SchemaType<"TalkConfigResult">; type TalkClientCreateParams = SchemaType<"TalkClientCreateParams">; type TalkClientCreateResult = SchemaType<"TalkClientCreateResult">; type TalkClientSteerParams = SchemaType<"TalkClientSteerParams">; type TalkAgentControlResult = SchemaType<"TalkAgentControlResult">; type TalkClientToolCallParams = SchemaType<"TalkClientToolCallParams">; type TalkClientToolCallResult = SchemaType<"TalkClientToolCallResult">; type TalkSessionCreateParams = SchemaType<"TalkSessionCreateParams">; type TalkSessionCreateResult = SchemaType<"TalkSessionCreateResult">; type TalkSessionJoinParams = SchemaType<"TalkSessionJoinParams">; type TalkSessionJoinResult = SchemaType<"TalkSessionJoinResult">; type TalkSessionAppendAudioParams = SchemaType<"TalkSessionAppendAudioParams">; type TalkSessionTurnParams = SchemaType<"TalkSessionTurnParams">; type TalkSessionCancelTurnParams = SchemaType<"TalkSessionCancelTurnParams">; type TalkSessionCancelOutputParams = SchemaType<"TalkSessionCancelOutputParams">; type TalkSessionTurnResult = SchemaType<"TalkSessionTurnResult">; type TalkSessionSteerParams = SchemaType<"TalkSessionSteerParams">; type TalkSessionSubmitToolResultParams = SchemaType<"TalkSessionSubmitToolResultParams">; type TalkSessionCloseParams = SchemaType<"TalkSessionCloseParams">; type TalkSessionOkResult = SchemaType<"TalkSessionOkResult">; type TalkSpeakParams = SchemaType<"TalkSpeakParams">; type TalkSpeakResult = SchemaType<"TalkSpeakResult">; type TtsSpeakParams = SchemaType<"TtsSpeakParams">; type TtsSpeakResult = SchemaType<"TtsSpeakResult">; /** Channel control and web-login payloads. */ type ChannelsStatusParams = SchemaType<"ChannelsStatusParams">; type ChannelsStatusResult = SchemaType<"ChannelsStatusResult">; type ChannelsStartParams = SchemaType<"ChannelsStartParams">; type ChannelsStopParams = SchemaType<"ChannelsStopParams">; type ChannelsLogoutParams = SchemaType<"ChannelsLogoutParams">; type WebLoginStartParams = SchemaType<"WebLoginStartParams">; type WebLoginWaitParams = SchemaType<"WebLoginWaitParams">; /** Agent config-file CRUD and artifact download/list payloads. */ type AgentSummary = SchemaType<"AgentSummary">; type AgentsFileEntry = SchemaType<"AgentsFileEntry">; type AgentsCreateParams = SchemaType<"AgentsCreateParams">; type AgentsCreateResult = SchemaType<"AgentsCreateResult">; type AgentsUpdateParams = SchemaType<"AgentsUpdateParams">; type AgentsUpdateResult = SchemaType<"AgentsUpdateResult">; type AgentsDeleteParams = SchemaType<"AgentsDeleteParams">; type AgentsDeleteResult = SchemaType<"AgentsDeleteResult">; type AgentsFilesListParams = SchemaType<"AgentsFilesListParams">; type AgentsFilesListResult = SchemaType<"AgentsFilesListResult">; type AgentsFilesGetParams = SchemaType<"AgentsFilesGetParams">; type AgentsFilesGetResult = SchemaType<"AgentsFilesGetResult">; type AgentsFilesSetParams = SchemaType<"AgentsFilesSetParams">; type AgentsFilesSetResult = SchemaType<"AgentsFilesSetResult">; type AgentsWorkspaceEntry = SchemaType<"AgentsWorkspaceEntry">; type AgentsWorkspaceFile = SchemaType<"AgentsWorkspaceFile">; type AgentsWorkspaceListParams = SchemaType<"AgentsWorkspaceListParams">; type AgentsWorkspaceListResult = SchemaType<"AgentsWorkspaceListResult">; type AgentsWorkspaceGetParams = SchemaType<"AgentsWorkspaceGetParams">; type AgentsWorkspaceGetResult = SchemaType<"AgentsWorkspaceGetResult">; type SessionFileKind = SchemaType<"SessionFileKind">; type SessionFileRelevance = SchemaType<"SessionFileRelevance">; type SessionFileEntry = SchemaType<"SessionFileEntry">; type SessionFileBrowserEntry = SchemaType<"SessionFileBrowserEntry">; type SessionFileBrowserResult = SchemaType<"SessionFileBrowserResult">; type SessionsFilesListParams = SchemaType<"SessionsFilesListParams">; type SessionsFilesListResult = SchemaType<"SessionsFilesListResult">; type SessionsFilesGetParams = SchemaType<"SessionsFilesGetParams">; type SessionsFilesGetResult = SchemaType<"SessionsFilesGetResult">; type ArtifactSummary = SchemaType<"ArtifactSummary">; type ArtifactsListParams = SchemaType<"ArtifactsListParams">; type ArtifactsListResult = SchemaType<"ArtifactsListResult">; type ArtifactsGetParams = SchemaType<"ArtifactsGetParams">; type ArtifactsGetResult = SchemaType<"ArtifactsGetResult">; type ArtifactsDownloadParams = SchemaType<"ArtifactsDownloadParams">; type ArtifactsDownloadResult = SchemaType<"ArtifactsDownloadResult">; /** Model, command, plugin UI action, tool catalog, and skill workshop payloads. */ type AgentsListParams = SchemaType<"AgentsListParams">; type AgentsListResult = SchemaType<"AgentsListResult">; type ChatMetadataParams = SchemaType<"ChatMetadataParams">; type CommandEntry = SchemaType<"CommandEntry">; type CommandsListParams = SchemaType<"CommandsListParams">; type CommandsListResult = SchemaType<"CommandsListResult">; type PluginsSessionActionParams = SchemaType<"PluginsSessionActionParams">; type PluginsSessionActionResult = SchemaType<"PluginsSessionActionResult">; type SkillsStatusParams = SchemaType<"SkillsStatusParams">; type ToolsCatalogParams = SchemaType<"ToolsCatalogParams">; type ToolsCatalogResult = SchemaType<"ToolsCatalogResult">; type ToolsEffectiveParams = SchemaType<"ToolsEffectiveParams">; type ToolsEffectiveResult = SchemaType<"ToolsEffectiveResult">; type ToolsInvokeParams = SchemaType<"ToolsInvokeParams">; type ToolsInvokeResult = SchemaType<"ToolsInvokeResult">; type SkillsBinsParams = SchemaType<"SkillsBinsParams">; type SkillsBinsResult = SchemaType<"SkillsBinsResult">; type SkillsSearchParams = SchemaType<"SkillsSearchParams">; type SkillsSearchResult = SchemaType<"SkillsSearchResult">; type SkillsDetailParams = SchemaType<"SkillsDetailParams">; type SkillsDetailResult = SchemaType<"SkillsDetailResult">; type SkillsProposalsListParams = SchemaType<"SkillsProposalsListParams">; type SkillsProposalsListResult = SchemaType<"SkillsProposalsListResult">; type SkillsProposalInspectParams = SchemaType<"SkillsProposalInspectParams">; type SkillsProposalInspectResult = SchemaType<"SkillsProposalInspectResult">; type SkillsProposalCreateParams = SchemaType<"SkillsProposalCreateParams">; type SkillsProposalUpdateParams = SchemaType<"SkillsProposalUpdateParams">; type SkillsProposalReviseParams = SchemaType<"SkillsProposalReviseParams">; type SkillsProposalRequestRevisionParams = SchemaType<"SkillsProposalRequestRevisionParams">; type SkillsProposalRequestRevisionResult = SchemaType<"SkillsProposalRequestRevisionResult">; type SkillsProposalActionParams = SchemaType<"SkillsProposalActionParams">; type SkillsProposalApplyResult = SchemaType<"SkillsProposalApplyResult">; type SkillsProposalRecordResult = SchemaType<"SkillsProposalRecordResult">; type SkillsCuratorStatusParams = SchemaType<"SkillsCuratorStatusParams">; type SkillsCuratorStatusResult = SchemaType<"SkillsCuratorStatusResult">; type SkillsCuratorActionParams = SchemaType<"SkillsCuratorActionParams">; type SkillsCuratorActionResult = SchemaType<"SkillsCuratorActionResult">; type SkillsSecurityVerdictsParams = SchemaType<"SkillsSecurityVerdictsParams">; type SkillsSecurityVerdictsResult = SchemaType<"SkillsSecurityVerdictsResult">; type SkillsSkillCardParams = SchemaType<"SkillsSkillCardParams">; type SkillsSkillCardResult = SchemaType<"SkillsSkillCardResult">; type SkillsUploadBeginParams = SchemaType<"SkillsUploadBeginParams">; type SkillsUploadChunkParams = SchemaType<"SkillsUploadChunkParams">; type SkillsUploadCommitParams = SchemaType<"SkillsUploadCommitParams">; type SkillsInstallParams = SchemaType<"SkillsInstallParams">; type SkillsUpdateParams = SchemaType<"SkillsUpdateParams">; /** Cron scheduler and run-log payloads. */ type CronJob = SchemaType<"CronJob">; type CronListParams = SchemaType<"CronListParams">; type CronStatusParams = SchemaType<"CronStatusParams">; type CronGetParams = SchemaType<"CronGetParams">; type CronAddParams = SchemaType<"CronAddParams">; type CronAddResult = SchemaType<"CronAddResult">; type CronDeclarativeAddResult = SchemaType<"CronDeclarativeAddResult">; type CronUpdateParams = SchemaType<"CronUpdateParams">; type CronRemoveParams = SchemaType<"CronRemoveParams">; type CronRunParams = SchemaType<"CronRunParams">; type CronRunsParams = SchemaType<"CronRunsParams">; type CronRunLogEntry = SchemaType<"CronRunLogEntry">; /** Logs and approval payloads for chat, exec commands, plugins, and devices. */ type LogsTailParams = SchemaType<"LogsTailParams">; type LogsTailResult = SchemaType<"LogsTailResult">; type ExecApprovalsGetParams = SchemaType<"ExecApprovalsGetParams">; type ExecApprovalsSetParams = SchemaType<"ExecApprovalsSetParams">; type ExecApprovalsNodeSnapshot = SchemaType<"ExecApprovalsNodeSnapshot">; type ExecApprovalsSnapshot = SchemaType<"ExecApprovalsSnapshot">; type ExecApprovalGetParams = SchemaType<"ExecApprovalGetParams">; type ExecApprovalRequestParams = SchemaType<"ExecApprovalRequestParams">; type ExecApprovalResolveParams = SchemaType<"ExecApprovalResolveParams">; type DevicePairListParams = SchemaType<"DevicePairListParams">; type DevicePairApproveParams = SchemaType<"DevicePairApproveParams">; type DevicePairRejectParams = SchemaType<"DevicePairRejectParams">; type DevicePairSetupCodeParams = SchemaType<"DevicePairSetupCodeParams">; type DevicePairSetupCodeResult = SchemaType<"DevicePairSetupCodeResult">; type ChatInjectParams = SchemaType<"ChatInjectParams">; type ChatEvent = SchemaType<"ChatEvent">; /** Gateway update and process lifecycle event payloads. */ type UpdateRunParams = SchemaType<"UpdateRunParams">; type TickEvent = SchemaType<"TickEvent">; type ShutdownEvent = SchemaType<"ShutdownEvent">; //#endregion //#region packages/gateway-protocol/src/schema/error-codes.d.ts /** Gateway JSON-RPC style error codes shared by clients and server handlers. */ declare const ErrorCodes: { /** Client has not completed account/device linking for this gateway. */readonly NOT_LINKED: "NOT_LINKED"; /** Device exists but still needs an explicit pairing approval. */ readonly NOT_PAIRED: "NOT_PAIRED"; /** Agent turn exceeded the gateway wait window. */ readonly AGENT_TIMEOUT: "AGENT_TIMEOUT"; /** Request payload failed protocol validation or method preconditions. */ readonly INVALID_REQUEST: "INVALID_REQUEST"; /** Approval resolution referenced a missing or expired approval request. */ readonly APPROVAL_NOT_FOUND: "APPROVAL_NOT_FOUND"; /** Gateway service or required backend is temporarily unavailable. */ readonly UNAVAILABLE: "UNAVAILABLE"; }; /** Closed set of canonical gateway error code strings. */ type ErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes]; /** Builds the canonical gateway error payload while preserving optional retry metadata. */ declare function errorShape(code: ErrorCode, message: string, opts?: { details?: unknown; retryable?: boolean; retryAfterMs?: number; }): ErrorShape; //#endregion //#region packages/gateway-protocol/src/schema/environments.d.ts /** * Environment inventory protocol schemas. * * Environments are runtime targets such as local hosts, VMs, or remote workers; * this schema layer only describes their gateway-visible status summary. */ /** Runtime availability state for an environment target. */ declare const EnvironmentStatusSchema: Type.TString; /** Public environment summary shown in listings and status responses. */ declare const EnvironmentSummarySchema: Type.TObject<{ id: Type.TString; type: Type.TString; label: Type.TOptional; status: Type.TString; capabilities: Type.TOptional>; }>; /** Empty request payload for listing known environments. */ declare const EnvironmentsListParamsSchema: Type.TObject<{}>; /** List response containing all gateway-visible environment summaries. */ declare const EnvironmentsListResultSchema: Type.TObject<{ environments: Type.TArray; status: Type.TString; capabilities: Type.TOptional>; }>>; }>; /** Status lookup request for one environment id. */ declare const EnvironmentsStatusParamsSchema: Type.TObject<{ environmentId: Type.TString; }>; /** Status lookup result for one environment id. */ declare const EnvironmentsStatusResultSchema: Type.TObject<{ id: Type.TString; type: Type.TString; label: Type.TOptional; status: Type.TString; capabilities: Type.TOptional>; }>; //#endregion //#region packages/gateway-protocol/src/schema/exec-approvals.d.ts /** Empty request payload for reading local exec approval policy. */ declare const ExecApprovalsGetParamsSchema: Type.TObject<{}>; /** Local exec approval policy write request with optional base hash guard. */ declare const ExecApprovalsSetParamsSchema: Type.TObject<{ file: Type.TObject<{ version: Type.TLiteral<1>; socket: Type.TOptional; token: Type.TOptional; }>>; defaults: Type.TOptional; ask: Type.TOptional; askFallback: Type.TOptional; autoAllowSkills: Type.TOptional; }>>; agents: Type.TOptional; pattern: Type.TString; source: Type.TOptional>; commandText: Type.TOptional; argPattern: Type.TOptional; lastUsedAt: Type.TOptional; lastUsedCommand: Type.TOptional; lastResolvedPath: Type.TOptional; }>>>; security: Type.TOptional; ask: Type.TOptional; askFallback: Type.TOptional; autoAllowSkills: Type.TOptional; }>>>; }>; baseHash: Type.TOptional; }>; /** Lookup request for one pending exec approval by id. */ declare const ExecApprovalGetParamsSchema: Type.TObject<{ id: Type.TString; }>; /** Pending command execution approval request shown to reviewers. */ declare const ExecApprovalRequestParamsSchema: Type.TObject<{ id: Type.TOptional; command: Type.TOptional; commandArgv: Type.TOptional>; systemRunPlan: Type.TOptional; cwd: Type.TUnion<[Type.TString, Type.TNull]>; commandText: Type.TString; commandPreview: Type.TOptional>; agentId: Type.TUnion<[Type.TString, Type.TNull]>; sessionKey: Type.TUnion<[Type.TString, Type.TNull]>; mutableFileOperand: Type.TOptional, Type.TNull]>>; }>>; env: Type.TOptional>; cwd: Type.TOptional>; nodeId: Type.TOptional>; host: Type.TOptional>; security: Type.TOptional>; ask: Type.TOptional>; warningText: Type.TOptional>; unavailableDecisions: Type.TOptional>; commandSpans: Type.TOptional>>; agentId: Type.TOptional>; resolvedPath: Type.TOptional>; sessionKey: Type.TOptional>; turnSourceChannel: Type.TOptional>; turnSourceTo: Type.TOptional>; turnSourceAccountId: Type.TOptional>; turnSourceThreadId: Type.TOptional>; approvalReviewerDeviceIds: Type.TOptional>; requireDeliveryRoute: Type.TOptional; suppressDelivery: Type.TOptional; timeoutMs: Type.TOptional; twoPhase: Type.TOptional; }>; /** Reviewer decision payload for one pending exec approval. */ declare const ExecApprovalResolveParamsSchema: Type.TObject<{ id: Type.TString; decision: Type.TString; }>; //#endregion //#region packages/gateway-protocol/src/schema/frames.d.ts declare const GATEWAY_SERVER_CAPS: { readonly CHAT_SEND_ROUTING_CONTRACT: "chat-send-routing-contract"; }; /** * Top-level gateway frame schemas. * * These are the WebSocket envelope contracts; method/event payload schemas live * in feature-specific modules and are referenced by runtime validators. */ /** Periodic server heartbeat event payload. */ declare const TickEventSchema: Type.TObject<{ ts: Type.TInteger; }>; /** Server shutdown notice event payload. */ declare const ShutdownEventSchema: Type.TObject<{ reason: Type.TString; restartExpectedMs: Type.TOptional; }>; /** Initial client hello/connect payload sent before the gateway accepts frames. */ declare const ConnectParamsSchema: Type.TObject<{ minProtocol: Type.TInteger; maxProtocol: Type.TInteger; client: Type.TObject<{ id: Type.TEnum<["webchat-ui", "openclaw-control-ui", "openclaw-tui", "webchat", "cli", "gateway-client", "openclaw-macos", "openclaw-ios", "openclaw-android", "node-host", "test", "fingerprint", "openclaw-probe"]>; displayName: Type.TOptional; version: Type.TString; platform: Type.TString; deviceFamily: Type.TOptional; modelIdentifier: Type.TOptional; mode: Type.TEnum<["webchat", "cli", "test", "probe", "ui", "backend", "node"]>; instanceId: Type.TOptional; }>; caps: Type.TOptional>; commands: Type.TOptional>; permissions: Type.TOptional>; pathEnv: Type.TOptional; role: Type.TOptional; scopes: Type.TOptional>; device: Type.TOptional>; auth: Type.TOptional; bootstrapToken: Type.TOptional; deviceToken: Type.TOptional; password: Type.TOptional; approvalRuntimeToken: Type.TOptional; agentRuntimeIdentityToken: Type.TOptional; }>>; locale: Type.TOptional; userAgent: Type.TOptional; }>; /** Successful gateway hello response with negotiated protocol and initial state. */ declare const HelloOkSchema: Type.TObject<{ type: Type.TLiteral<"hello-ok">; protocol: Type.TInteger; server: Type.TObject<{ version: Type.TString; connId: Type.TString; }>; features: Type.TObject<{ methods: Type.TArray; events: Type.TArray; capabilities: Type.TOptional>; }>; snapshot: Type.TObject<{ presence: Type.TArray; ip: Type.TOptional; version: Type.TOptional; platform: Type.TOptional; deviceFamily: Type.TOptional; modelIdentifier: Type.TOptional; mode: Type.TOptional; lastInputSeconds: Type.TOptional; reason: Type.TOptional; tags: Type.TOptional>; text: Type.TOptional; ts: Type.TInteger; deviceId: Type.TOptional; roles: Type.TOptional>; scopes: Type.TOptional>; instanceId: Type.TOptional; }>>; health: Type.TAny; stateVersion: Type.TObject<{ presence: Type.TInteger; health: Type.TInteger; }>; uptimeMs: Type.TInteger; configPath: Type.TOptional; stateDir: Type.TOptional; sessionDefaults: Type.TOptional; }>>; authMode: Type.TOptional, Type.TLiteral<"token">, Type.TLiteral<"password">, Type.TLiteral<"trusted-proxy">]>>; updateAvailable: Type.TOptional>; }>; controlUiTabs: Type.TOptional; icon: Type.TOptional; path: Type.TOptional; group: Type.TOptional, Type.TLiteral<"agent">]>>; order: Type.TOptional; }>>>; pluginSurfaceUrls: Type.TOptional>; auth: Type.TObject<{ deviceToken: Type.TOptional; role: Type.TString; scopes: Type.TArray; issuedAtMs: Type.TOptional; deviceTokens: Type.TOptional; issuedAtMs: Type.TInteger; }>>>; }>; policy: Type.TObject<{ maxPayload: Type.TInteger; maxBufferedBytes: Type.TInteger; tickIntervalMs: Type.TInteger; }>; }>; /** Standard structured error shape used in response frames and connect failures. */ declare const ErrorShapeSchema: Type.TObject<{ code: Type.TString; message: Type.TString; details: Type.TOptional; retryable: Type.TOptional; retryAfterMs: Type.TOptional; }>; /** Client request frame envelope; `method` selects the payload validator. */ declare const RequestFrameSchema: Type.TObject<{ type: Type.TLiteral<"req">; id: Type.TString; method: Type.TString; params: Type.TOptional; }>; /** Server response frame envelope paired with a prior request id. */ declare const ResponseFrameSchema: Type.TObject<{ type: Type.TLiteral<"res">; id: Type.TString; ok: Type.TBoolean; payload: Type.TOptional; error: Type.TOptional; retryable: Type.TOptional; retryAfterMs: Type.TOptional; }>>; }>; /** Server event frame envelope; `event` selects the payload validator. */ declare const EventFrameSchema: Type.TObject<{ type: Type.TLiteral<"event">; event: Type.TString; payload: Type.TOptional; seq: Type.TOptional; stateVersion: Type.TOptional>; }>; declare const GatewayFrameSchema: Type.TUnion<[Type.TObject<{ type: Type.TLiteral<"req">; id: Type.TString; method: Type.TString; params: Type.TOptional; }>, Type.TObject<{ type: Type.TLiteral<"res">; id: Type.TString; ok: Type.TBoolean; payload: Type.TOptional; error: Type.TOptional; retryable: Type.TOptional; retryAfterMs: Type.TOptional; }>>; }>, Type.TObject<{ type: Type.TLiteral<"event">; event: Type.TString; payload: Type.TOptional; seq: Type.TOptional; stateVersion: Type.TOptional>; }>]>; //#endregion //#region packages/gateway-protocol/src/schema/logs-chat.d.ts /** Cursor-based request for the gateway log tail endpoint. */ declare const LogsTailParamsSchema: Type.TObject<{ cursor: Type.TOptional; limit: Type.TOptional; maxBytes: Type.TOptional; }>; /** Gateway log tail payload returned to dashboard clients. */ declare const LogsTailResultSchema: Type.TObject<{ file: Type.TString; cursor: Type.TInteger; size: Type.TInteger; lines: Type.TArray; truncated: Type.TOptional; reset: Type.TOptional; }>; /** Session-scoped history request used by WebChat and native WebSocket clients. */ declare const ChatHistoryParamsSchema: Type.TObject<{ sessionKey: Type.TString; agentId: Type.TOptional; limit: Type.TOptional; offset: Type.TOptional; maxChars: Type.TOptional; }>; /** Lightweight chat metadata request; optional agent scope keeps selector state explicit. */ declare const ChatMetadataParamsSchema: Type.TObject<{ agentId: Type.TOptional; }>; /** User-to-agent send request; idempotency key lets clients safely retry transport failures. */ declare const ChatSendParamsSchema: Type.TObject<{ sessionKey: Type.TString; agentId: Type.TOptional; sessionId: Type.TOptional; message: Type.TString; thinking: Type.TOptional; fastMode: Type.TOptional]>>; fastAutoOnSeconds: Type.TOptional; deliver: Type.TOptional; originatingChannel: Type.TOptional; originatingTo: Type.TOptional; originatingAccountId: Type.TOptional; originatingThreadId: Type.TOptional; attachments: Type.TOptional>; timeoutMs: Type.TOptional; systemInputProvenance: Type.TOptional; sourceSessionKey: Type.TOptional; sourceChannel: Type.TOptional; sourceTool: Type.TOptional; }>>; systemProvenanceReceipt: Type.TOptional; suppressCommandInterpretation: Type.TOptional; expectedSessionRoutingContract: Type.TOptional; idempotencyKey: Type.TString; }>; /** Inserts an operator-visible synthetic message into an existing chat transcript. */ declare const ChatInjectParamsSchema: Type.TObject<{ sessionKey: Type.TString; agentId: Type.TOptional; message: Type.TString; label: Type.TOptional; }>; /** Public chat stream event union consumed by gateway protocol validators. */ declare const ChatEventSchema: Type.TUnion<[Type.TObject<{ state: Type.TLiteral<"delta">; message: Type.TOptional; deltaText: Type.TString; replace: Type.TOptional; usage: Type.TOptional; runId: Type.TString; sessionKey: Type.TString; agentId: Type.TOptional; spawnedBy: Type.TOptional; seq: Type.TInteger; }>, Type.TObject<{ state: Type.TLiteral<"final">; message: Type.TOptional; usage: Type.TOptional; stopReason: Type.TOptional; runId: Type.TString; sessionKey: Type.TString; agentId: Type.TOptional; spawnedBy: Type.TOptional; seq: Type.TInteger; }>, Type.TObject<{ state: Type.TLiteral<"aborted">; message: Type.TOptional; errorMessage: Type.TOptional; stopReason: Type.TOptional; runId: Type.TString; sessionKey: Type.TString; agentId: Type.TOptional; spawnedBy: Type.TOptional; seq: Type.TInteger; }>, Type.TObject<{ state: Type.TLiteral<"error">; message: Type.TOptional; errorMessage: Type.TOptional; errorKind: Type.TOptional, Type.TLiteral<"timeout">, Type.TLiteral<"rate_limit">, Type.TLiteral<"context_length">, Type.TLiteral<"unknown">]>>; usage: Type.TOptional; stopReason: Type.TOptional; runId: Type.TString; sessionKey: Type.TString; agentId: Type.TOptional; spawnedBy: Type.TOptional; seq: Type.TInteger; }>]>; //#endregion //#region packages/gateway-protocol/src/schema/nodes.d.ts /** Reasons a node can report itself alive without implying an operator action. */ declare const NodePresenceAliveReasonSchema: Type.TString; /** Presence heartbeat payload sent by remote nodes to refresh gateway state. */ declare const NodePresenceAlivePayloadSchema: Type.TObject<{ trigger: Type.TString; sentAtMs: Type.TOptional; displayName: Type.TOptional; version: Type.TOptional; platform: Type.TOptional; deviceFamily: Type.TOptional; modelIdentifier: Type.TOptional; pushTransport: Type.TOptional; }>; /** Normalized result for node-originated events after gateway dispatch. */ declare const NodeEventResultSchema: Type.TObject<{ ok: Type.TBoolean; event: Type.TString; handled: Type.TBoolean; reason: Type.TOptional; }>; /** Pairing request metadata advertised by a node before trust is granted. */ declare const NodePairRequestParamsSchema: Type.TObject<{ nodeId: Type.TString; displayName: Type.TOptional; platform: Type.TOptional; version: Type.TOptional; coreVersion: Type.TOptional; uiVersion: Type.TOptional; deviceFamily: Type.TOptional; modelIdentifier: Type.TOptional; caps: Type.TOptional>; commands: Type.TOptional>; permissions: Type.TOptional>; remoteIp: Type.TOptional; silent: Type.TOptional; }>; /** Lists pending node-pairing requests. */ declare const NodePairListParamsSchema: Type.TObject<{}>; /** Approves a pending node-pairing request by request id. */ declare const NodePairApproveParamsSchema: Type.TObject<{ requestId: Type.TString; }>; /** Rejects a pending node-pairing request by request id. */ declare const NodePairRejectParamsSchema: Type.TObject<{ requestId: Type.TString; }>; /** Removes an already paired node from the gateway trust set. */ declare const NodePairRemoveParamsSchema: Type.TObject<{ nodeId: Type.TString; }>; /** Verifies node ownership with a short-lived pairing token. */ declare const NodePairVerifyParamsSchema: Type.TObject<{ nodeId: Type.TString; token: Type.TString; }>; /** Lists paired nodes known to the gateway. */ declare const NodeListParamsSchema: Type.TObject<{}>; /** Acknowledges queued node work that the node has consumed. */ declare const NodePendingAckParamsSchema: Type.TObject<{ ids: Type.TArray; }>; /** Invokes a command on a paired node; idempotency allows safe retries. */ declare const NodeInvokeParamsSchema: Type.TObject<{ nodeId: Type.TString; command: Type.TString; params: Type.TOptional; timeoutMs: Type.TOptional; idempotencyKey: Type.TString; }>; /** Request for a bounded batch of queued work assigned to the calling node. */ declare const NodePendingDrainParamsSchema: Type.TObject<{ maxItems: Type.TOptional; }>; /** Drain response with a revision marker for node queue state. */ declare const NodePendingDrainResultSchema: Type.TObject<{ nodeId: Type.TString; revision: Type.TInteger; items: Type.TArray>; payload: Type.TOptional>; }>>; hasMore: Type.TBoolean; }>; /** Enqueues gateway-initiated work for a paired node. */ declare const NodePendingEnqueueParamsSchema: Type.TObject<{ nodeId: Type.TString; type: Type.TString; priority: Type.TOptional; expiresInMs: Type.TOptional; wake: Type.TOptional; }>; /** Enqueue result echoes queue revision and whether wake delivery was attempted. */ declare const NodePendingEnqueueResultSchema: Type.TObject<{ nodeId: Type.TString; revision: Type.TInteger; queued: Type.TObject<{ id: Type.TString; type: Type.TString; priority: Type.TString; createdAtMs: Type.TInteger; expiresAtMs: Type.TOptional>; payload: Type.TOptional>; }>; wakeTriggered: Type.TBoolean; }>; //#endregion //#region packages/gateway-protocol/src/schema/push.d.ts /** Request payload for sending a test APNS notification to one node. */ declare const PushTestParamsSchema: Type.TObject<{ nodeId: Type.TString; title: Type.TOptional; body: Type.TOptional; environment: Type.TOptional; }>; /** Result payload from an APNS push test, including provider status and transport. */ declare const PushTestResultSchema: Type.TObject<{ ok: Type.TBoolean; status: Type.TInteger; apnsId: Type.TOptional; reason: Type.TOptional; tokenSuffix: Type.TString; topic: Type.TString; environment: Type.TString; transport: Type.TString; }>; /** Empty request payload for fetching the Web Push VAPID public key. */ declare const WebPushVapidPublicKeyParamsSchema: Type.TObject<{}>; /** Browser Web Push subscription payload registered with the gateway. */ declare const WebPushSubscribeParamsSchema: Type.TObject<{ endpoint: Type.TString; keys: Type.TObject<{ p256dh: Type.TString; auth: Type.TString; }>; }>; /** Browser Web Push endpoint removal payload. */ declare const WebPushUnsubscribeParamsSchema: Type.TObject<{ endpoint: Type.TString; }>; /** Request payload for sending a test Web Push notification to current subscriptions. */ declare const WebPushTestParamsSchema: Type.TObject<{ title: Type.TOptional; body: Type.TOptional; }>; /** Empty request type for fetching the Web Push VAPID public key. */ type WebPushVapidPublicKeyParams = Record; /** Browser PushSubscription subset persisted by the gateway. */ type WebPushSubscribeParams = { endpoint: string; keys: { p256dh: string; auth: string; }; }; /** Browser PushSubscription endpoint removal request. */ type WebPushUnsubscribeParams = { endpoint: string; }; /** Optional title/body overrides for a Web Push test notification. */ type WebPushTestParams = { title?: string; body?: string; }; //#endregion //#region packages/gateway-protocol/src/schema/sessions.d.ts /** Session file grouping used by the Control UI session workspace rail. */ declare const SessionFileKindSchema: Type.TUnion<[Type.TLiteral<"modified">, Type.TLiteral<"read">]>; /** Session relevance marker for browser entries. */ declare const SessionFileRelevanceSchema: Type.TUnion<[Type.TLiteral<"modified">, Type.TLiteral<"read">, Type.TLiteral<"mixed">]>; /** One file path referenced by a session transcript. */ declare const SessionFileEntrySchema: Type.TObject<{ path: Type.TString; workspacePath: Type.TOptional; name: Type.TString; kind: Type.TUnion<[Type.TLiteral<"modified">, Type.TLiteral<"read">]>; missing: Type.TBoolean; size: Type.TOptional; updatedAtMs: Type.TOptional; content: Type.TOptional; }>; /** One file or folder in the session-rooted browser. */ declare const SessionFileBrowserEntrySchema: Type.TObject<{ path: Type.TString; name: Type.TString; kind: Type.TUnion<[Type.TLiteral<"file">, Type.TLiteral<"directory">]>; sessionKind: Type.TOptional, Type.TLiteral<"read">, Type.TLiteral<"mixed">]>>; size: Type.TOptional; updatedAtMs: Type.TOptional; }>; /** Folder listing or search result rooted at the session workspace. */ declare const SessionFileBrowserResultSchema: Type.TObject<{ path: Type.TString; parentPath: Type.TOptional; search: Type.TOptional; entries: Type.TArray, Type.TLiteral<"directory">]>; sessionKind: Type.TOptional, Type.TLiteral<"read">, Type.TLiteral<"mixed">]>>; size: Type.TOptional; updatedAtMs: Type.TOptional; }>>; truncated: Type.TOptional; }>; /** Lists files touched by a session transcript. */ declare const SessionsFilesListParamsSchema: Type.TObject<{ sessionKey: Type.TString; agentId: Type.TOptional; path: Type.TOptional; search: Type.TOptional; }>; /** File references visible in one session workspace. */ declare const SessionsFilesListResultSchema: Type.TObject<{ sessionKey: Type.TString; root: Type.TOptional; files: Type.TArray; name: Type.TString; kind: Type.TUnion<[Type.TLiteral<"modified">, Type.TLiteral<"read">]>; missing: Type.TBoolean; size: Type.TOptional; updatedAtMs: Type.TOptional; content: Type.TOptional; }>>; browser: Type.TOptional; search: Type.TOptional; entries: Type.TArray, Type.TLiteral<"directory">]>; sessionKind: Type.TOptional, Type.TLiteral<"read">, Type.TLiteral<"mixed">]>>; size: Type.TOptional; updatedAtMs: Type.TOptional; }>>; truncated: Type.TOptional; }>>; }>; /** Reads one session-referenced file by path. */ declare const SessionsFilesGetParamsSchema: Type.TObject<{ sessionKey: Type.TString; path: Type.TString; agentId: Type.TOptional; }>; /** Result for reading one session-referenced file. */ declare const SessionsFilesGetResultSchema: Type.TObject<{ sessionKey: Type.TString; root: Type.TOptional; file: Type.TObject<{ path: Type.TString; workspacePath: Type.TOptional; name: Type.TString; kind: Type.TUnion<[Type.TLiteral<"modified">, Type.TLiteral<"read">]>; missing: Type.TBoolean; size: Type.TOptional; updatedAtMs: Type.TOptional; content: Type.TOptional; }>; }>; /** Lists sessions with optional scope, activity, label, and preview filters. */ declare const SessionsListParamsSchema: Type.TObject<{ /** * Maximum rows to return. Omitted Gateway RPC calls use a bounded default * to keep large session stores from monopolizing the event loop. */ limit: Type.TOptional; offset: Type.TOptional; activeMinutes: Type.TOptional; includeGlobal: Type.TOptional; includeUnknown: Type.TOptional; /** * Limit returned agent-scoped rows to agents currently present in config. * Broad disk discovery remains the default for recovery/ACP consumers. */ configuredAgentsOnly: Type.TOptional; /** * Read first 8KB of each session transcript to derive title from first user message. * Performs a file read per session - use `limit` to bound result set on large stores. */ includeDerivedTitles: Type.TOptional; /** * Read last 16KB of each session transcript to extract most recent message preview. * Performs a file read per session - use `limit` to bound result set on large stores. */ includeLastMessage: Type.TOptional; label: Type.TOptional; spawnedBy: Type.TOptional; agentId: Type.TOptional; search: Type.TOptional; /** True lists archived sessions; false or omitted lists active sessions. */ archived: Type.TOptional; }>; /** Repairs or removes invalid session records from the selected agent scope. */ declare const SessionsCleanupParamsSchema: Type.TObject<{ agent: Type.TOptional; allAgents: Type.TOptional; enforce: Type.TOptional; activeKey: Type.TOptional; fixMissing: Type.TOptional; fixDmScope: Type.TOptional; }>; /** Reads short previews for selected session keys. */ declare const SessionsPreviewParamsSchema: Type.TObject<{ keys: Type.TArray; limit: Type.TOptional; maxChars: Type.TOptional; }>; /** Describes one session and optional derived title/last-message previews. */ declare const SessionsDescribeParamsSchema: Type.TObject<{ key: Type.TString; includeDerivedTitles: Type.TOptional; includeLastMessage: Type.TOptional; }>; /** Resolves a session by key, raw session id, label, or parent/agent scope. */ declare const SessionsResolveParamsSchema: Type.TObject<{ key: Type.TOptional; sessionId: Type.TOptional; label: Type.TOptional; agentId: Type.TOptional; spawnedBy: Type.TOptional; includeGlobal: Type.TOptional; includeUnknown: Type.TOptional; /** Return a successful `{ ok: false }` response when the selector does not match a session. */ allowMissing: Type.TOptional; }>; /** Creates or adopts a session with optional model, label, and parent linkage. */ declare const SessionsCreateParamsSchema: Type.TObject<{ key: Type.TOptional; agentId: Type.TOptional; label: Type.TOptional; model: Type.TOptional; parentSessionKey: Type.TOptional; fork: Type.TOptional; emitCommandHooks: Type.TOptional; task: Type.TOptional; message: Type.TOptional; worktree: Type.TOptional; }>; declare const SessionWorktreeInfoSchema: Type.TObject<{ id: Type.TString; path: Type.TString; branch: Type.TString; }>; /** Result returned after creating or adopting a session. */ declare const SessionsCreateResultSchema: Type.TObject<{ ok: Type.TLiteral; key: Type.TString; sessionId: Type.TOptional; entry: Type.TOptional>; runStarted: Type.TOptional; worktree: Type.TOptional>; }>; /** Sends one message into an existing session. */ declare const SessionsSendParamsSchema: Type.TObject<{ key: Type.TString; agentId: Type.TOptional; message: Type.TString; thinking: Type.TOptional; attachments: Type.TOptional>; timeoutMs: Type.TOptional; idempotencyKey: Type.TOptional; }>; /** Aborts the active or named run for a session. */ declare const SessionsAbortParamsSchema: Type.TObject<{ key: Type.TOptional; runId: Type.TOptional; agentId: Type.TOptional; }>; /** Mutable per-session preferences and routing metadata. */ declare const SessionsPatchParamsSchema: Type.TObject<{ key: Type.TString; agentId: Type.TOptional; label: Type.TOptional>; /** User-defined organization bucket ("category", not chat-group); null clears it. */ category: Type.TOptional>; archived: Type.TOptional; pinned: Type.TOptional; unread: Type.TOptional; thinkingLevel: Type.TOptional>; fastMode: Type.TOptional, Type.TNull]>>; verboseLevel: Type.TOptional>; traceLevel: Type.TOptional>; reasoningLevel: Type.TOptional>; responseUsage: Type.TOptional, Type.TLiteral<"tokens">, Type.TLiteral<"full">, Type.TLiteral<"on">, Type.TNull]>>; elevatedLevel: Type.TOptional>; execHost: Type.TOptional>; execSecurity: Type.TOptional>; execAsk: Type.TOptional>; execNode: Type.TOptional>; model: Type.TOptional>; spawnedBy: Type.TOptional>; spawnedWorkspaceDir: Type.TOptional>; spawnedCwd: Type.TOptional>; spawnDepth: Type.TOptional>; subagentRole: Type.TOptional, Type.TLiteral<"leaf">, Type.TNull]>>; subagentControlScope: Type.TOptional, Type.TLiteral<"none">, Type.TNull]>>; inheritedToolAllow: Type.TOptional, Type.TNull]>>; inheritedToolDeny: Type.TOptional, Type.TNull]>>; sendPolicy: Type.TOptional, Type.TLiteral<"deny">, Type.TNull]>>; groupActivation: Type.TOptional, Type.TLiteral<"always">, Type.TNull]>>; }>; /** Updates or clears one plugin namespace value on a session record. */ declare const SessionsPluginPatchParamsSchema: Type.TObject<{ key: Type.TString; pluginId: Type.TString; namespace: Type.TString; value: Type.TOptional; unset: Type.TOptional; }>; /** Resets a session to a new or reset transcript state. */ declare const SessionsResetParamsSchema: Type.TObject<{ key: Type.TString; agentId: Type.TOptional; reason: Type.TOptional, Type.TLiteral<"reset">]>>; }>; /** Deletes a session record and optionally its transcript. */ declare const SessionsDeleteParamsSchema: Type.TObject<{ key: Type.TString; agentId: Type.TOptional; deleteTranscript: Type.TOptional; expectedSessionId: Type.TOptional; expectedLifecycleRevision: Type.TOptional; expectedSessionUpdatedAt: Type.TOptional; emitLifecycleHooks: Type.TOptional; /** * Restricts the delete to already-archived sessions (archive-then-delete). * operator.write callers must set this; deletes without it require * operator.admin. */ archivedOnly: Type.TOptional; }>; /** Requests manual compaction for a session transcript. */ declare const SessionsCompactParamsSchema: Type.TObject<{ key: Type.TString; agentId: Type.TOptional; maxLines: Type.TOptional; }>; /** Lists compaction checkpoints for one session. */ declare const SessionsCompactionListParamsSchema: Type.TObject<{ key: Type.TString; agentId: Type.TOptional; }>; /** Reads one compaction checkpoint by id. */ declare const SessionsCompactionGetParamsSchema: Type.TObject<{ key: Type.TString; agentId: Type.TOptional; checkpointId: Type.TString; }>; /** Creates a new branch from a compaction checkpoint. */ declare const SessionsCompactionBranchParamsSchema: Type.TObject<{ key: Type.TString; agentId: Type.TOptional; checkpointId: Type.TString; }>; /** Restores an existing session to a compaction checkpoint. */ declare const SessionsCompactionRestoreParamsSchema: Type.TObject<{ key: Type.TString; agentId: Type.TOptional; checkpointId: Type.TString; }>; /** Usage report query across one session, one agent, or all agent sessions. */ declare const SessionsUsageParamsSchema: Type.TObject<{ /** Specific session key to analyze; if omitted returns sessions for the effective agent. */key: Type.TOptional; /** Agent scope for list-style usage queries. */ agentId: Type.TOptional; /** Explicit all-agent scope for list-style usage queries. */ agentScope: Type.TOptional>; /** Start date for range filter (YYYY-MM-DD). */ startDate: Type.TOptional; /** End date for range filter (YYYY-MM-DD). */ endDate: Type.TOptional; /** How start/end dates should be interpreted. Defaults to UTC when omitted. */ mode: Type.TOptional, Type.TLiteral<"gateway">, Type.TLiteral<"specific">]>>; /** Preset range for usage queries when explicit start/end dates are omitted. */ range: Type.TOptional, Type.TLiteral<"30d">, Type.TLiteral<"90d">, Type.TLiteral<"1y">, Type.TLiteral<"all">]>>; /** Usage row grouping. `family` rolls up known rotated session ids for a logical key. */ groupBy: Type.TOptional, Type.TLiteral<"family">]>>; /** Backward-compatible alias for requesting family grouping. */ includeHistorical: Type.TOptional; /** UTC offset to use when mode is `specific` (for example, UTC-4 or UTC+5:30). */ utcOffset: Type.TOptional; /** Maximum sessions to return (default 50). */ limit: Type.TOptional; /** Include context weight breakdown (systemPromptReport). */ includeContextWeight: Type.TOptional; }>; //#endregion //#region packages/gateway-protocol/src/schema/snapshot.d.ts /** * Gateway state snapshot schemas. * * Snapshots are sent during hello and later event streams; they summarize node * presence, health, session defaults, and version counters for clients. */ /** One gateway-visible presence record for a node/client/runtime. */ declare const PresenceEntrySchema: Type.TObject<{ host: Type.TOptional; ip: Type.TOptional; version: Type.TOptional; platform: Type.TOptional; deviceFamily: Type.TOptional; modelIdentifier: Type.TOptional; mode: Type.TOptional; lastInputSeconds: Type.TOptional; reason: Type.TOptional; tags: Type.TOptional>; text: Type.TOptional; ts: Type.TInteger; deviceId: Type.TOptional; roles: Type.TOptional>; scopes: Type.TOptional>; instanceId: Type.TOptional; }>; /** Monotonic version counters for snapshot subtrees. */ declare const StateVersionSchema: Type.TObject<{ presence: Type.TInteger; health: Type.TInteger; }>; /** Initial and incremental gateway state snapshot payload. */ declare const SnapshotSchema: Type.TObject<{ presence: Type.TArray; ip: Type.TOptional; version: Type.TOptional; platform: Type.TOptional; deviceFamily: Type.TOptional; modelIdentifier: Type.TOptional; mode: Type.TOptional; lastInputSeconds: Type.TOptional; reason: Type.TOptional; tags: Type.TOptional>; text: Type.TOptional; ts: Type.TInteger; deviceId: Type.TOptional; roles: Type.TOptional>; scopes: Type.TOptional>; instanceId: Type.TOptional; }>>; health: Type.TAny; stateVersion: Type.TObject<{ presence: Type.TInteger; health: Type.TInteger; }>; uptimeMs: Type.TInteger; configPath: Type.TOptional; stateDir: Type.TOptional; sessionDefaults: Type.TOptional; }>>; authMode: Type.TOptional, Type.TLiteral<"token">, Type.TLiteral<"password">, Type.TLiteral<"trusted-proxy">]>>; updateAvailable: Type.TOptional>; }>; //#endregion //#region packages/gateway-protocol/src/schema/system-info.d.ts /** Empty request payload for Gateway host system information. */ declare const SystemInfoParamsSchema: Type.TObject<{}>; /** Gateway host identity and resource snapshot. */ declare const SystemInfoResultSchema: Type.TObject<{ machineName: Type.TString; hostname: Type.TString; platform: Type.TString; release: Type.TString; arch: Type.TString; osLabel: Type.TString; lanAddress: Type.TOptional; port: Type.TOptional; nodeVersion: Type.TString; pid: Type.TInteger; uptimeMs: Type.TInteger; cpuCount: Type.TInteger; cpuModel: Type.TOptional; loadAverage: Type.TOptional>; memoryTotalBytes: Type.TInteger; memoryFreeBytes: Type.TInteger; diskTotalBytes: Type.TOptional; diskAvailableBytes: Type.TOptional; diskPath: Type.TOptional; }>; //#endregion //#region packages/gateway-protocol/src/schema/tasks.d.ts /** Public task summary returned by task list/get/cancel responses. */ declare const TaskSummarySchema: Type.TObject<{ id: Type.TString; kind: Type.TOptional; runtime: Type.TOptional; status: Type.TUnion<[Type.TLiteral<"queued">, Type.TLiteral<"running">, Type.TLiteral<"completed">, Type.TLiteral<"failed">, Type.TLiteral<"cancelled">, Type.TLiteral<"timed_out">]>; title: Type.TOptional; agentId: Type.TOptional; sessionKey: Type.TOptional; childSessionKey: Type.TOptional; ownerKey: Type.TOptional; runId: Type.TOptional; taskId: Type.TOptional; flowId: Type.TOptional; parentTaskId: Type.TOptional; sourceId: Type.TOptional; createdAt: Type.TOptional>; updatedAt: Type.TOptional>; startedAt: Type.TOptional>; endedAt: Type.TOptional>; progressSummary: Type.TOptional; terminalSummary: Type.TOptional; error: Type.TOptional; }>; /** Task list filters with bounded pagination. */ declare const TasksListParamsSchema: Type.TObject<{ status: Type.TOptional, Type.TLiteral<"running">, Type.TLiteral<"completed">, Type.TLiteral<"failed">, Type.TLiteral<"cancelled">, Type.TLiteral<"timed_out">]>, Type.TArray, Type.TLiteral<"running">, Type.TLiteral<"completed">, Type.TLiteral<"failed">, Type.TLiteral<"cancelled">, Type.TLiteral<"timed_out">]>>]>>; agentId: Type.TOptional; sessionKey: Type.TOptional; limit: Type.TOptional; cursor: Type.TOptional; }>; /** Task list page response. */ declare const TasksListResultSchema: Type.TObject<{ tasks: Type.TArray; runtime: Type.TOptional; status: Type.TUnion<[Type.TLiteral<"queued">, Type.TLiteral<"running">, Type.TLiteral<"completed">, Type.TLiteral<"failed">, Type.TLiteral<"cancelled">, Type.TLiteral<"timed_out">]>; title: Type.TOptional; agentId: Type.TOptional; sessionKey: Type.TOptional; childSessionKey: Type.TOptional; ownerKey: Type.TOptional; runId: Type.TOptional; taskId: Type.TOptional; flowId: Type.TOptional; parentTaskId: Type.TOptional; sourceId: Type.TOptional; createdAt: Type.TOptional>; updatedAt: Type.TOptional>; startedAt: Type.TOptional>; endedAt: Type.TOptional>; progressSummary: Type.TOptional; terminalSummary: Type.TOptional; error: Type.TOptional; }>>; nextCursor: Type.TOptional; }>; /** Lookup request for one task id. */ declare const TasksGetParamsSchema: Type.TObject<{ taskId: Type.TString; }>; /** Lookup result for one task summary. */ declare const TasksGetResultSchema: Type.TObject<{ task: Type.TObject<{ id: Type.TString; kind: Type.TOptional; runtime: Type.TOptional; status: Type.TUnion<[Type.TLiteral<"queued">, Type.TLiteral<"running">, Type.TLiteral<"completed">, Type.TLiteral<"failed">, Type.TLiteral<"cancelled">, Type.TLiteral<"timed_out">]>; title: Type.TOptional; agentId: Type.TOptional; sessionKey: Type.TOptional; childSessionKey: Type.TOptional; ownerKey: Type.TOptional; runId: Type.TOptional; taskId: Type.TOptional; flowId: Type.TOptional; parentTaskId: Type.TOptional; sourceId: Type.TOptional; createdAt: Type.TOptional>; updatedAt: Type.TOptional>; startedAt: Type.TOptional>; endedAt: Type.TOptional>; progressSummary: Type.TOptional; terminalSummary: Type.TOptional; error: Type.TOptional; }>; }>; /** Cancel request for one task id with optional operator reason. */ declare const TasksCancelParamsSchema: Type.TObject<{ taskId: Type.TString; reason: Type.TOptional; }>; /** Cancel result, including the task snapshot when it was found. */ declare const TasksCancelResultSchema: Type.TObject<{ found: Type.TBoolean; cancelled: Type.TBoolean; reason: Type.TOptional; task: Type.TOptional; runtime: Type.TOptional; status: Type.TUnion<[Type.TLiteral<"queued">, Type.TLiteral<"running">, Type.TLiteral<"completed">, Type.TLiteral<"failed">, Type.TLiteral<"cancelled">, Type.TLiteral<"timed_out">]>; title: Type.TOptional; agentId: Type.TOptional; sessionKey: Type.TOptional; childSessionKey: Type.TOptional; ownerKey: Type.TOptional; runId: Type.TOptional; taskId: Type.TOptional; flowId: Type.TOptional; parentTaskId: Type.TOptional; sourceId: Type.TOptional; createdAt: Type.TOptional>; updatedAt: Type.TOptional>; startedAt: Type.TOptional>; endedAt: Type.TOptional>; progressSummary: Type.TOptional; terminalSummary: Type.TOptional; error: Type.TOptional; }>>; }>; //#endregion //#region packages/gateway-protocol/src/schema/terminal.d.ts /** Opens a shell session; the server picks the shell, cwd, and confinement. */ declare const TerminalOpenParamsSchema: Type.TObject<{ agentId: Type.TOptional; cols: Type.TInteger; rows: Type.TInteger; }>; type TerminalOpenParams = Static; /** Result of a successful open; carries the facts the UI header renders. */ declare const TerminalOpenResultSchema: Type.TObject<{ sessionId: Type.TString; agentId: Type.TString; shell: Type.TString; cwd: Type.TString; confined: Type.TBoolean; }>; type TerminalOpenResult = Static; /** Writes client keystrokes to the session stdin. */ declare const TerminalInputParamsSchema: Type.TObject<{ sessionId: Type.TString; data: Type.TString; }>; type TerminalInputParams = Static; /** Resizes the PTY grid after the client viewport changes. */ declare const TerminalResizeParamsSchema: Type.TObject<{ sessionId: Type.TString; cols: Type.TInteger; rows: Type.TInteger; }>; type TerminalResizeParams = Static; /** Closes a session and kills its process tree. */ declare const TerminalCloseParamsSchema: Type.TObject<{ sessionId: Type.TString; }>; type TerminalCloseParams = Static; /** * Rebinds a live-or-detached session to the calling admin connection. * Attach is take-over (tmux-like): the previous owner, if still connected, * receives `terminal.exit` with reason "detached". */ declare const TerminalAttachParamsSchema: Type.TObject<{ sessionId: Type.TString; }>; type TerminalAttachParams = Static; /** Result of a successful attach; mirrors open plus the replay buffer. */ declare const TerminalAttachResultSchema: Type.TObject<{ sessionId: Type.TString; agentId: Type.TString; shell: Type.TString; cwd: Type.TString; confined: Type.TBoolean; buffer: Type.TString; }>; type TerminalAttachResult = Static; /** One attachable session, as reported by terminal.list. */ declare const TerminalSessionInfoSchema: Type.TObject<{ sessionId: Type.TString; agentId: Type.TString; shell: Type.TString; cwd: Type.TString; confined: Type.TBoolean; /** False while the session is detached (no connection owns its stream). */ attached: Type.TBoolean; createdAtMs: Type.TInteger; }>; type TerminalSessionInfo = Static; /** * Sessions a reconnecting admin client can attach. All admin connections see * the same list: the terminal surface is already operator.admin (full host * access), so cross-connection visibility adds no privilege. */ declare const TerminalListResultSchema: Type.TObject<{ sessions: Type.TArray>; }>; type TerminalListResult = Static; /** Reads the current output buffer as plain text without attaching. */ declare const TerminalTextParamsSchema: Type.TObject<{ sessionId: Type.TString; }>; type TerminalTextParams = Static; /** Plain-text buffer contents (ANSI stripped); an agent/LLM affordance. */ declare const TerminalTextResultSchema: Type.TObject<{ text: Type.TString; }>; type TerminalTextResult = Static; /** Shared ok/void result for input, resize, and close. */ declare const TerminalAckResultSchema: Type.TObject<{ ok: Type.TBoolean; }>; type TerminalAckResult = Static; /** Streamed output chunk; seq lets the client detect gaps and preserve order. */ declare const TerminalDataEventSchema: Type.TObject<{ sessionId: Type.TString; seq: Type.TInteger; data: Type.TString; }>; type TerminalDataEvent = Static; /** Terminal end-of-life notice; the session id is invalid after this event. */ declare const TerminalExitEventSchema: Type.TObject<{ sessionId: Type.TString; exitCode: Type.TOptional>; signal: Type.TOptional>; reason: Type.TOptional, Type.TLiteral<"closed">, Type.TLiteral<"disconnected">, Type.TLiteral<"detached">, Type.TLiteral<"error">]>>; error: Type.TOptional; }>; type TerminalExitEvent = Static; /** Union of every event a terminal session can emit. */ declare const TerminalEventSchema: Type.TUnion<[Type.TObject<{ sessionId: Type.TString; seq: Type.TInteger; data: Type.TString; }>, Type.TObject<{ sessionId: Type.TString; exitCode: Type.TOptional>; signal: Type.TOptional>; reason: Type.TOptional, Type.TLiteral<"closed">, Type.TLiteral<"disconnected">, Type.TLiteral<"detached">, Type.TLiteral<"error">]>>; error: Type.TOptional; }>]>; type TerminalEvent = Static; //#endregion //#region packages/gateway-protocol/src/schema/plugins.d.ts /** Empty request payload for listing plugin UI descriptors. */ declare const PluginsUiDescriptorsParamsSchema: Type.TObject<{}>; /** Response payload containing all plugin UI descriptors visible to the client. */ declare const PluginsUiDescriptorsResultSchema: Type.TObject<{ ok: Type.TLiteral; descriptors: Type.TArray; surface: Type.TUnion<[Type.TLiteral<"session">, Type.TLiteral<"tool">, Type.TLiteral<"run">, Type.TLiteral<"settings">]>; label: Type.TString; description: Type.TOptional; placement: Type.TOptional; schema: Type.TOptional; requiredScopes: Type.TOptional>; }>>; }>; /** Request payload for invoking one plugin-owned session action. */ declare const PluginsSessionActionParamsSchema: Type.TObject<{ pluginId: Type.TString; actionId: Type.TString; sessionKey: Type.TOptional; payload: Type.TOptional; }>; /** Discriminated plugin action result returned to gateway clients. */ declare const PluginsSessionActionResultSchema: Type.TUnion<[Type.TObject<{ ok: Type.TLiteral; result: Type.TOptional; continueAgent: Type.TOptional; reply: Type.TOptional; }>, Type.TObject<{ ok: Type.TLiteral; error: Type.TString; code: Type.TOptional; details: Type.TOptional; }>]>; //#endregion //#region packages/gateway-protocol/src/schema/wizard.d.ts /** Starts a setup wizard, optionally scoped to a local or remote workspace. */ declare const WizardStartParamsSchema: Type.TObject<{ mode: Type.TOptional, Type.TLiteral<"remote">]>>; workspace: Type.TOptional; }>; /** Advances a wizard session, with an answer when the previous step requested input. */ declare const WizardNextParamsSchema: Type.TObject<{ sessionId: Type.TString; answer: Type.TOptional; }>>; }>; /** Cancels an active wizard session. */ declare const WizardCancelParamsSchema: Type.TObject<{ sessionId: Type.TString; }>; /** Reads status for an active or recently completed wizard session. */ declare const WizardStatusParamsSchema: Type.TObject<{ sessionId: Type.TString; }>; /** UI contract for one wizard step rendered by gateway clients. */ declare const WizardStepSchema: Type.TObject<{ id: Type.TString; type: Type.TUnion<[Type.TLiteral<"note">, Type.TLiteral<"select">, Type.TLiteral<"text">, Type.TLiteral<"confirm">, Type.TLiteral<"multiselect">, Type.TLiteral<"progress">, Type.TLiteral<"action">]>; title: Type.TOptional; message: Type.TOptional; format: Type.TOptional]>>; options: Type.TOptional; }>>>; initialValue: Type.TOptional; placeholder: Type.TOptional; sensitive: Type.TOptional; executor: Type.TOptional, Type.TLiteral<"client">]>>; }>; /** Result after advancing a wizard session. */ declare const WizardNextResultSchema: Type.TObject<{ done: Type.TBoolean; step: Type.TOptional, Type.TLiteral<"select">, Type.TLiteral<"text">, Type.TLiteral<"confirm">, Type.TLiteral<"multiselect">, Type.TLiteral<"progress">, Type.TLiteral<"action">]>; title: Type.TOptional; message: Type.TOptional; format: Type.TOptional]>>; options: Type.TOptional; }>>>; initialValue: Type.TOptional; placeholder: Type.TOptional; sensitive: Type.TOptional; executor: Type.TOptional, Type.TLiteral<"client">]>>; }>>; status: Type.TOptional, Type.TLiteral<"done">, Type.TLiteral<"cancelled">, Type.TLiteral<"error">]>>; error: Type.TOptional; }>; /** Result returned when a wizard session is created. */ declare const WizardStartResultSchema: Type.TObject<{ done: Type.TBoolean; step: Type.TOptional, Type.TLiteral<"select">, Type.TLiteral<"text">, Type.TLiteral<"confirm">, Type.TLiteral<"multiselect">, Type.TLiteral<"progress">, Type.TLiteral<"action">]>; title: Type.TOptional; message: Type.TOptional; format: Type.TOptional]>>; options: Type.TOptional; }>>>; initialValue: Type.TOptional; placeholder: Type.TOptional; sensitive: Type.TOptional; executor: Type.TOptional, Type.TLiteral<"client">]>>; }>>; status: Type.TOptional, Type.TLiteral<"done">, Type.TLiteral<"cancelled">, Type.TLiteral<"error">]>>; error: Type.TOptional; sessionId: Type.TString; }>; /** Minimal status poll result used when the client does not need the next step. */ declare const WizardStatusResultSchema: Type.TObject<{ status: Type.TUnion<[Type.TLiteral<"running">, Type.TLiteral<"done">, Type.TLiteral<"cancelled">, Type.TLiteral<"error">]>; error: Type.TOptional; }>; //#endregion //#region packages/gateway-protocol/src/schema/worktrees.d.ts declare const WorktreeRecordSchema: Type.TObject<{ id: Type.TString; name: Type.TString; repoFingerprint: Type.TString; repoRoot: Type.TString; path: Type.TString; branch: Type.TString; baseRef: Type.TString; ownerKind: Type.TString; ownerId: Type.TOptional; snapshotRef: Type.TOptional; createdAt: Type.TInteger; lastActiveAt: Type.TInteger; removedAt: Type.TOptional; }>; declare const WorktreesListParamsSchema: Type.TObject<{}>; declare const WorktreesListResultSchema: Type.TObject<{ worktrees: Type.TArray; snapshotRef: Type.TOptional; createdAt: Type.TInteger; lastActiveAt: Type.TInteger; removedAt: Type.TOptional; }>>; }>; declare const WorktreesCreateParamsSchema: Type.TObject<{ repoRoot: Type.TString; name: Type.TOptional; baseRef: Type.TOptional; }>; declare const WorktreesRemoveParamsSchema: Type.TObject<{ id: Type.TString; force: Type.TOptional; }>; declare const WorktreesRemoveResultSchema: Type.TObject<{ removed: Type.TBoolean; snapshotRef: Type.TOptional; }>; declare const WorktreesRestoreParamsSchema: Type.TObject<{ id: Type.TString; }>; declare const WorktreesGcParamsSchema: Type.TObject<{}>; declare const WorktreesGcResultSchema: Type.TObject<{ removed: Type.TArray; orphansDeleted: Type.TInteger; snapshotsPruned: Type.TInteger; }>; //#endregion export { TasksCancelParamsSchema as $, Snapshot as $a, AgentsListParamsSchema as $c, SessionFileBrowserResult as $i, AgentsFilesListParams as $n, WizardStartParams as $o, CronRemoveParams as $r, TalkCatalogParamsSchema as $s, NodePairListParamsSchema as $t, TerminalDataEvent as A, SkillsProposalActionParams as Aa, AuditListResultSchema as Ac, NodeEventResult as Ai, SkillsUpdateParamsSchema as Al, ExecApprovalResolveParamsSchema as An, TasksCancelParams as Ao, ChatMetadataParams as Ar, CrestodianChatResultSchema as As, SessionsFilesListResultSchema as At, TerminalOpenParams as B, SkillsProposalsListParams as Ba, AgentsWorkspaceListResultSchema as Bc, NodePendingDrainParams as Bi, AgentParamsSchema as Bl, errorShape as Bn, ToolsEffectiveResult as Bo, ConnectParams as Br, ConfigSchemaParamsSchema as Bs, PushTestResultSchema as Bt, TerminalAckResultSchema as C, SkillsCuratorActionParams as Ca, TalkSpeakResultSchema as Cc, ExecApprovalsSetParams as Ci, SkillsSearchParamsSchema as Cl, HelloOkSchema as Cn, TalkSessionSteerParams as Co, ChannelsLogoutParams as Cr, CronListParamsSchema as Cs, SessionsCreateParamsSchema as Ct, TerminalAttachResultSchema as D, SkillsDetailParams as Da, WebLoginWaitParamsSchema as Dc, LogsTailParams as Di, SkillsSkillCardParamsSchema as Dl, TickEventSchema as Dn, TalkSpeakParams as Do, ChannelsStopParams as Dr, CronStatusParamsSchema as Ds, SessionsFilesGetParamsSchema as Dt, TerminalAttachResult as E, SkillsCuratorStatusResult as Ea, WebLoginStartParamsSchema as Ec, HelloOk as Ei, SkillsSecurityVerdictsResultSchema as El, ShutdownEventSchema as En, TalkSessionTurnResult as Eo, ChannelsStatusResult as Er, CronRunsParamsSchema as Es, SessionsDescribeParamsSchema as Et, TerminalExitEventSchema as F, SkillsProposalRecordResult as Fa, AgentsWorkspaceEntrySchema as Fc, NodePairListParams as Fi, ToolsEffectiveParamsSchema as Fl, EnvironmentsListParamsSchema as Fn, TasksListResult as Fo, ConfigGetParams as Fr, ConfigApplyParamsSchema as Fs, SessionsResetParamsSchema as Ft, TerminalResizeParamsSchema as G, SkillsSecurityVerdictsResult as Ga, AgentsDeleteResultSchema as Gc, NodePresenceAliveReason as Gi, AgentWaitParams as Gn, UpdateRunParams as Go, CrestodianSetupDetectParams as Gr, CommandsListParamsSchema as Gs, WebPushUnsubscribeParams as Gt, TerminalOpenResult as H, SkillsSearchParams as Ha, AgentsCreateParamsSchema as Hc, NodePendingEnqueueParams as Hi, PollParamsSchema as Hl, AgentIdentityParams as Hn, ToolsInvokeResult as Ho, CrestodianChatResult as Hr, ConfigSetParamsSchema as Hs, WebPushSubscribeParamsSchema as Ht, TerminalInputParams as I, SkillsProposalRequestRevisionParams as Ia, AgentsWorkspaceFileSchema as Ic, NodePairRejectParams as Ii, ToolsInvokeParamsSchema as Il, EnvironmentsListResultSchema as In, TickEvent as Io, ConfigPatchParams as Ir, ConfigGetParamsSchema as Is, SessionsResolveParamsSchema as It, TerminalTextParams as J, SkillsStatusParams as Ja, AgentsFilesGetResultSchema as Jc, PollParams as Ji, AgentsDeleteParams as Jn, WebLoginStartParams as Jo, CronAddResult as Jr, ChannelsStartParamsSchema as Js, WebPushVapidPublicKeyParamsSchema as Jt, TerminalSessionInfo as K, SkillsSkillCardParams as Ka, AgentsFileEntrySchema as Kc, PluginsSessionActionParams as Ki, AgentsCreateParams as Kn, UpdateStatusParams as Ko, CrestodianSetupDetectResult as Kr, CommandsListResultSchema as Ks, WebPushUnsubscribeParamsSchema as Kt, TerminalInputParamsSchema as L, SkillsProposalRequestRevisionResult as La, AgentsWorkspaceGetParamsSchema as Lc, NodePairRemoveParams as Li, AgentEventSchema as Ll, EnvironmentsStatusParamsSchema as Ln, ToolsCatalogParams as Lo, ConfigSchemaParams as Lr, ConfigPatchParamsSchema as Ls, SessionsSendParamsSchema as Lt, TerminalEvent as M, SkillsProposalCreateParams as Ma, ArtifactsDownloadParamsSchema as Mc, NodeInvokeResultParams as Mi, SkillsUploadChunkParamsSchema as Ml, ExecApprovalsSetParamsSchema as Mn, TasksGetParams as Mo, CommandsListParams as Mr, CrestodianSetupActivateResultSchema as Ms, SessionsPatchParamsSchema as Mt, TerminalEventSchema as N, SkillsProposalInspectParams as Na, ArtifactsGetParamsSchema as Nc, NodeListParams as Ni, SkillsUploadCommitParamsSchema as Nl, EnvironmentStatusSchema as Nn, TasksGetResult as No, CommandsListResult as Nr, CrestodianSetupDetectParamsSchema as Ns, SessionsPluginPatchParamsSchema as Nt, TerminalCloseParams as O, SkillsDetailResult as Oa, AuditEventSchema as Oc, LogsTailResult as Oi, SkillsSkillCardResultSchema as Ol, ExecApprovalGetParamsSchema as On, TalkSpeakResult as Oo, ChatEvent as Or, CronUpdateParamsSchema as Os, SessionsFilesGetResultSchema as Ot, TerminalExitEvent as P, SkillsProposalInspectResult as Pa, ArtifactsListParamsSchema as Pc, NodePairApproveParams as Pi, ToolsCatalogParamsSchema as Pl, EnvironmentSummarySchema as Pn, TasksListParams as Po, ConfigApplyParams as Pr, CrestodianSetupDetectResultSchema as Ps, SessionsPreviewParamsSchema as Pt, TaskSummarySchema as Q, SkillsUploadCommitParams as Qa, AgentsFilesSetResultSchema as Qc, SessionFileBrowserEntry as Qi, AgentsFilesGetResult as Qn, WizardNextResult as Qo, CronListParams as Qr, TalkAgentControlResultSchema as Qs, NodePairApproveParamsSchema as Qt, TerminalListResult as R, SkillsProposalReviseParams as Ra, AgentsWorkspaceGetResultSchema as Rc, NodePairRequestParams as Ri, AgentIdentityParamsSchema as Rl, EnvironmentsStatusResultSchema as Rn, ToolsCatalogResult as Ro, ConfigSchemaResponse as Rr, ConfigSchemaLookupParamsSchema as Rs, SessionsUsageParamsSchema as Rt, TerminalAckResult as S, SkillsBinsResult as Sa, TalkSpeakParamsSchema as Sc, ExecApprovalsNodeSnapshot as Si, SkillsProposalsListResultSchema as Sl, GatewayFrameSchema as Sn, TalkSessionOkResult as So, AuditListResult as Sr, CronJobSchema as Ss, SessionsCompactionRestoreParamsSchema as St, TerminalAttachParamsSchema as T, SkillsCuratorStatusParams as Ta, TtsSpeakResultSchema as Tc, GatewayFrame as Ti, SkillsSecurityVerdictsParamsSchema as Tl, ResponseFrameSchema as Tn, TalkSessionTurnParams as To, ChannelsStatusParams as Tr, CronRunParamsSchema as Ts, SessionsDeleteParamsSchema as Tt, TerminalOpenResultSchema as U, SkillsSearchResult as Ua, AgentsCreateResultSchema as Uc, NodePendingEnqueueResult as Ui, SendParamsSchema as Ul, AgentIdentityResult as Un, TtsSpeakParams as Uo, CrestodianSetupActivateParams as Ur, UpdateRunParamsSchema as Us, WebPushTestParams as Ut, TerminalOpenParamsSchema as V, SkillsProposalsListResult as Va, AgentSummarySchema as Vc, NodePendingDrainResult as Vi, MessageActionParamsSchema as Vl, AgentEvent as Vn, ToolsInvokeParams as Vo, CrestodianChatParams as Vr, ConfigSchemaResponseSchema as Vs, WebPushSubscribeParams as Vt, TerminalResizeParams as W, SkillsSecurityVerdictsParams as Wa, AgentsDeleteParamsSchema as Wc, NodePresenceAlivePayload as Wi, WakeParamsSchema as Wl, AgentSummary as Wn, TtsSpeakResult as Wo, CrestodianSetupActivateResult as Wr, UpdateStatusParamsSchema as Ws, WebPushTestParamsSchema as Wt, TerminalTextResult as X, SkillsUploadBeginParams as Xa, AgentsFilesListResultSchema as Xc, RequestFrame as Xi, AgentsFileEntry as Xn, WizardCancelParams as Xo, CronGetParams as Xr, ChannelsStatusResultSchema as Xs, NodeInvokeParamsSchema as Xt, TerminalTextParamsSchema as Y, SkillsUpdateParams as Ya, AgentsFilesListParamsSchema as Yc, PresenceEntry as Yi, AgentsDeleteResult as Yn, WebLoginWaitParams as Yo, CronDeclarativeAddResult as Yr, ChannelsStatusParamsSchema as Ys, NodeEventResultSchema as Yt, TerminalTextResultSchema as Z, SkillsUploadChunkParams as Za, AgentsFilesSetParamsSchema as Zc, ResponseFrame as Zi, AgentsFilesGetParams as Zn, WizardNextParams as Zo, CronJob as Zr, ChannelsStopParamsSchema as Zs, NodeListParamsSchema as Zt, WizardStepSchema as _, SessionsResetParams as _a, TalkSessionOkResultSchema as _c, EventFrame as _i, SkillsProposalRequestRevisionParamsSchema as _l, LogsTailResultSchema as _n, TalkSessionCloseParams as _o, ArtifactsGetResult as _r, PROTOCOL_VERSION as _s, SessionsCleanupParamsSchema as _t, WorktreesListParamsSchema as a, SessionsCleanupParams as aa, TalkClientToolCallResultSchema as ac, DevicePairApproveParams as ai, SkillsCuratorActionResultSchema as al, NodePendingDrainParamsSchema as an, TalkCatalogResult as ao, AgentsUpdateParams as ar, WorktreesCreateParams as as, SystemInfoParamsSchema as at, PluginsUiDescriptorsParamsSchema as b, ShutdownEvent as ba, TalkSessionTurnParamsSchema as bc, ExecApprovalResolveParams as bi, SkillsProposalUpdateParamsSchema as bl, EventFrameSchema as bn, TalkSessionJoinParams as bo, AuditEvent as br, CronDeclarativeAddResultSchema as bs, SessionsCompactionGetParamsSchema as bt, WorktreesRemoveResultSchema as c, SessionsDeleteParams as ca, TalkEventSchema as cc, DevicePairSetupCodeParams as ci, SkillsDetailParamsSchema as cl, NodePendingEnqueueResultSchema as cn, TalkClientSteerParams as co, AgentsWorkspaceFile as cr, WorktreesListParams as cs, SnapshotSchema as ct, WizardNextParamsSchema as d, SessionsFilesGetResult as da, TalkSessionCancelTurnParamsSchema as dc, EnvironmentSummary as di, SkillsProposalActionParamsSchema as dl, ChatEventSchema as dn, TalkConfigParams as do, AgentsWorkspaceListParams as dr, WorktreesRemoveResult as ds, SessionFileBrowserResultSchema as dt, SessionFileEntry as ea, TalkCatalogResultSchema as ec, CronRunLogEntry as ei, AgentsListResultSchema as el, NodePairRejectParamsSchema as en, StateVersion as eo, AgentsFilesListResult as er, WizardStartResult as es, TasksCancelResultSchema as et, WizardNextResultSchema as f, SessionsFilesListParams as fa, TalkSessionCloseParamsSchema as fc, EnvironmentsListParams as fi, SkillsProposalApplyResultSchema as fl, ChatHistoryParamsSchema as fn, TalkConfigResult as fo, AgentsWorkspaceListResult as fr, WorktreesRestoreParams as fs, SessionFileEntrySchema as ft, WizardStatusResultSchema as g, SessionsPreviewParams as ga, TalkSessionJoinResultSchema as gc, ErrorShape as gi, SkillsProposalRecordResultSchema as gl, LogsTailParamsSchema as gn, TalkSessionCancelTurnParams as go, ArtifactsGetParams as gr, MIN_PROBE_PROTOCOL_VERSION as gs, SessionsAbortParamsSchema as gt, WizardStatusParamsSchema as h, SessionsPatchParams as ha, TalkSessionJoinParamsSchema as hc, EnvironmentsStatusResult as hi, SkillsProposalInspectResultSchema as hl, ChatSendParamsSchema as hn, TalkSessionCancelOutputParams as ho, ArtifactsDownloadResult as hr, MIN_NODE_PROTOCOL_VERSION as hs, SessionWorktreeInfoSchema as ht, WorktreesGcResultSchema as i, SessionWorktreeInfo as ia, TalkClientToolCallParamsSchema as ic, CronUpdateParams as ii, SkillsCuratorActionParamsSchema as il, NodePendingAckParamsSchema as in, TalkCatalogParams as io, AgentsListResult as ir, WorktreeRecord as is, TasksListResultSchema as it, TerminalDataEventSchema as j, SkillsProposalApplyResult as ja, ArtifactSummarySchema as jc, NodeInvokeParams as ji, SkillsUploadBeginParamsSchema as jl, ExecApprovalsGetParamsSchema as jn, TasksCancelResult as jo, CommandEntry as jr, CrestodianSetupActivateParamsSchema as js, SessionsListParamsSchema as jt, TerminalCloseParamsSchema as k, SkillsInstallParams as ka, AuditListParamsSchema as kc, NodeEventParams as ki, SkillsStatusParamsSchema as kl, ExecApprovalRequestParamsSchema as kn, TaskSummary as ko, ChatInjectParams as kr, CrestodianChatParamsSchema as ks, SessionsFilesListParamsSchema as kt, WorktreesRestoreParamsSchema as l, SessionsDescribeParams as la, TalkSessionAppendAudioParamsSchema as lc, DevicePairSetupCodeResult as li, SkillsDetailResultSchema as ll, NodePresenceAlivePayloadSchema as ln, TalkClientToolCallParams as lo, AgentsWorkspaceGetParams as lr, WorktreesListResult as ls, StateVersionSchema as lt, WizardStartResultSchema as m, SessionsListParams as ma, TalkSessionCreateResultSchema as mc, EnvironmentsStatusParams as mi, SkillsProposalInspectParamsSchema as ml, ChatMetadataParamsSchema as mn, TalkSessionAppendAudioParams as mo, ArtifactsDownloadParams as mr, MIN_CLIENT_PROTOCOL_VERSION as ms, SessionFileRelevanceSchema as mt, WorktreesCreateParamsSchema as n, SessionFileRelevance as na, TalkClientCreateResultSchema as nc, CronRunsParams as ni, AgentsUpdateResultSchema as nl, NodePairRequestParamsSchema as nn, SystemInfoResult as no, AgentsFilesSetResult as nr, WizardStatusResult as ns, TasksGetResultSchema as nt, WorktreesListResultSchema as o, SessionsCompactParams as oa, TalkConfigParamsSchema as oc, DevicePairListParams as oi, SkillsCuratorStatusParamsSchema as ol, NodePendingDrainResultSchema as on, TalkClientCreateParams as oo, AgentsUpdateResult as or, WorktreesGcParams as os, SystemInfoResultSchema as ot, WizardStartParamsSchema as p, SessionsFilesListResult as pa, TalkSessionCreateParamsSchema as pc, EnvironmentsListResult as pi, SkillsProposalCreateParamsSchema as pl, ChatInjectParamsSchema as pn, TalkModeParams as po, ArtifactSummary as pr, ProtocolSchemas as ps, SessionFileKindSchema as pt, TerminalSessionInfoSchema as q, SkillsSkillCardResult as qa, AgentsFilesGetParamsSchema as qc, PluginsSessionActionResult as qi, AgentsCreateResult as qn, WakeParams as qo, CronAddParams as qr, ChannelsLogoutParamsSchema as qs, WebPushVapidPublicKeyParams as qt, WorktreesGcParamsSchema as r, SessionOperationEvent as ra, TalkClientSteerParamsSchema as rc, CronStatusParams as ri, ModelsListParamsSchema as rl, NodePairVerifyParamsSchema as rn, TalkAgentControlResult as ro, AgentsListParams as rr, WizardStep as rs, TasksListParamsSchema as rt, WorktreesRemoveParamsSchema as s, SessionsCreateResult as sa, TalkConfigResultSchema as sc, DevicePairRejectParams as si, SkillsCuratorStatusResultSchema as sl, NodePendingEnqueueParamsSchema as sn, TalkClientCreateResult as so, AgentsWorkspaceEntry as sr, WorktreesGcResult as ss, PresenceEntrySchema as st, WorktreeRecordSchema as t, SessionFileKind as ta, TalkClientCreateParamsSchema as tc, CronRunParams as ti, AgentsUpdateParamsSchema as tl, NodePairRemoveParamsSchema as tn, SystemInfoParams as to, AgentsFilesSetParams as tr, WizardStatusParams as ts, TasksGetParamsSchema as tt, WizardCancelParamsSchema as u, SessionsFilesGetParams as ua, TalkSessionCancelOutputParamsSchema as uc, EnvironmentStatus as ui, SkillsInstallParamsSchema as ul, NodePresenceAliveReasonSchema as un, TalkClientToolCallResult as uo, AgentsWorkspaceGetResult as ur, WorktreesRemoveParams as us, SessionFileBrowserEntrySchema as ut, PluginsSessionActionParamsSchema as v, SessionsResolveParams as va, TalkSessionSteerParamsSchema as vc, ExecApprovalGetParams as vi, SkillsProposalRequestRevisionResultSchema as vl, ConnectParamsSchema as vn, TalkSessionCreateParams as vo, ArtifactsListParams as vr, CronAddParamsSchema as vs, SessionsCompactParamsSchema as vt, TerminalAttachParams as w, SkillsCuratorActionResult as wa, TtsSpeakParamsSchema as wc, ExecApprovalsSnapshot as wi, SkillsSearchResultSchema as wl, RequestFrameSchema as wn, TalkSessionSubmitToolResultParams as wo, ChannelsStartParams as wr, CronRemoveParamsSchema as ws, SessionsCreateResultSchema as wt, PluginsUiDescriptorsResultSchema as x, SkillsBinsParams as xa, TalkSessionTurnResultSchema as xc, ExecApprovalsGetParams as xi, SkillsProposalsListParamsSchema as xl, GATEWAY_SERVER_CAPS as xn, TalkSessionJoinResult as xo, AuditListParams as xr, CronGetParamsSchema as xs, SessionsCompactionListParamsSchema as xt, PluginsSessionActionResultSchema as y, SessionsUsageParams as ya, TalkSessionSubmitToolResultParamsSchema as yc, ExecApprovalRequestParams as yi, SkillsProposalReviseParamsSchema as yl, ErrorShapeSchema as yn, TalkSessionCreateResult as yo, ArtifactsListResult as yr, CronAddResultSchema as ys, SessionsCompactionBranchParamsSchema as yt, TerminalListResultSchema as z, SkillsProposalUpdateParams as za, AgentsWorkspaceListParamsSchema as zc, NodePairVerifyParams as zi, AgentIdentityResultSchema as zl, ErrorCodes as zn, ToolsEffectiveParams as zo, ConfigSetParams as zr, ConfigSchemaLookupResultSchema as zs, PushTestParamsSchema as zt };