import { s as SessionEntry } from "./types-DQR5UfEP.js"; import { n as AgentEventPayload, r as AgentEventStream } from "./agent-events-DtKTaaH3.js"; import { M as PluginHookBeforeToolCallEvent, N as PluginHookBeforeToolCallResult, Rt as PluginJsonValue, _t as PluginHookToolContext } from "./hook-types-CYF0Ng_1.js"; import { ut as ErrorShape } from "./types-CeRL0Xpk.js"; import { Static, Type } from "typebox"; //#region src/gateway/operator-scopes.d.ts declare const ADMIN_SCOPE: "operator.admin"; declare const READ_SCOPE: "operator.read"; declare const WRITE_SCOPE: "operator.write"; declare const APPROVALS_SCOPE: "operator.approvals"; declare const PAIRING_SCOPE: "operator.pairing"; declare const TALK_SECRETS_SCOPE: "operator.talk.secrets"; type OperatorScope = typeof ADMIN_SCOPE | typeof READ_SCOPE | typeof WRITE_SCOPE | typeof APPROVALS_SCOPE | typeof PAIRING_SCOPE | typeof TALK_SECRETS_SCOPE; //#endregion //#region src/plugins/host-hooks.d.ts type PluginHostCleanupReason = "disable" | "reset" | "delete" | "restart"; type PluginSessionExtensionProjectionContext = { sessionKey: string; sessionId?: string; state: PluginJsonValue | undefined; }; type PluginSessionExtensionRegistration = { namespace: string; description: string; project?: (ctx: PluginSessionExtensionProjectionContext) => PluginJsonValue | undefined; cleanup?: (ctx: { reason: PluginHostCleanupReason; sessionKey?: string; }) => void | Promise; /** * When set, after every successful `patchSessionExtension` the projected * value is mirrored to `SessionEntry[]` so non-plugin readers * can consume the typed slot without reaching into * `pluginExtensions[pluginId][namespace]`. * * The slot is a read-only mirror: writes always go through * `patchSessionExtension`; the host overwrites the slot value on every * subsequent patch. */ sessionEntrySlotKey?: string; /** * Optional JSON-compatible schema describing the projected slot value. * Purely informational at this layer; clients may use it to validate the * mirrored slot against a contract. */ sessionEntrySlotSchema?: PluginJsonValue; }; type PluginSessionExtensionProjection = { pluginId: string; namespace: string; value: PluginJsonValue; }; type PluginToolPolicyDecision = PluginHookBeforeToolCallResult | { allow?: boolean; reason?: string; }; type PluginTrustedToolPolicyRegistration = { id: string; description: string; evaluate: (event: PluginHookBeforeToolCallEvent, ctx: PluginHookToolContext) => PluginToolPolicyDecision | void | Promise; }; type PluginToolMetadataRegistration = { toolName: string; displayName?: string; description?: string; risk?: "low" | "medium" | "high"; tags?: string[]; }; type PluginControlUiDescriptor = { id: string; surface: "session" | "tool" | "run" | "settings"; label: string; description?: string; placement?: string; schema?: PluginJsonValue; requiredScopes?: OperatorScope[]; }; type PluginSessionActionContext = { pluginId: string; actionId: string; sessionKey?: string; payload?: PluginJsonValue; client?: { connId?: string; scopes: string[]; }; }; type PluginSessionActionResult = { ok?: true; result?: PluginJsonValue; reply?: PluginJsonValue; continueAgent?: boolean; } | { ok: false; error: string; code?: string; details?: PluginJsonValue; }; type PluginSessionActionRegistration = { id: string; description?: string; schema?: PluginJsonValue; requiredScopes?: OperatorScope[]; handler: (ctx: PluginSessionActionContext) => PluginSessionActionResult | void | Promise; }; type PluginRuntimeLifecycleRegistration = { id: string; description?: string; cleanup?: (ctx: { reason: PluginHostCleanupReason; sessionKey?: string; runId?: string; }) => void | Promise; }; type PluginAgentEventSubscriptionRegistration = { id: string; description?: string; streams?: AgentEventStream[]; handle: (event: AgentEventPayload, ctx: { getRunContext: (namespace: string) => T | undefined; setRunContext: (namespace: string, value: PluginJsonValue) => void; clearRunContext: (namespace?: string) => void; }) => void | Promise; }; type PluginAgentEventEmitParams = { runId: string; stream: AgentEventStream; data: PluginJsonValue; sessionKey?: string; }; type PluginAgentEventEmitResult = { emitted: true; stream: AgentEventStream; } | { emitted: false; reason: string; }; type PluginRunContextPatch = { runId: string; namespace: string; value?: PluginJsonValue; unset?: boolean; }; type PluginRunContextGetParams = { runId: string; namespace: string; }; type PluginSessionSchedulerJobRegistration = { id: string; sessionKey: string; kind: string; description?: string; cleanup?: (ctx: { reason: PluginHostCleanupReason; sessionKey: string; jobId: string; }) => void | Promise; }; type PluginSessionSchedulerJobHandle = { id: string; pluginId: string; sessionKey: string; kind: string; }; type PluginSessionAttachmentFile = { path: string; }; type PluginAttachmentChannelHints = { telegram?: { parseMode?: "HTML"; disableNotification?: boolean; /** * Require host-side detection to match this MIME before forcing document delivery. * Mismatched files are rejected before the outbound adapter is called. */ forceDocumentMime?: string; }; slack?: { threadTs?: string; }; }; type PluginSessionAttachmentCaptionFormat = "plain" | "html" | "markdown"; type PluginSessionAttachmentParams = { sessionKey: string; files: PluginSessionAttachmentFile[]; text?: string; threadId?: string | number; forceDocument?: boolean; maxBytes?: number; captionFormat?: PluginSessionAttachmentCaptionFormat; channelHints?: PluginAttachmentChannelHints; }; type PluginSessionAttachmentResult = { ok: true; channel: string; deliveredTo: string; count: number; } | { ok: false; error: string; }; type PluginSessionTurnScheduleCommonParams = { sessionKey: string; message: string; agentId?: string; deliveryMode?: "none" | "announce"; name?: string; /** Optional cleanup tag. Reserved cron-name delimiters like `:` are rejected. */ tag?: string; }; type PluginSessionTurnScheduleParams = ({ at: string | number | Date; deleteAfterRun?: boolean; } & PluginSessionTurnScheduleCommonParams) | ({ delayMs: number; deleteAfterRun?: boolean; } & PluginSessionTurnScheduleCommonParams) | ({ cron: string; tz?: string; deleteAfterRun?: false; } & PluginSessionTurnScheduleCommonParams); type PluginSessionTurnUnscheduleByTagParams = { sessionKey: string; tag: string; }; type PluginSessionTurnUnscheduleByTagResult = { removed: number; failed: number; }; //#endregion //#region src/shared/session-types.d.ts type GatewayAgentRuntime = { id: string; fallback?: "pi" | "none"; source: "env" | "agent" | "defaults" | "model" | "provider" | "implicit" | "session-key"; }; type SessionsPatchResultBase = { ok: true; path: string; key: string; entry: TEntry; }; //#endregion //#region src/gateway/session-utils.types.d.ts type SessionsPatchResult = SessionsPatchResultBase & { entry: SessionEntry; resolved?: { modelProvider?: string; model?: string; agentRuntime?: GatewayAgentRuntime; }; }; //#endregion //#region src/gateway/protocol/schema/agent.d.ts 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>; }>; declare const MessageActionParamsSchema: Type.TObject<{ channel: Type.TString; action: Type.TString; params: Type.TRecord<"^.*$", Type.TUnknown>; accountId: Type.TOptional; requesterSenderId: Type.TOptional; senderIsOwner: Type.TOptional; sessionKey: Type.TOptional; sessionId: Type.TOptional; inboundTurnKind: Type.TOptional; agentId: Type.TOptional; toolContext: 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>; skipCrossContextDecoration: Type.TOptional; }>>; idempotencyKey: Type.TString; }>; declare const SendParamsSchema: Type.TObject<{ to: Type.TString; message: Type.TOptional; mediaUrl: Type.TOptional; mediaUrls: 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; }>; 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; }>; 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; 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; 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; }>; declare const AgentIdentityParamsSchema: Type.TObject<{ agentId: Type.TOptional; sessionKey: Type.TOptional; }>; 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; }>; declare const WakeParamsSchema: Type.TObject<{ mode: Type.TUnion<[Type.TLiteral<"now">, Type.TLiteral<"next-heartbeat">]>; text: Type.TString; sessionKey: Type.TOptional; }>; //#endregion //#region src/gateway/protocol/schema/agents-models-skills.d.ts 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; 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">]>; }>>; }>; declare const AgentsListParamsSchema: Type.TObject<{}>; 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; 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">]>; }>>; }>>; }>; declare const AgentsCreateParamsSchema: Type.TObject<{ name: Type.TString; workspace: Type.TString; model: Type.TOptional; emoji: Type.TOptional; avatar: Type.TOptional; }>; declare const AgentsCreateResultSchema: Type.TObject<{ ok: Type.TLiteral; agentId: Type.TString; name: Type.TString; workspace: Type.TString; model: Type.TOptional; }>; declare const AgentsUpdateParamsSchema: Type.TObject<{ agentId: Type.TString; name: Type.TOptional; workspace: Type.TOptional; model: Type.TOptional; emoji: Type.TOptional; avatar: Type.TOptional; }>; declare const AgentsUpdateResultSchema: Type.TObject<{ ok: Type.TLiteral; agentId: Type.TString; }>; declare const AgentsDeleteParamsSchema: Type.TObject<{ agentId: Type.TString; deleteFiles: Type.TOptional; }>; declare const AgentsDeleteResultSchema: Type.TObject<{ ok: Type.TLiteral; agentId: Type.TString; removedBindings: Type.TInteger; }>; declare const AgentsFileEntrySchema: Type.TObject<{ name: Type.TString; path: Type.TString; missing: Type.TBoolean; size: Type.TOptional; updatedAtMs: Type.TOptional; content: Type.TOptional; }>; declare const AgentsFilesListParamsSchema: Type.TObject<{ agentId: Type.TString; }>; declare const AgentsFilesListResultSchema: Type.TObject<{ agentId: Type.TString; workspace: Type.TString; files: Type.TArray; updatedAtMs: Type.TOptional; content: Type.TOptional; }>>; }>; declare const AgentsFilesGetParamsSchema: Type.TObject<{ agentId: Type.TString; name: Type.TString; }>; 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; }>; }>; declare const AgentsFilesSetParamsSchema: Type.TObject<{ agentId: Type.TString; name: Type.TString; content: Type.TString; }>; 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; }>; }>; declare const ModelsListParamsSchema: Type.TObject<{ view: Type.TOptional, Type.TLiteral<"configured">, Type.TLiteral<"all">]>>; }>; declare const SkillsStatusParamsSchema: Type.TObject<{ agentId: Type.TOptional; }>; 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; }>; declare const SkillsUploadChunkParamsSchema: Type.TObject<{ uploadId: Type.TString; offset: Type.TInteger; dataBase64: Type.TString; }>; declare const SkillsUploadCommitParamsSchema: Type.TObject<{ uploadId: Type.TString; sha256: Type.TOptional; }>; declare const SkillsInstallParamsSchema: Type.TUnion<[Type.TObject<{ name: Type.TString; installId: Type.TString; dangerouslyForceUnsafeInstall: Type.TOptional; timeoutMs: Type.TOptional; }>, Type.TObject<{ source: Type.TLiteral<"clawhub">; slug: Type.TString; version: Type.TOptional; force: Type.TOptional; timeoutMs: Type.TOptional; }>, Type.TObject<{ source: Type.TLiteral<"upload">; uploadId: Type.TString; slug: Type.TString; force: Type.TOptional; sha256: Type.TOptional; timeoutMs: Type.TOptional; }>]>; declare const SkillsUpdateParamsSchema: Type.TUnion<[Type.TObject<{ skillKey: Type.TString; enabled: Type.TOptional; apiKey: Type.TOptional; env: Type.TOptional>; }>, Type.TObject<{ source: Type.TLiteral<"clawhub">; slug: Type.TOptional; all: Type.TOptional; }>]>; declare const SkillsSearchParamsSchema: Type.TObject<{ query: Type.TOptional; limit: Type.TOptional; }>; declare const SkillsSearchResultSchema: Type.TObject<{ results: Type.TArray; version: Type.TOptional; updatedAt: Type.TOptional; }>>; }>; declare const SkillsDetailParamsSchema: Type.TObject<{ slug: Type.TString; }>; declare const SkillsDetailResultSchema: Type.TObject<{ skill: Type.TUnion<[Type.TObject<{ slug: Type.TString; displayName: Type.TString; summary: Type.TOptional; tags: 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>; }>, Type.TNull]>>; }>; declare const ToolsCatalogParamsSchema: Type.TObject<{ agentId: Type.TOptional; includePlugins: Type.TOptional; }>; declare const ToolsEffectiveParamsSchema: Type.TObject<{ agentId: Type.TOptional; sessionKey: Type.TString; }>; 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 src/gateway/protocol/schema/artifacts.d.ts 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">]>; }>; }>; declare const ArtifactsListParamsSchema: Type.TObject<{ sessionKey: Type.TOptional; runId: Type.TOptional; taskId: Type.TOptional; agentId: Type.TOptional; }>; declare const ArtifactsGetParamsSchema: Type.TObject<{ artifactId: Type.TString; sessionKey: Type.TOptional; runId: Type.TOptional; taskId: Type.TOptional; agentId: Type.TOptional; }>; declare const ArtifactsDownloadParamsSchema: Type.TObject<{ artifactId: Type.TString; sessionKey: Type.TOptional; runId: Type.TOptional; taskId: Type.TOptional; agentId: Type.TOptional; }>; //#endregion //#region src/gateway/protocol/schema/channels.d.ts declare const TalkConfigParamsSchema: Type.TObject<{ includeSecrets: Type.TOptional; }>; 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; }>; 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; }>; 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">]>>; }>; declare const TalkClientToolCallParamsSchema: Type.TObject<{ sessionKey: Type.TString; callId: Type.TString; name: Type.TString; args: Type.TOptional; relaySessionId: Type.TOptional; }>; declare const TalkClientToolCallResultSchema: Type.TObject<{ runId: Type.TString; idempotencyKey: Type.TString; }>; declare const TalkClientSteerParamsSchema: Type.TObject<{ sessionKey: Type.TString; text: Type.TString; mode: Type.TOptional, Type.TLiteral<"steer">, Type.TLiteral<"cancel">, Type.TLiteral<"followup">]>>; }>; 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; }>; declare const TalkSessionJoinParamsSchema: Type.TObject<{ sessionId: Type.TString; token: Type.TString; }>; 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; }>; declare const TalkSessionAppendAudioParamsSchema: Type.TObject<{ sessionId: Type.TString; audioBase64: Type.TString; timestamp: Type.TOptional; }>; declare const TalkSessionTurnParamsSchema: Type.TObject<{ sessionId: Type.TString; turnId: Type.TOptional; }>; declare const TalkSessionCancelTurnParamsSchema: Type.TObject<{ sessionId: Type.TString; turnId: Type.TOptional; reason: Type.TOptional; }>; declare const TalkSessionCancelOutputParamsSchema: Type.TObject<{ sessionId: Type.TString; turnId: Type.TOptional; reason: Type.TOptional; }>; declare const TalkSessionSubmitToolResultParamsSchema: Type.TObject<{ sessionId: Type.TString; callId: Type.TString; result: Type.TUnknown; options: Type.TOptional; willContinue: Type.TOptional; }>>; }>; 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">]>>; }>; declare const TalkSessionCloseParamsSchema: Type.TObject<{ sessionId: Type.TString; }>; declare const TalkCatalogParamsSchema: Type.TObject<{}>; 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<{ activeProvider: Type.TOptional; providers: Type.TArray>; 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<{ activeProvider: Type.TOptional; providers: Type.TArray>; 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<{ activeProvider: Type.TOptional; providers: Type.TArray>; 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; }>>; }>; }>; 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; }>; 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; }>>>; }>; 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; }>>; }>; }>; declare const TalkSessionOkResultSchema: Type.TObject<{ ok: Type.TBoolean; }>; 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; }>]>; 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; 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">]>>; brain: Type.TOptional, Type.TLiteral<"direct-tools">, Type.TLiteral<"none">]>>; }>>; 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; }>>; }>; }>; declare const TalkSpeakResultSchema: Type.TObject<{ audioBase64: Type.TString; provider: Type.TString; outputFormat: Type.TOptional; voiceCompatible: Type.TOptional; mimeType: Type.TOptional; fileExtension: Type.TOptional; }>; declare const ChannelsStatusParamsSchema: Type.TObject<{ probe: Type.TOptional; timeoutMs: Type.TOptional; channel: Type.TOptional; }>; 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>; }>; declare const ChannelsLogoutParamsSchema: Type.TObject<{ channel: Type.TString; accountId: Type.TOptional; }>; declare const ChannelsStopParamsSchema: Type.TObject<{ channel: Type.TString; accountId: Type.TOptional; }>; declare const ChannelsStartParamsSchema: Type.TObject<{ channel: Type.TString; accountId: Type.TOptional; }>; declare const WebLoginStartParamsSchema: Type.TObject<{ force: Type.TOptional; timeoutMs: Type.TOptional; verbose: Type.TOptional; accountId: Type.TOptional; }>; declare const WebLoginWaitParamsSchema: Type.TObject<{ timeoutMs: Type.TOptional; accountId: Type.TOptional; currentQrDataUrl: Type.TOptional; }>; //#endregion //#region src/gateway/protocol/schema/commands.d.ts declare const CommandsListParamsSchema: Type.TObject<{ agentId: Type.TOptional; provider: Type.TOptional; scope: Type.TOptional, Type.TLiteral<"native">, Type.TLiteral<"both">]>>; includeArgs: Type.TOptional; }>; 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 src/gateway/protocol/schema/config.d.ts declare const ConfigGetParamsSchema: Type.TObject<{}>; declare const ConfigSetParamsSchema: Type.TObject<{ raw: Type.TString; baseHash: Type.TOptional; }>; declare const ConfigApplyParamsSchema: Type.TObject<{ 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; }>; declare const ConfigPatchParamsSchema: Type.TObject<{ 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; }>; declare const ConfigSchemaParamsSchema: Type.TObject<{}>; declare const ConfigSchemaLookupParamsSchema: Type.TObject<{ path: Type.TString; }>; declare const UpdateStatusParamsSchema: Type.TObject<{}>; 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; }>; 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; }>; 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 src/gateway/protocol/schema/cron.d.ts declare const CronJobSchema: Type.TObject<{ id: Type.TString; 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; }>]>; 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; }>]>; 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<{ 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<"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; }>; }>; 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">]>>; sortBy: Type.TOptional, Type.TLiteral<"updatedAtMs">, Type.TLiteral<"name">]>>; sortDir: Type.TOptional, Type.TLiteral<"desc">]>>; agentId: Type.TOptional; }>; declare const CronStatusParamsSchema: Type.TObject<{}>; declare const CronGetParamsSchema: Type.TUnion<[Type.TObject<{ id: Type.TString; }>, Type.TObject<{ jobId: Type.TString; }>]>; 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; }>]>; 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; }>]>; 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<{ 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; }>; declare const CronUpdateParamsSchema: Type.TUnion<[Type.TObject<{ id: Type.TString; }>, Type.TObject<{ jobId: Type.TString; }>]>; declare const CronRemoveParamsSchema: Type.TUnion<[Type.TObject<{ id: Type.TString; }>, Type.TObject<{ jobId: Type.TString; }>]>; declare const CronRunParamsSchema: Type.TUnion<[Type.TObject<{ id: Type.TString; }>, Type.TObject<{ jobId: Type.TString; }>]>; 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 src/gateway/protocol/schema/error-codes.d.ts declare const ErrorCodes: { readonly NOT_LINKED: "NOT_LINKED"; readonly NOT_PAIRED: "NOT_PAIRED"; readonly AGENT_TIMEOUT: "AGENT_TIMEOUT"; readonly INVALID_REQUEST: "INVALID_REQUEST"; readonly APPROVAL_NOT_FOUND: "APPROVAL_NOT_FOUND"; readonly UNAVAILABLE: "UNAVAILABLE"; }; type ErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes]; declare function errorShape(code: ErrorCode, message: string, opts?: { details?: unknown; retryable?: boolean; retryAfterMs?: number; }): ErrorShape; //#endregion //#region src/gateway/protocol/schema/environments.d.ts declare const EnvironmentStatusSchema: Type.TString; declare const EnvironmentSummarySchema: Type.TObject<{ id: Type.TString; type: Type.TString; label: Type.TOptional; status: Type.TString; capabilities: Type.TOptional>; }>; declare const EnvironmentsListParamsSchema: Type.TObject<{}>; declare const EnvironmentsListResultSchema: Type.TObject<{ environments: Type.TArray; status: Type.TString; capabilities: Type.TOptional>; }>>; }>; declare const EnvironmentsStatusParamsSchema: Type.TObject<{ environmentId: Type.TString; }>; declare const EnvironmentsStatusResultSchema: Type.TObject<{ id: Type.TString; type: Type.TString; label: Type.TOptional; status: Type.TString; capabilities: Type.TOptional>; }>; //#endregion //#region src/gateway/protocol/schema/exec-approvals.d.ts declare const ExecApprovalsGetParamsSchema: Type.TObject<{}>; 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; }>; declare const ExecApprovalGetParamsSchema: Type.TObject<{ id: Type.TString; }>; 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>; commandSpans: Type.TOptional>>; agentId: Type.TOptional>; resolvedPath: Type.TOptional>; sessionKey: Type.TOptional>; turnSourceChannel: Type.TOptional>; turnSourceTo: Type.TOptional>; turnSourceAccountId: Type.TOptional>; turnSourceThreadId: Type.TOptional>; timeoutMs: Type.TOptional; twoPhase: Type.TOptional; }>; declare const ExecApprovalResolveParamsSchema: Type.TObject<{ id: Type.TString; decision: Type.TString; }>; //#endregion //#region src/gateway/protocol/schema/frames.d.ts declare const TickEventSchema: Type.TObject<{ ts: Type.TInteger; }>; declare const ShutdownEventSchema: Type.TObject<{ reason: Type.TString; restartExpectedMs: Type.TOptional; }>; 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; }>>; locale: Type.TOptional; userAgent: Type.TOptional; }>; 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; }>; 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>; }>; 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; }>; }>; declare const ErrorShapeSchema: Type.TObject<{ code: Type.TString; message: Type.TString; details: Type.TOptional; retryable: Type.TOptional; retryAfterMs: Type.TOptional; }>; declare const RequestFrameSchema: Type.TObject<{ type: Type.TLiteral<"req">; id: Type.TString; method: Type.TString; params: Type.TOptional; }>; 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; }>>; }>; 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 src/gateway/protocol/schema/logs-chat.d.ts declare const LogsTailParamsSchema: Type.TObject<{ cursor: Type.TOptional; limit: Type.TOptional; maxBytes: Type.TOptional; }>; declare const LogsTailResultSchema: Type.TObject<{ file: Type.TString; cursor: Type.TInteger; size: Type.TInteger; lines: Type.TArray; truncated: Type.TOptional; reset: Type.TOptional; }>; declare const ChatHistoryParamsSchema: Type.TObject<{ sessionKey: Type.TString; limit: Type.TOptional; maxChars: Type.TOptional; }>; declare const ChatSendParamsSchema: Type.TObject<{ sessionKey: Type.TString; sessionId: Type.TOptional; message: Type.TString; thinking: Type.TOptional; fastMode: 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; idempotencyKey: Type.TString; }>; declare const ChatInjectParamsSchema: Type.TObject<{ sessionKey: Type.TString; message: Type.TString; label: Type.TOptional; }>; 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; 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; spawnedBy: Type.TOptional; seq: Type.TInteger; }>, Type.TObject<{ state: Type.TLiteral<"aborted">; message: Type.TOptional; stopReason: Type.TOptional; runId: Type.TString; sessionKey: Type.TString; 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; spawnedBy: Type.TOptional; seq: Type.TInteger; }>]>; //#endregion //#region src/gateway/protocol/schema/nodes.d.ts declare const NodePresenceAliveReasonSchema: Type.TString; 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; }>; declare const NodeEventResultSchema: Type.TObject<{ ok: Type.TBoolean; event: Type.TString; handled: Type.TBoolean; reason: Type.TOptional; }>; 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; }>; declare const NodePairListParamsSchema: Type.TObject<{}>; declare const NodePairApproveParamsSchema: Type.TObject<{ requestId: Type.TString; }>; declare const NodePairRejectParamsSchema: Type.TObject<{ requestId: Type.TString; }>; declare const NodePairRemoveParamsSchema: Type.TObject<{ nodeId: Type.TString; }>; declare const NodePairVerifyParamsSchema: Type.TObject<{ nodeId: Type.TString; token: Type.TString; }>; declare const NodeListParamsSchema: Type.TObject<{}>; declare const NodePendingAckParamsSchema: Type.TObject<{ ids: Type.TArray; }>; declare const NodeInvokeParamsSchema: Type.TObject<{ nodeId: Type.TString; command: Type.TString; params: Type.TOptional; timeoutMs: Type.TOptional; idempotencyKey: Type.TString; }>; declare const NodePendingDrainParamsSchema: Type.TObject<{ maxItems: Type.TOptional; }>; declare const NodePendingDrainResultSchema: Type.TObject<{ nodeId: Type.TString; revision: Type.TInteger; items: Type.TArray>; payload: Type.TOptional>; }>>; hasMore: Type.TBoolean; }>; declare const NodePendingEnqueueParamsSchema: Type.TObject<{ nodeId: Type.TString; type: Type.TString; priority: Type.TOptional; expiresInMs: Type.TOptional; wake: Type.TOptional; }>; 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 src/gateway/protocol/schema/push.d.ts declare const PushTestParamsSchema: Type.TObject<{ nodeId: Type.TString; title: Type.TOptional; body: Type.TOptional; environment: Type.TOptional; }>; 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; }>; declare const WebPushVapidPublicKeyParamsSchema: Type.TObject<{}>; declare const WebPushSubscribeParamsSchema: Type.TObject<{ endpoint: Type.TString; keys: Type.TObject<{ p256dh: Type.TString; auth: Type.TString; }>; }>; declare const WebPushUnsubscribeParamsSchema: Type.TObject<{ endpoint: Type.TString; }>; declare const WebPushTestParamsSchema: Type.TObject<{ title: Type.TOptional; body: Type.TOptional; }>; type WebPushVapidPublicKeyParams = Record; type WebPushSubscribeParams = { endpoint: string; keys: { p256dh: string; auth: string; }; }; type WebPushUnsubscribeParams = { endpoint: string; }; type WebPushTestParams = { title?: string; body?: string; }; //#endregion //#region src/gateway/protocol/schema/sessions.d.ts 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; }>; declare const SessionsCleanupParamsSchema: Type.TObject<{ agent: Type.TOptional; allAgents: Type.TOptional; enforce: Type.TOptional; activeKey: Type.TOptional; fixMissing: Type.TOptional; fixDmScope: Type.TOptional; }>; declare const SessionsPreviewParamsSchema: Type.TObject<{ keys: Type.TArray; limit: Type.TOptional; maxChars: Type.TOptional; }>; declare const SessionsDescribeParamsSchema: Type.TObject<{ key: Type.TString; includeDerivedTitles: Type.TOptional; includeLastMessage: Type.TOptional; }>; 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; }>; declare const SessionsCreateParamsSchema: Type.TObject<{ key: Type.TOptional; agentId: Type.TOptional; label: Type.TOptional; model: Type.TOptional; parentSessionKey: Type.TOptional; emitCommandHooks: Type.TOptional; task: Type.TOptional; message: Type.TOptional; }>; declare const SessionsSendParamsSchema: Type.TObject<{ key: Type.TString; message: Type.TString; thinking: Type.TOptional; attachments: Type.TOptional>; timeoutMs: Type.TOptional; idempotencyKey: Type.TOptional; }>; declare const SessionsAbortParamsSchema: Type.TObject<{ key: Type.TOptional; runId: Type.TOptional; agentId: Type.TOptional; }>; declare const SessionsPatchParamsSchema: Type.TObject<{ key: Type.TString; label: Type.TOptional>; thinkingLevel: Type.TOptional>; fastMode: Type.TOptional>; 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>; 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]>>; }>; declare const SessionsPluginPatchParamsSchema: Type.TObject<{ key: Type.TString; pluginId: Type.TString; namespace: Type.TString; value: Type.TOptional; unset: Type.TOptional; }>; declare const SessionsResetParamsSchema: Type.TObject<{ key: Type.TString; reason: Type.TOptional, Type.TLiteral<"reset">]>>; }>; declare const SessionsDeleteParamsSchema: Type.TObject<{ key: Type.TString; deleteTranscript: Type.TOptional; emitLifecycleHooks: Type.TOptional; }>; declare const SessionsCompactParamsSchema: Type.TObject<{ key: Type.TString; maxLines: Type.TOptional; }>; declare const SessionsCompactionListParamsSchema: Type.TObject<{ key: Type.TString; }>; declare const SessionsCompactionGetParamsSchema: Type.TObject<{ key: Type.TString; checkpointId: Type.TString; }>; declare const SessionsCompactionBranchParamsSchema: Type.TObject<{ key: Type.TString; checkpointId: Type.TString; }>; declare const SessionsCompactionRestoreParamsSchema: Type.TObject<{ key: Type.TString; checkpointId: Type.TString; }>; 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; /** 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 src/gateway/protocol/schema/snapshot.d.ts 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; }>; declare const StateVersionSchema: Type.TObject<{ presence: Type.TInteger; health: Type.TInteger; }>; 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 src/gateway/protocol/schema/tasks.d.ts 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; }>; 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; }>; 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; }>; declare const TasksGetParamsSchema: Type.TObject<{ taskId: Type.TString; }>; 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; }>; }>; declare const TasksCancelParamsSchema: Type.TObject<{ taskId: Type.TString; reason: Type.TOptional; }>; 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 src/gateway/protocol/schema/plugins.d.ts declare const PluginsUiDescriptorsParamsSchema: Type.TObject<{}>; declare const PluginsSessionActionParamsSchema: Type.TObject<{ pluginId: Type.TString; actionId: Type.TString; sessionKey: Type.TOptional; payload: Type.TOptional; }>; 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 src/gateway/protocol/schema/wizard.d.ts declare const WizardStartParamsSchema: Type.TObject<{ mode: Type.TOptional, Type.TLiteral<"remote">]>>; workspace: Type.TOptional; }>; declare const WizardNextParamsSchema: Type.TObject<{ sessionId: Type.TString; answer: Type.TOptional; }>>; }>; declare const WizardCancelParamsSchema: Type.TObject<{ sessionId: Type.TString; }>; declare const WizardStatusParamsSchema: Type.TObject<{ sessionId: Type.TString; }>; 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">]>>; }>; 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; }>; 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; }>; 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 src/gateway/protocol/index.d.ts type ValidationError = { keyword?: string; instancePath?: string; schemaPath?: string; params?: Record; message?: string; }; type ProtocolValidator = ((data: unknown) => data is T) & { errors: ValidationError[] | null; schema: unknown; }; declare const validateCommandsListParams: ProtocolValidator<{ scope?: "text" | "native" | "both" | undefined; agentId?: string | undefined; provider?: string | undefined; includeArgs?: boolean | undefined; }>; declare const validateConnectParams: ProtocolValidator<{ caps?: string[] | undefined; commands?: string[] | undefined; permissions?: Record | undefined; pathEnv?: string | undefined; role?: string | undefined; scopes?: string[] | undefined; device?: { id: string; publicKey: string; signature: string; signedAt: number; nonce: string; } | undefined; auth?: { token?: string | undefined; bootstrapToken?: string | undefined; deviceToken?: string | undefined; password?: string | undefined; approvalRuntimeToken?: string | undefined; } | undefined; locale?: string | undefined; userAgent?: string | undefined; minProtocol: number; maxProtocol: number; client: { displayName?: string | undefined; deviceFamily?: string | undefined; modelIdentifier?: string | undefined; instanceId?: string | undefined; id: "webchat-ui" | "openclaw-control-ui" | "openclaw-tui" | "webchat" | "cli" | "gateway-client" | "openclaw-macos" | "openclaw-ios" | "openclaw-android" | "node-host" | "test" | "fingerprint" | "openclaw-probe"; version: string; platform: string; mode: "webchat" | "cli" | "test" | "ui" | "backend" | "node" | "probe"; }; }>; declare const validateRequestFrame: ProtocolValidator<{ params?: unknown; id: string; type: "req"; method: string; }>; declare const validateResponseFrame: ProtocolValidator<{ payload?: unknown; error?: { details?: unknown; retryable?: boolean | undefined; retryAfterMs?: number | undefined; code: string; message: string; } | undefined; id: string; type: "res"; ok: boolean; }>; declare const validateEventFrame: ProtocolValidator<{ stateVersion?: { presence: number; health: number; } | undefined; payload?: unknown; seq?: number | undefined; type: "event"; event: string; }>; declare const validateMessageActionParams: ProtocolValidator<{ accountId?: string | undefined; requesterSenderId?: string | undefined; senderIsOwner?: boolean | undefined; sessionKey?: string | undefined; sessionId?: string | undefined; inboundTurnKind?: string | undefined; agentId?: string | undefined; toolContext?: { currentChannelId?: string | undefined; currentGraphChannelId?: string | undefined; currentChannelProvider?: string | undefined; currentThreadTs?: string | undefined; currentMessageId?: string | number | undefined; replyToMode?: "off" | "first" | "all" | "batched" | undefined; hasRepliedRef?: { value: boolean; } | undefined; skipCrossContextDecoration?: boolean | undefined; } | undefined; channel: string; params: Record; action: string; idempotencyKey: string; }>; declare const validateSendParams: ProtocolValidator; declare const validatePollParams: ProtocolValidator<{ channel?: string | undefined; accountId?: string | undefined; threadId?: string | undefined; silent?: boolean | undefined; maxSelections?: number | undefined; durationSeconds?: number | undefined; durationHours?: number | undefined; isAnonymous?: boolean | undefined; idempotencyKey: string; to: string; question: string; options: string[]; }>; declare const validateAgentParams: ProtocolValidator; declare const validateAgentIdentityParams: ProtocolValidator<{ sessionKey?: string | undefined; agentId?: string | undefined; }>; declare const validateAgentWaitParams: ProtocolValidator<{ timeoutMs?: number | undefined; runId: string; }>; declare const validateWakeParams: ProtocolValidator<{ sessionKey?: string | undefined; mode: "now" | "next-heartbeat"; text: string; }>; declare const validateAgentsListParams: ProtocolValidator; declare const validateAgentsCreateParams: ProtocolValidator<{ model?: string | undefined; avatar?: string | undefined; emoji?: string | undefined; name: string; workspace: string; }>; declare const validateAgentsUpdateParams: ProtocolValidator<{ model?: string | undefined; name?: string | undefined; avatar?: string | undefined; emoji?: string | undefined; workspace?: string | undefined; agentId: string; }>; declare const validateAgentsDeleteParams: ProtocolValidator<{ deleteFiles?: boolean | undefined; agentId: string; }>; declare const validateAgentsFilesListParams: ProtocolValidator<{ agentId: string; }>; declare const validateAgentsFilesGetParams: ProtocolValidator<{ agentId: string; name: string; }>; declare const validateAgentsFilesSetParams: ProtocolValidator<{ agentId: string; name: string; content: string; }>; declare const validateArtifactsListParams: ProtocolValidator<{ runId?: string | undefined; sessionKey?: string | undefined; agentId?: string | undefined; taskId?: string | undefined; }>; declare const validateArtifactsGetParams: ProtocolValidator<{ runId?: string | undefined; sessionKey?: string | undefined; agentId?: string | undefined; taskId?: string | undefined; artifactId: string; }>; declare const validateArtifactsDownloadParams: ProtocolValidator<{ runId?: string | undefined; sessionKey?: string | undefined; agentId?: string | undefined; taskId?: string | undefined; artifactId: string; }>; declare const validateNodePairRequestParams: ProtocolValidator<{ displayName?: string | undefined; version?: string | undefined; platform?: string | undefined; deviceFamily?: string | undefined; modelIdentifier?: string | undefined; caps?: string[] | undefined; commands?: string[] | undefined; permissions?: Record | undefined; silent?: boolean | undefined; coreVersion?: string | undefined; uiVersion?: string | undefined; remoteIp?: string | undefined; nodeId: string; }>; declare const validateNodePairListParams: ProtocolValidator; declare const validateNodePairApproveParams: ProtocolValidator<{ requestId: string; }>; declare const validateNodePairRejectParams: ProtocolValidator<{ requestId: string; }>; declare const validateNodePairRemoveParams: ProtocolValidator<{ nodeId: string; }>; declare const validateNodePairVerifyParams: ProtocolValidator<{ token: string; nodeId: string; }>; declare const validateNodeRenameParams: ProtocolValidator<{ displayName: string; nodeId: string; }>; declare const validateNodeListParams: ProtocolValidator; declare const validateEnvironmentsListParams: ProtocolValidator; declare const validateEnvironmentsStatusParams: ProtocolValidator<{ environmentId: string; }>; declare const validateNodePendingAckParams: ProtocolValidator<{ ids: string[]; }>; declare const validateNodeDescribeParams: ProtocolValidator<{ nodeId: string; }>; declare const validateNodeInvokeParams: ProtocolValidator<{ params?: unknown; timeoutMs?: number | undefined; idempotencyKey: string; nodeId: string; command: string; }>; declare const validateNodeInvokeResultParams: ProtocolValidator<{ payload?: unknown; error?: { code?: string | undefined; message?: string | undefined; } | undefined; payloadJSON?: string | undefined; id: string; ok: boolean; nodeId: string; }>; declare const validateNodeEventParams: ProtocolValidator<{ payload?: unknown; payloadJSON?: string | undefined; event: string; }>; declare const validateNodeEventResult: ProtocolValidator<{ reason?: string | undefined; ok: boolean; event: string; handled: boolean; }>; declare const validateNodePresenceAlivePayload: ProtocolValidator<{ displayName?: string | undefined; version?: string | undefined; platform?: string | undefined; deviceFamily?: string | undefined; modelIdentifier?: string | undefined; sentAtMs?: number | undefined; pushTransport?: string | undefined; trigger: string; }>; declare const validateNodePendingDrainParams: ProtocolValidator<{ maxItems?: number | undefined; }>; declare const validateNodePendingEnqueueParams: ProtocolValidator<{ priority?: string | undefined; expiresInMs?: number | undefined; wake?: boolean | undefined; type: string; nodeId: string; }>; declare const validatePushTestParams: ProtocolValidator<{ title?: string | undefined; body?: string | undefined; environment?: string | undefined; nodeId: string; }>; declare const validateWebPushVapidPublicKeyParams: ProtocolValidator; declare const validateWebPushSubscribeParams: ProtocolValidator; declare const validateWebPushUnsubscribeParams: ProtocolValidator; declare const validateWebPushTestParams: ProtocolValidator; declare const validateSecretsResolveParams: ProtocolValidator<{ allowedPaths?: string[] | undefined; forcedActivePaths?: string[] | undefined; optionalActivePaths?: string[] | undefined; providerOverrides?: { webSearch?: string | undefined; webFetch?: string | undefined; } | undefined; commandName: string; targetIds: string[]; }>; declare const validateSecretsResolveResult: ProtocolValidator<{ ok?: boolean | undefined; assignments?: { path?: string | undefined; value: unknown; pathSegments: string[]; }[] | undefined; diagnostics?: string[] | undefined; inactiveRefPaths?: string[] | undefined; }>; declare const validateSessionsListParams: ProtocolValidator<{ label?: string | undefined; spawnedBy?: string | undefined; agentId?: string | undefined; limit?: number | undefined; offset?: number | undefined; activeMinutes?: number | undefined; includeGlobal?: boolean | undefined; includeUnknown?: boolean | undefined; configuredAgentsOnly?: boolean | undefined; includeDerivedTitles?: boolean | undefined; includeLastMessage?: boolean | undefined; search?: string | undefined; }>; declare const validateSessionsCleanupParams: ProtocolValidator<{ agent?: string | undefined; allAgents?: boolean | undefined; enforce?: boolean | undefined; activeKey?: string | undefined; fixMissing?: boolean | undefined; fixDmScope?: boolean | undefined; }>; declare const validateSessionsPreviewParams: ProtocolValidator<{ limit?: number | undefined; maxChars?: number | undefined; keys: string[]; }>; declare const validateSessionsDescribeParams: ProtocolValidator<{ includeDerivedTitles?: boolean | undefined; includeLastMessage?: boolean | undefined; key: string; }>; declare const validateSessionsResolveParams: ProtocolValidator<{ label?: string | undefined; spawnedBy?: string | undefined; sessionId?: string | undefined; agentId?: string | undefined; includeGlobal?: boolean | undefined; includeUnknown?: boolean | undefined; key?: string | undefined; }>; declare const validateSessionsCreateParams: ProtocolValidator<{ message?: string | undefined; label?: string | undefined; agentId?: string | undefined; model?: string | undefined; key?: string | undefined; parentSessionKey?: string | undefined; emitCommandHooks?: boolean | undefined; task?: string | undefined; }>; declare const validateSessionsSendParams: ProtocolValidator<{ idempotencyKey?: string | undefined; thinking?: string | undefined; attachments?: unknown[] | undefined; timeoutMs?: number | undefined; message: string; key: string; }>; declare const validateSessionsMessagesSubscribeParams: ProtocolValidator<{ key: string; }>; declare const validateSessionsMessagesUnsubscribeParams: ProtocolValidator<{ key: string; }>; declare const validateSessionsAbortParams: ProtocolValidator<{ runId?: string | undefined; agentId?: string | undefined; key?: string | undefined; }>; declare const validateSessionsPatchParams: ProtocolValidator<{ label?: string | null | undefined; spawnedBy?: string | null | undefined; model?: string | null | undefined; thinkingLevel?: string | null | undefined; fastMode?: boolean | null | undefined; verboseLevel?: string | null | undefined; traceLevel?: string | null | undefined; reasoningLevel?: string | null | undefined; responseUsage?: "off" | "full" | "tokens" | "on" | null | undefined; elevatedLevel?: string | null | undefined; execHost?: string | null | undefined; execSecurity?: string | null | undefined; execAsk?: string | null | undefined; execNode?: string | null | undefined; spawnedWorkspaceDir?: string | null | undefined; spawnDepth?: number | null | undefined; subagentRole?: "orchestrator" | "leaf" | null | undefined; subagentControlScope?: "none" | "children" | null | undefined; inheritedToolAllow?: string[] | null | undefined; inheritedToolDeny?: string[] | null | undefined; sendPolicy?: "deny" | "allow" | null | undefined; groupActivation?: "mention" | "always" | null | undefined; key: string; }>; declare const validateSessionsPluginPatchParams: ProtocolValidator<{ value?: unknown; unset?: boolean | undefined; key: string; pluginId: string; namespace: string; }>; declare const validateSessionsResetParams: ProtocolValidator<{ reason?: "new" | "reset" | undefined; key: string; }>; declare const validateSessionsDeleteParams: ProtocolValidator<{ deleteTranscript?: boolean | undefined; emitLifecycleHooks?: boolean | undefined; key: string; }>; declare const validateSessionsCompactParams: ProtocolValidator<{ maxLines?: number | undefined; key: string; }>; declare const validateSessionsCompactionListParams: ProtocolValidator<{ key: string; }>; declare const validateSessionsCompactionGetParams: ProtocolValidator<{ key: string; checkpointId: string; }>; declare const validateSessionsCompactionBranchParams: ProtocolValidator<{ key: string; checkpointId: string; }>; declare const validateSessionsCompactionRestoreParams: ProtocolValidator<{ key: string; checkpointId: string; }>; declare const validateSessionsUsageParams: ProtocolValidator<{ mode?: "utc" | "gateway" | "specific" | undefined; agentId?: string | undefined; limit?: number | undefined; key?: string | undefined; startDate?: string | undefined; endDate?: string | undefined; range?: "all" | "7d" | "30d" | "90d" | "1y" | undefined; groupBy?: "instance" | "family" | undefined; includeHistorical?: boolean | undefined; utcOffset?: string | undefined; includeContextWeight?: boolean | undefined; }>; declare const validateTasksListParams: ProtocolValidator<{ status?: "queued" | "completed" | "running" | "failed" | "cancelled" | "timed_out" | ("queued" | "completed" | "running" | "failed" | "cancelled" | "timed_out")[] | undefined; sessionKey?: string | undefined; agentId?: string | undefined; limit?: number | undefined; cursor?: string | undefined; }>; declare const validateTasksGetParams: ProtocolValidator<{ taskId: string; }>; declare const validateTasksCancelParams: ProtocolValidator<{ reason?: string | undefined; taskId: string; }>; declare const validateConfigGetParams: ProtocolValidator; declare const validateConfigSetParams: ProtocolValidator<{ baseHash?: string | undefined; raw: string; }>; declare const validateConfigApplyParams: ProtocolValidator<{ sessionKey?: string | undefined; baseHash?: string | undefined; deliveryContext?: { channel?: string | undefined; accountId?: string | undefined; to?: string | undefined; threadId?: string | number | undefined; } | undefined; note?: string | undefined; restartDelayMs?: number | undefined; raw: string; }>; declare const validateConfigPatchParams: ProtocolValidator<{ sessionKey?: string | undefined; baseHash?: string | undefined; deliveryContext?: { channel?: string | undefined; accountId?: string | undefined; to?: string | undefined; threadId?: string | number | undefined; } | undefined; note?: string | undefined; restartDelayMs?: number | undefined; raw: string; }>; declare const validateConfigSchemaParams: ProtocolValidator; declare const validateConfigSchemaLookupParams: ProtocolValidator<{ path: string; }>; declare const validateConfigSchemaLookupResult: ProtocolValidator<{ reloadKind?: "none" | "restart" | "hot" | undefined; hint?: { tags?: string[] | undefined; label?: string | undefined; help?: string | undefined; group?: string | undefined; order?: number | undefined; advanced?: boolean | undefined; sensitive?: boolean | undefined; placeholder?: string | undefined; itemTemplate?: unknown; } | undefined; hintPath?: string | undefined; path: string; children: { type?: string | string[] | undefined; reloadKind?: "none" | "restart" | "hot" | undefined; hint?: { tags?: string[] | undefined; label?: string | undefined; help?: string | undefined; group?: string | undefined; order?: number | undefined; advanced?: boolean | undefined; sensitive?: boolean | undefined; placeholder?: string | undefined; itemTemplate?: unknown; } | undefined; hintPath?: string | undefined; required: boolean; path: string; key: string; hasChildren: boolean; }[]; schema: unknown; }>; declare const validateWizardStartParams: ProtocolValidator<{ mode?: "local" | "remote" | undefined; workspace?: string | undefined; }>; declare const validateWizardNextParams: ProtocolValidator<{ answer?: { value?: unknown; stepId: string; } | undefined; sessionId: string; }>; declare const validateWizardCancelParams: ProtocolValidator<{ sessionId: string; }>; declare const validateWizardStatusParams: ProtocolValidator<{ sessionId: string; }>; declare const validateTalkModeParams: ProtocolValidator<{ phase?: string | undefined; enabled: boolean; }>; declare const validateTalkEvent: ProtocolValidator<{ provider?: string | undefined; turnId?: string | undefined; captureId?: string | undefined; final?: boolean | undefined; callId?: string | undefined; itemId?: string | undefined; parentId?: string | undefined; id: string; type: "session.started" | "session.ready" | "session.closed" | "session.error" | "session.replaced" | "turn.started" | "turn.ended" | "turn.cancelled" | "capture.started" | "capture.stopped" | "capture.cancelled" | "capture.once" | "input.audio.delta" | "input.audio.committed" | "transcript.delta" | "transcript.done" | "output.text.delta" | "output.text.done" | "output.audio.started" | "output.audio.delta" | "output.audio.done" | "tool.call" | "tool.progress" | "tool.result" | "tool.error" | "usage.metrics" | "latency.metrics" | "health.changed"; mode: "realtime" | "stt-tts" | "transcription"; payload: unknown; seq: number; sessionId: string; transport: "webrtc" | "provider-websocket" | "gateway-relay" | "managed-room"; timestamp: string; brain: "none" | "agent-consult" | "direct-tools"; }>; declare const validateTalkCatalogParams: ProtocolValidator; declare const validateTalkCatalogResult: ProtocolValidator<{ realtime: { activeProvider?: string | undefined; providers: { modes?: ("realtime" | "stt-tts" | "transcription")[] | undefined; transports?: ("webrtc" | "provider-websocket" | "gateway-relay" | "managed-room")[] | undefined; brains?: ("none" | "agent-consult" | "direct-tools")[] | undefined; models?: string[] | undefined; voices?: string[] | undefined; defaultModel?: string | undefined; inputAudioFormats?: { encoding: "pcm16" | "g711_ulaw"; sampleRateHz: number; channels: number; }[] | undefined; outputAudioFormats?: { encoding: "pcm16" | "g711_ulaw"; sampleRateHz: number; channels: number; }[] | undefined; supportsBrowserSession?: boolean | undefined; supportsBargeIn?: boolean | undefined; supportsToolCalls?: boolean | undefined; supportsVideoFrames?: boolean | undefined; supportsSessionResumption?: boolean | undefined; id: string; label: string; configured: boolean; }[]; }; transcription: { activeProvider?: string | undefined; providers: { modes?: ("realtime" | "stt-tts" | "transcription")[] | undefined; transports?: ("webrtc" | "provider-websocket" | "gateway-relay" | "managed-room")[] | undefined; brains?: ("none" | "agent-consult" | "direct-tools")[] | undefined; models?: string[] | undefined; voices?: string[] | undefined; defaultModel?: string | undefined; inputAudioFormats?: { encoding: "pcm16" | "g711_ulaw"; sampleRateHz: number; channels: number; }[] | undefined; outputAudioFormats?: { encoding: "pcm16" | "g711_ulaw"; sampleRateHz: number; channels: number; }[] | undefined; supportsBrowserSession?: boolean | undefined; supportsBargeIn?: boolean | undefined; supportsToolCalls?: boolean | undefined; supportsVideoFrames?: boolean | undefined; supportsSessionResumption?: boolean | undefined; id: string; label: string; configured: boolean; }[]; }; modes: ("realtime" | "stt-tts" | "transcription")[]; transports: ("webrtc" | "provider-websocket" | "gateway-relay" | "managed-room")[]; brains: ("none" | "agent-consult" | "direct-tools")[]; speech: { activeProvider?: string | undefined; providers: { modes?: ("realtime" | "stt-tts" | "transcription")[] | undefined; transports?: ("webrtc" | "provider-websocket" | "gateway-relay" | "managed-room")[] | undefined; brains?: ("none" | "agent-consult" | "direct-tools")[] | undefined; models?: string[] | undefined; voices?: string[] | undefined; defaultModel?: string | undefined; inputAudioFormats?: { encoding: "pcm16" | "g711_ulaw"; sampleRateHz: number; channels: number; }[] | undefined; outputAudioFormats?: { encoding: "pcm16" | "g711_ulaw"; sampleRateHz: number; channels: number; }[] | undefined; supportsBrowserSession?: boolean | undefined; supportsBargeIn?: boolean | undefined; supportsToolCalls?: boolean | undefined; supportsVideoFrames?: boolean | undefined; supportsSessionResumption?: boolean | undefined; id: string; label: string; configured: boolean; }[]; }; }>; declare const validateTalkConfigParams: ProtocolValidator<{ includeSecrets?: boolean | undefined; }>; declare const validateTalkConfigResult: ProtocolValidator<{ config: { ui?: { seamColor?: string | undefined; } | undefined; talk?: { provider?: string | undefined; realtime?: { mode?: "realtime" | "stt-tts" | "transcription" | undefined; provider?: string | undefined; model?: string | undefined; transport?: "webrtc" | "provider-websocket" | "gateway-relay" | "managed-room" | undefined; brain?: "none" | "agent-consult" | "direct-tools" | undefined; providers?: Record | undefined; voice?: string | undefined; instructions?: string | undefined; } | undefined; providers?: Record | undefined; resolved?: { provider: string; config: { apiKey?: string | { id: string; provider: string; source: "env"; } | { id: string; provider: string; source: "file"; } | { id: string; provider: string; source: "exec"; } | undefined; }; } | undefined; consultThinkingLevel?: string | undefined; consultFastMode?: boolean | undefined; speechLocale?: string | undefined; interruptOnSpeech?: boolean | undefined; silenceTimeoutMs?: number | undefined; } | undefined; session?: { mainKey?: string | undefined; } | undefined; }; }>; declare const validateTalkClientCreateParams: ProtocolValidator<{ mode?: "realtime" | "stt-tts" | "transcription" | undefined; sessionKey?: string | undefined; provider?: string | undefined; model?: string | undefined; transport?: "webrtc" | "provider-websocket" | "gateway-relay" | "managed-room" | undefined; brain?: "none" | "agent-consult" | "direct-tools" | undefined; voice?: string | undefined; vadThreshold?: number | undefined; silenceDurationMs?: number | undefined; prefixPaddingMs?: number | undefined; reasoningEffort?: string | undefined; }>; declare const validateTalkClientCreateResult: ProtocolValidator<{ model?: string | undefined; voice?: string | undefined; offerUrl?: string | undefined; offerHeaders?: Record | undefined; expiresAt?: number | undefined; provider: string; transport: "webrtc"; clientSecret: string; } | { model?: string | undefined; voice?: string | undefined; expiresAt?: number | undefined; initialMessage?: unknown; protocol: string; provider: string; audio: { inputEncoding: "pcm16" | "g711_ulaw"; inputSampleRateHz: number; outputEncoding: "pcm16" | "g711_ulaw"; outputSampleRateHz: number; }; transport: "provider-websocket"; clientSecret: string; websocketUrl: string; } | { model?: string | undefined; voice?: string | undefined; expiresAt?: number | undefined; provider: string; audio: { inputEncoding: "pcm16" | "g711_ulaw"; inputSampleRateHz: number; outputEncoding: "pcm16" | "g711_ulaw"; outputSampleRateHz: number; }; transport: "gateway-relay"; relaySessionId: string; } | { token?: string | undefined; model?: string | undefined; voice?: string | undefined; expiresAt?: number | undefined; provider: string; transport: "managed-room"; roomUrl: string; }>; declare const validateTalkClientToolCallParams: ProtocolValidator<{ relaySessionId?: string | undefined; args?: unknown; sessionKey: string; name: string; callId: string; }>; declare const validateTalkClientToolCallResult: ProtocolValidator<{ runId: string; idempotencyKey: string; }>; declare const validateTalkClientSteerParams: ProtocolValidator<{ mode?: "status" | "steer" | "cancel" | "followup" | undefined; text: string; sessionKey: string; }>; declare const validateTalkAgentControlResult: ProtocolValidator<{ reason?: string | undefined; sessionId?: string | undefined; queued?: boolean | undefined; aborted?: boolean | undefined; target?: "embedded_run" | "reply_run" | undefined; providerResult?: { message: string; status: "cancelled"; } | undefined; enqueuedAtMs?: number | undefined; deliveredAtMs?: number | undefined; mode: "status" | "steer" | "cancel" | "followup"; ok: boolean; message: string; sessionKey: string; active: boolean; speak: boolean; show: boolean; suppress: boolean; }>; declare const validateTalkSessionCreateParams: ProtocolValidator<{ mode?: "realtime" | "stt-tts" | "transcription" | undefined; spawnedBy?: string | undefined; sessionKey?: string | undefined; provider?: string | undefined; model?: string | undefined; transport?: "webrtc" | "provider-websocket" | "gateway-relay" | "managed-room" | undefined; brain?: "none" | "agent-consult" | "direct-tools" | undefined; voice?: string | undefined; vadThreshold?: number | undefined; silenceDurationMs?: number | undefined; prefixPaddingMs?: number | undefined; reasoningEffort?: string | undefined; ttlMs?: number | undefined; }>; declare const validateTalkSessionCreateResult: ProtocolValidator<{ token?: string | undefined; provider?: string | undefined; model?: string | undefined; audio?: unknown; voice?: string | undefined; expiresAt?: number | undefined; relaySessionId?: string | undefined; roomUrl?: string | undefined; transcriptionSessionId?: string | undefined; handoffId?: string | undefined; roomId?: string | undefined; mode: "realtime" | "stt-tts" | "transcription"; sessionId: string; transport: "webrtc" | "provider-websocket" | "gateway-relay" | "managed-room"; brain: "none" | "agent-consult" | "direct-tools"; }>; declare const validateTalkSessionJoinParams: ProtocolValidator<{ token: string; sessionId: string; }>; declare const validateTalkSessionJoinResult: ProtocolValidator<{ channel?: string | undefined; sessionId?: string | undefined; provider?: string | undefined; model?: string | undefined; voice?: string | undefined; target?: string | undefined; id: string; mode: "realtime" | "stt-tts" | "transcription"; sessionKey: string; transport: "webrtc" | "provider-websocket" | "gateway-relay" | "managed-room"; createdAt: number; brain: "none" | "agent-consult" | "direct-tools"; expiresAt: number; roomUrl: string; roomId: string; room: { activeClientId?: string | undefined; activeTurnId?: string | undefined; recentTalkEvents: { provider?: string | undefined; turnId?: string | undefined; captureId?: string | undefined; final?: boolean | undefined; callId?: string | undefined; itemId?: string | undefined; parentId?: string | undefined; id: string; type: "session.started" | "session.ready" | "session.closed" | "session.error" | "session.replaced" | "turn.started" | "turn.ended" | "turn.cancelled" | "capture.started" | "capture.stopped" | "capture.cancelled" | "capture.once" | "input.audio.delta" | "input.audio.committed" | "transcript.delta" | "transcript.done" | "output.text.delta" | "output.text.done" | "output.audio.started" | "output.audio.delta" | "output.audio.done" | "tool.call" | "tool.progress" | "tool.result" | "tool.error" | "usage.metrics" | "latency.metrics" | "health.changed"; mode: "realtime" | "stt-tts" | "transcription"; payload: unknown; seq: number; sessionId: string; transport: "webrtc" | "provider-websocket" | "gateway-relay" | "managed-room"; timestamp: string; brain: "none" | "agent-consult" | "direct-tools"; }[]; }; }>; declare const validateTalkSessionAppendAudioParams: ProtocolValidator<{ timestamp?: number | undefined; sessionId: string; audioBase64: string; }>; declare const validateTalkSessionTurnParams: ProtocolValidator<{ turnId?: string | undefined; sessionId: string; }>; declare const validateTalkSessionCancelTurnParams: ProtocolValidator<{ reason?: string | undefined; turnId?: string | undefined; sessionId: string; }>; declare const validateTalkSessionCancelOutputParams: ProtocolValidator<{ reason?: string | undefined; turnId?: string | undefined; sessionId: string; }>; declare const validateTalkSessionTurnResult: ProtocolValidator<{ events?: { provider?: string | undefined; turnId?: string | undefined; captureId?: string | undefined; final?: boolean | undefined; callId?: string | undefined; itemId?: string | undefined; parentId?: string | undefined; id: string; type: "session.started" | "session.ready" | "session.closed" | "session.error" | "session.replaced" | "turn.started" | "turn.ended" | "turn.cancelled" | "capture.started" | "capture.stopped" | "capture.cancelled" | "capture.once" | "input.audio.delta" | "input.audio.committed" | "transcript.delta" | "transcript.done" | "output.text.delta" | "output.text.done" | "output.audio.started" | "output.audio.delta" | "output.audio.done" | "tool.call" | "tool.progress" | "tool.result" | "tool.error" | "usage.metrics" | "latency.metrics" | "health.changed"; mode: "realtime" | "stt-tts" | "transcription"; payload: unknown; seq: number; sessionId: string; transport: "webrtc" | "provider-websocket" | "gateway-relay" | "managed-room"; timestamp: string; brain: "none" | "agent-consult" | "direct-tools"; }[] | undefined; turnId?: string | undefined; ok: boolean; }>; declare const validateTalkSessionSteerParams: ProtocolValidator<{ mode?: "status" | "steer" | "cancel" | "followup" | undefined; sessionKey?: string | undefined; text: string; sessionId: string; }>; declare const validateTalkSessionSubmitToolResultParams: ProtocolValidator<{ options?: { suppressResponse?: boolean | undefined; willContinue?: boolean | undefined; } | undefined; sessionId: string; result: unknown; callId: string; }>; declare const validateTalkSessionCloseParams: ProtocolValidator<{ sessionId: string; }>; declare const validateTalkSessionOkResult: ProtocolValidator<{ ok: boolean; }>; declare const validateTalkSpeakParams: ProtocolValidator<{ voiceId?: string | undefined; modelId?: string | undefined; outputFormat?: string | undefined; speed?: number | undefined; rateWpm?: number | undefined; stability?: number | undefined; similarity?: number | undefined; style?: number | undefined; speakerBoost?: boolean | undefined; seed?: number | undefined; normalize?: string | undefined; language?: string | undefined; latencyTier?: number | undefined; text: string; }>; declare const validateTalkSpeakResult: ProtocolValidator<{ mimeType?: string | undefined; outputFormat?: string | undefined; voiceCompatible?: boolean | undefined; fileExtension?: string | undefined; provider: string; audioBase64: string; }>; declare const validateChannelsStatusParams: ProtocolValidator<{ probe?: boolean | undefined; channel?: string | undefined; timeoutMs?: number | undefined; }>; declare const validateChannelsStartParams: ProtocolValidator<{ accountId?: string | undefined; channel: string; }>; declare const validateChannelsStopParams: ProtocolValidator<{ accountId?: string | undefined; channel: string; }>; declare const validateChannelsLogoutParams: ProtocolValidator<{ accountId?: string | undefined; channel: string; }>; declare const validateModelsListParams: ProtocolValidator<{ view?: "default" | "all" | "configured" | undefined; }>; declare const validateSkillsStatusParams: ProtocolValidator<{ agentId?: string | undefined; }>; declare const validateToolsCatalogParams: ProtocolValidator<{ agentId?: string | undefined; includePlugins?: boolean | undefined; }>; declare const validateToolsEffectiveParams: ProtocolValidator<{ agentId?: string | undefined; sessionKey: string; }>; declare const validateToolsInvokeParams: ProtocolValidator<{ sessionKey?: string | undefined; agentId?: string | undefined; idempotencyKey?: string | undefined; confirm?: boolean | undefined; args?: Record | undefined; name: string; }>; declare const validateSkillsBinsParams: ProtocolValidator; declare const validateSkillsInstallParams: ProtocolValidator<{ timeoutMs?: number | undefined; dangerouslyForceUnsafeInstall?: boolean | undefined; name: string; installId: string; } | { version?: string | undefined; timeoutMs?: number | undefined; force?: boolean | undefined; source: "clawhub"; slug: string; } | { timeoutMs?: number | undefined; force?: boolean | undefined; sha256?: string | undefined; source: "upload"; slug: string; uploadId: string; }>; declare const validateSkillsUploadBeginParams: ProtocolValidator<{ idempotencyKey?: string | undefined; force?: boolean | undefined; sha256?: string | undefined; kind: "skill-archive"; sizeBytes: number; slug: string; }>; declare const validateSkillsUploadChunkParams: ProtocolValidator<{ offset: number; uploadId: string; dataBase64: string; }>; declare const validateSkillsUploadCommitParams: ProtocolValidator<{ sha256?: string | undefined; uploadId: string; }>; declare const validateSkillsUpdateParams: ProtocolValidator<{ enabled?: boolean | undefined; env?: Record | undefined; apiKey?: string | undefined; skillKey: string; } | { all?: boolean | undefined; slug?: string | undefined; source: "clawhub"; }>; declare const validateSkillsSearchParams: ProtocolValidator<{ limit?: number | undefined; query?: string | undefined; }>; declare const validateSkillsDetailParams: ProtocolValidator<{ slug: string; }>; declare const validateCronListParams: ProtocolValidator<{ agentId?: string | undefined; limit?: number | undefined; offset?: number | undefined; enabled?: "all" | "enabled" | "disabled" | undefined; query?: string | undefined; includeDisabled?: boolean | undefined; sortBy?: "name" | "updatedAtMs" | "nextRunAtMs" | undefined; sortDir?: "asc" | "desc" | undefined; }>; declare const validateCronStatusParams: ProtocolValidator; declare const validateCronGetParams: ProtocolValidator<{ id: string; } | { jobId: string; }>; declare const validateCronAddParams: ProtocolValidator<{ sessionKey?: string | null | undefined; agentId?: string | null | undefined; enabled?: boolean | undefined; description?: string | undefined; deleteAfterRun?: boolean | undefined; delivery?: { channel?: string | undefined; accountId?: string | undefined; to?: string | undefined; threadId?: string | number | undefined; bestEffort?: boolean | undefined; failureDestination?: { mode?: "announce" | "webhook" | undefined; channel?: string | undefined; accountId?: string | undefined; to?: string | undefined; } | undefined; mode: "none"; } | { channel?: string | undefined; accountId?: string | undefined; to?: string | undefined; threadId?: string | number | undefined; bestEffort?: boolean | undefined; failureDestination?: { mode?: "announce" | "webhook" | undefined; channel?: string | undefined; accountId?: string | undefined; to?: string | undefined; } | undefined; mode: "announce"; } | { channel?: string | undefined; accountId?: string | undefined; threadId?: string | number | undefined; bestEffort?: boolean | undefined; failureDestination?: { mode?: "announce" | "webhook" | undefined; channel?: string | undefined; accountId?: string | undefined; to?: string | undefined; } | undefined; mode: "webhook"; to: string; } | undefined; failureAlert?: false | { mode?: "announce" | "webhook" | undefined; channel?: string | undefined; accountId?: string | undefined; to?: string | undefined; after?: number | undefined; cooldownMs?: number | undefined; includeSkipped?: boolean | undefined; } | undefined; payload: { text: string; kind: "systemEvent"; } | { model?: string | undefined; thinking?: string | undefined; fallbacks?: string[] | undefined; timeoutSeconds?: number | undefined; allowUnsafeExternalContent?: boolean | undefined; lightContext?: boolean | undefined; toolsAllow?: unknown; message: unknown; kind: "agentTurn"; }; name: string; schedule: { kind: "at"; at: string; } | { anchorMs?: number | undefined; kind: "every"; everyMs: number; } | { tz?: string | undefined; staggerMs?: number | undefined; kind: "cron"; expr: string; }; sessionTarget: string; wakeMode: "now" | "next-heartbeat"; }>; declare const validateCronUpdateParams: ProtocolValidator<{ id: string; } | { jobId: string; }>; declare const validateCronRemoveParams: ProtocolValidator<{ id: string; } | { jobId: string; }>; declare const validateCronRunParams: ProtocolValidator<{ id: string; } | { jobId: string; }>; declare const validateCronRunsParams: ProtocolValidator<{ id?: string | undefined; scope?: "all" | "job" | undefined; status?: "ok" | "error" | "all" | "skipped" | undefined; runId?: string | undefined; limit?: number | undefined; offset?: number | undefined; query?: string | undefined; sortDir?: "asc" | "desc" | undefined; jobId?: string | undefined; statuses?: ("ok" | "error" | "skipped")[] | undefined; deliveryStatuses?: ("unknown" | "delivered" | "not-delivered" | "not-requested")[] | undefined; deliveryStatus?: "unknown" | "delivered" | "not-delivered" | "not-requested" | undefined; }>; declare const validateDevicePairListParams: ProtocolValidator; declare const validateDevicePairApproveParams: ProtocolValidator<{ requestId: string; }>; declare const validateDevicePairRejectParams: ProtocolValidator<{ requestId: string; }>; declare const validateDevicePairRemoveParams: ProtocolValidator<{ deviceId: string; }>; declare const validateDeviceTokenRotateParams: ProtocolValidator<{ scopes?: string[] | undefined; role: string; deviceId: string; }>; declare const validateDeviceTokenRevokeParams: ProtocolValidator<{ role: string; deviceId: string; }>; declare const validateExecApprovalsGetParams: ProtocolValidator; declare const validateExecApprovalsSetParams: ProtocolValidator<{ baseHash?: string | undefined; file: { defaults?: { security?: string | undefined; ask?: string | undefined; askFallback?: string | undefined; autoAllowSkills?: boolean | undefined; } | undefined; agents?: Record | undefined; socket?: { token?: string | undefined; path?: string | undefined; } | undefined; version: 1; }; }>; declare const validateExecApprovalGetParams: ProtocolValidator<{ id: string; }>; declare const validateExecApprovalRequestParams: ProtocolValidator<{ id?: string | undefined; host?: string | null | undefined; sessionKey?: string | null | undefined; agentId?: string | null | undefined; timeoutMs?: number | undefined; nodeId?: string | null | undefined; command?: string | undefined; env?: Record | undefined; security?: string | null | undefined; ask?: string | null | undefined; commandArgv?: string[] | undefined; systemRunPlan?: { commandPreview?: string | null | undefined; mutableFileOperand?: { path: string; sha256: string; argvIndex: number; } | null | undefined; sessionKey: string | null; agentId: string | null; commandText: string; argv: string[]; cwd: string | null; } | undefined; cwd?: string | null | undefined; warningText?: string | null | undefined; commandSpans?: { startIndex: number; endIndex: number; }[] | undefined; resolvedPath?: string | null | undefined; turnSourceChannel?: string | null | undefined; turnSourceTo?: string | null | undefined; turnSourceAccountId?: string | null | undefined; turnSourceThreadId?: string | number | null | undefined; twoPhase?: boolean | undefined; }>; declare const validateExecApprovalResolveParams: ProtocolValidator<{ id: string; decision: string; }>; declare const validatePluginApprovalRequestParams: ProtocolValidator<{ sessionKey?: string | undefined; agentId?: string | undefined; timeoutMs?: number | undefined; pluginId?: string | undefined; toolName?: string | undefined; severity?: string | undefined; turnSourceChannel?: string | undefined; turnSourceTo?: string | undefined; turnSourceAccountId?: string | undefined; turnSourceThreadId?: string | number | undefined; twoPhase?: boolean | undefined; toolCallId?: string | undefined; allowedDecisions?: string[] | undefined; actions?: { decision?: string | undefined; label: string; kind: string; style: string; commandTemplate: string; }[] | undefined; keepPendingWithoutRoute?: boolean | undefined; title: string; description: string; }>; declare const validatePluginApprovalResolveParams: ProtocolValidator<{ id: string; decision: string; }>; declare const validatePluginsUiDescriptorsParams: ProtocolValidator; declare const validatePluginsSessionActionParams: ProtocolValidator<{ payload?: unknown; sessionKey?: string | undefined; pluginId: string; actionId: string; }>; declare const validatePluginsSessionActionResult: ProtocolValidator<{ result?: unknown; continueAgent?: boolean | undefined; reply?: unknown; ok: true; } | { code?: string | undefined; details?: unknown; ok: false; error: string; }>; declare const validateExecApprovalsNodeGetParams: ProtocolValidator<{ nodeId: string; }>; declare const validateExecApprovalsNodeSetParams: ProtocolValidator<{ baseHash?: string | undefined; file: { defaults?: { security?: string | undefined; ask?: string | undefined; askFallback?: string | undefined; autoAllowSkills?: boolean | undefined; } | undefined; agents?: Record | undefined; socket?: { token?: string | undefined; path?: string | undefined; } | undefined; version: 1; }; nodeId: string; }>; declare const validateLogsTailParams: ProtocolValidator<{ limit?: number | undefined; cursor?: number | undefined; maxBytes?: number | undefined; }>; declare const validateChatHistoryParams: ProtocolValidator; declare const validateChatSendParams: ProtocolValidator; declare const validateChatAbortParams: ProtocolValidator<{ runId?: string | undefined; sessionKey: string; }>; declare const validateChatInjectParams: ProtocolValidator<{ label?: string | undefined; message: string; sessionKey: string; }>; declare const validateChatEvent: ProtocolValidator; declare const validateUpdateStatusParams: ProtocolValidator; declare const validateUpdateRunParams: ProtocolValidator<{ sessionKey?: string | undefined; timeoutMs?: number | undefined; deliveryContext?: { channel?: string | undefined; accountId?: string | undefined; to?: string | undefined; threadId?: string | number | undefined; } | undefined; note?: string | undefined; restartDelayMs?: number | undefined; continuationMessage?: string | undefined; }>; declare const validateWebLoginStartParams: ProtocolValidator<{ accountId?: string | undefined; timeoutMs?: number | undefined; force?: boolean | undefined; verbose?: boolean | undefined; }>; declare const validateWebLoginWaitParams: ProtocolValidator<{ accountId?: string | undefined; timeoutMs?: number | undefined; currentQrDataUrl?: string | undefined; }>; declare function formatValidationErrors(errors: ValidationError[] | null | undefined): string; //#endregion export { validateExecApprovalRequestParams as $, AgentsFilesGetParamsSchema as $a, ConfigGetParamsSchema as $i, validateWebPushVapidPublicKeyParams as $n, OperatorScope as $o, NodeEventResultSchema as $r, validateSessionsResetParams as $t, validateConfigSchemaLookupParams as A, TalkSessionCreateParamsSchema as Aa, ExecApprovalGetParamsSchema as Ai, validateTalkSessionJoinParams as An, WakeParamsSchema as Ao, SessionsCompactionListParamsSchema as Ar, validatePollParams as At, validateCronRunsParams as B, TalkSpeakResultSchema as Ba, EnvironmentsStatusResultSchema as Bi, validateTasksGetParams as Bn, PluginSessionActionRegistration as Bo, SessionsResolveParamsSchema as Br, validateSessionsCompactionBranchParams as Bt, validateChatHistoryParams as C, TalkConfigParamsSchema as Ca, EventFrameSchema as Ci, validateTalkModeParams as Cn, AgentEventSchema as Co, SnapshotSchema as Cr, validateNodePresenceAlivePayload as Ct, validateConfigApplyParams as D, TalkSessionCancelOutputParamsSchema as Da, ResponseFrameSchema as Di, validateTalkSessionCloseParams as Dn, MessageActionParamsSchema as Do, SessionsCompactParamsSchema as Dr, validatePluginsSessionActionParams as Dt, validateCommandsListParams as E, TalkSessionAppendAudioParamsSchema as Ea, RequestFrameSchema as Ei, validateTalkSessionCancelTurnParams as En, AgentParamsSchema as Eo, SessionsCleanupParamsSchema as Er, validatePluginApprovalResolveParams as Et, validateCronAddParams as F, TalkSessionSteerParamsSchema as Fa, EnvironmentStatusSchema as Fi, validateTalkSessionTurnParams as Fn, PluginControlUiDescriptor as Fo, SessionsListParamsSchema as Fr, validateSecretsResolveResult as Ft, validateDevicePairRejectParams as G, ArtifactsGetParamsSchema as Ga, CronJobSchema as Gi, validateUpdateRunParams as Gn, PluginSessionExtensionRegistration as Go, WebPushSubscribeParams as Gr, validateSessionsDeleteParams as Gt, validateCronUpdateParams as H, WebLoginWaitParamsSchema as Ha, errorShape as Hi, validateToolsCatalogParams as Hn, PluginSessionAttachmentParams as Ho, SessionsUsageParamsSchema as Hr, validateSessionsCompactionListParams as Ht, validateCronGetParams as I, TalkSessionSubmitToolResultParamsSchema as Ia, EnvironmentSummarySchema as Ii, validateTalkSessionTurnResult as In, PluginRunContextGetParams as Io, SessionsPatchParamsSchema as Ir, validateSendParams as It, validateDeviceTokenRotateParams as J, AgentsCreateParamsSchema as Ja, CronRunParamsSchema as Ji, validateWebLoginStartParams as Jn, PluginSessionTurnScheduleParams as Jo, WebPushTestParamsSchema as Jr, validateSessionsMessagesSubscribeParams as Jt, validateDevicePairRemoveParams as K, ArtifactsListParamsSchema as Ka, CronListParamsSchema as Ki, validateUpdateStatusParams as Kn, PluginSessionSchedulerJobHandle as Ko, WebPushSubscribeParamsSchema as Kr, validateSessionsDescribeParams as Kt, validateCronListParams as L, TalkSessionTurnParamsSchema as La, EnvironmentsListParamsSchema as Li, validateTalkSpeakParams as Ln, PluginRunContextPatch as Lo, SessionsPluginPatchParamsSchema as Lr, validateSessionsAbortParams as Lt, validateConfigSchemaParams as M, TalkSessionJoinParamsSchema as Ma, ExecApprovalResolveParamsSchema as Mi, validateTalkSessionOkResult as Mn, PluginAgentEventEmitParams as Mo, SessionsCreateParamsSchema as Mr, validateRequestFrame as Mt, validateConfigSetParams as N, TalkSessionJoinResultSchema as Na, ExecApprovalsGetParamsSchema as Ni, validateTalkSessionSteerParams as Nn, PluginAgentEventEmitResult as No, SessionsDeleteParamsSchema as Nr, validateResponseFrame as Nt, validateConfigGetParams as O, TalkSessionCancelTurnParamsSchema as Oa, ShutdownEventSchema as Oi, validateTalkSessionCreateParams as On, PollParamsSchema as Oo, SessionsCompactionBranchParamsSchema as Or, validatePluginsSessionActionResult as Ot, validateConnectParams as P, TalkSessionOkResultSchema as Pa, ExecApprovalsSetParamsSchema as Pi, validateTalkSessionSubmitToolResultParams as Pn, PluginAgentEventSubscriptionRegistration as Po, SessionsDescribeParamsSchema as Pr, validateSecretsResolveParams as Pt, validateExecApprovalGetParams as Q, AgentsFileEntrySchema as Qa, ConfigApplyParamsSchema as Qi, validateWebPushUnsubscribeParams as Qn, PluginTrustedToolPolicyRegistration as Qo, WebPushVapidPublicKeyParamsSchema as Qr, validateSessionsPreviewParams as Qt, validateCronRemoveParams as R, TalkSessionTurnResultSchema as Ra, EnvironmentsListResultSchema as Ri, validateTalkSpeakResult as Rn, PluginRuntimeLifecycleRegistration as Ro, SessionsPreviewParamsSchema as Rr, validateSessionsCleanupParams as Rt, validateChatEvent as S, TalkClientToolCallResultSchema as Sa, ErrorShapeSchema as Si, validateTalkEvent as Sn, ToolsInvokeParamsSchema as So, PresenceEntrySchema as Sr, validateNodePendingEnqueueParams as St, validateChatSendParams as T, TalkEventSchema as Ta, HelloOkSchema as Ti, validateTalkSessionCancelOutputParams as Tn, AgentIdentityResultSchema as To, SessionsAbortParamsSchema as Tr, validatePluginApprovalRequestParams as Tt, validateDevicePairApproveParams as U, ArtifactSummarySchema as Ua, CronAddParamsSchema as Ui, validateToolsEffectiveParams as Un, PluginSessionAttachmentResult as Uo, PushTestParamsSchema as Ur, validateSessionsCompactionRestoreParams as Ut, validateCronStatusParams as V, WebLoginStartParamsSchema as Va, ErrorCodes as Vi, validateTasksListParams as Vn, PluginSessionActionResult as Vo, SessionsSendParamsSchema as Vr, validateSessionsCompactionGetParams as Vt, validateDevicePairListParams as W, ArtifactsDownloadParamsSchema as Wa, CronGetParamsSchema as Wi, validateToolsInvokeParams as Wn, PluginSessionExtensionProjection as Wo, PushTestResultSchema as Wr, validateSessionsCreateParams as Wt, validateEnvironmentsStatusParams as X, AgentsDeleteParamsSchema as Xa, CronStatusParamsSchema as Xi, validateWebPushSubscribeParams as Xn, PluginSessionTurnUnscheduleByTagResult as Xo, WebPushUnsubscribeParamsSchema as Xr, validateSessionsPatchParams as Xt, validateEnvironmentsListParams as Y, AgentsCreateResultSchema as Ya, CronRunsParamsSchema as Yi, validateWebLoginWaitParams as Yn, PluginSessionTurnUnscheduleByTagParams as Yo, WebPushUnsubscribeParams as Yr, validateSessionsMessagesUnsubscribeParams as Yt, validateEventFrame as Z, AgentsDeleteResultSchema as Za, CronUpdateParamsSchema as Zi, validateWebPushTestParams as Zn, PluginToolMetadataRegistration as Zo, WebPushVapidPublicKeyParams as Zr, validateSessionsPluginPatchParams as Zt, validateChannelsLogoutParams as _, TalkCatalogResultSchema as _a, ChatInjectParamsSchema as _i, validateTalkClientSteerParams as _n, SkillsUploadBeginParamsSchema as _o, TasksCancelResultSchema as _r, validateNodePairRemoveParams as _t, validateAgentParams as a, ConfigSetParamsSchema as aa, NodePairRemoveParamsSchema as ai, validateSkillsInstallParams as an, AgentsListParamsSchema as ao, WizardNextParamsSchema as ar, validateLogsTailParams as at, validateChannelsStopParams as b, TalkClientSteerParamsSchema as ba, LogsTailResultSchema as bi, validateTalkConfigParams as bn, ToolsCatalogParamsSchema as bo, TasksListParamsSchema as br, validateNodePendingAckParams as bt, validateAgentsDeleteParams as c, CommandsListParamsSchema as ca, NodePendingAckParamsSchema as ci, validateSkillsUpdateParams as cn, AgentsUpdateResultSchema as co, WizardStartResultSchema as cr, validateNodeDescribeParams as ct, validateAgentsFilesSetParams as d, ChannelsStartParamsSchema as da, NodePendingEnqueueParamsSchema as di, validateSkillsUploadCommitParams as dn, SkillsDetailResultSchema as do, WizardStepSchema as dr, validateNodeInvokeParams as dt, ConfigPatchParamsSchema as ea, NodeInvokeParamsSchema as ei, validateSessionsResolveParams as en, AgentsFilesGetResultSchema as eo, validateWizardCancelParams as er, validateExecApprovalResolveParams as et, validateAgentsListParams as f, ChannelsStatusParamsSchema as fa, NodePendingEnqueueResultSchema as fi, validateTalkAgentControlResult as fn, SkillsInstallParamsSchema as fo, PluginsSessionActionParamsSchema as fr, validateNodeInvokeResultParams as ft, validateArtifactsListParams as g, TalkCatalogParamsSchema as ga, ChatHistoryParamsSchema as gi, validateTalkClientCreateResult as gn, SkillsUpdateParamsSchema as go, TasksCancelParamsSchema as gr, validateNodePairRejectParams as gt, validateArtifactsGetParams as h, TalkAgentControlResultSchema as ha, ChatEventSchema as hi, validateTalkClientCreateParams as hn, SkillsStatusParamsSchema as ho, TaskSummarySchema as hr, validateNodePairListParams as ht, validateAgentIdentityParams as i, ConfigSchemaResponseSchema as ia, NodePairRejectParamsSchema as ii, validateSkillsDetailParams as in, AgentsFilesSetResultSchema as io, WizardCancelParamsSchema as ir, validateExecApprovalsSetParams as it, validateConfigSchemaLookupResult as j, TalkSessionCreateResultSchema as ja, ExecApprovalRequestParamsSchema as ji, validateTalkSessionJoinResult as jn, SessionsPatchResult as jo, SessionsCompactionRestoreParamsSchema as jr, validatePushTestParams as jt, validateConfigPatchParams as k, TalkSessionCloseParamsSchema as ka, TickEventSchema as ki, validateTalkSessionCreateResult as kn, SendParamsSchema as ko, SessionsCompactionGetParamsSchema as kr, validatePluginsUiDescriptorsParams as kt, validateAgentsFilesGetParams as l, CommandsListResultSchema as la, NodePendingDrainParamsSchema as li, validateSkillsUploadBeginParams as ln, ModelsListParamsSchema as lo, WizardStatusParamsSchema as lr, validateNodeEventParams as lt, validateArtifactsDownloadParams as m, ChannelsStopParamsSchema as ma, NodePresenceAliveReasonSchema as mi, validateTalkCatalogResult as mn, SkillsSearchResultSchema as mo, PluginsUiDescriptorsParamsSchema as mr, validateNodePairApproveParams as mt, ValidationError as n, ConfigSchemaLookupResultSchema as na, NodePairApproveParamsSchema as ni, validateSessionsUsageParams as nn, AgentsFilesListResultSchema as no, validateWizardStartParams as nr, validateExecApprovalsNodeGetParams as nt, validateAgentWaitParams as o, UpdateRunParamsSchema as oa, NodePairRequestParamsSchema as oi, validateSkillsSearchParams as on, AgentsListResultSchema as oo, WizardNextResultSchema as or, validateMessageActionParams as ot, validateAgentsUpdateParams as p, ChannelsStatusResultSchema as pa, NodePresenceAlivePayloadSchema as pi, validateTalkCatalogParams as pn, SkillsSearchParamsSchema as po, PluginsSessionActionResultSchema as pr, validateNodeListParams as pt, validateDeviceTokenRevokeParams as q, AgentSummarySchema as qa, CronRemoveParamsSchema as qi, validateWakeParams as qn, PluginSessionSchedulerJobRegistration as qo, WebPushTestParams as qr, validateSessionsListParams as qt, formatValidationErrors as r, ConfigSchemaParamsSchema as ra, NodePairListParamsSchema as ri, validateSkillsBinsParams as rn, AgentsFilesSetParamsSchema as ro, validateWizardStatusParams as rr, validateExecApprovalsNodeSetParams as rt, validateAgentsCreateParams as s, UpdateStatusParamsSchema as sa, NodePairVerifyParamsSchema as si, validateSkillsStatusParams as sn, AgentsUpdateParamsSchema as so, WizardStartParamsSchema as sr, validateModelsListParams as st, ProtocolValidator as t, ConfigSchemaLookupParamsSchema as ta, NodeListParamsSchema as ti, validateSessionsSendParams as tn, AgentsFilesListParamsSchema as to, validateWizardNextParams as tr, validateExecApprovalsGetParams as tt, validateAgentsFilesListParams as u, ChannelsLogoutParamsSchema as ua, NodePendingDrainResultSchema as ui, validateSkillsUploadChunkParams as un, SkillsDetailParamsSchema as uo, WizardStatusResultSchema as ur, validateNodeEventResult as ut, validateChannelsStartParams as v, TalkClientCreateParamsSchema as va, ChatSendParamsSchema as vi, validateTalkClientToolCallParams as vn, SkillsUploadChunkParamsSchema as vo, TasksGetParamsSchema as vr, validateNodePairRequestParams as vt, validateChatInjectParams as w, TalkConfigResultSchema as wa, GatewayFrameSchema as wi, validateTalkSessionAppendAudioParams as wn, AgentIdentityParamsSchema as wo, StateVersionSchema as wr, validateNodeRenameParams as wt, validateChatAbortParams as x, TalkClientToolCallParamsSchema as xa, ConnectParamsSchema as xi, validateTalkConfigResult as xn, ToolsEffectiveParamsSchema as xo, TasksListResultSchema as xr, validateNodePendingDrainParams as xt, validateChannelsStatusParams as y, TalkClientCreateResultSchema as ya, LogsTailParamsSchema as yi, validateTalkClientToolCallResult as yn, SkillsUploadCommitParamsSchema as yo, TasksGetResultSchema as yr, validateNodePairVerifyParams as yt, validateCronRunParams as z, TalkSpeakParamsSchema as za, EnvironmentsStatusParamsSchema as zi, validateTasksCancelParams as zn, PluginSessionActionContext as zo, SessionsResetParamsSchema as zr, validateSessionsCompactParams as zt };