@openclaw/gateway-protocol 0.0.0 → 2026.7.2-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3369 @@
1
+ import { _ as ShutdownEventSchema, a as EventFrame, c as GatewayFrame, d as HelloOkSchema, f as RequestFrame, g as ShutdownEvent, h as ResponseFrameSchema, i as ErrorShapeSchema, l as GatewayFrameSchema, m as ResponseFrame, n as ConnectParamsSchema, o as EventFrameSchema, p as RequestFrameSchema, r as ErrorShape, s as GATEWAY_SERVER_CAPS, t as ConnectParams, u as HelloOk, v as TickEvent, y as TickEventSchema } from "./frames-DEn_IEne.mjs";
2
+ import { a as McpAppViewExpiredErrorDetails, c as WizardNotFoundErrorDetails, d as readMissingScopeErrorDetails, i as GatewayErrorDetails, l as isMcpAppViewExpiredError, n as ErrorCodes, o as MissingScopeErrorDetails, r as GatewayErrorDetailCodes, u as readMissingScopeError } from "./gateway-error-details-CsX7mtLy.mjs";
3
+ import { $ as WorkerHeartbeatResponseFrameSchema, $C as WorkerInferenceStartResponseFrameSchema, $S as BoardWidgetResizeOpSchema, $b as SessionCatalogSession, $c as WebPushUnsubscribeParams, $d as EnvironmentsListParams, $f as SystemAgentChatHistoryTurn, $h as WebLoginWaitParams, $i as SessionDiffFile, $l as NodeSkillsUpdateParams, $m as TalkClientMutationResult, $n as TerminalCloseParamsSchema, $o as SessionsObserverAskResultSchema, $r as TaskSuggestionsCreateResultSchema, $s as SessionsReclaimResult, $t as PluginCatalogEntry, $u as FsListDirParams, $v as SkillsProposalsListParams, $w as PluginApprovalSeveritySchema, $x as BoardFocusTabCommandSchema, $y as AgentIdentityParamsSchema, A as WORKER_PROTOCOL_MAX_FEATURES, AC as WORKER_INFERENCE_MAX_OUTPUT_TOKENS, AS as BoardWidgetContent, A_ as AgentsFilesGetParams, Aa as SessionsBranchesListResultSchema, Ab as WakeParams, Ac as QuestionRequestedEvent, Ad as ExecApprovalsGetParamsSchema, Af as CronAddResultSchema, Ag as AuditActivityAgentRunV1, Ah as TalkSessionJoinParamsSchema, Ai as SessionMembersListParamsSchema, Al as NodePendingAckParamsSchema, Am as ChannelsPairingRequest, An as PluginsSetEnabledParams, Ao as SessionsForkResult, Ap as SystemChangesListParamsSchema, Ar as TasksCancelResult, As as SessionsCreateParamsSchema, At as WorkerTranscriptMessageSchema, Au as LogsTailResultSchema, Av as SkillsDetailResultSchema, Aw as ApprovalPresentationSchema, Ax as SessionCreatedActorSchema, B as WorkerAdmissionHandshake, BC as WorkerInferenceContext, BS as BoardWidgetMcpAppContentSchema, B_ as AgentsFilesSetResult, Ba as SessionsCompactionBranchParamsSchema, Bc as QuestionStatusSchema, Bf as CronRunParamsSchema, Bg as AuditActivityOutboundMessageV1, Bh as TalkSessionTurnParamsSchema, Bi as SessionVisibilitySetParamsSchema, Bl as NodePluginToolDescriptorSchema, Bm as ChannelsStopParamsSchema, Bn as PluginsUninstallResult, Bo as SessionsGroupsPutParams, Bp as ConfigSchemaLookupParamsSchema, Br as TaskSuggestion, Bs as SessionDiscussionOpenResultSchema, Bt as WizardNextResult, Bu as GatewaySuspendResumeParamsSchema, Bv as SkillsProposalInspectParamsSchema, Bw as CancelledApprovalSnapshotSchema, Bx as BoardCanvasDocumentSourceSchema, C as WorktreesRemoveResult, CC as SkillsProposalHistoryScanResult, CS as BoardUpdateParamsSchema, C_ as AgentsCreateResultSchema, Ca as SessionWorktreeInfo, Cb as ConversationTurnResult, Cc as QuestionRecordSchema, Cd as ExecApprovalGetParams, Cf as CronScratchGetParams, Cg as UsersSetDisplayNameResultSchema, Ch as TalkSessionCloseParams, Ci as SessionMemberAddParamsSchema, Cl as NodePairListParams, Cm as ChannelsPairingDismissParamsSchema, Cn as PluginsSearchResultSchema, Co as SessionsFilesRevealResultSchema, Cp as SystemChangeEntry, Cr as TerminalUploadParamsSchema, Cs as SessionsSearchParamsSchema, Ct as WorkerTranscriptCommitRequestFrame, Cu as ChatToolTitlesParams, Cv as SkillsCuratorStatusParams, Cw as ApprovalHistoryParams, Cx as MemoryMigrationProviderPlan, Cy as SkillsUploadCommitParams, D as WORKER_HEARTBEAT_INTERVAL_MS, DC as validateSkillsProposalHistoryScanParams, DS as BoardWidgetAppViewParamsSchema, D_ as AgentsDeleteResultSchema, Da as SessionsBranchesListParams, Db as PollParams, Dc as QuestionRequestQuestionSchema, Dd as ExecApprovalResolveParams, Df as CronStatusParams, Dg as AuditListParamsSchema, Dh as TalkSessionCreateResult, Di as SessionMemberRemoveParamsSchema, Dl as NodePairRemoveParams, Dm as ChannelsPairingListParamsSchema, Dn as PluginsSessionActionResult, Do as SessionsFilesSetResultSchema, Dp as SystemChangeSource, Dr as TaskSummarySchema, Ds as SessionsSendParamsSchema, Dt as WorkerTranscriptCommitResult, Du as LogsTailParams, Dv as SkillsDetailParams, Dw as ApprovalKind, Dx as MigrationsMemoryPlanParamsSchema, E as WorktreesRestoreParamsSchema, EC as SkillsProposalHistoryStatusParamsSchema, ES as BoardWidgetAppViewParams, E_ as AgentsDeleteResult, Ea as SessionsAbortParamsSchema, Eb as MessageActionParamsSchema, Ec as QuestionRequestQuestion, Ed as ExecApprovalRequestParamsSchema, Ef as CronScratchSetResult, Eg as AuditListParams, Eh as TalkSessionCreateParamsSchema, Ei as SessionMemberRemoveParams, El as NodePairRejectParamsSchema, Em as ChannelsPairingListParams, En as PluginsSessionActionParamsSchema, Eo as SessionsFilesSetResult, Ep as SystemChangeKindSchema, Er as TaskSummary, Et as WorkerTranscriptCommitResponseFrameSchema, Eu as ChatToolTitlesResultSchema, Ev as SkillsCuratorStatusResultSchema, Ew as ApprovalHistoryResultSchema, Ex as MigrationsMemoryApplyResult, F as WORKER_TRANSCRIPT_COMMIT_PROTOCOL_FEATURE, FC as WorkerInferenceCancelRequestFrame, FS as BoardWidgetGrantParamsSchema, F_ as AgentsFilesListParamsSchema, Fa as SessionsCleanupParams, Fc as QuestionResolveResultSchema, Fd as ExecApprovalsNodeSnapshot, Fg as AuditActivityInboundMessageV1Schema, Fh as TalkSessionSteerParams, Fi as SessionSharingEvent, Fl as NodePendingEnqueueParams, Fm as ChannelsStatusParams, Fn as PluginsUiDescriptorsParamsSchema, Fo as SessionsGroupsListParamsSchema, Fp as ConfigGetParams, Fr as TasksGetResultSchema, Fs as SessionDiscussionInfoResultSchema, Ft as WorkerProtocolCloseReasonSchema, Fu as GatewaySuspendPrepareParamsSchema, Fv as SkillsProposalApplyResult, Fw as ApprovalSnapshot, Fx as BOARD_DATA_BINDING_ID_MAX_LENGTH, G as WorkerConnectRequestFrame, GC as WorkerInferenceModelRef, GS as BoardWidgetPluginKindSchema, G_ as AgentsListResultSchema, Gb as SessionCatalogDescriptorSchema, Gd as EnvironmentsCreateParams, Gf as CronScratchSetParamsSchema, Gg as ArtifactSummarySchema, Gh as TalkSpeakResult, Gi as SessionSharingRoleSchema, Gl as NodePresenceAlivePayload, Gm as TalkCatalogResult, Go as SessionsListParamsSchema, Gp as ConfigSchemaResponse, Gr as TaskSuggestionSchema, Gs as SessionPlacementSchema, Gt as WizardStartResultSchema, Gu as GatewaySuspendStatusReadyResultSchema, Gv as SkillsProposalRequestRevisionParams, Gw as ExpiredApprovalSnapshot, Gx as BoardCommandEvent, H as WorkerAdmissionResponseFrame, HC as WorkerInferenceErrorShape, HS as BoardWidgetMoveOpSchema, H_ as AgentsListParams, Hb as SessionCatalogCapabilities, Hc as QuestionWaitAnswerParamsSchema, Hd as EnvironmentStatusSchema, Hf as CronScratchGetParamsSchema, Hg as AuditActivityToolActionV1, Hh as TalkSessionTurnResultSchema, Hi as SessionVisibilitySetResultSchema, Hl as NodePluginToolsUpdateParamsSchema, Hm as TalkAgentControlResultSchema, Ho as SessionsGroupsRenameParams, Hp as ConfigSchemaLookupResultSchema, Hr as TaskSuggestionEventSchema, Hs as SessionDiscussionStateSchema, Ht as WizardStartParams, Hu as GatewaySuspendResumeResultSchema, Hv as SkillsProposalInspectResultSchema, Hw as DeniedApprovalSnapshotSchema, Hx as BoardChangedEventSchema, Hy as ToolsEffectiveParamsSchema, I as WORKER_TRANSCRIPT_MAX_BATCH_MESSAGES, IC as WorkerInferenceCancelRequestFrameSchema, IS as BoardWidgetHeightModeSchema, I_ as AgentsFilesListResult, Ia as SessionsCleanupParamsSchema, Ic as QuestionResolvedEvent, If as CronListParamsSchema, Ig as AuditActivityListParams, Ih as TalkSessionSteerParamsSchema, Ii as SessionSharingEventSchema, Il as NodePendingEnqueueParamsSchema, Im as ChannelsStatusParamsSchema, Io as SessionsGroupsListResult, Ip as ConfigGetParamsSchema, Ir as TasksListParams, Is as SessionDiscussionInfoSchema, It as WizardCancelParams, Iu as GatewaySuspendPrepareReadyResultSchema, Iv as SkillsProposalApplyResultSchema, Iw as ApprovalSnapshotSchema, Ix as BOARD_WIDGET_TOOL_MAX_LENGTH, J as WorkerHeartbeatParams, JC as WorkerInferenceOptionsSchema, JS as BoardWidgetPutContent, J_ as AgentsUpdateResult, Ja as SessionsCompactionListParamsSchema, Jb as SessionCatalogLocator, Jc as PushTestResultSchema, Jd as EnvironmentsCreateResultSchema, Jf as CronUpdateParamsSchema, Jg as ArtifactsDownloadResult, Jh as TtsSpeakParamsSchema, Ji as SESSION_OBSERVER_HEALTH_VALUES, Jl as NodePresenceAliveReasonSchema, Jm as TalkClientCloseParamsSchema, Jn as TerminalAttachParams, Jp as ConfigSetParamsSchema, Jr as TaskSuggestionsAcceptResult, Js as SessionsDispatchParamsSchema, Jt as WizardStatusResult, Ju as GatewaySuspendStatusRunningResultSchema, Jv as SkillsProposalRequestRevisionResultSchema, Jw as PendingApprovalSnapshotSchema, Jx as BoardCronActionParamsSchema, Jy as ToolsInvokeResult, K as WorkerConnectRequestFrameSchema, KC as WorkerInferenceModelRefSchema, KS as BoardWidgetPluginPropsSchema, K_ as AgentsUpdateParams, Kb as SessionCatalogHost, Kc as PushTestParamsSchema, Kd as EnvironmentsCreateParamsSchema, Kf as CronScratchSetResultSchema, Kg as ArtifactsDownloadParams, Kh as TalkSpeakResultSchema, Ki as SessionVisibility, Kl as NodePresenceAlivePayloadSchema, Km as TalkCatalogResultSchema, Kn as TerminalAckResult, Kp as ConfigSchemaResponseSchema, Kr as TaskSuggestionsAcceptParams, Ks as SessionPlacementStateSchema, Kt as WizardStatusParams, Ku as GatewaySuspendStatusResult, Kv as SkillsProposalRequestRevisionParamsSchema, Kw as ExpiredApprovalSnapshotSchema, Kx as BoardCommandEventSchema, Ky as ToolsInvokeParams, L as WORKER_TRANSCRIPT_MAX_CONTENT_PARTS, LC as WorkerInferenceCancelResponseFrame, LS as BoardWidgetHtmlContentSchema, L_ as AgentsFilesListResultSchema, La as SessionsCompactParams, Lc as QuestionResolvedEventSchema, Ld as ExecApprovalsSetParams, Lg as AuditActivityListParamsSchema, Lh as TalkSessionSubmitToolResultParams, Li as SessionSharingIdentity, Ll as NodePendingEnqueueResult, Lm as ChannelsStatusResult, Ln as PluginsUiDescriptorsResultSchema, Lo as SessionsGroupsListResultSchema, Lp as ConfigPatchParams, Lr as TasksListParamsSchema, Ls as SessionDiscussionOpenParams, Lt as WizardCancelParamsSchema, Lu as GatewaySuspendPrepareResult, Lv as SkillsProposalCreateParams, Lw as ApprovalTerminalReason, Lx as BoardActionParams, M as WORKER_PROTOCOL_MAX_METHOD_LENGTH, MC as WORKER_INFERENCE_PROTOCOL_FEATURE, MS as BoardWidgetDeclared, M_ as AgentsFilesGetResult, Ma as SessionsBranchesSwitchParamsSchema, Mc as QuestionResolveParams, Mg as AuditActivityEventV1, Mh as TalkSessionJoinResultSchema, Mi as SessionMembersListResultSchema, Ml as NodePendingDrainParamsSchema, Mm as ChannelsLogoutParamsSchema, Mn as PluginsSetEnabledResult, Mo as SessionsGroupsDeleteParams, Mp as SystemChangesListResultSchema, Mr as TasksGetParams, Ms as SessionDiscussionInfoParams, Mt as WORKER_PROTOCOL_MAX_IDENTIFIER_LENGTH, Mu as GatewaySuspendBlockerSchema, Mv as SkillsInstallParamsSchema, Mw as ApprovalResolveParamsSchema, Mx as SessionRowSchema, My as ToolsCatalogParamsSchema, N as WORKER_PROTOCOL_METHODS, NC as WORKER_PROTOCOL_MAX_INFERENCE_PAYLOAD_BYTES, NS as BoardWidgetDeclaredSchema, N_ as AgentsFilesGetResultSchema, Na as SessionsBranchesSwitchResult, Nc as QuestionResolveParamsSchema, Nf as CronGetParamsSchema, Ng as AuditActivityEventV1Schema, Nh as TalkSessionOkResult, Ni as SessionSharingAction, Nl as NodePendingDrainResult, Nm as ChannelsStartParams, Nn as PluginsSetEnabledResultSchema, No as SessionsGroupsDeleteParamsSchema, Np as ConfigApplyParams, Nr as TasksGetParamsSchema, Ns as SessionDiscussionInfoParamsSchema, Nt as WORKER_PROTOCOL_MAX_PAYLOAD_BYTES, Nu as GatewaySuspendPrepareBusyResultSchema, Nv as SkillsProposalActionParams, Nw as ApprovalResolveResult, Nx as BOARD_CRON_JOB_ID_MAX_LENGTH, Ny as ToolsCatalogResult, O as WORKER_LIVE_EVENT_PROTOCOL_FEATURE, OC as validateSkillsProposalHistoryStatusParams, OS as BoardWidgetAppViewResult, O_ as AgentsFileEntry, Oa as SessionsBranchesListParamsSchema, Ob as PollParamsSchema, Oc as QuestionRequestResult, Od as ExecApprovalResolveParamsSchema, Of as CronUpdateParams, Og as AuditListResult, Oh as TalkSessionCreateResultSchema, Oi as SessionMemberSchema, Ol as NodePairRemoveParamsSchema, Om as ChannelsPairingListResult, On as PluginsSessionActionResultSchema, Oo as SessionsForkParams, Op as SystemChangeSourceSchema, Or as TasksCancelParams, Os as SessionsUsageParams, Ot as WorkerTranscriptCommitResultSchema, Ou as LogsTailParamsSchema, Ov as SkillsDetailParamsSchema, Ow as ApprovalKindSchema, Ox as MigrationsMemoryPlanResult, P as WORKER_RPC_SET_VERSION, PC as WorkerInferenceCancelParams, PS as BoardWidgetGrantParams, P_ as AgentsFilesListParams, Pa as SessionsBranchesSwitchResultSchema, Pc as QuestionResolveResult, Pf as CronJobSchema, Pg as AuditActivityInboundMessageV1, Ph as TalkSessionOkResultSchema, Pi as SessionSharingActionSchema, Pl as NodePendingDrainResultSchema, Pm as ChannelsStartParamsSchema, Po as SessionsGroupsListParams, Pp as ConfigApplyParamsSchema, Pr as TasksGetResult, Ps as SessionDiscussionInfoResult, Pt as WorkerAdmissionFailureReasonSchema, Pu as GatewaySuspendPrepareParams, Pv as SkillsProposalActionParamsSchema, Pw as ApprovalResolveResultSchema, Px as BOARD_CRON_TRIGGER_PREFIX, Q as WorkerHeartbeatResponseFrame, QC as WorkerInferenceStartResponseFrame, QS as BoardWidgetRemoveOpSchema, Qa as SessionsCompactionRestoreParamsSchema, Qb as SessionCatalogSchema, Qc as WebPushTestParamsSchema, Qd as EnvironmentsDestroyResultSchema, Qf as SystemAgentChatHistoryResultSchema, Qg as ArtifactsGetResult, Qh as WebLoginStartParamsSchema, Ql as NodeSkillDescriptorSchema, Qm as TalkClientCreateResultSchema, Qn as TerminalCloseParams, Qo as SessionsObserverAskResult, Qp as UpdateStatusParamsSchema, Qr as TaskSuggestionsCreateResult, Qs as SessionsReclaimParamsSchema, Qu as FsDirEntrySchema, Qv as SkillsProposalUpdateParamsSchema, Qw as PluginApprovalSeverity, Qx as BoardEventParamsSchema, Qy as AgentIdentityParams, R as WORKER_TRANSCRIPT_MAX_JSON_DEPTH, RC as WorkerInferenceCancelResponseFrameSchema, RS as BoardWidgetMaterializedContent, R_ as AgentsFilesSetParams, Ra as SessionsCompactParamsSchema, Rc as QuestionSchema, Rd as ExecApprovalsSetParamsSchema, Rf as CronRemoveParamsSchema, Rg as AuditActivityListResult, Rh as TalkSessionSubmitToolResultParamsSchema, Ri as SessionSharingIdentitySchema, Rl as NodePendingEnqueueResultSchema, Rm as ChannelsStatusResultSchema, Rn as PluginsUninstallParams, Ro as SessionsGroupsMutationResult, Rp as ConfigPatchParamsSchema, Rr as TasksListResult, Rs as SessionDiscussionOpenParamsSchema, Rt as WizardNextParams, Ru as GatewaySuspendPrepareResultSchema, Rv as SkillsProposalCreateParamsSchema, Rw as ApprovalTerminalReasonSchema, Rx as BoardActionParamsSchema, S as WorktreesRemoveParamsSchema, SC as SkillsProposalHistoryScanParamsSchema, SS as BoardUpdateParams, S_ as AgentsCreateResult, Sb as ConversationTurnReplySchema, Sc as QuestionRecord, Sf as CronRunsParams, Sg as UsersSetDisplayNameResult, Sh as TalkSessionCancelTurnParamsSchema, Si as SessionMemberAddParams, Sl as NodePairApproveParamsSchema, Sm as ChannelsPairingDismissParams, Sn as PluginsSearchResult, So as SessionsFilesRevealResult, Sp as SystemAgentSetupVerifyResultSchema, Sr as TerminalUploadParams, Ss as SessionsSearchParams, St as WorkerTranscriptCommitParamsSchema, Su as ChatStatusEventSchema, Sv as SkillsCuratorActionResultSchema, Sw as ApprovalGetResultSchema, Sx as MemoryMigrationItem, Sy as SkillsUploadChunkParamsSchema, T as WorktreesRestoreParams, TC as SkillsProposalHistoryStatusParams, TS as BoardWidget, T_ as AgentsDeleteParamsSchema, Tc as QuestionRequestParamsSchema, Td as ExecApprovalRequestParams, Tf as CronScratchSetParams, Tg as AuditEventSchema, Th as TalkSessionCreateParams, Ti as SessionMemberMutationResultSchema, Tl as NodePairRejectParams, Tm as ChannelsPairingDismissResultSchema, Tn as PluginsSessionActionParams, To as SessionsFilesSetParamsSchema, Tp as SystemChangeKind, Tr as TerminalUploadResultSchema, Ts as SessionsSearchResultSchema, Tt as WorkerTranscriptCommitResponseFrame, Tu as ChatToolTitlesResult, Tv as SkillsCuratorStatusResult, Tw as ApprovalHistoryResult, Tx as MigrationsMemoryApplyParamsSchema, U as WorkerAdmissionResponseFrameSchema, UC as WorkerInferenceEventFrame, US as BoardWidgetNameSchema, U_ as AgentsListParamsSchema, Ub as SessionCatalogCapabilitiesSchema, Uc as QuestionWaitAnswerResult, Ud as EnvironmentSummary, Uf as CronScratchGetResultSchema, Ug as AuditActivityToolActionV1Schema, Uh as TalkSpeakParams, Ul as NodePresenceActivityPayload, Um as TalkCatalogParams, Uo as SessionsGroupsRenameParamsSchema, Up as ConfigSchemaParams, Ur as TaskSuggestionResolution, Us as SessionPlacement, Ut as WizardStartParamsSchema, Uu as GatewaySuspendStatusParams, Uv as SkillsProposalRecordResult, Uw as ExecApprovalPresentation, Ux as BoardChatDockSchema, Uy as ToolsEffectiveResult, V as WorkerAdmissionHandshakeSchema, VC as WorkerInferenceErrorReason, VS as BoardWidgetMcpAppPutContentSchema, V_ as AgentsFilesSetResultSchema, Vb as SessionCatalog, Vc as QuestionWaitAnswerParams, Vd as EnvironmentStatus, Vf as CronRunsParamsSchema, Vg as AuditActivityOutboundMessageV1Schema, Vh as TalkSessionTurnResult, Vi as SessionVisibilitySetResult, Vl as NodePluginToolsUpdateParams, Vm as TalkAgentControlResult, Vn as PluginsUninstallResultSchema, Vo as SessionsGroupsPutParamsSchema, Vr as TaskSuggestionEvent, Vs as SessionDiscussionState, Vt as WizardNextResultSchema, Vu as GatewaySuspendResumeResult, Vv as SkillsProposalInspectResult, Vw as DeniedApprovalSnapshot, Vx as BoardChangedEvent, Vy as ToolsEffectiveParams, W as WorkerConnectParams, WC as WorkerInferenceEventParams, WS as BoardWidgetPluginContentSchema, W_ as AgentsListResult, Wa as SessionsCompactionGetParamsSchema, Wb as SessionCatalogDescriptor, Wc as QuestionWaitAnswerResultSchema, Wd as EnvironmentSummarySchema, Wg as ArtifactSummary, Wh as TalkSpeakParamsSchema, Wi as SessionSharingRole, Wl as NodePresenceActivityPayloadSchema, Wm as TalkCatalogParamsSchema, Wo as SessionsListParams, Wp as ConfigSchemaParamsSchema, Wr as TaskSuggestionResolutionSchema, Wt as WizardStartResult, Wu as GatewaySuspendStatusParamsSchema, Wv as SkillsProposalRecordResultSchema, Ww as ExecApprovalPresentationSchema, Wx as BoardCommand, X as WorkerHeartbeatRequestFrame, XC as WorkerInferenceStartRequestFrame, XS as BoardWidgetPutParams, X_ as AuthProbeStatus, Xb as SessionCatalogPullRequestSummary, Xc as WebPushSubscribeParamsSchema, Xd as EnvironmentsDestroyParamsSchema, Xf as SystemAgentChatHistoryParamsSchema, Xg as ArtifactsGetParams, Xh as TtsSpeakResultSchema, Xi as SessionBranchSchema, Xm as TalkClientCreateParamsSchema, Xn as TerminalAttachResult, Xo as SessionsObserverAskParams, Xp as UpdateRunParamsSchema, Xr as TaskSuggestionsCreateParams, Xs as SessionsDispatchResultSchema, Xt as WizardStep, Xu as GatewaySuspendTaskBlockerSchema, Xv as SkillsProposalReviseParamsSchema, Xw as PluginApprovalPresentation, Xx as BoardDataReadParamsSchema, Xy as AgentEvent, Y as WorkerHeartbeatParamsSchema, YC as WorkerInferenceStartParams, YS as BoardWidgetPutContentSchema, Y_ as AgentsUpdateResultSchema, Yb as SessionCatalogLocatorSchema, Yc as WebPushSubscribeParams, Yd as EnvironmentsDestroyParams, Yf as SystemAgentChatHistoryParams, Yh as TtsSpeakResult, Yi as SessionBranch, Ym as TalkClientCreateParams, Yn as TerminalAttachParamsSchema, Yp as UpdateRunParams, Yr as TaskSuggestionsAcceptResultSchema, Ys as SessionsDispatchResult, Yt as WizardStatusResultSchema, Yu as GatewaySuspendTaskBlocker, Yv as SkillsProposalReviseParams, Yx as BoardDataReadParams, Z as WorkerHeartbeatRequestFrameSchema, ZC as WorkerInferenceStartRequestFrameSchema, ZS as BoardWidgetPutParamsSchema, Z_ as AuthProbeStatusSchema, Zb as SessionCatalogPullRequestSummarySchema, Zc as WebPushTestParams, Zd as EnvironmentsDestroyResult, Zf as SystemAgentChatHistoryResult, Zg as ArtifactsGetParamsSchema, Zh as WebLoginStartParams, Zl as NodeSkillDescriptor, Zm as TalkClientCreateResult, Zn as TerminalAttachResultSchema, Zo as SessionsObserverAskParamsSchema, Zp as UpdateStatusParams, Zr as TaskSuggestionsCreateParamsSchema, Zs as SessionsReclaimParams, Zt as WizardStepSchema, Zu as FsDirEntry, Zv as SkillsProposalUpdateParams, Zw as PluginApprovalPresentationSchema, Zx as BoardEventParams, Zy as AgentEventSchema, _ as WorktreesListParams, _C as UiNavigateCommandSchema, _S as BoardTabIdSchema, __ as AgentKindSchema, _a as SessionObserverHealth, _b as ConversationTurnCancelResult, _c as QuestionListParamsSchema, _d as DevicePairSetupCodeResult, _f as CronJob, _g as UsersSetAvatarParamsSchema, _h as TalkSessionAppendAudioParams, _i as Snapshot, _l as NodeInvokeResultParams, _m as ChannelsPairingAccount, _n as PluginsRefreshParamsSchema, _o as SessionsFilesListParamsSchema, _p as SystemAgentSetupDetectResult, _r as TerminalSessionInfoSchema, _s as SessionsRewindParamsSchema, _t as WorkerTranscriptCommitErrorReason, _u as ChatMetadataParamsSchema, _v as SkillsBinsResult, _x as SessionsCatalogReadParams, _y as SkillsUpdateParams, a as WorktreeRepositoryStatus, aC as WizardNotFoundErrorDetailsSchema, aS as BoardOp, a_ as AgentsWorkspaceEntrySchema, aa as SessionFileBrowserResult, ab as ConversationListItem, ad as DevicePairListParams, af as EnvironmentsStatusResult, ag as UsersLinkEmailParamsSchema, ah as TalkClientToolCallResult, ai as TaskSuggestionsListParamsSchema, ao as SessionsDeleteParamsSchema, ap as SystemAgentChatResult, ar as TerminalExitEventSchema, as as SessionsPatchParamsSchema, at as WorkerLiveEventErrorShape, aw as validateWorkerInferenceEventFrame, ax as SessionsCatalogArchiveResult, ay as SkillsSearchResult, b as WorktreesListResultSchema, bC as UiSplitCommandSchema, bS as BoardTabsReorderOpSchema, b_ as AgentsCreateParams, ba as SessionObserverPlanProgressSchema, bb as ConversationTurnParamsSchema, bc as QuestionOption, bf as CronRunLogEntry, bg as UsersSetDisplayNameParams, bh as TalkSessionCancelOutputParamsSchema, bi as StateVersionSchema, bl as NodeListParamsSchema, bm as ChannelsPairingApproveResult, bn as PluginsSearchParams, bo as SessionsFilesRevealParams, bp as SystemAgentSetupVerifyParamsSchema, br as TerminalTextResult, bs as SessionsSearchHit, bt as WorkerTranscriptCommitErrorShapeSchema, bu as ChatSendParamsSchema, bv as SkillsCuratorActionParamsSchema, bw as ApprovalGetParamsSchema, bx as SessionsCatalogReadResultSchema, by as SkillsUploadBeginParamsSchema, c as WorktreesBranchesParamsSchema, cC as missingScopeErrorShape, cS as BoardPromptAuthorizeParams, c_ as AgentsWorkspaceGetParams, ca as SessionFileEntrySchema, cb as ConversationListParamsSchema, cf as WorkerEnvironmentMetadataSchema, cg as UsersListParams, ch as TalkClientTranscriptParamsSchema, cl as NodeEventResult, cn as PluginsInstallParams, co as SessionsDiffParams, cp as SystemAgentSetupActivateParamsSchema, cr as TerminalListResult, ct as WorkerLiveEventParamsSchema, cu as ChatEventSchema, cw as validateWorkerInferenceTerminalOutcome, cx as SessionsCatalogContinueParamsSchema, cy as SkillsSecurityVerdictsParamsSchema, d as WorktreesCreateParams, dC as UiCommandParams, dS as BoardSizeSchema, dT as ValidationError, d_ as AgentsWorkspaceGetResultSchema, da as SessionFileRelevance, db as ConversationSendParams, dc as QuestionAnswersSchema, dd as DevicePairRenameParams, df as WorkerTunnelStatus, dg as UsersListResultSchema, dh as TalkConfigResult, di as SystemInfoParams, dl as NodeInvokeInputEventSchema, dm as CommandsListParams, dn as PluginsInstallResultSchema, do as SessionsDiffResultSchema, dp as SystemAgentSetupAuthStartParams, dr as TerminalOpenParamsSchema, ds as SessionsPreviewParamsSchema, dt as WorkerLiveEventResponseFrame, du as ChatInjectParams, dv as ModelsProbeResult, dw as ApprovalAllowDecision, dx as SessionsCatalogHostEvent, dy as SkillsSkillCardParams, eC as BoardWidgetSchema, eS as BoardGetParams, eT as SessionApprovalEvent, e_ as ArtifactsListParams, ea as SessionDiffFileSchema, eb as AgentIdentityResult, ec as SessionsReclaimResultSchema, ed as FsListDirParamsSchema, ef as EnvironmentsListParamsSchema, eg as WebLoginWaitParamsSchema, eh as TalkClientMutationResultSchema, ei as TaskSuggestionsDismissParams, el as WebPushUnsubscribeParamsSchema, en as PluginCatalogEntrySchema, ep as SystemAgentChatHistoryTurnSchema, er as TerminalDataEvent, es as SessionsObserverVisibilityParams, et as WorkerHeartbeatResult, eu as NodeSkillsUpdateParamsSchema, ew as WorkerInferenceStartResult, ex as SessionCatalogSessionSchema, ey as SkillsProposalsListParamsSchema, f as WorktreesCreateParamsSchema, fC as UiCommandParamsSchema, fS as BoardSnapshot, fT as formatValidationErrors, f_ as AgentsWorkspaceListParams, fa as SessionFileRelevanceSchema, fb as ConversationSendParamsSchema, fc as QuestionGetParams, ff as WorkerTunnelStatusSchema, fg as UsersSelfParams, fh as TalkConfigResultSchema, fi as SystemInfoParamsSchema, fl as NodeInvokeParams, fm as CommandsListParamsSchema, fn as PluginsListParams, fo as SessionsFilesGetParams, fp as SystemAgentSetupAuthStartParamsSchema, fr as TerminalOpenResult, fs as SessionsResetParams, ft as WorkerLiveEventResponseFrameSchema, fu as ChatInjectParamsSchema, fv as ModelsProbeResultSchema, fw as ApprovalAllowDecisionSchema, fx as SessionsCatalogHostEventSchema, fy as SkillsSkillCardParamsSchema, g as WorktreesGcResultSchema, gC as UiFocusCommandSchema, gS as BoardTabDeleteOpSchema, g_ as AgentKind, ga as SessionObserverDigestSchema, gb as ConversationTurnCancelParamsSchema, gc as QuestionListParams, gf as CronGetParams, gg as UsersSetAvatarParams, gi as PresenceEntrySchema, gm as TalkSessionAcknowledgeMarkParamsSchema, gn as PluginsRefreshParams, go as SessionsFilesListParams, gp as SystemAgentSetupDetectParamsSchema, gr as TerminalSessionInfo, gs as SessionsRewindParams, gt as WorkerProtocolCloseReason, gu as ChatMetadataParams, gw as ApprovalDecisionSchema, gx as SessionsCatalogListResultSchema, gy as SkillsStatusParamsSchema, h as WorktreesGcResult, hC as UiCommandSchema, hS as BoardTabCreateOpSchema, h_ as AgentsWorkspaceListResultSchema, ha as SessionObserverDigest, hb as ConversationTurnCancelParams, hc as QuestionGetResultSchema, hd as DevicePairSetupCodeParams, hf as CronDeclarativeAddResult, hg as UsersSelfResultSchema, hh as TalkModeParams, hi as PresenceEntry, hl as NodeInvokeProgressParamsSchema, hm as TalkSessionAcknowledgeMarkParams, hn as PluginsListResultSchema, ho as SessionsFilesGetResultSchema, hp as SystemAgentSetupDetectParams, hr as TerminalResizeParamsSchema, hs as SessionsResolveParamsSchema, ht as WorkerLiveEventSchema, hv as SkillsBinsParams, hw as ApprovalDecision, hx as SessionsCatalogListResult, hy as SkillsStatusParams, i as WorktreeRecordSchema, iS as BoardMcpAppDescriptorSchema, i_ as AgentsWorkspaceEntry, ia as SessionFileBrowserEntrySchema, if as EnvironmentsStatusParamsSchema, ig as UsersLinkEmailParams, ih as TalkClientToolCallParamsSchema, ii as TaskSuggestionsListParams, io as SessionsDeleteParams, ip as SystemAgentChatQuestionSchema, ir as TerminalExitEvent, is as SessionsPatchParams, it as WorkerLiveEventErrorDetailsSchema, iv as ModelsAuthStatusParamsSchema, iw as validateWorkerInferenceCancelParams, ix as SessionsCatalogArchiveParamsSchema, iy as SkillsSearchParamsSchema, j as WORKER_PROTOCOL_MAX_FEATURE_LENGTH, jC as WORKER_INFERENCE_METHODS, jS as BoardWidgetContentSchema, j_ as AgentsFilesGetParamsSchema, ja as SessionsBranchesSwitchParams, jb as WakeParamsSchema, jc as QuestionRequestedEventSchema, jf as CronDeclarativeAddResultSchema, jg as AuditActivityAgentRunV1Schema, jh as TalkSessionJoinResult, ji as SessionMembersListResult, jl as NodePendingDrainParams, jm as ChannelsLogoutParams, jn as PluginsSetEnabledParamsSchema, jo as SessionsForkResultSchema, jp as SystemChangesListResult, jr as TasksCancelResultSchema, js as SessionDiscussionInfo, jt as WORKER_PROTOCOL_MAX_FRAME_ID_LENGTH, ju as GatewaySuspendBlocker, jv as SkillsInstallParams, jw as ApprovalResolveParams, jx as SessionRow, jy as ToolsCatalogParams, k as WORKER_PROTOCOL_FEATURES, kC as WORKER_INFERENCE_MAX_CONTEXT_MESSAGES, kS as BoardWidgetAppViewResultSchema, k_ as AgentsFileEntrySchema, ka as SessionsBranchesListResult, kb as SendParamsSchema, kc as QuestionRequestResultSchema, kd as ExecApprovalsGetParams, kf as CronAddParamsSchema, kg as AuditListResultSchema, kh as TalkSessionJoinParams, ki as SessionMembersListParams, km as ChannelsPairingListResultSchema, ko as SessionsForkParamsSchema, kp as SystemChangesListParams, kr as TasksCancelParamsSchema, ks as SessionsUsageParamsSchema, kt as WorkerTranscriptMessage, ku as LogsTailResult, kv as SkillsDetailResult, kw as ApprovalPresentation, kx as SessionCreatedActor, l as WorktreesBranchesResult, lC as UiClosePaneCommandSchema, lS as BoardPromptAuthorizeParamsSchema, lT as isWellFormedApprovalId, l_ as AgentsWorkspaceGetParamsSchema, la as SessionFileKind, lb as ConversationListResult, lc as Question, lf as WorkerEnvironmentState, lg as UsersListParamsSchema, lh as TalkConfigParams, ll as NodeEventResultSchema, lm as CommandEntry, ln as PluginsInstallParamsSchema, lo as SessionsDiffParamsSchema, lp as SystemAgentSetupActivateResult, lr as TerminalListResultSchema, lt as WorkerLiveEventRequestFrame, lv as ModelsProbeParams, lw as AllowedApprovalSnapshot, lx as SessionsCatalogContinueResult, ly as SkillsSecurityVerdictsResult, m as WorktreesGcParamsSchema, mC as UiCommandResultSchema, mS as BoardTab, m_ as AgentsWorkspaceListResult, ma as SessionGroupSchema, mb as ConversationSendResultSchema, mc as QuestionGetResult, mf as CronAddResult, mg as UsersSelfResult, mh as TalkEventSchema, mi as SystemInfoResultSchema, ml as NodeInvokeProgressParams, mm as CommandsListResultSchema, mn as PluginsListResult, mo as SessionsFilesGetResult, mp as SystemAgentSetupAuthStartResultSchema, mr as TerminalResizeParams, ms as SessionsResolveParams, mt as WorkerLiveEventResultSchema, mv as ModelsProbeTargetResultSchema, mx as SessionsCatalogListParamsSchema, my as SkillsSkillCardResultSchema, n as WorktreeBranchSchema, nS as BoardLegacyEventParamsSchema, nT as SessionApprovalReplay, n_ as ArtifactsListResult, na as SessionDiffFileStatusSchema, nb as AgentParamsSchema, nc as isCloudWorkerPlacementState, nd as FsListDirResultSchema, nf as EnvironmentsListResultSchema, nh as TalkClientSteerParamsSchema, ni as TaskSuggestionsDismissResult, nl as WebPushVapidPublicKeyParamsSchema, no as SessionsCreateResult, np as SystemAgentChatParamsSchema, nr as TerminalEvent, ns as SessionsObserverVisibilityResult, nt as WorkerLiveEvent, nv as ModelsAuthLogoutParamsSchema, nw as WorkerInferenceTerminalOutcome, nx as SessionCatalogTranscriptItemSchema, ny as SkillsProposalsListResultSchema, o as WorktreeRepositoryStatusSchema, oC as buildMissingScopeErrorDetails, oS as BoardOpSchema, oT as TerminalApprovalSnapshot, o_ as AgentsWorkspaceFile, oa as SessionFileBrowserResultSchema, ob as ConversationListItemSchema, of as EnvironmentsStatusResultSchema, og as UsersLinkEmailResult, oh as TalkClientToolCallResultSchema, oi as TaskSuggestionsListResult, ol as NodeEventParams, on as PluginSearchPackageSchema, oo as SessionsDescribeParams, op as SystemAgentChatResultSchema, or as TerminalInputParams, ot as WorkerLiveEventErrorShapeSchema, ov as ModelsListParamsSchema, ow as validateWorkerInferenceStartParams, ox as SessionsCatalogArchiveResultSchema, oy as SkillsSearchResultSchema, p as WorktreesGcParams, pC as UiCommandResult, pS as BoardSnapshotSchema, p_ as AgentsWorkspaceListParamsSchema, pa as SessionGroup, pb as ConversationSendResult, pc as QuestionGetParamsSchema, pf as CronAddParams, pg as UsersSelfParamsSchema, pi as SystemInfoResult, pl as NodeInvokeParamsSchema, pm as CommandsListResult, pn as PluginsListParamsSchema, po as SessionsFilesGetParamsSchema, pp as SystemAgentSetupAuthStartResult, pr as TerminalOpenResultSchema, ps as SessionsResetParamsSchema, pt as WorkerLiveEventResult, pv as ModelsProbeTargetResult, px as SessionsCatalogListParams, py as SkillsSkillCardResult, q as WorkerErrorShape, qC as WorkerInferenceOptions, qS as BoardWidgetPresentationSchema, q_ as AgentsUpdateParamsSchema, qb as SessionCatalogHostSchema, qd as EnvironmentsCreateResult, qf as CronStatusParamsSchema, qg as ArtifactsDownloadParamsSchema, qh as TtsSpeakParams, qi as SessionVisibilitySchema, ql as NodePresenceAliveReason, qm as TalkClientCloseParams, qn as TerminalAckResultSchema, qp as ConfigSetParams, qr as TaskSuggestionsAcceptParamsSchema, qs as SessionsDispatchParams, qt as WizardStatusParamsSchema, qu as GatewaySuspendStatusResultSchema, qv as SkillsProposalRequestRevisionResult, qw as PendingApprovalSnapshot, qx as BoardCommandSchema, qy as ToolsInvokeParamsSchema, r as WorktreeRecord, rC as MissingScopeErrorDetailsSchema, rS as BoardMcpAppDescriptor, rT as SessionApprovalReplaySchema, ra as SessionFileBrowserEntry, rb as AgentWaitParams, rd as DevicePairApproveParams, rf as EnvironmentsStatusParams, rg as UserProfileSchema, rh as TalkClientToolCallParams, ri as TaskSuggestionsDismissResultSchema, ro as SessionsCreateResultSchema, rp as SystemAgentChatQuestion, rr as TerminalEventSchema, rs as SessionsObserverVisibilityResultSchema, rt as WorkerLiveEventErrorDetails, rw as WorkerInferenceTerminalParams, rx as SessionsCatalogArchiveParams, ry as SkillsSearchParams, s as WorktreesBranchesParams, sC as errorShape, sS as BoardPluginActionParamsSchema, sT as TerminalApprovalSnapshotSchema, s_ as AgentsWorkspaceFileSchema, sa as SessionFileEntry, sb as ConversationListParams, sd as DevicePairRejectParams, sf as WorkerEnvironmentMetadata, sg as UsersLinkEmailResultSchema, sh as TalkClientTranscriptParams, si as TaskSuggestionsListResultSchema, sn as PluginSearchResultEntrySchema, so as SessionsDescribeParamsSchema, sp as SystemAgentSetupActivateParams, sr as TerminalInputParamsSchema, ss as SessionsPluginPatchParamsSchema, st as WorkerLiveEventParams, su as ChatEvent, sw as validateWorkerInferenceTerminalFrame, sx as SessionsCatalogContinueParams, sy as SkillsSecurityVerdictsParams, t as WorktreeBranch, tC as GatewayErrorDetailsSchema, tS as BoardGetParamsSchema, tT as SessionApprovalEventSchema, t_ as ArtifactsListParamsSchema, ta as SessionDiffFileStatus, tb as AgentIdentityResultSchema, tc as SessionPlacementState, td as FsListDirResult, tf as EnvironmentsListResult, tg as UserProfile, th as TalkClientSteerParams, ti as TaskSuggestionsDismissParamsSchema, tl as WebPushVapidPublicKeyParams, tn as PluginCatalogInstallActionSchema, tp as SystemAgentChatParams, tr as TerminalDataEventSchema, ts as SessionsObserverVisibilityParamsSchema, tt as WorkerHelloOk, tw as WorkerInferenceTerminalFrame, tx as SessionCatalogTranscriptItem, ty as SkillsProposalsListResult, u as WorktreesBranchesResultSchema, uC as UiCommand, uS as BoardSetChatDockCommandSchema, uT as ProtocolValidator, u_ as AgentsWorkspaceGetResult, ua as SessionFileKindSchema, ub as ConversationListResultSchema, uc as QuestionAnswers, uf as WorkerEnvironmentStateSchema, ug as UsersListResult, uh as TalkConfigParamsSchema, ul as NodeInvokeInputEvent, un as PluginsInstallResult, uo as SessionsDiffResult, up as SystemAgentSetupActivateResultSchema, ur as TerminalOpenParams, us as SessionsPreviewParams, ut as WorkerLiveEventRequestFrameSchema, uu as ChatHistoryParamsSchema, uv as ModelsProbeParamsSchema, uw as AllowedApprovalSnapshotSchema, ux as SessionsCatalogContinueResultSchema, uy as SkillsSecurityVerdictsResultSchema, v as WorktreesListParamsSchema, vC as UiPanelCommandSchema, vS as BoardTabSchema, v_ as AgentSummary, va as SessionObserverHealthSchema, vb as ConversationTurnCancelResultSchema, vc as QuestionListResult, vf as CronListParams, vg as UsersSetAvatarResult, vh as TalkSessionAppendAudioParamsSchema, vi as SnapshotSchema, vm as ChannelsPairingApproveParams, vn as PluginsRefreshResult, vo as SessionsFilesListResult, vp as SystemAgentSetupDetectResultSchema, vr as TerminalTextParams, vs as SessionsRewindResult, vt as WorkerTranscriptCommitErrorReasonSchema, vu as ChatRunStartupPhase, vx as SessionsCatalogReadParamsSchema, vy as SkillsUpdateParamsSchema, w as WorktreesRemoveResultSchema, wC as SkillsProposalHistoryScanResultSchema, wS as BoardViewTicketSchema, w_ as AgentsDeleteParams, wa as SessionWorktreeInfoSchema, wb as ConversationTurnResultSchema, wc as QuestionRequestParams, wd as ExecApprovalGetParamsSchema, wf as CronScratchGetResult, wg as AuditEvent, wh as TalkSessionCloseParamsSchema, wi as SessionMemberMutationResult, wl as NodePairListParamsSchema, wm as ChannelsPairingDismissResult, wo as SessionsFilesSetParams, wp as SystemChangeEntrySchema, wr as TerminalUploadResult, ws as SessionsSearchResult, wt as WorkerTranscriptCommitRequestFrameSchema, wu as ChatToolTitlesParamsSchema, wv as SkillsCuratorStatusParamsSchema, ww as ApprovalHistoryParamsSchema, wx as MigrationProtocolSchemas, wy as SkillsUploadCommitParamsSchema, x as WorktreesRemoveParams, xC as SkillsProposalHistoryScanParams, xS as BoardTicketEventParamsSchema, x_ as AgentsCreateParamsSchema, xa as SessionOperationEvent, xb as ConversationTurnReply, xc as QuestionOptionSchema, xf as CronRunParams, xg as UsersSetDisplayNameParamsSchema, xh as TalkSessionCancelTurnParams, xi as SessionMember, xl as NodePairApproveParams, xm as ChannelsPairingApproveResultSchema, xn as PluginsSearchParamsSchema, xo as SessionsFilesRevealParamsSchema, xp as SystemAgentSetupVerifyResult, xr as TerminalTextResultSchema, xs as SessionsSearchHitSchema, xt as WorkerTranscriptCommitParams, xu as ChatStatusEvent, xv as SkillsCuratorActionResult, xw as ApprovalGetResult, xx as MAX_MEMORY_MIGRATION_ITEMS, xy as SkillsUploadChunkParams, y as WorktreesListResult, yC as UiSidebarCommandSchema, yS as BoardTabUpdateOpSchema, y_ as AgentSummarySchema, ya as SessionObserverPlanProgress, yb as ConversationTurnParams, yc as QuestionListResultSchema, yf as CronRemoveParams, yg as UsersSetAvatarResultSchema, yh as TalkSessionCancelOutputParams, yi as StateVersion, yl as NodeListParams, ym as ChannelsPairingApproveParamsSchema, yn as PluginsRefreshResultSchema, yo as SessionsFilesListResultSchema, yp as SystemAgentSetupVerifyParams, yr as TerminalTextParamsSchema, ys as SessionsRewindResultSchema, yt as WorkerTranscriptCommitErrorShape, yu as ChatRunStartupPhaseSchema, yv as SkillsCuratorActionParams, yw as ApprovalGetParams, yx as SessionsCatalogReadResult, yy as SkillsUploadBeginParams, z as WorkerAdmissionFailureReason, zC as WorkerInferenceCancelResult, zS as BoardWidgetMaterializedPutParams, z_ as AgentsFilesSetParamsSchema, zc as QuestionStatus, zd as ExecApprovalsSnapshot, zg as AuditActivityListResultSchema, zh as TalkSessionTurnParams, zi as SessionVisibilitySetParams, zl as NodePluginToolDescriptor, zm as ChannelsStopParams, zn as PluginsUninstallParamsSchema, zo as SessionsGroupsMutationResultSchema, zr as TasksListResultSchema, zs as SessionDiscussionOpenResult, zt as WizardNextParamsSchema, zu as GatewaySuspendResumeParams, zv as SkillsProposalInspectParams, zw as CancelledApprovalSnapshot, zx as BoardCanvasDocumentSource } from "./schema-BERXGeoi.mjs";
4
+ import { i as PROTOCOL_VERSION, n as MIN_NODE_PROTOCOL_VERSION, r as MIN_PROBE_PROTOCOL_VERSION, t as MIN_CLIENT_PROTOCOL_VERSION } from "./version-COV9CEyr.mjs";
5
+
6
+ //#region src/clawhub-trust-error-details.d.ts
7
+ /** Structured ClawHub trust details carried in gateway error payloads. */
8
+ declare const ClawHubTrustErrorCodes: {
9
+ readonly SECURITY_UNAVAILABLE: "clawhub_security_unavailable";
10
+ readonly RISK_ACKNOWLEDGEMENT_REQUIRED: "clawhub_risk_acknowledgement_required";
11
+ readonly DOWNLOAD_BLOCKED: "clawhub_download_blocked";
12
+ };
13
+ type ClawHubTrustErrorCode = (typeof ClawHubTrustErrorCodes)[keyof typeof ClawHubTrustErrorCodes];
14
+ type ClawHubTrustErrorDetails = {
15
+ clawhubTrustCode?: ClawHubTrustErrorCode;
16
+ version?: string;
17
+ warning?: string;
18
+ };
19
+ declare function isClawHubTrustErrorCode(value: unknown): value is ClawHubTrustErrorCode;
20
+ declare function buildClawHubTrustErrorDetails(params: {
21
+ code?: ClawHubTrustErrorCode;
22
+ version?: string;
23
+ warning?: string;
24
+ }): ClawHubTrustErrorDetails | undefined;
25
+ declare function readClawHubTrustErrorDetails(details: unknown): ClawHubTrustErrorDetails | undefined;
26
+ //#endregion
27
+ //#region src/system-agent-error-details.d.ts
28
+ /** Structured system-agent details carried in gateway error payloads. */
29
+ declare const SystemAgentErrorDetailCodes: {
30
+ readonly SESSION_INVALIDATED: "system_agent_session_invalidated";
31
+ };
32
+ type SystemAgentSessionInvalidatedErrorDetails = {
33
+ code: typeof SystemAgentErrorDetailCodes.SESSION_INVALIDATED;
34
+ };
35
+ declare function buildSystemAgentSessionInvalidatedErrorDetails(): SystemAgentSessionInvalidatedErrorDetails;
36
+ declare function readSystemAgentSessionInvalidatedErrorDetails(details: unknown): SystemAgentSessionInvalidatedErrorDetails | undefined;
37
+ //#endregion
38
+ //#region src/session-icon.d.ts
39
+ type SessionIcon = {
40
+ kind: "named";
41
+ name: string;
42
+ } | {
43
+ kind: "emoji";
44
+ emoji: string;
45
+ } | {
46
+ kind: "svg";
47
+ svg: string;
48
+ };
49
+ declare const SESSION_AGENT_ATTENTION_ICON_IDS: readonly ["hand", "key", "alert", "flag", "lock", "hourglass"];
50
+ type SessionAgentAttentionIconId = (typeof SESSION_AGENT_ATTENTION_ICON_IDS)[number];
51
+ type SessionAgentStatus = {
52
+ note: string;
53
+ expiresAt: number;
54
+ attention?: SessionAgentAttentionIconId;
55
+ };
56
+ type SessionIconNormalizationResult = {
57
+ ok: true;
58
+ value: string;
59
+ } | {
60
+ ok: false;
61
+ reason: string;
62
+ };
63
+ /** Parse a stored session icon form without sanitizing SVG markup. */
64
+ declare function parseSessionIcon(value: string): SessionIcon | null;
65
+ /** Validate and canonicalize a session icon before it enters durable state. */
66
+ declare function normalizeSessionIconInput(value: string): SessionIconNormalizationResult;
67
+ //#endregion
68
+ //#region src/terminal-validators.d.ts
69
+ declare const validateTerminalOpenParams: ProtocolValidator<{
70
+ agentId?: string | undefined;
71
+ catalog?: {
72
+ threadId: string;
73
+ catalogId: string;
74
+ hostId: string;
75
+ } | undefined;
76
+ cols: number;
77
+ rows: number;
78
+ }>;
79
+ declare const validateTerminalInputParams: ProtocolValidator<{
80
+ sessionId: string;
81
+ data: string;
82
+ }>;
83
+ declare const validateTerminalResizeParams: ProtocolValidator<{
84
+ sessionId: string;
85
+ cols: number;
86
+ rows: number;
87
+ }>;
88
+ declare const validateTerminalCloseParams: ProtocolValidator<{
89
+ sessionId: string;
90
+ }>;
91
+ declare const validateTerminalAttachParams: ProtocolValidator<{
92
+ sessionId: string;
93
+ }>;
94
+ declare const validateTerminalTextParams: ProtocolValidator<{
95
+ sessionId: string;
96
+ }>;
97
+ declare const validateTerminalUploadParams: ProtocolValidator<{
98
+ sessionId: string;
99
+ name: string;
100
+ contentBase64: string;
101
+ }>;
102
+ declare const validateTerminalUploadResult: ProtocolValidator<{
103
+ path: string;
104
+ size: number;
105
+ }>;
106
+ //#endregion
107
+ //#region src/approval-result-validators.d.ts
108
+ declare const validateApprovalGetResult: ProtocolValidator<{
109
+ approval: {
110
+ id: string;
111
+ status: "pending";
112
+ presentation: {
113
+ agentId?: string | null | undefined;
114
+ host?: string | null | undefined;
115
+ nodeId?: string | null | undefined;
116
+ commandPreview?: string | null | undefined;
117
+ warningText?: string | null | undefined;
118
+ kind: "exec";
119
+ commandText: string;
120
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
121
+ } | {
122
+ agentId?: string | null | undefined;
123
+ toolName?: string | null | undefined;
124
+ pluginId?: string | null | undefined;
125
+ detail?: string | undefined;
126
+ kind: "plugin";
127
+ title: string;
128
+ description: string;
129
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
130
+ severity: "info" | "warning" | "critical";
131
+ } | {
132
+ agentId?: string | null | undefined;
133
+ kind: "system-agent";
134
+ title: string;
135
+ description: string;
136
+ allowedDecisions: ["allow-once", "deny"];
137
+ proposalHash: string;
138
+ };
139
+ createdAtMs: number;
140
+ urlPath: string;
141
+ expiresAtMs: number;
142
+ } | {
143
+ source?: {
144
+ agentId?: string | undefined;
145
+ sessionKey?: string | undefined;
146
+ } | undefined;
147
+ resolver?: {
148
+ id?: string | undefined;
149
+ kind: "device" | "channel" | "system" | "runtime";
150
+ } | undefined;
151
+ id: string;
152
+ status: "allowed";
153
+ reason: "user";
154
+ presentation: {
155
+ agentId?: string | null | undefined;
156
+ host?: string | null | undefined;
157
+ nodeId?: string | null | undefined;
158
+ commandPreview?: string | null | undefined;
159
+ warningText?: string | null | undefined;
160
+ kind: "exec";
161
+ commandText: string;
162
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
163
+ } | {
164
+ agentId?: string | null | undefined;
165
+ toolName?: string | null | undefined;
166
+ pluginId?: string | null | undefined;
167
+ detail?: string | undefined;
168
+ kind: "plugin";
169
+ title: string;
170
+ description: string;
171
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
172
+ severity: "info" | "warning" | "critical";
173
+ } | {
174
+ agentId?: string | null | undefined;
175
+ kind: "system-agent";
176
+ title: string;
177
+ description: string;
178
+ allowedDecisions: ["allow-once", "deny"];
179
+ proposalHash: string;
180
+ };
181
+ decision: "allow-once" | "allow-always";
182
+ createdAtMs: number;
183
+ urlPath: string;
184
+ expiresAtMs: number;
185
+ resolvedAtMs: number;
186
+ } | {
187
+ source?: {
188
+ agentId?: string | undefined;
189
+ sessionKey?: string | undefined;
190
+ } | undefined;
191
+ resolver?: {
192
+ id?: string | undefined;
193
+ kind: "device" | "channel" | "system" | "runtime";
194
+ } | undefined;
195
+ id: string;
196
+ status: "denied";
197
+ reason: "user" | "malformed-verdict" | "no-route" | "storage-corrupt";
198
+ presentation: {
199
+ agentId?: string | null | undefined;
200
+ host?: string | null | undefined;
201
+ nodeId?: string | null | undefined;
202
+ commandPreview?: string | null | undefined;
203
+ warningText?: string | null | undefined;
204
+ kind: "exec";
205
+ commandText: string;
206
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
207
+ } | {
208
+ agentId?: string | null | undefined;
209
+ toolName?: string | null | undefined;
210
+ pluginId?: string | null | undefined;
211
+ detail?: string | undefined;
212
+ kind: "plugin";
213
+ title: string;
214
+ description: string;
215
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
216
+ severity: "info" | "warning" | "critical";
217
+ } | {
218
+ agentId?: string | null | undefined;
219
+ kind: "system-agent";
220
+ title: string;
221
+ description: string;
222
+ allowedDecisions: ["allow-once", "deny"];
223
+ proposalHash: string;
224
+ };
225
+ decision: "deny";
226
+ createdAtMs: number;
227
+ urlPath: string;
228
+ expiresAtMs: number;
229
+ resolvedAtMs: number;
230
+ } | {
231
+ source?: {
232
+ agentId?: string | undefined;
233
+ sessionKey?: string | undefined;
234
+ } | undefined;
235
+ resolver?: {
236
+ id?: string | undefined;
237
+ kind: "device" | "channel" | "system" | "runtime";
238
+ } | undefined;
239
+ id: string;
240
+ status: "expired";
241
+ reason: "timeout";
242
+ presentation: {
243
+ agentId?: string | null | undefined;
244
+ host?: string | null | undefined;
245
+ nodeId?: string | null | undefined;
246
+ commandPreview?: string | null | undefined;
247
+ warningText?: string | null | undefined;
248
+ kind: "exec";
249
+ commandText: string;
250
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
251
+ } | {
252
+ agentId?: string | null | undefined;
253
+ toolName?: string | null | undefined;
254
+ pluginId?: string | null | undefined;
255
+ detail?: string | undefined;
256
+ kind: "plugin";
257
+ title: string;
258
+ description: string;
259
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
260
+ severity: "info" | "warning" | "critical";
261
+ } | {
262
+ agentId?: string | null | undefined;
263
+ kind: "system-agent";
264
+ title: string;
265
+ description: string;
266
+ allowedDecisions: ["allow-once", "deny"];
267
+ proposalHash: string;
268
+ };
269
+ createdAtMs: number;
270
+ urlPath: string;
271
+ expiresAtMs: number;
272
+ resolvedAtMs: number;
273
+ } | {
274
+ source?: {
275
+ agentId?: string | undefined;
276
+ sessionKey?: string | undefined;
277
+ } | undefined;
278
+ resolver?: {
279
+ id?: string | undefined;
280
+ kind: "device" | "channel" | "system" | "runtime";
281
+ } | undefined;
282
+ id: string;
283
+ status: "cancelled";
284
+ reason: "run-aborted" | "gateway-restart";
285
+ presentation: {
286
+ agentId?: string | null | undefined;
287
+ host?: string | null | undefined;
288
+ nodeId?: string | null | undefined;
289
+ commandPreview?: string | null | undefined;
290
+ warningText?: string | null | undefined;
291
+ kind: "exec";
292
+ commandText: string;
293
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
294
+ } | {
295
+ agentId?: string | null | undefined;
296
+ toolName?: string | null | undefined;
297
+ pluginId?: string | null | undefined;
298
+ detail?: string | undefined;
299
+ kind: "plugin";
300
+ title: string;
301
+ description: string;
302
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
303
+ severity: "info" | "warning" | "critical";
304
+ } | {
305
+ agentId?: string | null | undefined;
306
+ kind: "system-agent";
307
+ title: string;
308
+ description: string;
309
+ allowedDecisions: ["allow-once", "deny"];
310
+ proposalHash: string;
311
+ };
312
+ createdAtMs: number;
313
+ urlPath: string;
314
+ expiresAtMs: number;
315
+ resolvedAtMs: number;
316
+ };
317
+ }>;
318
+ declare const validateApprovalHistoryResult: ProtocolValidator<{
319
+ nextCursor?: string | undefined;
320
+ items: ({
321
+ source?: {
322
+ agentId?: string | undefined;
323
+ sessionKey?: string | undefined;
324
+ } | undefined;
325
+ resolver?: {
326
+ id?: string | undefined;
327
+ kind: "device" | "channel" | "system" | "runtime";
328
+ } | undefined;
329
+ id: string;
330
+ status: "allowed";
331
+ reason: "user";
332
+ presentation: {
333
+ agentId?: string | null | undefined;
334
+ host?: string | null | undefined;
335
+ nodeId?: string | null | undefined;
336
+ commandPreview?: string | null | undefined;
337
+ warningText?: string | null | undefined;
338
+ kind: "exec";
339
+ commandText: string;
340
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
341
+ } | {
342
+ agentId?: string | null | undefined;
343
+ toolName?: string | null | undefined;
344
+ pluginId?: string | null | undefined;
345
+ detail?: string | undefined;
346
+ kind: "plugin";
347
+ title: string;
348
+ description: string;
349
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
350
+ severity: "info" | "warning" | "critical";
351
+ } | {
352
+ agentId?: string | null | undefined;
353
+ kind: "system-agent";
354
+ title: string;
355
+ description: string;
356
+ allowedDecisions: ["allow-once", "deny"];
357
+ proposalHash: string;
358
+ };
359
+ decision: "allow-once" | "allow-always";
360
+ createdAtMs: number;
361
+ urlPath: string;
362
+ expiresAtMs: number;
363
+ resolvedAtMs: number;
364
+ } | {
365
+ source?: {
366
+ agentId?: string | undefined;
367
+ sessionKey?: string | undefined;
368
+ } | undefined;
369
+ resolver?: {
370
+ id?: string | undefined;
371
+ kind: "device" | "channel" | "system" | "runtime";
372
+ } | undefined;
373
+ id: string;
374
+ status: "denied";
375
+ reason: "user" | "malformed-verdict" | "no-route" | "storage-corrupt";
376
+ presentation: {
377
+ agentId?: string | null | undefined;
378
+ host?: string | null | undefined;
379
+ nodeId?: string | null | undefined;
380
+ commandPreview?: string | null | undefined;
381
+ warningText?: string | null | undefined;
382
+ kind: "exec";
383
+ commandText: string;
384
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
385
+ } | {
386
+ agentId?: string | null | undefined;
387
+ toolName?: string | null | undefined;
388
+ pluginId?: string | null | undefined;
389
+ detail?: string | undefined;
390
+ kind: "plugin";
391
+ title: string;
392
+ description: string;
393
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
394
+ severity: "info" | "warning" | "critical";
395
+ } | {
396
+ agentId?: string | null | undefined;
397
+ kind: "system-agent";
398
+ title: string;
399
+ description: string;
400
+ allowedDecisions: ["allow-once", "deny"];
401
+ proposalHash: string;
402
+ };
403
+ decision: "deny";
404
+ createdAtMs: number;
405
+ urlPath: string;
406
+ expiresAtMs: number;
407
+ resolvedAtMs: number;
408
+ } | {
409
+ source?: {
410
+ agentId?: string | undefined;
411
+ sessionKey?: string | undefined;
412
+ } | undefined;
413
+ resolver?: {
414
+ id?: string | undefined;
415
+ kind: "device" | "channel" | "system" | "runtime";
416
+ } | undefined;
417
+ id: string;
418
+ status: "expired";
419
+ reason: "timeout";
420
+ presentation: {
421
+ agentId?: string | null | undefined;
422
+ host?: string | null | undefined;
423
+ nodeId?: string | null | undefined;
424
+ commandPreview?: string | null | undefined;
425
+ warningText?: string | null | undefined;
426
+ kind: "exec";
427
+ commandText: string;
428
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
429
+ } | {
430
+ agentId?: string | null | undefined;
431
+ toolName?: string | null | undefined;
432
+ pluginId?: string | null | undefined;
433
+ detail?: string | undefined;
434
+ kind: "plugin";
435
+ title: string;
436
+ description: string;
437
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
438
+ severity: "info" | "warning" | "critical";
439
+ } | {
440
+ agentId?: string | null | undefined;
441
+ kind: "system-agent";
442
+ title: string;
443
+ description: string;
444
+ allowedDecisions: ["allow-once", "deny"];
445
+ proposalHash: string;
446
+ };
447
+ createdAtMs: number;
448
+ urlPath: string;
449
+ expiresAtMs: number;
450
+ resolvedAtMs: number;
451
+ } | {
452
+ source?: {
453
+ agentId?: string | undefined;
454
+ sessionKey?: string | undefined;
455
+ } | undefined;
456
+ resolver?: {
457
+ id?: string | undefined;
458
+ kind: "device" | "channel" | "system" | "runtime";
459
+ } | undefined;
460
+ id: string;
461
+ status: "cancelled";
462
+ reason: "run-aborted" | "gateway-restart";
463
+ presentation: {
464
+ agentId?: string | null | undefined;
465
+ host?: string | null | undefined;
466
+ nodeId?: string | null | undefined;
467
+ commandPreview?: string | null | undefined;
468
+ warningText?: string | null | undefined;
469
+ kind: "exec";
470
+ commandText: string;
471
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
472
+ } | {
473
+ agentId?: string | null | undefined;
474
+ toolName?: string | null | undefined;
475
+ pluginId?: string | null | undefined;
476
+ detail?: string | undefined;
477
+ kind: "plugin";
478
+ title: string;
479
+ description: string;
480
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
481
+ severity: "info" | "warning" | "critical";
482
+ } | {
483
+ agentId?: string | null | undefined;
484
+ kind: "system-agent";
485
+ title: string;
486
+ description: string;
487
+ allowedDecisions: ["allow-once", "deny"];
488
+ proposalHash: string;
489
+ };
490
+ createdAtMs: number;
491
+ urlPath: string;
492
+ expiresAtMs: number;
493
+ resolvedAtMs: number;
494
+ })[];
495
+ }>;
496
+ declare const validateApprovalResolveResult: ProtocolValidator<{
497
+ approval: {
498
+ source?: {
499
+ agentId?: string | undefined;
500
+ sessionKey?: string | undefined;
501
+ } | undefined;
502
+ resolver?: {
503
+ id?: string | undefined;
504
+ kind: "device" | "channel" | "system" | "runtime";
505
+ } | undefined;
506
+ id: string;
507
+ status: "allowed";
508
+ reason: "user";
509
+ presentation: {
510
+ agentId?: string | null | undefined;
511
+ host?: string | null | undefined;
512
+ nodeId?: string | null | undefined;
513
+ commandPreview?: string | null | undefined;
514
+ warningText?: string | null | undefined;
515
+ kind: "exec";
516
+ commandText: string;
517
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
518
+ } | {
519
+ agentId?: string | null | undefined;
520
+ toolName?: string | null | undefined;
521
+ pluginId?: string | null | undefined;
522
+ detail?: string | undefined;
523
+ kind: "plugin";
524
+ title: string;
525
+ description: string;
526
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
527
+ severity: "info" | "warning" | "critical";
528
+ } | {
529
+ agentId?: string | null | undefined;
530
+ kind: "system-agent";
531
+ title: string;
532
+ description: string;
533
+ allowedDecisions: ["allow-once", "deny"];
534
+ proposalHash: string;
535
+ };
536
+ decision: "allow-once" | "allow-always";
537
+ createdAtMs: number;
538
+ urlPath: string;
539
+ expiresAtMs: number;
540
+ resolvedAtMs: number;
541
+ } | {
542
+ source?: {
543
+ agentId?: string | undefined;
544
+ sessionKey?: string | undefined;
545
+ } | undefined;
546
+ resolver?: {
547
+ id?: string | undefined;
548
+ kind: "device" | "channel" | "system" | "runtime";
549
+ } | undefined;
550
+ id: string;
551
+ status: "denied";
552
+ reason: "user" | "malformed-verdict" | "no-route" | "storage-corrupt";
553
+ presentation: {
554
+ agentId?: string | null | undefined;
555
+ host?: string | null | undefined;
556
+ nodeId?: string | null | undefined;
557
+ commandPreview?: string | null | undefined;
558
+ warningText?: string | null | undefined;
559
+ kind: "exec";
560
+ commandText: string;
561
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
562
+ } | {
563
+ agentId?: string | null | undefined;
564
+ toolName?: string | null | undefined;
565
+ pluginId?: string | null | undefined;
566
+ detail?: string | undefined;
567
+ kind: "plugin";
568
+ title: string;
569
+ description: string;
570
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
571
+ severity: "info" | "warning" | "critical";
572
+ } | {
573
+ agentId?: string | null | undefined;
574
+ kind: "system-agent";
575
+ title: string;
576
+ description: string;
577
+ allowedDecisions: ["allow-once", "deny"];
578
+ proposalHash: string;
579
+ };
580
+ decision: "deny";
581
+ createdAtMs: number;
582
+ urlPath: string;
583
+ expiresAtMs: number;
584
+ resolvedAtMs: number;
585
+ } | {
586
+ source?: {
587
+ agentId?: string | undefined;
588
+ sessionKey?: string | undefined;
589
+ } | undefined;
590
+ resolver?: {
591
+ id?: string | undefined;
592
+ kind: "device" | "channel" | "system" | "runtime";
593
+ } | undefined;
594
+ id: string;
595
+ status: "expired";
596
+ reason: "timeout";
597
+ presentation: {
598
+ agentId?: string | null | undefined;
599
+ host?: string | null | undefined;
600
+ nodeId?: string | null | undefined;
601
+ commandPreview?: string | null | undefined;
602
+ warningText?: string | null | undefined;
603
+ kind: "exec";
604
+ commandText: string;
605
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
606
+ } | {
607
+ agentId?: string | null | undefined;
608
+ toolName?: string | null | undefined;
609
+ pluginId?: string | null | undefined;
610
+ detail?: string | undefined;
611
+ kind: "plugin";
612
+ title: string;
613
+ description: string;
614
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
615
+ severity: "info" | "warning" | "critical";
616
+ } | {
617
+ agentId?: string | null | undefined;
618
+ kind: "system-agent";
619
+ title: string;
620
+ description: string;
621
+ allowedDecisions: ["allow-once", "deny"];
622
+ proposalHash: string;
623
+ };
624
+ createdAtMs: number;
625
+ urlPath: string;
626
+ expiresAtMs: number;
627
+ resolvedAtMs: number;
628
+ } | {
629
+ source?: {
630
+ agentId?: string | undefined;
631
+ sessionKey?: string | undefined;
632
+ } | undefined;
633
+ resolver?: {
634
+ id?: string | undefined;
635
+ kind: "device" | "channel" | "system" | "runtime";
636
+ } | undefined;
637
+ id: string;
638
+ status: "cancelled";
639
+ reason: "run-aborted" | "gateway-restart";
640
+ presentation: {
641
+ agentId?: string | null | undefined;
642
+ host?: string | null | undefined;
643
+ nodeId?: string | null | undefined;
644
+ commandPreview?: string | null | undefined;
645
+ warningText?: string | null | undefined;
646
+ kind: "exec";
647
+ commandText: string;
648
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
649
+ } | {
650
+ agentId?: string | null | undefined;
651
+ toolName?: string | null | undefined;
652
+ pluginId?: string | null | undefined;
653
+ detail?: string | undefined;
654
+ kind: "plugin";
655
+ title: string;
656
+ description: string;
657
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
658
+ severity: "info" | "warning" | "critical";
659
+ } | {
660
+ agentId?: string | null | undefined;
661
+ kind: "system-agent";
662
+ title: string;
663
+ description: string;
664
+ allowedDecisions: ["allow-once", "deny"];
665
+ proposalHash: string;
666
+ };
667
+ createdAtMs: number;
668
+ urlPath: string;
669
+ expiresAtMs: number;
670
+ resolvedAtMs: number;
671
+ };
672
+ applied: boolean;
673
+ }>;
674
+ //#endregion
675
+ //#region src/migration-api.d.ts
676
+ declare const validateMigrationsMemoryPlanParams: ProtocolValidator<{
677
+ overwrite?: boolean | undefined;
678
+ agentId: string;
679
+ }>;
680
+ declare const validateMigrationsMemoryApplyParams: ProtocolValidator<{
681
+ overwrite?: boolean | undefined;
682
+ agentId: string;
683
+ idempotencyKey: string;
684
+ providerId: string;
685
+ planFingerprint: string;
686
+ itemIds: string[];
687
+ }>;
688
+ //#endregion
689
+ //#region src/index.d.ts
690
+ declare const validateCommandsListParams: ProtocolValidator<{
691
+ agentId?: string | undefined;
692
+ provider?: string | undefined;
693
+ scope?: "text" | "native" | "both" | undefined;
694
+ includeArgs?: boolean | undefined;
695
+ }>;
696
+ declare const validateConnectParams: ProtocolValidator<{
697
+ caps?: string[] | undefined;
698
+ commands?: string[] | undefined;
699
+ permissions?: Record<string, boolean> | undefined;
700
+ pathEnv?: string | undefined;
701
+ role?: string | undefined;
702
+ scopes?: string[] | undefined;
703
+ device?: {
704
+ id: string;
705
+ publicKey: string;
706
+ signature: string;
707
+ signedAt: number;
708
+ nonce: string;
709
+ } | undefined;
710
+ auth?: {
711
+ token?: string | undefined;
712
+ bootstrapToken?: string | undefined;
713
+ deviceToken?: string | undefined;
714
+ password?: string | undefined;
715
+ approvalRuntimeToken?: string | undefined;
716
+ agentRuntimeIdentityToken?: string | undefined;
717
+ } | undefined;
718
+ locale?: string | undefined;
719
+ userAgent?: string | undefined;
720
+ minProtocol: number;
721
+ maxProtocol: number;
722
+ client: {
723
+ displayName?: string | undefined;
724
+ deviceFamily?: string | undefined;
725
+ modelIdentifier?: string | undefined;
726
+ instanceId?: string | undefined;
727
+ id: "webchat-ui" | "openclaw-control-ui" | "openclaw-browser-copilot" | "openclaw-tui" | "webchat" | "cli" | "gateway-client" | "openclaw-macos" | "openclaw-linux" | "openclaw-ios" | "openclaw-watchos" | "openclaw-android" | "node-host" | "openclaw-worker" | "test" | "fingerprint" | "openclaw-probe";
728
+ version: string;
729
+ platform: string;
730
+ mode: "webchat" | "cli" | "test" | "ui" | "backend" | "node" | "worker" | "probe";
731
+ };
732
+ }>;
733
+ declare const validateWorkerAdmissionHandshake: ProtocolValidator<{
734
+ bundleHash: string;
735
+ openclawVersion: string;
736
+ protocolFeatures: string[];
737
+ }>;
738
+ declare const validateWorkerConnectRequestFrame: ProtocolValidator<{
739
+ type: "req";
740
+ id: string;
741
+ method: "connect";
742
+ params: {
743
+ minProtocol: number;
744
+ maxProtocol: number;
745
+ client: {
746
+ id: "openclaw-worker";
747
+ version: string;
748
+ platform: string;
749
+ mode: "worker";
750
+ };
751
+ role: "worker";
752
+ admission: {
753
+ sessionId: null;
754
+ runId: null;
755
+ environmentId: string;
756
+ credential: string;
757
+ ownerEpoch: number;
758
+ rpcSetVersion: number;
759
+ handshake: {
760
+ bundleHash: string;
761
+ openclawVersion: string;
762
+ protocolFeatures: string[];
763
+ };
764
+ } | {
765
+ sessionId: string;
766
+ runId: string;
767
+ environmentId: string;
768
+ credential: string;
769
+ ownerEpoch: number;
770
+ rpcSetVersion: number;
771
+ handshake: {
772
+ bundleHash: string;
773
+ openclawVersion: string;
774
+ protocolFeatures: string[];
775
+ };
776
+ };
777
+ };
778
+ }>;
779
+ declare const validateWorkerHeartbeatParams: ProtocolValidator<{
780
+ sentAtMs: number;
781
+ status: "ready" | "busy" | "draining";
782
+ }>;
783
+ declare const validateWorkerTranscriptCommitParams: ProtocolValidator<{
784
+ runEpoch: number;
785
+ seq: number;
786
+ baseLeafId: string | null;
787
+ messages: ({
788
+ role: "user";
789
+ content: ({
790
+ textSignature?: string | undefined;
791
+ type: "text";
792
+ text: string;
793
+ } | {
794
+ type: "image";
795
+ data: string;
796
+ mimeType: string;
797
+ })[];
798
+ timestamp: number;
799
+ } | {
800
+ responseModel?: string | undefined;
801
+ responseId?: string | undefined;
802
+ diagnostics?: {
803
+ error?: {
804
+ name?: string | undefined;
805
+ stack?: string | undefined;
806
+ code?: string | number | undefined;
807
+ message: string;
808
+ } | undefined;
809
+ details?: Record<string, unknown> | undefined;
810
+ type: string;
811
+ timestamp: number;
812
+ }[] | undefined;
813
+ errorMessage?: string | undefined;
814
+ errorCode?: string | undefined;
815
+ errorType?: string | undefined;
816
+ errorBody?: string | undefined;
817
+ provider: string;
818
+ role: "assistant";
819
+ content: ({
820
+ textSignature?: string | undefined;
821
+ type: "text";
822
+ text: string;
823
+ } | {
824
+ thinkingSignature?: string | undefined;
825
+ redacted?: boolean | undefined;
826
+ type: "thinking";
827
+ thinking: string;
828
+ } | {
829
+ thoughtSignature?: string | undefined;
830
+ executionMode?: "sequential" | "parallel" | undefined;
831
+ type: "toolCall";
832
+ id: string;
833
+ name: string;
834
+ arguments: Record<string, unknown>;
835
+ })[];
836
+ timestamp: number;
837
+ api: string;
838
+ model: string;
839
+ usage: {
840
+ contextUsage?: {
841
+ state: "available";
842
+ promptTokens: number;
843
+ totalTokens: number;
844
+ } | {
845
+ state: "unavailable";
846
+ } | undefined;
847
+ input: number;
848
+ output: number;
849
+ cacheRead: number;
850
+ cacheWrite: number;
851
+ totalTokens: number;
852
+ cost: {
853
+ totalOrigin?: "provider-billed" | undefined;
854
+ input: number;
855
+ output: number;
856
+ cacheRead: number;
857
+ cacheWrite: number;
858
+ total: number;
859
+ };
860
+ };
861
+ stopReason: "error" | "stop" | "length" | "toolUse" | "aborted";
862
+ } | {
863
+ details?: unknown;
864
+ role: "toolResult";
865
+ content: ({
866
+ textSignature?: string | undefined;
867
+ type: "text";
868
+ text: string;
869
+ } | {
870
+ type: "image";
871
+ data: string;
872
+ mimeType: string;
873
+ })[];
874
+ timestamp: number;
875
+ toolCallId: string;
876
+ toolName: string;
877
+ isError: boolean;
878
+ })[];
879
+ }>;
880
+ declare const validateWorkerLiveEventParams: ProtocolValidator<{
881
+ readonly runId: string;
882
+ readonly runEpoch: number;
883
+ readonly seq: number;
884
+ readonly lastAckedSeq: number;
885
+ readonly event: {
886
+ readonly kind: "assistant";
887
+ readonly payload: {
888
+ readonly replace?: true | undefined;
889
+ readonly mediaUrls?: string[] | undefined;
890
+ readonly phase?: "commentary" | "final_answer" | undefined;
891
+ readonly itemId?: string | undefined;
892
+ readonly text: string;
893
+ readonly delta: string;
894
+ };
895
+ } | {
896
+ readonly kind: "thinking";
897
+ readonly payload: {
898
+ readonly text: string;
899
+ readonly delta: string;
900
+ };
901
+ } | {
902
+ readonly kind: "tool";
903
+ readonly payload: {
904
+ readonly hideFromChannelProgress?: true | undefined;
905
+ readonly name: string;
906
+ readonly toolCallId: string;
907
+ readonly phase: "start";
908
+ readonly args: unknown;
909
+ } | {
910
+ readonly hideFromChannelProgress?: true | undefined;
911
+ readonly name: string;
912
+ readonly toolCallId: string;
913
+ readonly phase: "update";
914
+ readonly partialResult: unknown;
915
+ } | {
916
+ readonly hideFromChannelProgress?: true | undefined;
917
+ readonly meta?: string | undefined;
918
+ readonly toolErrorSummary?: string | undefined;
919
+ readonly name: string;
920
+ readonly toolCallId: string;
921
+ readonly isError: boolean;
922
+ readonly phase: "result";
923
+ readonly result: unknown;
924
+ };
925
+ } | {
926
+ readonly kind: "approval";
927
+ readonly payload: {
928
+ readonly scope?: "turn" | "session" | undefined;
929
+ readonly message?: string | undefined;
930
+ readonly toolCallId?: string | undefined;
931
+ readonly itemId?: string | undefined;
932
+ readonly approvalId?: string | undefined;
933
+ readonly approvalSlug?: string | undefined;
934
+ readonly command?: string | undefined;
935
+ readonly host?: string | undefined;
936
+ readonly reason?: string | undefined;
937
+ readonly status: "unavailable" | "pending";
938
+ readonly kind: "exec" | "plugin" | "unknown";
939
+ readonly phase: "requested";
940
+ readonly title: string;
941
+ } | {
942
+ readonly scope?: "turn" | "session" | undefined;
943
+ readonly message?: string | undefined;
944
+ readonly toolCallId?: string | undefined;
945
+ readonly itemId?: string | undefined;
946
+ readonly approvalId?: string | undefined;
947
+ readonly approvalSlug?: string | undefined;
948
+ readonly command?: string | undefined;
949
+ readonly host?: string | undefined;
950
+ readonly reason?: string | undefined;
951
+ readonly status: "approved" | "denied" | "failed";
952
+ readonly kind: "exec" | "plugin" | "unknown";
953
+ readonly phase: "resolved";
954
+ readonly title: string;
955
+ };
956
+ } | {
957
+ readonly kind: "lifecycle";
958
+ readonly payload: {
959
+ readonly phase: "start";
960
+ readonly startedAt: number;
961
+ } | {
962
+ readonly phase: "fallback";
963
+ readonly attemptSummaries: string[];
964
+ readonly attempts: {
965
+ readonly status?: number | undefined;
966
+ readonly code?: string | undefined;
967
+ readonly reason?: "auth" | "unknown" | "auth_permanent" | "format" | "rate_limit" | "overloaded" | "billing" | "server_error" | "timeout" | "context_overflow" | "model_not_found" | "session_expired" | "empty_response" | "no_error_details" | "unclassified" | undefined;
968
+ readonly authMode?: string | undefined;
969
+ readonly provider: string;
970
+ readonly model: string;
971
+ readonly error: string;
972
+ }[];
973
+ readonly reasonSummary: string;
974
+ readonly selectedProvider: string;
975
+ readonly selectedModel: string;
976
+ readonly activeProvider: string;
977
+ readonly activeModel: string;
978
+ } | {
979
+ readonly previousActiveModel?: string | undefined;
980
+ readonly phase: "fallback_cleared";
981
+ readonly selectedProvider: string;
982
+ readonly selectedModel: string;
983
+ readonly activeProvider: string;
984
+ readonly activeModel: string;
985
+ } | {
986
+ readonly fallbackStepToModel?: string | undefined;
987
+ readonly fallbackStepFromFailureReason?: "auth" | "unknown" | "auth_permanent" | "format" | "rate_limit" | "overloaded" | "billing" | "server_error" | "timeout" | "context_overflow" | "model_not_found" | "session_expired" | "empty_response" | "no_error_details" | "unclassified" | undefined;
988
+ readonly fallbackStepFromFailureDetail?: string | undefined;
989
+ readonly fallbackStepChainPosition?: number | undefined;
990
+ readonly phase: "fallback_step";
991
+ readonly fallbackStepType: "fallback_step";
992
+ readonly fallbackStepFinalOutcome: "next_fallback" | "succeeded" | "chain_exhausted";
993
+ readonly fallbackStepFromModel: string;
994
+ } | {
995
+ readonly error?: string | undefined;
996
+ readonly stopReason?: string | undefined;
997
+ readonly aborted?: boolean | undefined;
998
+ readonly toolErrorSummary?: string | undefined;
999
+ readonly startedAt?: number | undefined;
1000
+ readonly yielded?: true | undefined;
1001
+ readonly timeoutPhase?: "provider" | "queue" | "preflight" | "post_turn" | "gateway_draining" | undefined;
1002
+ readonly providerStarted?: boolean | undefined;
1003
+ readonly livenessState?: "working" | "paused" | "blocked" | "abandoned" | undefined;
1004
+ readonly replayInvalid?: true | undefined;
1005
+ readonly phase: "finishing";
1006
+ readonly endedAt: number;
1007
+ } | {
1008
+ readonly stopReason?: string | undefined;
1009
+ readonly aborted?: boolean | undefined;
1010
+ readonly toolErrorSummary?: string | undefined;
1011
+ readonly startedAt?: number | undefined;
1012
+ readonly yielded?: true | undefined;
1013
+ readonly timeoutPhase?: "provider" | "queue" | "preflight" | "post_turn" | "gateway_draining" | undefined;
1014
+ readonly providerStarted?: boolean | undefined;
1015
+ readonly livenessState?: "working" | "paused" | "blocked" | "abandoned" | undefined;
1016
+ readonly replayInvalid?: true | undefined;
1017
+ readonly phase: "end";
1018
+ readonly endedAt: number;
1019
+ } | {
1020
+ readonly stopReason?: string | undefined;
1021
+ readonly aborted?: boolean | undefined;
1022
+ readonly toolErrorSummary?: string | undefined;
1023
+ readonly startedAt?: number | undefined;
1024
+ readonly yielded?: true | undefined;
1025
+ readonly timeoutPhase?: "provider" | "queue" | "preflight" | "post_turn" | "gateway_draining" | undefined;
1026
+ readonly providerStarted?: boolean | undefined;
1027
+ readonly livenessState?: "working" | "paused" | "blocked" | "abandoned" | undefined;
1028
+ readonly replayInvalid?: true | undefined;
1029
+ readonly fallbackExhaustedFailure?: true | undefined;
1030
+ readonly error: string;
1031
+ readonly phase: "error";
1032
+ readonly endedAt: number;
1033
+ };
1034
+ };
1035
+ }>;
1036
+ declare const validateGatewaySuspendPrepareParams: ProtocolValidator<{
1037
+ requestId: string;
1038
+ }>;
1039
+ declare const validateGatewaySuspendStatusParams: ProtocolValidator<{
1040
+ suspensionId: string;
1041
+ }>;
1042
+ declare const validateGatewaySuspendResumeParams: ProtocolValidator<{
1043
+ suspensionId: string;
1044
+ }>;
1045
+ declare const validateRequestFrame: ProtocolValidator<{
1046
+ params?: unknown;
1047
+ type: "req";
1048
+ id: string;
1049
+ method: string;
1050
+ }>;
1051
+ declare const validateMessageActionParams: ProtocolValidator<{
1052
+ agentId?: string | undefined;
1053
+ sessionId?: string | undefined;
1054
+ accountId?: string | undefined;
1055
+ requesterAccountId?: string | undefined;
1056
+ requesterSenderId?: string | undefined;
1057
+ senderIsOwner?: boolean | undefined;
1058
+ sessionKey?: string | undefined;
1059
+ inboundTurnKind?: string | undefined;
1060
+ toolContext?: {
1061
+ currentChannelId?: string | undefined;
1062
+ currentMessagingTarget?: string | undefined;
1063
+ currentGraphChannelId?: string | undefined;
1064
+ currentChannelProvider?: string | undefined;
1065
+ currentThreadTs?: string | undefined;
1066
+ currentMessageId?: string | number | undefined;
1067
+ replyToMode?: "off" | "first" | "all" | "batched" | undefined;
1068
+ hasRepliedRef?: {
1069
+ value: boolean;
1070
+ } | undefined;
1071
+ sameChannelThreadRequired?: boolean | undefined;
1072
+ skipCrossContextDecoration?: boolean | undefined;
1073
+ } | undefined;
1074
+ conversationReadOrigin?: "direct-operator" | undefined;
1075
+ params: Record<string, unknown>;
1076
+ channel: string;
1077
+ action: string;
1078
+ idempotencyKey: string;
1079
+ }>;
1080
+ declare const validateSendParams: ProtocolValidator<{
1081
+ agentId?: string | undefined;
1082
+ message?: string | undefined;
1083
+ mediaUrls?: string[] | undefined;
1084
+ channel?: string | undefined;
1085
+ accountId?: string | undefined;
1086
+ sessionKey?: string | undefined;
1087
+ mediaUrl?: string | undefined;
1088
+ buffer?: string | undefined;
1089
+ filename?: string | undefined;
1090
+ contentType?: string | undefined;
1091
+ asVoice?: boolean | undefined;
1092
+ gifPlayback?: boolean | undefined;
1093
+ replyToId?: string | undefined;
1094
+ threadId?: string | undefined;
1095
+ forceDocument?: boolean | undefined;
1096
+ silent?: boolean | undefined;
1097
+ parseMode?: "HTML" | undefined;
1098
+ idempotencyKey: string;
1099
+ to: string;
1100
+ }>;
1101
+ declare const validateConversationListParams: ProtocolValidator<{
1102
+ channel?: string | undefined;
1103
+ query?: string | undefined;
1104
+ limit?: number | undefined;
1105
+ agentId: string;
1106
+ }>;
1107
+ declare const validateConversationSendParams: ProtocolValidator<{
1108
+ sourceSessionKey?: string | undefined;
1109
+ agentId: string;
1110
+ message: string;
1111
+ operationId: string;
1112
+ conversationRef: string;
1113
+ }>;
1114
+ declare const validateConversationTurnCancelParams: ProtocolValidator<{
1115
+ agentId: string;
1116
+ turnId: string;
1117
+ }>;
1118
+ declare const validateConversationTurnParams: ProtocolValidator<{
1119
+ sourceSessionKey?: string | undefined;
1120
+ agentId: string;
1121
+ message: string;
1122
+ conversationRef: string;
1123
+ turnId: string;
1124
+ timeoutMs: number;
1125
+ }>;
1126
+ declare const validatePollParams: ProtocolValidator<{
1127
+ channel?: string | undefined;
1128
+ accountId?: string | undefined;
1129
+ threadId?: string | undefined;
1130
+ silent?: boolean | undefined;
1131
+ maxSelections?: number | undefined;
1132
+ durationSeconds?: number | undefined;
1133
+ durationHours?: number | undefined;
1134
+ isAnonymous?: boolean | undefined;
1135
+ idempotencyKey: string;
1136
+ to: string;
1137
+ question: string;
1138
+ options: string[];
1139
+ }>;
1140
+ declare const validateAgentParams: ProtocolValidator<{
1141
+ agentId?: string | undefined;
1142
+ provider?: string | undefined;
1143
+ sessionId?: string | undefined;
1144
+ thinking?: string | undefined;
1145
+ model?: string | undefined;
1146
+ timeout?: number | undefined;
1147
+ channel?: string | undefined;
1148
+ accountId?: string | undefined;
1149
+ sessionKey?: string | undefined;
1150
+ to?: string | undefined;
1151
+ threadId?: string | undefined;
1152
+ replyTo?: string | undefined;
1153
+ expectedExistingSessionId?: string | undefined;
1154
+ deliver?: boolean | undefined;
1155
+ attachments?: unknown[] | undefined;
1156
+ replyChannel?: string | undefined;
1157
+ replyAccountId?: string | undefined;
1158
+ groupId?: string | undefined;
1159
+ groupChannel?: string | undefined;
1160
+ groupSpace?: string | undefined;
1161
+ bestEffortDeliver?: boolean | undefined;
1162
+ lane?: string | undefined;
1163
+ cwd?: string | undefined;
1164
+ cleanupBundleMcpOnRunEnd?: boolean | undefined;
1165
+ modelRun?: boolean | undefined;
1166
+ promptMode?: "full" | "minimal" | "none" | undefined;
1167
+ extraSystemPrompt?: string | undefined;
1168
+ bootstrapContextMode?: "full" | "lightweight" | undefined;
1169
+ bootstrapContextRunKind?: "default" | "heartbeat" | "cron" | undefined;
1170
+ acpTurnSource?: "manual_spawn" | undefined;
1171
+ internalRuntimeHandoffId?: string | undefined;
1172
+ execApprovalFollowupExpectedSessionId?: string | undefined;
1173
+ internalEvents?: {
1174
+ mediaUrls?: string[] | undefined;
1175
+ attachments?: {
1176
+ type?: string | undefined;
1177
+ mimeType?: string | undefined;
1178
+ name?: string | undefined;
1179
+ mediaUrl?: string | undefined;
1180
+ path?: string | undefined;
1181
+ url?: string | undefined;
1182
+ filePath?: string | undefined;
1183
+ }[] | undefined;
1184
+ childSessionId?: string | undefined;
1185
+ statsLine?: string | undefined;
1186
+ type: "task_completion";
1187
+ status: string;
1188
+ result: string;
1189
+ source: string;
1190
+ childSessionKey: string;
1191
+ announceType: string;
1192
+ taskLabel: string;
1193
+ statusLabel: string;
1194
+ replyInstruction: string;
1195
+ }[] | undefined;
1196
+ inputProvenance?: {
1197
+ sourceSessionKey?: string | undefined;
1198
+ originSessionId?: string | undefined;
1199
+ sourceChannel?: string | undefined;
1200
+ sourceTool?: string | undefined;
1201
+ kind: string;
1202
+ } | undefined;
1203
+ suppressPromptPersistence?: boolean | undefined;
1204
+ sessionEffects?: "visible" | "internal" | undefined;
1205
+ sourceReplyDeliveryMode?: "automatic" | "message_tool_only" | undefined;
1206
+ disableMessageTool?: boolean | undefined;
1207
+ swarmCollector?: boolean | undefined;
1208
+ swarmOutputSchema?: Record<string, unknown> | undefined;
1209
+ forceRestartSafeTools?: boolean | undefined;
1210
+ voiceWakeTrigger?: string | undefined;
1211
+ label?: string | undefined;
1212
+ message: string;
1213
+ idempotencyKey: string;
1214
+ }>;
1215
+ declare const validateAuditActivityListParams: ProtocolValidator<AuditActivityListParams>;
1216
+ declare const validateAuditListParams: ProtocolValidator<{
1217
+ agentId?: string | undefined;
1218
+ runId?: string | undefined;
1219
+ status?: "unknown" | "failed" | "succeeded" | "blocked" | "started" | "cancelled" | "timed_out" | undefined;
1220
+ kind?: "agent_run" | "tool_action" | undefined;
1221
+ sessionKey?: string | undefined;
1222
+ limit?: number | undefined;
1223
+ after?: number | undefined;
1224
+ before?: number | undefined;
1225
+ cursor?: string | undefined;
1226
+ }>;
1227
+ declare const validateUsersListParams: ProtocolValidator<object>;
1228
+ declare const validateUsersSelfParams: ProtocolValidator<object>;
1229
+ declare const validateUsersSelfResult: ProtocolValidator<{
1230
+ profile: {
1231
+ id: string;
1232
+ displayName: string | null;
1233
+ avatarMime: "image/png" | "image/jpeg" | "image/webp" | null;
1234
+ mergedInto: string | null;
1235
+ createdAt: number;
1236
+ updatedAt: number;
1237
+ emails: string[];
1238
+ hasAvatar: boolean;
1239
+ };
1240
+ }>;
1241
+ declare const validateUsersLinkEmailParams: ProtocolValidator<{
1242
+ email: string;
1243
+ targetProfileId: string;
1244
+ }>;
1245
+ declare const validateUsersLinkEmailResult: ProtocolValidator<{
1246
+ profile: {
1247
+ id: string;
1248
+ displayName: string | null;
1249
+ avatarMime: "image/png" | "image/jpeg" | "image/webp" | null;
1250
+ mergedInto: string | null;
1251
+ createdAt: number;
1252
+ updatedAt: number;
1253
+ emails: string[];
1254
+ hasAvatar: boolean;
1255
+ };
1256
+ }>;
1257
+ declare const validateUsersSetDisplayNameParams: ProtocolValidator<{
1258
+ displayName: string | null;
1259
+ profileId: string;
1260
+ }>;
1261
+ declare const validateUsersSetDisplayNameResult: ProtocolValidator<{
1262
+ profile: {
1263
+ id: string;
1264
+ displayName: string | null;
1265
+ avatarMime: "image/png" | "image/jpeg" | "image/webp" | null;
1266
+ mergedInto: string | null;
1267
+ createdAt: number;
1268
+ updatedAt: number;
1269
+ emails: string[];
1270
+ hasAvatar: boolean;
1271
+ };
1272
+ }>;
1273
+ declare const validateUsersSetAvatarParams: ProtocolValidator<{
1274
+ profileId: string;
1275
+ mime: "image/png" | "image/jpeg" | "image/webp";
1276
+ avatarBase64: string;
1277
+ }>;
1278
+ declare const validateUsersSetAvatarResult: ProtocolValidator<{
1279
+ profile: {
1280
+ id: string;
1281
+ displayName: string | null;
1282
+ avatarMime: "image/png" | "image/jpeg" | "image/webp" | null;
1283
+ mergedInto: string | null;
1284
+ createdAt: number;
1285
+ updatedAt: number;
1286
+ emails: string[];
1287
+ hasAvatar: boolean;
1288
+ };
1289
+ }>;
1290
+ declare const validateAgentIdentityParams: ProtocolValidator<{
1291
+ agentId?: string | undefined;
1292
+ sessionKey?: string | undefined;
1293
+ }>;
1294
+ declare const validateAgentWaitParams: ProtocolValidator<{
1295
+ timeoutMs?: number | undefined;
1296
+ runId: string;
1297
+ }>;
1298
+ declare const validateWakeParams: ProtocolValidator<{
1299
+ agentId?: string | undefined;
1300
+ sessionKey?: string | undefined;
1301
+ text: string;
1302
+ mode: "now" | "next-heartbeat";
1303
+ }>;
1304
+ declare const validateAgentsListParams: ProtocolValidator<object>;
1305
+ declare const validateWorktreesListParams: ProtocolValidator<object>;
1306
+ declare const validateBoardGetParams: ProtocolValidator<{
1307
+ sessionKey: string;
1308
+ }>;
1309
+ declare const validateBoardUpdateParams: ProtocolValidator<{
1310
+ sessionKey: string;
1311
+ ops: ({
1312
+ chatDock?: "left" | "right" | "bottom" | "hidden" | undefined;
1313
+ kind: "tab_create";
1314
+ title: string;
1315
+ tabId: string;
1316
+ } | {
1317
+ title?: string | undefined;
1318
+ chatDock?: "left" | "right" | "bottom" | "hidden" | undefined;
1319
+ position?: number | undefined;
1320
+ kind: "tab_update";
1321
+ tabId: string;
1322
+ } | {
1323
+ kind: "tab_delete";
1324
+ tabId: string;
1325
+ } | {
1326
+ kind: "tabs_reorder";
1327
+ tabIds: string[];
1328
+ } | {
1329
+ after?: string | undefined;
1330
+ tabId?: string | undefined;
1331
+ position?: number | undefined;
1332
+ name: string;
1333
+ kind: "widget_move";
1334
+ } | {
1335
+ heightMode?: "auto" | "fixed" | undefined;
1336
+ name: string;
1337
+ kind: "widget_resize";
1338
+ sizeW: number;
1339
+ sizeH: number;
1340
+ } | {
1341
+ name: string;
1342
+ kind: "widget_remove";
1343
+ })[];
1344
+ }>;
1345
+ declare const validateBoardWidgetContent: ProtocolValidator<{
1346
+ kind: "html";
1347
+ html: string;
1348
+ } | {
1349
+ kind: "mcp-app";
1350
+ descriptor: {
1351
+ toolCallId: string;
1352
+ toolName: string;
1353
+ serverName: string;
1354
+ uiResourceUri: string;
1355
+ };
1356
+ } | {
1357
+ props?: Record<string, unknown> | undefined;
1358
+ kind: "plugin";
1359
+ pluginKind: string;
1360
+ }>;
1361
+ declare const validateBoardWidgetAppViewParams: ProtocolValidator<{
1362
+ instanceId: string;
1363
+ name: string;
1364
+ sessionKey: string;
1365
+ revision: number;
1366
+ }>;
1367
+ declare const validateBoardWidgetPutParams: ProtocolValidator<{
1368
+ title?: string | undefined;
1369
+ heightMode?: "auto" | "fixed" | undefined;
1370
+ presentation?: "card" | "full-bleed" | "frameless" | undefined;
1371
+ placement?: {
1372
+ after?: string | undefined;
1373
+ tabId?: string | undefined;
1374
+ size?: "full" | "sm" | "md" | "lg" | "xl" | undefined;
1375
+ } | undefined;
1376
+ declared?: {
1377
+ netOrigins?: string[] | undefined;
1378
+ tools?: string[] | undefined;
1379
+ } | undefined;
1380
+ content: {
1381
+ kind: "html";
1382
+ html: string;
1383
+ } | {
1384
+ props?: Record<string, unknown> | undefined;
1385
+ kind: "plugin";
1386
+ pluginKind: string;
1387
+ } | {
1388
+ kind: "mcp-app";
1389
+ viewId: string;
1390
+ } | {
1391
+ kind: "canvas-doc";
1392
+ docId: string;
1393
+ };
1394
+ name: string;
1395
+ sessionKey: string;
1396
+ }>;
1397
+ declare const validateBoardWidgetGrantParams: ProtocolValidator<{
1398
+ instanceId: string;
1399
+ name: string;
1400
+ sessionKey: string;
1401
+ revision: number;
1402
+ decision: "granted" | "rejected";
1403
+ }>;
1404
+ declare const validateBoardEventParams: ProtocolValidator<{
1405
+ payload: unknown;
1406
+ sessionKey: string;
1407
+ widget: string;
1408
+ } | {
1409
+ payload: unknown;
1410
+ ticket: string;
1411
+ }>;
1412
+ declare const validateBoardPromptAuthorizeParams: ProtocolValidator<{
1413
+ ticket: string;
1414
+ }>;
1415
+ declare const validateBoardDataReadParams: ProtocolValidator<{
1416
+ params?: Record<string, unknown> | undefined;
1417
+ ticket: string;
1418
+ bindingId: string;
1419
+ }>;
1420
+ declare const validateBoardActionParams: ProtocolValidator<{
1421
+ action: "cron.trigger";
1422
+ ticket: string;
1423
+ jobId: string;
1424
+ } | {
1425
+ params?: Record<string, unknown> | undefined;
1426
+ action: string;
1427
+ ticket: string;
1428
+ }>;
1429
+ declare const validateWorktreesCreateParams: ProtocolValidator<{
1430
+ name?: string | undefined;
1431
+ baseRef?: string | undefined;
1432
+ repoRoot: string;
1433
+ }>;
1434
+ declare const validateWorktreesRemoveParams: ProtocolValidator<{
1435
+ force?: boolean | undefined;
1436
+ id: string;
1437
+ }>;
1438
+ declare const validateWorktreesRestoreParams: ProtocolValidator<{
1439
+ id: string;
1440
+ }>;
1441
+ declare const validateWorktreesGcParams: ProtocolValidator<object>;
1442
+ declare const validateWorktreesBranchesParams: ProtocolValidator<{
1443
+ includeRepositoryStatus?: boolean | undefined;
1444
+ repoRoot: string;
1445
+ }>;
1446
+ declare const validateFsListDirParams: ProtocolValidator<{
1447
+ path?: string | undefined;
1448
+ nodeId?: string | undefined;
1449
+ }>;
1450
+ declare const validateFsListDirResult: ProtocolValidator<{
1451
+ parent?: string | undefined;
1452
+ path: string;
1453
+ home: string;
1454
+ entries: {
1455
+ hidden?: boolean | undefined;
1456
+ name: string;
1457
+ path: string;
1458
+ }[];
1459
+ }>;
1460
+ declare const validateAgentsCreateParams: ProtocolValidator<{
1461
+ model?: string | undefined;
1462
+ workspace?: string | undefined;
1463
+ emoji?: string | undefined;
1464
+ avatar?: string | undefined;
1465
+ name: string;
1466
+ }>;
1467
+ declare const validateAgentsUpdateParams: ProtocolValidator<{
1468
+ name?: string | undefined;
1469
+ model?: string | null | undefined;
1470
+ workspace?: string | undefined;
1471
+ emoji?: string | undefined;
1472
+ avatar?: string | undefined;
1473
+ agentId: string;
1474
+ }>;
1475
+ declare const validateAgentsDeleteParams: ProtocolValidator<{
1476
+ deleteFiles?: boolean | undefined;
1477
+ agentId: string;
1478
+ }>;
1479
+ declare const validateAgentsFilesListParams: ProtocolValidator<{
1480
+ agentId: string;
1481
+ }>;
1482
+ declare const validateAgentsFilesGetParams: ProtocolValidator<{
1483
+ agentId: string;
1484
+ name: string;
1485
+ }>;
1486
+ declare const validateAgentsFilesSetParams: ProtocolValidator<{
1487
+ agentId: string;
1488
+ content: string;
1489
+ name: string;
1490
+ }>;
1491
+ declare const validateAgentsWorkspaceListParams: ProtocolValidator<{
1492
+ limit?: number | undefined;
1493
+ path?: string | undefined;
1494
+ offset?: number | undefined;
1495
+ agentId: string;
1496
+ }>;
1497
+ declare const validateAgentsWorkspaceGetParams: ProtocolValidator<{
1498
+ agentId: string;
1499
+ path: string;
1500
+ }>;
1501
+ declare const validateArtifactsListParams: ProtocolValidator<{
1502
+ agentId?: string | undefined;
1503
+ runId?: string | undefined;
1504
+ sessionKey?: string | undefined;
1505
+ taskId?: string | undefined;
1506
+ }>;
1507
+ declare const validateArtifactsGetParams: ProtocolValidator<{
1508
+ agentId?: string | undefined;
1509
+ runId?: string | undefined;
1510
+ sessionKey?: string | undefined;
1511
+ taskId?: string | undefined;
1512
+ artifactId: string;
1513
+ }>;
1514
+ declare const validateArtifactsDownloadParams: ProtocolValidator<{
1515
+ agentId?: string | undefined;
1516
+ runId?: string | undefined;
1517
+ sessionKey?: string | undefined;
1518
+ taskId?: string | undefined;
1519
+ artifactId: string;
1520
+ }>;
1521
+ declare const validateNodePairListParams: ProtocolValidator<object>;
1522
+ declare const validateNodePairApproveParams: ProtocolValidator<{
1523
+ requestId: string;
1524
+ }>;
1525
+ declare const validateNodePairRejectParams: ProtocolValidator<{
1526
+ requestId: string;
1527
+ }>;
1528
+ declare const validateNodePairRemoveParams: ProtocolValidator<{
1529
+ nodeId: string;
1530
+ }>;
1531
+ declare const validateNodeRenameParams: ProtocolValidator<{
1532
+ displayName: string;
1533
+ nodeId: string;
1534
+ }>;
1535
+ declare const validateNodeListParams: ProtocolValidator<object>;
1536
+ declare const validateNodePluginToolsUpdateParams: ProtocolValidator<{
1537
+ tools: {
1538
+ command?: string | undefined;
1539
+ parameters?: Record<string, unknown> | undefined;
1540
+ mcp?: {
1541
+ tool: string;
1542
+ server: string;
1543
+ } | undefined;
1544
+ name: string;
1545
+ pluginId: string;
1546
+ description: string;
1547
+ }[];
1548
+ }>;
1549
+ declare const validateNodeSkillsUpdateParams: ProtocolValidator<{
1550
+ skills: {
1551
+ content: string;
1552
+ name: string;
1553
+ description: string;
1554
+ }[];
1555
+ }>;
1556
+ declare const validateEnvironmentsCreateParams: ProtocolValidator<{
1557
+ idempotencyKey: string;
1558
+ profileId: string;
1559
+ }>;
1560
+ declare const validateEnvironmentsDestroyParams: ProtocolValidator<{
1561
+ force?: boolean | undefined;
1562
+ environmentId: string;
1563
+ }>;
1564
+ declare const validateEnvironmentsListParams: ProtocolValidator<object>;
1565
+ declare const validateEnvironmentsStatusParams: ProtocolValidator<{
1566
+ environmentId: string;
1567
+ }>;
1568
+ declare const validateSystemInfoParams: ProtocolValidator<object>;
1569
+ declare const validateSystemInfoResult: ProtocolValidator<{
1570
+ lanAddress?: string | undefined;
1571
+ port?: number | undefined;
1572
+ processInstanceId?: string | undefined;
1573
+ cpuModel?: string | undefined;
1574
+ loadAverage?: [number, number, number] | undefined;
1575
+ diskTotalBytes?: number | undefined;
1576
+ diskAvailableBytes?: number | undefined;
1577
+ diskPath?: string | undefined;
1578
+ defaultAgentUtilityModel?: {
1579
+ status: "auto";
1580
+ model: string;
1581
+ } | {
1582
+ status: "configured";
1583
+ model: string;
1584
+ } | {
1585
+ status: "disabled";
1586
+ } | {
1587
+ status: "unavailable";
1588
+ } | undefined;
1589
+ platform: string;
1590
+ machineName: string;
1591
+ hostname: string;
1592
+ release: string;
1593
+ arch: string;
1594
+ osLabel: string;
1595
+ nodeVersion: string;
1596
+ pid: number;
1597
+ uptimeMs: number;
1598
+ cpuCount: number;
1599
+ memoryTotalBytes: number;
1600
+ memoryFreeBytes: number;
1601
+ }>;
1602
+ declare const validateNodePendingAckParams: ProtocolValidator<{
1603
+ ids: string[];
1604
+ }>;
1605
+ declare const validateNodeDescribeParams: ProtocolValidator<{
1606
+ nodeId: string;
1607
+ }>;
1608
+ declare const validateNodeInvokeParams: ProtocolValidator<{
1609
+ params?: unknown;
1610
+ sessionKey?: string | undefined;
1611
+ timeoutMs?: number | undefined;
1612
+ turnSourceChannel?: string | undefined;
1613
+ turnSourceTo?: string | undefined;
1614
+ turnSourceAccountId?: string | undefined;
1615
+ turnSourceThreadId?: string | number | undefined;
1616
+ command: string;
1617
+ idempotencyKey: string;
1618
+ nodeId: string;
1619
+ }>;
1620
+ declare const validateNodeInvokeResultParams: ProtocolValidator<{
1621
+ error?: {
1622
+ message?: string | undefined;
1623
+ code?: string | undefined;
1624
+ } | undefined;
1625
+ payload?: unknown;
1626
+ payloadJSON?: string | undefined;
1627
+ id: string;
1628
+ ok: boolean;
1629
+ nodeId: string;
1630
+ }>;
1631
+ declare const validateNodeInvokeProgressParams: ProtocolValidator<{
1632
+ seq: number;
1633
+ nodeId: string;
1634
+ invokeId: string;
1635
+ chunk: string;
1636
+ }>;
1637
+ declare const validateNodeEventParams: ProtocolValidator<{
1638
+ payload?: unknown;
1639
+ payloadJSON?: string | undefined;
1640
+ event: string;
1641
+ }>;
1642
+ declare const validateNodePresenceActivityPayload: ProtocolValidator<{
1643
+ saturated?: boolean | undefined;
1644
+ idleSeconds: number;
1645
+ } | {
1646
+ action: "clear";
1647
+ }>;
1648
+ declare const validateNodePendingDrainParams: ProtocolValidator<{
1649
+ maxItems?: number | undefined;
1650
+ }>;
1651
+ declare const validateNodePendingEnqueueParams: ProtocolValidator<{
1652
+ priority?: string | undefined;
1653
+ expiresInMs?: number | undefined;
1654
+ wake?: boolean | undefined;
1655
+ type: string;
1656
+ nodeId: string;
1657
+ }>;
1658
+ declare const validatePushTestParams: ProtocolValidator<{
1659
+ title?: string | undefined;
1660
+ body?: string | undefined;
1661
+ environment?: string | undefined;
1662
+ nodeId: string;
1663
+ }>;
1664
+ declare const validateWebPushVapidPublicKeyParams: ProtocolValidator<WebPushVapidPublicKeyParams>;
1665
+ declare const validateWebPushSubscribeParams: ProtocolValidator<WebPushSubscribeParams>;
1666
+ declare const validateWebPushUnsubscribeParams: ProtocolValidator<WebPushUnsubscribeParams>;
1667
+ declare const validateWebPushTestParams: ProtocolValidator<WebPushTestParams>;
1668
+ declare const validateSecretsResolveParams: ProtocolValidator<{
1669
+ allowedPaths?: string[] | undefined;
1670
+ forcedActivePaths?: string[] | undefined;
1671
+ optionalActivePaths?: string[] | undefined;
1672
+ providerOverrides?: {
1673
+ webSearch?: string | undefined;
1674
+ webFetch?: string | undefined;
1675
+ } | undefined;
1676
+ commandName: string;
1677
+ targetIds: string[];
1678
+ }>;
1679
+ declare const validateSecretsResolveResult: ProtocolValidator<{
1680
+ diagnostics?: string[] | undefined;
1681
+ ok?: boolean | undefined;
1682
+ assignments?: {
1683
+ path?: string | undefined;
1684
+ value: unknown;
1685
+ pathSegments: string[];
1686
+ }[] | undefined;
1687
+ inactiveRefPaths?: string[] | undefined;
1688
+ }>;
1689
+ declare const validateSessionsListParams: ProtocolValidator<{
1690
+ agentId?: string | undefined;
1691
+ limit?: number | undefined;
1692
+ label?: string | undefined;
1693
+ offset?: number | undefined;
1694
+ activeMinutes?: number | undefined;
1695
+ requireLastInteraction?: boolean | undefined;
1696
+ sortBy?: "updatedAt" | "lastInteractionAt" | undefined;
1697
+ includeGlobal?: boolean | undefined;
1698
+ includeUnknown?: boolean | undefined;
1699
+ configuredAgentsOnly?: boolean | undefined;
1700
+ includeDerivedTitles?: boolean | undefined;
1701
+ includeLastMessage?: boolean | undefined;
1702
+ creatorId?: string | undefined;
1703
+ spawnedBy?: string | undefined;
1704
+ search?: string | undefined;
1705
+ archived?: boolean | "all" | undefined;
1706
+ }>;
1707
+ declare const validateSessionsCatalogListParams: ProtocolValidator<{
1708
+ agentId?: string | undefined;
1709
+ search?: string | undefined;
1710
+ catalogId?: string | undefined;
1711
+ cursors?: Record<string, string> | undefined;
1712
+ progressId?: string | undefined;
1713
+ limitPerHost?: number | undefined;
1714
+ hostIds?: string[] | undefined;
1715
+ }>;
1716
+ declare const validateSessionsCatalogReadParams: ProtocolValidator<{
1717
+ limit?: number | undefined;
1718
+ cursor?: string | undefined;
1719
+ threadId: string;
1720
+ catalogId: string;
1721
+ hostId: string;
1722
+ }>;
1723
+ declare const validateSessionsCatalogContinueParams: ProtocolValidator<{
1724
+ threadId: string;
1725
+ catalogId: string;
1726
+ hostId: string;
1727
+ }>;
1728
+ declare const validateSessionsCatalogArchiveParams: ProtocolValidator<{
1729
+ threadId: string;
1730
+ catalogId: string;
1731
+ hostId: string;
1732
+ confirmNoOtherRunner: true;
1733
+ }>;
1734
+ declare const validateSessionsSearchParams: ProtocolValidator<{
1735
+ agentId?: string | undefined;
1736
+ limit?: number | undefined;
1737
+ sessionKeys?: string[] | undefined;
1738
+ query: string;
1739
+ }>;
1740
+ declare const validateSessionsCleanupParams: ProtocolValidator<{
1741
+ agent?: string | undefined;
1742
+ allAgents?: boolean | undefined;
1743
+ enforce?: boolean | undefined;
1744
+ activeKey?: string | undefined;
1745
+ fixMissing?: boolean | undefined;
1746
+ fixDmScope?: boolean | undefined;
1747
+ }>;
1748
+ declare const validateSessionsPreviewParams: ProtocolValidator<{
1749
+ limit?: number | undefined;
1750
+ maxChars?: number | undefined;
1751
+ keys: string[];
1752
+ }>;
1753
+ declare const validateSessionsDescribeParams: ProtocolValidator<{
1754
+ includeDerivedTitles?: boolean | undefined;
1755
+ includeLastMessage?: boolean | undefined;
1756
+ key: string;
1757
+ }>;
1758
+ declare const validateSessionsResolveParams: ProtocolValidator<{
1759
+ agentId?: string | undefined;
1760
+ sessionId?: string | undefined;
1761
+ label?: string | undefined;
1762
+ includeGlobal?: boolean | undefined;
1763
+ includeUnknown?: boolean | undefined;
1764
+ spawnedBy?: string | undefined;
1765
+ key?: string | undefined;
1766
+ allowMissing?: boolean | undefined;
1767
+ }>;
1768
+ declare const validateSessionsFilesListParams: ProtocolValidator<{
1769
+ agentId?: string | undefined;
1770
+ path?: string | undefined;
1771
+ search?: string | undefined;
1772
+ sessionKey: string;
1773
+ }>;
1774
+ declare const validateSessionsFilesGetParams: ProtocolValidator<{
1775
+ agentId?: string | undefined;
1776
+ sessionKey: string;
1777
+ path: string;
1778
+ }>;
1779
+ declare const validateSessionsFilesSetParams: ProtocolValidator<{
1780
+ agentId?: string | undefined;
1781
+ content: string;
1782
+ sessionKey: string;
1783
+ path: string;
1784
+ expectedHash: string;
1785
+ }>;
1786
+ declare const validateSessionsFilesRevealParams: ProtocolValidator<{
1787
+ agentId?: string | undefined;
1788
+ key: string;
1789
+ }>;
1790
+ declare const validateSessionsDiffParams: ProtocolValidator<{
1791
+ agentId?: string | undefined;
1792
+ sessionKey: string;
1793
+ }>;
1794
+ declare const validateSessionsObserverAskParams: ProtocolValidator<{
1795
+ sessionKey: string;
1796
+ question: string;
1797
+ }>;
1798
+ declare const validateSessionsObserverVisibilityParams: ProtocolValidator<{
1799
+ visible: boolean;
1800
+ }>;
1801
+ declare const validateSessionVisibilitySetParams: ProtocolValidator<{
1802
+ agentId?: string | undefined;
1803
+ sessionKey: string;
1804
+ visibility: "shared" | "read-only" | "suggest" | "draft";
1805
+ }>;
1806
+ declare const validateSessionMembersListParams: ProtocolValidator<{
1807
+ agentId?: string | undefined;
1808
+ sessionKey: string;
1809
+ }>;
1810
+ declare const validateSessionMemberAddParams: ProtocolValidator<{
1811
+ agentId?: string | undefined;
1812
+ sessionKey: string;
1813
+ identityId: string;
1814
+ }>;
1815
+ declare const validateSessionMemberRemoveParams: ProtocolValidator<{
1816
+ agentId?: string | undefined;
1817
+ sessionKey: string;
1818
+ identityId: string;
1819
+ }>;
1820
+ declare const validateSessionsCreateParams: ProtocolValidator<{
1821
+ agentId?: string | undefined;
1822
+ model?: string | undefined;
1823
+ message?: string | undefined;
1824
+ attachments?: unknown[] | undefined;
1825
+ cwd?: string | undefined;
1826
+ label?: string | undefined;
1827
+ catalogId?: string | undefined;
1828
+ key?: string | undefined;
1829
+ visibility?: "shared" | "read-only" | "suggest" | "draft" | undefined;
1830
+ thinkingLevel?: string | undefined;
1831
+ incognito?: boolean | undefined;
1832
+ parentSessionKey?: string | undefined;
1833
+ spawnDepth?: number | undefined;
1834
+ fork?: boolean | undefined;
1835
+ emitCommandHooks?: boolean | undefined;
1836
+ succeedsParent?: boolean | undefined;
1837
+ task?: string | undefined;
1838
+ worktree?: boolean | undefined;
1839
+ worktreeBaseRef?: string | undefined;
1840
+ worktreeName?: string | undefined;
1841
+ execNode?: string | undefined;
1842
+ }>;
1843
+ declare const validateSessionsSendParams: ProtocolValidator<{
1844
+ agentId?: string | undefined;
1845
+ thinking?: string | undefined;
1846
+ idempotencyKey?: string | undefined;
1847
+ timeoutMs?: number | undefined;
1848
+ attachments?: unknown[] | undefined;
1849
+ message: string;
1850
+ key: string;
1851
+ }>;
1852
+ declare const validateSessionsDispatchParams: ProtocolValidator<{
1853
+ agentId?: string | undefined;
1854
+ profileId: string;
1855
+ key: string;
1856
+ }>;
1857
+ declare const validateSessionsReclaimParams: ProtocolValidator<{
1858
+ agentId?: string | undefined;
1859
+ key: string;
1860
+ }>;
1861
+ declare const validateSessionsMessagesSubscribeParams: ProtocolValidator<{
1862
+ agentId?: string | undefined;
1863
+ includeApprovals?: true | undefined;
1864
+ key: string;
1865
+ }>;
1866
+ declare const validateSessionsMessagesUnsubscribeParams: ProtocolValidator<{
1867
+ agentId?: string | undefined;
1868
+ key: string;
1869
+ }>;
1870
+ declare const validateSessionsAbortParams: ProtocolValidator<{
1871
+ agentId?: string | undefined;
1872
+ runId?: string | undefined;
1873
+ key?: string | undefined;
1874
+ }>;
1875
+ declare const validateSessionsPatchParams: ProtocolValidator<{
1876
+ agentId?: string | undefined;
1877
+ model?: string | null | undefined;
1878
+ label?: string | null | undefined;
1879
+ archived?: boolean | undefined;
1880
+ thinkingLevel?: string | null | undefined;
1881
+ execNode?: string | null | undefined;
1882
+ category?: string | null | undefined;
1883
+ icon?: string | null | undefined;
1884
+ statusNote?: string | null | undefined;
1885
+ attention?: string | null | undefined;
1886
+ ttlMinutes?: number | undefined;
1887
+ pinned?: boolean | undefined;
1888
+ unread?: boolean | undefined;
1889
+ fastMode?: boolean | "auto" | null | undefined;
1890
+ verboseLevel?: string | null | undefined;
1891
+ traceLevel?: string | null | undefined;
1892
+ reasoningLevel?: string | null | undefined;
1893
+ responseUsage?: "off" | "full" | "tokens" | "on" | null | undefined;
1894
+ elevatedLevel?: string | null | undefined;
1895
+ execHost?: string | null | undefined;
1896
+ execSecurity?: string | null | undefined;
1897
+ execAsk?: string | null | undefined;
1898
+ completionOwnerSessionKey?: string | null | undefined;
1899
+ inheritedToolPolicyVersion?: 1 | null | undefined;
1900
+ inheritedToolAllow?: string[] | null | undefined;
1901
+ inheritedToolDeny?: string[] | null | undefined;
1902
+ sendPolicy?: "allow" | "deny" | null | undefined;
1903
+ groupActivation?: "mention" | "always" | null | undefined;
1904
+ key: string;
1905
+ }>;
1906
+ declare const validateSessionsPluginPatchParams: ProtocolValidator<{
1907
+ value?: unknown;
1908
+ unset?: boolean | undefined;
1909
+ pluginId: string;
1910
+ key: string;
1911
+ namespace: string;
1912
+ }>;
1913
+ declare const validateSessionsResetParams: ProtocolValidator<{
1914
+ agentId?: string | undefined;
1915
+ reason?: "new" | "reset" | undefined;
1916
+ key: string;
1917
+ }>;
1918
+ declare const validateSessionsDeleteParams: ProtocolValidator<{
1919
+ agentId?: string | undefined;
1920
+ deleteTranscript?: boolean | undefined;
1921
+ expectedSessionId?: string | undefined;
1922
+ expectedLifecycleRevision?: string | undefined;
1923
+ expectedSessionUpdatedAt?: number | undefined;
1924
+ emitLifecycleHooks?: boolean | undefined;
1925
+ archivedOnly?: boolean | undefined;
1926
+ key: string;
1927
+ }>;
1928
+ declare const validateSessionsGroupsListParams: ProtocolValidator<object>;
1929
+ declare const validateSessionsGroupsPutParams: ProtocolValidator<{
1930
+ names: string[];
1931
+ }>;
1932
+ declare const validateSessionsGroupsRenameParams: ProtocolValidator<{
1933
+ name: string;
1934
+ to: string;
1935
+ }>;
1936
+ declare const validateSessionsGroupsDeleteParams: ProtocolValidator<{
1937
+ name: string;
1938
+ }>;
1939
+ declare const validateSessionsCompactParams: ProtocolValidator<{
1940
+ agentId?: string | undefined;
1941
+ maxLines?: number | undefined;
1942
+ key: string;
1943
+ }>;
1944
+ declare const validateSessionsCompactionListParams: ProtocolValidator<{
1945
+ agentId?: string | undefined;
1946
+ key: string;
1947
+ }>;
1948
+ declare const validateSessionsCompactionGetParams: ProtocolValidator<{
1949
+ agentId?: string | undefined;
1950
+ key: string;
1951
+ checkpointId: string;
1952
+ }>;
1953
+ declare const validateSessionsCompactionBranchParams: ProtocolValidator<{
1954
+ agentId?: string | undefined;
1955
+ key: string;
1956
+ checkpointId: string;
1957
+ }>;
1958
+ declare const validateSessionsCompactionRestoreParams: ProtocolValidator<{
1959
+ agentId?: string | undefined;
1960
+ key: string;
1961
+ checkpointId: string;
1962
+ }>;
1963
+ declare const validateSessionsBranchesListParams: ProtocolValidator<{
1964
+ agentId?: string | undefined;
1965
+ sessionKey: string;
1966
+ }>;
1967
+ declare const validateSessionsBranchesSwitchParams: ProtocolValidator<{
1968
+ agentId?: string | undefined;
1969
+ sessionKey: string;
1970
+ leafEntryId: string;
1971
+ }>;
1972
+ declare const validateSessionsRewindParams: ProtocolValidator<{
1973
+ agentId?: string | undefined;
1974
+ sessionKey: string;
1975
+ entryId: string;
1976
+ }>;
1977
+ declare const validateSessionsForkParams: ProtocolValidator<{
1978
+ agentId?: string | undefined;
1979
+ sessionKey: string;
1980
+ entryId: string;
1981
+ }>;
1982
+ declare const validateSessionsUsageParams: ProtocolValidator<{
1983
+ agentId?: string | undefined;
1984
+ mode?: "utc" | "gateway" | "specific" | undefined;
1985
+ limit?: number | undefined;
1986
+ key?: string | undefined;
1987
+ agentScope?: "all" | undefined;
1988
+ startDate?: string | undefined;
1989
+ endDate?: string | undefined;
1990
+ range?: "all" | "7d" | "30d" | "90d" | "1y" | undefined;
1991
+ groupBy?: "instance" | "family" | undefined;
1992
+ includeHistorical?: boolean | undefined;
1993
+ utcOffset?: string | undefined;
1994
+ timeZone?: string | undefined;
1995
+ includeContextWeight?: boolean | undefined;
1996
+ }>;
1997
+ declare const validateSessionDiscussionInfoParams: ProtocolValidator<{
1998
+ sessionKey: string;
1999
+ }>;
2000
+ declare const validateSessionDiscussionInfoResult: ProtocolValidator<{
2001
+ embedUrl?: string | undefined;
2002
+ openUrl?: string | undefined;
2003
+ state: "available" | "none" | "open";
2004
+ }>;
2005
+ declare const validateSessionDiscussionOpenParams: ProtocolValidator<{
2006
+ sessionKey: string;
2007
+ }>;
2008
+ declare const validateSessionDiscussionOpenResult: ProtocolValidator<{
2009
+ embedUrl?: string | undefined;
2010
+ openUrl?: string | undefined;
2011
+ state: "available" | "none" | "open";
2012
+ }>;
2013
+ declare const validateTaskSuggestionsListParams: ProtocolValidator<{
2014
+ agentId?: string | undefined;
2015
+ sessionKey?: string | undefined;
2016
+ }>;
2017
+ declare const validateTaskSuggestionsCreateParams: ProtocolValidator<{
2018
+ agentId?: string | undefined;
2019
+ title: string;
2020
+ sessionKey: string;
2021
+ cwd: string;
2022
+ prompt: string;
2023
+ tldr: string;
2024
+ }>;
2025
+ declare const validateTaskSuggestionsAcceptParams: ProtocolValidator<{
2026
+ taskId: string;
2027
+ }>;
2028
+ declare const validateTaskSuggestionsDismissParams: ProtocolValidator<{
2029
+ reason?: string | undefined;
2030
+ taskId: string;
2031
+ }>;
2032
+ declare const validateTasksListParams: ProtocolValidator<{
2033
+ agentId?: string | undefined;
2034
+ status?: "failed" | "cancelled" | "timed_out" | "queued" | "running" | "completed" | ("failed" | "cancelled" | "timed_out" | "queued" | "running" | "completed")[] | undefined;
2035
+ sessionKey?: string | undefined;
2036
+ limit?: number | undefined;
2037
+ cursor?: string | undefined;
2038
+ }>;
2039
+ declare const validateTasksGetParams: ProtocolValidator<{
2040
+ taskId: string;
2041
+ }>;
2042
+ declare const validateTasksCancelParams: ProtocolValidator<{
2043
+ reason?: string | undefined;
2044
+ taskId: string;
2045
+ }>;
2046
+ declare const validateConfigGetParams: ProtocolValidator<object>;
2047
+ declare const validateConfigSetParams: ProtocolValidator<{
2048
+ baseHash?: string | undefined;
2049
+ raw: string;
2050
+ }>;
2051
+ declare const validateConfigApplyParams: ProtocolValidator<{
2052
+ readonly sessionKey?: string | undefined;
2053
+ readonly baseHash?: string | undefined;
2054
+ readonly deliveryContext?: {
2055
+ channel?: string | undefined;
2056
+ accountId?: string | undefined;
2057
+ to?: string | undefined;
2058
+ threadId?: string | number | undefined;
2059
+ } | undefined;
2060
+ readonly note?: string | undefined;
2061
+ readonly restartDelayMs?: number | undefined;
2062
+ readonly raw: string;
2063
+ }>;
2064
+ declare const validateConfigPatchParams: ProtocolValidator<{
2065
+ sessionKey?: string | undefined;
2066
+ baseHash?: string | undefined;
2067
+ deliveryContext?: {
2068
+ channel?: string | undefined;
2069
+ accountId?: string | undefined;
2070
+ to?: string | undefined;
2071
+ threadId?: string | number | undefined;
2072
+ } | undefined;
2073
+ note?: string | undefined;
2074
+ restartDelayMs?: number | undefined;
2075
+ replacePaths?: string[] | undefined;
2076
+ raw: string;
2077
+ }>;
2078
+ declare const validateConfigSchemaParams: ProtocolValidator<object>;
2079
+ declare const validateConfigSchemaLookupParams: ProtocolValidator<{
2080
+ path: string;
2081
+ }>;
2082
+ declare const validateConfigSchemaLookupResult: ProtocolValidator<{
2083
+ reloadKind?: "none" | "restart" | "hot" | undefined;
2084
+ hint?: {
2085
+ label?: string | undefined;
2086
+ presentation?: "phone-number" | undefined;
2087
+ help?: string | undefined;
2088
+ tags?: string[] | undefined;
2089
+ group?: string | undefined;
2090
+ order?: number | undefined;
2091
+ advanced?: boolean | undefined;
2092
+ sensitive?: boolean | undefined;
2093
+ placeholder?: string | undefined;
2094
+ itemTemplate?: unknown;
2095
+ } | undefined;
2096
+ hintPath?: string | undefined;
2097
+ path: string;
2098
+ schema: unknown;
2099
+ children: {
2100
+ type?: string | string[] | undefined;
2101
+ reloadKind?: "none" | "restart" | "hot" | undefined;
2102
+ hint?: {
2103
+ label?: string | undefined;
2104
+ presentation?: "phone-number" | undefined;
2105
+ help?: string | undefined;
2106
+ tags?: string[] | undefined;
2107
+ group?: string | undefined;
2108
+ order?: number | undefined;
2109
+ advanced?: boolean | undefined;
2110
+ sensitive?: boolean | undefined;
2111
+ placeholder?: string | undefined;
2112
+ itemTemplate?: unknown;
2113
+ } | undefined;
2114
+ hintPath?: string | undefined;
2115
+ required: boolean;
2116
+ path: string;
2117
+ key: string;
2118
+ hasChildren: boolean;
2119
+ }[];
2120
+ }>;
2121
+ declare const validateSystemAgentChatParams: ProtocolValidator<{
2122
+ message?: string | undefined;
2123
+ reset?: boolean | undefined;
2124
+ welcomeVariant?: "onboarding" | "new-agent" | undefined;
2125
+ delegation?: {
2126
+ agentId?: string | undefined;
2127
+ sessionKey?: string | undefined;
2128
+ turnSourceChannel?: string | undefined;
2129
+ turnSourceTo?: string | undefined;
2130
+ turnSourceAccountId?: string | undefined;
2131
+ turnSourceThreadId?: string | number | undefined;
2132
+ } | undefined;
2133
+ sessionId: string;
2134
+ }>;
2135
+ declare const validateSystemAgentChatHistoryParams: ProtocolValidator<{
2136
+ limit?: number | undefined;
2137
+ }>;
2138
+ declare const validateSystemChangesListParams: ProtocolValidator<{
2139
+ limit?: number | undefined;
2140
+ beforeCursor?: string | undefined;
2141
+ }>;
2142
+ declare const validateSystemAgentSetupDetectParams: ProtocolValidator<object>;
2143
+ declare const validateSystemAgentSetupVerifyParams: ProtocolValidator<object>;
2144
+ declare const validateSystemAgentSetupActivateParams: ProtocolValidator<{
2145
+ workspace?: string | undefined;
2146
+ modelRef?: string | undefined;
2147
+ authChoice?: string | undefined;
2148
+ apiKey?: string | undefined;
2149
+ kind: "existing-model" | "openai-api-key" | "anthropic-api-key" | "claude-cli" | "codex-cli" | "gemini-cli" | "api-key" | `provider-auto:${string}`;
2150
+ }>;
2151
+ declare const validateSystemAgentSetupAuthStartParams: ProtocolValidator<{
2152
+ workspace?: string | undefined;
2153
+ sessionId: string;
2154
+ authChoice: string;
2155
+ }>;
2156
+ declare const validateWizardStartParams: ProtocolValidator<{
2157
+ mode?: "local" | "remote" | undefined;
2158
+ channel?: string | undefined;
2159
+ workspace?: string | undefined;
2160
+ flow?: "setup" | "channels" | undefined;
2161
+ }>;
2162
+ declare const validateWizardNextParams: ProtocolValidator<{
2163
+ answer?: {
2164
+ value?: unknown;
2165
+ stepId: string;
2166
+ } | undefined;
2167
+ sessionId: string;
2168
+ }>;
2169
+ declare const validateWizardCancelParams: ProtocolValidator<{
2170
+ sessionId: string;
2171
+ }>;
2172
+ declare const validateWizardStatusParams: ProtocolValidator<{
2173
+ sessionId: string;
2174
+ }>;
2175
+ declare const validateTalkModeParams: ProtocolValidator<{
2176
+ phase?: string | undefined;
2177
+ enabled: boolean;
2178
+ }>;
2179
+ declare const validateTalkCatalogParams: ProtocolValidator<object>;
2180
+ declare const validateTalkConfigParams: ProtocolValidator<{
2181
+ includeSecrets?: boolean | undefined;
2182
+ }>;
2183
+ declare const validateTalkConfigResult: ProtocolValidator<{
2184
+ config: {
2185
+ ui?: {
2186
+ seamColor?: string | undefined;
2187
+ } | undefined;
2188
+ session?: {
2189
+ mainKey?: string | undefined;
2190
+ } | undefined;
2191
+ talk?: {
2192
+ provider?: string | undefined;
2193
+ resolved?: {
2194
+ provider: string;
2195
+ config: {
2196
+ apiKey?: string | {
2197
+ provider: string;
2198
+ id: string;
2199
+ source: "env";
2200
+ } | {
2201
+ provider: string;
2202
+ id: string;
2203
+ source: "file";
2204
+ } | {
2205
+ provider: string;
2206
+ id: string;
2207
+ source: "exec";
2208
+ } | undefined;
2209
+ };
2210
+ } | undefined;
2211
+ providers?: Record<string, {
2212
+ apiKey?: string | {
2213
+ provider: string;
2214
+ id: string;
2215
+ source: "env";
2216
+ } | {
2217
+ provider: string;
2218
+ id: string;
2219
+ source: "file";
2220
+ } | {
2221
+ provider: string;
2222
+ id: string;
2223
+ source: "exec";
2224
+ } | undefined;
2225
+ }> | undefined;
2226
+ realtime?: {
2227
+ provider?: string | undefined;
2228
+ mode?: "realtime" | "stt-tts" | "transcription" | undefined;
2229
+ model?: string | undefined;
2230
+ providers?: Record<string, {
2231
+ apiKey?: string | {
2232
+ provider: string;
2233
+ id: string;
2234
+ source: "env";
2235
+ } | {
2236
+ provider: string;
2237
+ id: string;
2238
+ source: "file";
2239
+ } | {
2240
+ provider: string;
2241
+ id: string;
2242
+ source: "exec";
2243
+ } | undefined;
2244
+ }> | undefined;
2245
+ speakerVoice?: string | undefined;
2246
+ speakerVoiceId?: string | undefined;
2247
+ voice?: string | undefined;
2248
+ instructions?: string | undefined;
2249
+ transport?: "webrtc" | "provider-websocket" | "gateway-relay" | "managed-room" | undefined;
2250
+ vadThreshold?: number | undefined;
2251
+ silenceDurationMs?: number | undefined;
2252
+ prefixPaddingMs?: number | undefined;
2253
+ reasoningEffort?: string | undefined;
2254
+ brain?: "none" | "agent-consult" | "direct-tools" | undefined;
2255
+ consultRouting?: "provider-direct" | "force-agent-consult" | undefined;
2256
+ } | undefined;
2257
+ consultThinkingLevel?: string | undefined;
2258
+ consultFastMode?: boolean | undefined;
2259
+ speechLocale?: string | undefined;
2260
+ interruptOnSpeech?: boolean | undefined;
2261
+ silenceTimeoutMs?: number | undefined;
2262
+ } | undefined;
2263
+ };
2264
+ }>;
2265
+ declare const validateTalkClientCreateParams: ProtocolValidator<{
2266
+ provider?: string | undefined;
2267
+ mode?: "realtime" | "stt-tts" | "transcription" | undefined;
2268
+ model?: string | undefined;
2269
+ sessionKey?: string | undefined;
2270
+ voice?: string | undefined;
2271
+ transport?: "webrtc" | "provider-websocket" | "gateway-relay" | "managed-room" | undefined;
2272
+ vadThreshold?: number | undefined;
2273
+ silenceDurationMs?: number | undefined;
2274
+ prefixPaddingMs?: number | undefined;
2275
+ reasoningEffort?: string | undefined;
2276
+ brain?: "none" | "agent-consult" | "direct-tools" | undefined;
2277
+ voiceSessionId?: string | undefined;
2278
+ capabilities?: ("camera-frame" | "voice-transcript")[] | undefined;
2279
+ }>;
2280
+ declare const validateTalkClientCreateResult: ProtocolValidator<{
2281
+ model?: string | undefined;
2282
+ voice?: string | undefined;
2283
+ offerUrl?: string | undefined;
2284
+ offerHeaders?: Record<string, string> | undefined;
2285
+ expiresAt?: number | undefined;
2286
+ provider: string;
2287
+ transport: "webrtc";
2288
+ voiceSessionId: string;
2289
+ clientSecret: string;
2290
+ } | {
2291
+ model?: string | undefined;
2292
+ voice?: string | undefined;
2293
+ expiresAt?: number | undefined;
2294
+ initialMessage?: unknown;
2295
+ provider: string;
2296
+ audio: {
2297
+ inputEncoding: "pcm16" | "g711_ulaw";
2298
+ inputSampleRateHz: number;
2299
+ outputEncoding: "pcm16" | "g711_ulaw";
2300
+ outputSampleRateHz: number;
2301
+ };
2302
+ transport: "provider-websocket";
2303
+ voiceSessionId: string;
2304
+ clientSecret: string;
2305
+ protocol: string;
2306
+ websocketUrl: string;
2307
+ } | {
2308
+ model?: string | undefined;
2309
+ voice?: string | undefined;
2310
+ voiceSessionId?: string | undefined;
2311
+ expiresAt?: number | undefined;
2312
+ provider: string;
2313
+ audio: {
2314
+ inputEncoding: "pcm16" | "g711_ulaw";
2315
+ inputSampleRateHz: number;
2316
+ outputEncoding: "pcm16" | "g711_ulaw";
2317
+ outputSampleRateHz: number;
2318
+ };
2319
+ transport: "gateway-relay";
2320
+ relaySessionId: string;
2321
+ } | {
2322
+ token?: string | undefined;
2323
+ model?: string | undefined;
2324
+ voice?: string | undefined;
2325
+ voiceSessionId?: string | undefined;
2326
+ expiresAt?: number | undefined;
2327
+ provider: string;
2328
+ transport: "managed-room";
2329
+ roomUrl: string;
2330
+ }>;
2331
+ declare const validateTalkClientCloseParams: ProtocolValidator<{
2332
+ sessionKey: string;
2333
+ voiceSessionId: string;
2334
+ }>;
2335
+ declare const validateTalkClientMutationResult: ProtocolValidator<{
2336
+ ok: true;
2337
+ }>;
2338
+ declare const validateTalkClientToolCallParams: ProtocolValidator<{
2339
+ args?: unknown;
2340
+ voiceSessionId?: string | undefined;
2341
+ relaySessionId?: string | undefined;
2342
+ name: string;
2343
+ sessionKey: string;
2344
+ callId: string;
2345
+ }>;
2346
+ declare const validateTalkClientToolCallResult: ProtocolValidator<{
2347
+ runId: string;
2348
+ idempotencyKey: string;
2349
+ }>;
2350
+ declare const validateTalkClientTranscriptParams: ProtocolValidator<{
2351
+ timestamp?: number | undefined;
2352
+ text: string;
2353
+ role: "user" | "assistant";
2354
+ sessionKey: string;
2355
+ entryId: string;
2356
+ voiceSessionId: string;
2357
+ }>;
2358
+ declare const validateTalkClientSteerParams: ProtocolValidator<{
2359
+ mode?: "status" | "steer" | "cancel" | "followup" | undefined;
2360
+ text: string;
2361
+ sessionKey: string;
2362
+ }>;
2363
+ declare const validateTalkSessionCreateParams: ProtocolValidator<{
2364
+ provider?: string | undefined;
2365
+ mode?: "realtime" | "stt-tts" | "transcription" | undefined;
2366
+ model?: string | undefined;
2367
+ sessionKey?: string | undefined;
2368
+ spawnedBy?: string | undefined;
2369
+ voice?: string | undefined;
2370
+ transport?: "webrtc" | "provider-websocket" | "gateway-relay" | "managed-room" | undefined;
2371
+ vadThreshold?: number | undefined;
2372
+ silenceDurationMs?: number | undefined;
2373
+ prefixPaddingMs?: number | undefined;
2374
+ reasoningEffort?: string | undefined;
2375
+ brain?: "none" | "agent-consult" | "direct-tools" | undefined;
2376
+ language?: string | undefined;
2377
+ ttlMs?: number | undefined;
2378
+ }>;
2379
+ declare const validateTalkSessionJoinParams: ProtocolValidator<{
2380
+ token: string;
2381
+ sessionId: string;
2382
+ }>;
2383
+ declare const validateTalkSessionAppendAudioParams: ProtocolValidator<{
2384
+ timestamp?: number | undefined;
2385
+ sessionId: string;
2386
+ audioBase64: string;
2387
+ }>;
2388
+ declare const validateTalkSessionAcknowledgeMarkParams: ProtocolValidator<{
2389
+ sessionId: string;
2390
+ markName: string;
2391
+ }>;
2392
+ declare const validateTalkSessionTurnParams: ProtocolValidator<{
2393
+ turnId?: string | undefined;
2394
+ sessionId: string;
2395
+ }>;
2396
+ declare const validateTalkSessionCancelTurnParams: ProtocolValidator<{
2397
+ reason?: string | undefined;
2398
+ turnId?: string | undefined;
2399
+ sessionId: string;
2400
+ }>;
2401
+ declare const validateTalkSessionCancelOutputParams: ProtocolValidator<{
2402
+ reason?: string | undefined;
2403
+ turnId?: string | undefined;
2404
+ sessionId: string;
2405
+ }>;
2406
+ declare const validateTalkSessionSteerParams: ProtocolValidator<{
2407
+ mode?: "status" | "steer" | "cancel" | "followup" | undefined;
2408
+ sessionKey?: string | undefined;
2409
+ text: string;
2410
+ sessionId: string;
2411
+ }>;
2412
+ declare const validateTalkSessionSubmitToolResultParams: ProtocolValidator<{
2413
+ options?: {
2414
+ suppressResponse?: boolean | undefined;
2415
+ willContinue?: boolean | undefined;
2416
+ } | undefined;
2417
+ sessionId: string;
2418
+ result: unknown;
2419
+ callId: string;
2420
+ }>;
2421
+ declare const validateTalkSessionCloseParams: ProtocolValidator<{
2422
+ sessionId: string;
2423
+ }>;
2424
+ declare const validateTalkSpeakParams: ProtocolValidator<{
2425
+ language?: string | undefined;
2426
+ voiceId?: string | undefined;
2427
+ modelId?: string | undefined;
2428
+ outputFormat?: string | undefined;
2429
+ speed?: number | undefined;
2430
+ rateWpm?: number | undefined;
2431
+ stability?: number | undefined;
2432
+ similarity?: number | undefined;
2433
+ style?: number | undefined;
2434
+ speakerBoost?: boolean | undefined;
2435
+ seed?: number | undefined;
2436
+ normalize?: string | undefined;
2437
+ latencyTier?: number | undefined;
2438
+ text: string;
2439
+ }>;
2440
+ declare const validateTtsSpeakParams: ProtocolValidator<{
2441
+ text: string;
2442
+ }>;
2443
+ declare const validateChannelsStatusParams: ProtocolValidator<{
2444
+ probe?: boolean | undefined;
2445
+ channel?: string | undefined;
2446
+ timeoutMs?: number | undefined;
2447
+ }>;
2448
+ declare const validateChannelsPairingListParams: ProtocolValidator<{
2449
+ channel?: string | undefined;
2450
+ accountId?: string | undefined;
2451
+ }>;
2452
+ declare const validateChannelsPairingApproveParams: ProtocolValidator<{
2453
+ notify?: boolean | undefined;
2454
+ bootstrapCommandOwner?: boolean | undefined;
2455
+ requestId: string;
2456
+ channel: string;
2457
+ accountId: string;
2458
+ }>;
2459
+ declare const validateChannelsPairingDismissParams: ProtocolValidator<{
2460
+ requestId: string;
2461
+ channel: string;
2462
+ accountId: string;
2463
+ }>;
2464
+ declare const validateChannelsStartParams: ProtocolValidator<{
2465
+ accountId?: string | undefined;
2466
+ channel: string;
2467
+ }>;
2468
+ declare const validateChannelsStopParams: ProtocolValidator<{
2469
+ accountId?: string | undefined;
2470
+ channel: string;
2471
+ }>;
2472
+ declare const validateChannelsLogoutParams: ProtocolValidator<{
2473
+ accountId?: string | undefined;
2474
+ channel: string;
2475
+ }>;
2476
+ declare const validateModelsAuthLogoutParams: ProtocolValidator<{
2477
+ agentId?: string | undefined;
2478
+ profileIds?: string[] | undefined;
2479
+ provider: string;
2480
+ }>;
2481
+ declare const validateModelsAuthStatusParams: ProtocolValidator<{
2482
+ agentId?: string | undefined;
2483
+ refresh?: boolean | undefined;
2484
+ }>;
2485
+ declare const validateModelsListParams: ProtocolValidator<{
2486
+ includeProviderCapabilities?: boolean | undefined;
2487
+ view?: "default" | "all" | "configured" | "provider-config" | undefined;
2488
+ }>;
2489
+ declare const validateSkillsStatusParams: ProtocolValidator<{
2490
+ agentId?: string | undefined;
2491
+ }>;
2492
+ declare const validateToolsCatalogParams: ProtocolValidator<{
2493
+ agentId?: string | undefined;
2494
+ includePlugins?: boolean | undefined;
2495
+ }>;
2496
+ declare const validateToolsEffectiveParams: ProtocolValidator<{
2497
+ agentId?: string | undefined;
2498
+ sessionKey: string;
2499
+ }>;
2500
+ declare const validateToolsInvokeParams: ProtocolValidator<{
2501
+ agentId?: string | undefined;
2502
+ args?: Record<string, unknown> | undefined;
2503
+ sessionKey?: string | undefined;
2504
+ conversationReadOrigin?: "direct-operator" | undefined;
2505
+ idempotencyKey?: string | undefined;
2506
+ confirm?: boolean | undefined;
2507
+ name: string;
2508
+ }>;
2509
+ declare const validateSkillsBinsParams: ProtocolValidator<object>;
2510
+ declare const validateSkillsInstallParams: ProtocolValidator<{
2511
+ agentId?: string | undefined;
2512
+ timeoutMs?: number | undefined;
2513
+ dangerouslyForceUnsafeInstall?: boolean | undefined;
2514
+ name: string;
2515
+ installId: string;
2516
+ } | {
2517
+ agentId?: string | undefined;
2518
+ version?: string | undefined;
2519
+ timeoutMs?: number | undefined;
2520
+ force?: boolean | undefined;
2521
+ acknowledgeClawHubRisk?: boolean | undefined;
2522
+ source: "clawhub";
2523
+ slug: string;
2524
+ } | {
2525
+ agentId?: string | undefined;
2526
+ timeoutMs?: number | undefined;
2527
+ force?: boolean | undefined;
2528
+ sha256?: string | undefined;
2529
+ source: "upload";
2530
+ slug: string;
2531
+ uploadId: string;
2532
+ }>;
2533
+ declare const validateSkillsUploadBeginParams: ProtocolValidator<{
2534
+ idempotencyKey?: string | undefined;
2535
+ force?: boolean | undefined;
2536
+ sha256?: string | undefined;
2537
+ kind: "skill-archive";
2538
+ slug: string;
2539
+ sizeBytes: number;
2540
+ }>;
2541
+ declare const validateSkillsUploadChunkParams: ProtocolValidator<{
2542
+ offset: number;
2543
+ uploadId: string;
2544
+ dataBase64: string;
2545
+ }>;
2546
+ declare const validateSkillsUploadCommitParams: ProtocolValidator<{
2547
+ sha256?: string | undefined;
2548
+ uploadId: string;
2549
+ }>;
2550
+ declare const validateSkillsUpdateParams: ProtocolValidator<{
2551
+ apiKey?: string | undefined;
2552
+ enabled?: boolean | undefined;
2553
+ env?: Record<string, string> | undefined;
2554
+ skillKey: string;
2555
+ } | {
2556
+ agentId?: string | undefined;
2557
+ all?: boolean | undefined;
2558
+ slug?: string | undefined;
2559
+ acknowledgeClawHubRisk?: boolean | undefined;
2560
+ source: "clawhub";
2561
+ }>;
2562
+ declare const validateSkillsSearchParams: ProtocolValidator<{
2563
+ query?: string | undefined;
2564
+ limit?: number | undefined;
2565
+ }>;
2566
+ declare const validateSkillsDetailParams: ProtocolValidator<{
2567
+ slug: string;
2568
+ }>;
2569
+ declare const validateSkillsCuratorStatusParams: ProtocolValidator<object>;
2570
+ declare const validateSkillsCuratorActionParams: ProtocolValidator<{
2571
+ skill: string;
2572
+ }>;
2573
+ declare const validateSkillsProposalsListParams: ProtocolValidator<{
2574
+ agentId?: string | undefined;
2575
+ }>;
2576
+ declare const validateSkillsProposalInspectParams: ProtocolValidator<{
2577
+ agentId?: string | undefined;
2578
+ proposalId: string;
2579
+ }>;
2580
+ declare const validateSkillsProposalCreateParams: ProtocolValidator<{
2581
+ agentId?: string | undefined;
2582
+ supportFiles?: {
2583
+ content: string;
2584
+ path: string;
2585
+ }[] | undefined;
2586
+ goal?: string | undefined;
2587
+ evidence?: string | undefined;
2588
+ content: string;
2589
+ name: string;
2590
+ description: string;
2591
+ }>;
2592
+ declare const validateSkillsProposalUpdateParams: ProtocolValidator<{
2593
+ agentId?: string | undefined;
2594
+ description?: string | undefined;
2595
+ supportFiles?: {
2596
+ content: string;
2597
+ path: string;
2598
+ }[] | undefined;
2599
+ goal?: string | undefined;
2600
+ evidence?: string | undefined;
2601
+ content: string;
2602
+ skillName: string;
2603
+ }>;
2604
+ declare const validateSkillsProposalReviseParams: ProtocolValidator<{
2605
+ agentId?: string | undefined;
2606
+ description?: string | undefined;
2607
+ supportFiles?: {
2608
+ content: string;
2609
+ path: string;
2610
+ }[] | undefined;
2611
+ goal?: string | undefined;
2612
+ evidence?: string | undefined;
2613
+ content: string;
2614
+ proposalId: string;
2615
+ }>;
2616
+ declare const validateSkillsProposalRequestRevisionParams: ProtocolValidator<{
2617
+ agentId?: string | undefined;
2618
+ sessionId?: string | undefined;
2619
+ targetAgentId?: string | undefined;
2620
+ sessionKey: string;
2621
+ idempotencyKey: string;
2622
+ instructions: string;
2623
+ proposalId: string;
2624
+ }>;
2625
+ declare const validateSkillsProposalActionParams: ProtocolValidator<{
2626
+ agentId?: string | undefined;
2627
+ reason?: string | undefined;
2628
+ proposalId: string;
2629
+ }>;
2630
+ declare const validateSkillsSecurityVerdictsParams: ProtocolValidator<{
2631
+ agentId?: string | undefined;
2632
+ }>;
2633
+ declare const validateSkillsSkillCardParams: ProtocolValidator<{
2634
+ agentId?: string | undefined;
2635
+ skillKey: string;
2636
+ }>;
2637
+ declare const validateCronListParams: ProtocolValidator<{
2638
+ agentId?: string | undefined;
2639
+ query?: string | undefined;
2640
+ limit?: number | undefined;
2641
+ offset?: number | undefined;
2642
+ sortBy?: "name" | "nextRunAtMs" | "updatedAtMs" | undefined;
2643
+ enabled?: "all" | "disabled" | "enabled" | undefined;
2644
+ includeDisabled?: boolean | undefined;
2645
+ scheduleKind?: "all" | "cron" | "at" | "every" | "on-exit" | "stream" | undefined;
2646
+ lastRunStatus?: "error" | "unknown" | "all" | "ok" | "skipped" | undefined;
2647
+ sortDir?: "asc" | "desc" | undefined;
2648
+ compact?: boolean | undefined;
2649
+ }>;
2650
+ declare const validateCronStatusParams: ProtocolValidator<object>;
2651
+ declare const validateCronGetParams: ProtocolValidator<{
2652
+ id: string;
2653
+ } | {
2654
+ jobId: string;
2655
+ }>;
2656
+ declare const validateCronAddParams: ProtocolValidator<{
2657
+ agentId?: string | null | undefined;
2658
+ displayName?: string | undefined;
2659
+ sessionKey?: string | null | undefined;
2660
+ description?: string | undefined;
2661
+ enabled?: boolean | undefined;
2662
+ declarationKey?: string | undefined;
2663
+ owner?: {
2664
+ agentId?: string | undefined;
2665
+ sessionKey?: string | undefined;
2666
+ } | undefined;
2667
+ pacing?: {
2668
+ min?: string | undefined;
2669
+ max?: string | undefined;
2670
+ } | undefined;
2671
+ trigger?: {
2672
+ once?: boolean | undefined;
2673
+ script: string;
2674
+ } | undefined;
2675
+ delivery?: {
2676
+ channel?: string | undefined;
2677
+ accountId?: string | undefined;
2678
+ to?: string | undefined;
2679
+ threadId?: string | number | undefined;
2680
+ bestEffort?: boolean | undefined;
2681
+ failureDestination?: {
2682
+ mode?: "announce" | "webhook" | undefined;
2683
+ channel?: string | undefined;
2684
+ accountId?: string | undefined;
2685
+ to?: string | undefined;
2686
+ } | undefined;
2687
+ mode: "none";
2688
+ } | {
2689
+ channel?: string | undefined;
2690
+ accountId?: string | undefined;
2691
+ to?: string | undefined;
2692
+ threadId?: string | number | undefined;
2693
+ bestEffort?: boolean | undefined;
2694
+ failureDestination?: {
2695
+ mode?: "announce" | "webhook" | undefined;
2696
+ channel?: string | undefined;
2697
+ accountId?: string | undefined;
2698
+ to?: string | undefined;
2699
+ } | undefined;
2700
+ completionDestination?: {
2701
+ mode: "webhook";
2702
+ to: string;
2703
+ } | undefined;
2704
+ mode: "announce";
2705
+ } | {
2706
+ channel?: string | undefined;
2707
+ accountId?: string | undefined;
2708
+ threadId?: string | number | undefined;
2709
+ bestEffort?: boolean | undefined;
2710
+ failureDestination?: {
2711
+ mode?: "announce" | "webhook" | undefined;
2712
+ channel?: string | undefined;
2713
+ accountId?: string | undefined;
2714
+ to?: string | undefined;
2715
+ } | undefined;
2716
+ mode: "webhook";
2717
+ to: string;
2718
+ } | undefined;
2719
+ failureAlert?: false | {
2720
+ mode?: "announce" | "webhook" | undefined;
2721
+ channel?: string | undefined;
2722
+ accountId?: string | undefined;
2723
+ to?: string | undefined;
2724
+ after?: number | undefined;
2725
+ cooldownMs?: number | undefined;
2726
+ includeSkipped?: boolean | undefined;
2727
+ } | undefined;
2728
+ deleteAfterRun?: boolean | undefined;
2729
+ name: string;
2730
+ payload: {
2731
+ toolsAllow?: string[] | undefined;
2732
+ toolsAllowIsDefault?: boolean | undefined;
2733
+ text: string;
2734
+ kind: "systemEvent";
2735
+ } | {
2736
+ thinking?: unknown;
2737
+ model?: unknown;
2738
+ toolsAllow?: unknown;
2739
+ toolsAllowIsDefault?: boolean | undefined;
2740
+ fallbacks?: unknown;
2741
+ timeoutSeconds?: number | undefined;
2742
+ allowUnsafeExternalContent?: boolean | undefined;
2743
+ lightContext?: boolean | undefined;
2744
+ message: unknown;
2745
+ kind: "agentTurn";
2746
+ } | {
2747
+ input?: string | undefined;
2748
+ cwd?: string | undefined;
2749
+ env?: Record<string, string> | undefined;
2750
+ toolsAllow?: unknown;
2751
+ toolsAllowIsDefault?: boolean | undefined;
2752
+ timeoutSeconds?: number | undefined;
2753
+ noOutputTimeoutSeconds?: number | undefined;
2754
+ outputMaxBytes?: number | undefined;
2755
+ kind: "command";
2756
+ argv: unknown;
2757
+ } | {
2758
+ toolsAllow?: unknown;
2759
+ toolsAllowIsDefault?: boolean | undefined;
2760
+ timeoutSeconds?: number | undefined;
2761
+ toolBudget?: number | undefined;
2762
+ kind: "script";
2763
+ script: unknown;
2764
+ };
2765
+ schedule: {
2766
+ kind: "at";
2767
+ at: string;
2768
+ } | {
2769
+ anchorMs?: number | undefined;
2770
+ kind: "every";
2771
+ everyMs: number;
2772
+ } | {
2773
+ tz?: string | undefined;
2774
+ staggerMs?: number | undefined;
2775
+ kind: "cron";
2776
+ expr: string;
2777
+ } | {
2778
+ cwd?: string | undefined;
2779
+ kind: "on-exit";
2780
+ command: string;
2781
+ } | {
2782
+ mode?: "line" | "match" | undefined;
2783
+ cwd?: string | undefined;
2784
+ match?: string | undefined;
2785
+ batchMs?: number | undefined;
2786
+ maxBatchBytes?: number | undefined;
2787
+ kind: "stream";
2788
+ command: string[];
2789
+ };
2790
+ sessionTarget: string;
2791
+ wakeMode: "now" | "next-heartbeat";
2792
+ }>;
2793
+ declare const validateCronUpdateParams: ProtocolValidator<{
2794
+ id: string;
2795
+ } | {
2796
+ jobId: string;
2797
+ }>;
2798
+ declare const validateCronRemoveParams: ProtocolValidator<{
2799
+ id: string;
2800
+ } | {
2801
+ jobId: string;
2802
+ }>;
2803
+ declare const validateCronRunParams: ProtocolValidator<{
2804
+ id: string;
2805
+ } | {
2806
+ jobId: string;
2807
+ }>;
2808
+ declare const validateCronRunsParams: ProtocolValidator<{
2809
+ agentId?: string | undefined;
2810
+ scope?: "all" | "job" | undefined;
2811
+ id?: string | undefined;
2812
+ runId?: string | undefined;
2813
+ status?: "error" | "all" | "ok" | "skipped" | undefined;
2814
+ query?: string | undefined;
2815
+ limit?: number | undefined;
2816
+ jobId?: string | undefined;
2817
+ offset?: number | undefined;
2818
+ sortDir?: "asc" | "desc" | undefined;
2819
+ statuses?: ("error" | "ok" | "skipped")[] | undefined;
2820
+ deliveryStatuses?: ("unknown" | "delivered" | "not-delivered" | "not-requested")[] | undefined;
2821
+ deliveryStatus?: "unknown" | "delivered" | "not-delivered" | "not-requested" | undefined;
2822
+ }>;
2823
+ declare const validateCronScratchGetParams: ProtocolValidator<{
2824
+ id: string;
2825
+ } | {
2826
+ jobId: string;
2827
+ }>;
2828
+ declare const validateCronScratchSetParams: ProtocolValidator<{
2829
+ id: string;
2830
+ } | {
2831
+ jobId: string;
2832
+ }>;
2833
+ declare const validateDevicePairListParams: ProtocolValidator<object>;
2834
+ declare const validateDevicePairApproveParams: ProtocolValidator<{
2835
+ requestId: string;
2836
+ }>;
2837
+ declare const validateDevicePairRejectParams: ProtocolValidator<{
2838
+ requestId: string;
2839
+ }>;
2840
+ declare const validateDevicePairRemoveParams: ProtocolValidator<{
2841
+ deviceId: string;
2842
+ }>;
2843
+ declare const validateDevicePairSetupCodeParams: ProtocolValidator<{
2844
+ publicUrl?: string | undefined;
2845
+ preferRemoteUrl?: boolean | undefined;
2846
+ includeQr?: boolean | undefined;
2847
+ bootstrapProfile?: string | undefined;
2848
+ }>;
2849
+ declare const validateDevicePairRenameParams: ProtocolValidator<{
2850
+ label: string;
2851
+ deviceId: string;
2852
+ }>;
2853
+ declare const validateDeviceTokenRotateParams: ProtocolValidator<{
2854
+ scopes?: string[] | undefined;
2855
+ role: string;
2856
+ deviceId: string;
2857
+ }>;
2858
+ declare const validateDeviceTokenRevokeParams: ProtocolValidator<{
2859
+ role: string;
2860
+ deviceId: string;
2861
+ }>;
2862
+ declare const validateApprovalPresentation: ProtocolValidator<{
2863
+ agentId?: string | null | undefined;
2864
+ host?: string | null | undefined;
2865
+ nodeId?: string | null | undefined;
2866
+ commandPreview?: string | null | undefined;
2867
+ warningText?: string | null | undefined;
2868
+ kind: "exec";
2869
+ commandText: string;
2870
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
2871
+ } | {
2872
+ agentId?: string | null | undefined;
2873
+ toolName?: string | null | undefined;
2874
+ pluginId?: string | null | undefined;
2875
+ detail?: string | undefined;
2876
+ kind: "plugin";
2877
+ title: string;
2878
+ description: string;
2879
+ allowedDecisions: ("deny" | "allow-once" | "allow-always")[];
2880
+ severity: "info" | "warning" | "critical";
2881
+ } | {
2882
+ agentId?: string | null | undefined;
2883
+ kind: "system-agent";
2884
+ title: string;
2885
+ description: string;
2886
+ allowedDecisions: ["allow-once", "deny"];
2887
+ proposalHash: string;
2888
+ }>;
2889
+ declare const validateApprovalGetParams: ProtocolValidator<{
2890
+ id: string;
2891
+ }>;
2892
+ declare const validateApprovalHistoryParams: ProtocolValidator<{
2893
+ kind?: "exec" | "plugin" | "system-agent" | undefined;
2894
+ limit?: number | undefined;
2895
+ cursor?: string | undefined;
2896
+ }>;
2897
+ declare const validateApprovalResolveParams: ProtocolValidator<{
2898
+ id: string;
2899
+ kind: "exec" | "plugin" | "system-agent";
2900
+ decision: "deny" | "allow-once" | "allow-always";
2901
+ }>;
2902
+ declare const validateExecApprovalsGetParams: ProtocolValidator<object>;
2903
+ declare const validateExecApprovalsSetParams: ProtocolValidator<{
2904
+ baseHash?: string | undefined;
2905
+ file: {
2906
+ socket?: {
2907
+ token?: string | undefined;
2908
+ path?: string | undefined;
2909
+ } | undefined;
2910
+ defaults?: {
2911
+ security?: string | undefined;
2912
+ ask?: string | undefined;
2913
+ askFallback?: string | undefined;
2914
+ autoAllowSkills?: boolean | undefined;
2915
+ } | undefined;
2916
+ agents?: Record<string, {
2917
+ security?: string | undefined;
2918
+ ask?: string | undefined;
2919
+ askFallback?: string | undefined;
2920
+ autoAllowSkills?: boolean | undefined;
2921
+ allowlist?: {
2922
+ id?: string | undefined;
2923
+ source?: "allow-always" | undefined;
2924
+ commandText?: string | undefined;
2925
+ argPattern?: string | undefined;
2926
+ lastUsedAt?: number | undefined;
2927
+ lastUsedCommand?: string | undefined;
2928
+ lastResolvedPath?: string | undefined;
2929
+ pattern: string;
2930
+ }[] | undefined;
2931
+ }> | undefined;
2932
+ version: 1;
2933
+ };
2934
+ }>;
2935
+ declare const validateExecApprovalGetParams: ProtocolValidator<{
2936
+ id: string;
2937
+ }>;
2938
+ declare const validateExecApprovalRequestParams: ProtocolValidator<{
2939
+ agentId?: string | null | undefined;
2940
+ id?: string | undefined;
2941
+ sessionId?: string | null | undefined;
2942
+ runId?: string | null | undefined;
2943
+ toolCallId?: string | null | undefined;
2944
+ command?: string | undefined;
2945
+ host?: string | null | undefined;
2946
+ sessionKey?: string | null | undefined;
2947
+ timeoutMs?: number | undefined;
2948
+ cwd?: string | null | undefined;
2949
+ nodeId?: string | null | undefined;
2950
+ turnSourceChannel?: string | null | undefined;
2951
+ turnSourceTo?: string | null | undefined;
2952
+ turnSourceAccountId?: string | null | undefined;
2953
+ turnSourceThreadId?: string | number | null | undefined;
2954
+ env?: Record<string, string> | undefined;
2955
+ warningText?: string | null | undefined;
2956
+ security?: string | null | undefined;
2957
+ ask?: string | null | undefined;
2958
+ commandArgv?: string[] | undefined;
2959
+ systemRunPlan?: {
2960
+ commandPreview?: string | null | undefined;
2961
+ policySnapshot?: {
2962
+ security: "full" | "deny" | "allowlist";
2963
+ ask: "off" | "always" | "on-miss";
2964
+ askFallback: "full" | "deny" | "allowlist";
2965
+ autoAllowSkills: boolean;
2966
+ allowlistRules: {
2967
+ source?: "allow-always" | undefined;
2968
+ argPattern?: string | undefined;
2969
+ pattern: string;
2970
+ }[];
2971
+ } | undefined;
2972
+ mutableFileOperand?: {
2973
+ path: string;
2974
+ sha256: string;
2975
+ argvIndex: number;
2976
+ } | null | undefined;
2977
+ agentId: string | null;
2978
+ sessionKey: string | null;
2979
+ cwd: string | null;
2980
+ argv: string[];
2981
+ commandText: string;
2982
+ } | undefined;
2983
+ unavailableDecisions?: string[] | undefined;
2984
+ commandSpans?: {
2985
+ startIndex: number;
2986
+ endIndex: number;
2987
+ }[] | undefined;
2988
+ resolvedPath?: string | null | undefined;
2989
+ approvalReviewerDeviceIds?: string[] | undefined;
2990
+ requireDeliveryRoute?: boolean | undefined;
2991
+ suppressDelivery?: boolean | undefined;
2992
+ twoPhase?: boolean | undefined;
2993
+ }>;
2994
+ declare const validateExecApprovalResolveParams: ProtocolValidator<{
2995
+ id: string;
2996
+ decision: string;
2997
+ }>;
2998
+ declare const validateQuestionRequestParams: ProtocolValidator<{
2999
+ agentId?: string | undefined;
3000
+ id?: string | undefined;
3001
+ sessionKey?: string | undefined;
3002
+ timeoutMs?: number | undefined;
3003
+ questions: {
3004
+ multiSelect?: boolean | undefined;
3005
+ isOther?: boolean | undefined;
3006
+ isSecret?: boolean | undefined;
3007
+ question: string;
3008
+ options: {
3009
+ description?: string | undefined;
3010
+ label: string;
3011
+ }[];
3012
+ questionId: string;
3013
+ header: string;
3014
+ }[];
3015
+ }>;
3016
+ declare const validateQuestionWaitAnswerParams: ProtocolValidator<{
3017
+ timeoutMs?: number | undefined;
3018
+ id: string;
3019
+ }>;
3020
+ declare const validateQuestionResolveParams: ProtocolValidator<{
3021
+ resolvedBy?: string | undefined;
3022
+ id: string;
3023
+ answers: {
3024
+ answers: Record<string, string[]>;
3025
+ };
3026
+ } | {
3027
+ resolvedBy?: string | undefined;
3028
+ id: string;
3029
+ cancel: true;
3030
+ }>;
3031
+ declare const validateQuestionGetParams: ProtocolValidator<{
3032
+ id: string;
3033
+ }>;
3034
+ declare const validateQuestionListParams: ProtocolValidator<object>;
3035
+ declare const validatePluginApprovalRequestParams: ProtocolValidator<{
3036
+ agentId?: string | undefined;
3037
+ toolCallId?: string | undefined;
3038
+ toolName?: string | undefined;
3039
+ sessionKey?: string | undefined;
3040
+ timeoutMs?: number | undefined;
3041
+ pluginId?: string | undefined;
3042
+ turnSourceChannel?: string | undefined;
3043
+ turnSourceTo?: string | undefined;
3044
+ turnSourceAccountId?: string | undefined;
3045
+ turnSourceThreadId?: string | number | undefined;
3046
+ allowedDecisions?: string[] | undefined;
3047
+ detail?: string | undefined;
3048
+ severity?: string | undefined;
3049
+ approvalReviewerDeviceIds?: string[] | undefined;
3050
+ twoPhase?: boolean | undefined;
3051
+ title: string;
3052
+ description: string;
3053
+ }>;
3054
+ declare const validatePluginApprovalResolveParams: ProtocolValidator<{
3055
+ id: string;
3056
+ decision: string;
3057
+ }>;
3058
+ declare const validatePluginsListParams: ProtocolValidator<object>;
3059
+ declare const validatePluginsRefreshParams: ProtocolValidator<object>;
3060
+ declare const validatePluginsSearchParams: ProtocolValidator<{
3061
+ limit?: number | undefined;
3062
+ query: string;
3063
+ }>;
3064
+ declare const validatePluginsInstallParams: ProtocolValidator<{
3065
+ version?: string | undefined;
3066
+ acknowledgeClawHubRisk?: boolean | undefined;
3067
+ source: "clawhub";
3068
+ packageName: string;
3069
+ } | {
3070
+ source: "official";
3071
+ pluginId: string;
3072
+ }>;
3073
+ declare const validatePluginsSetEnabledParams: ProtocolValidator<{
3074
+ pluginId: string;
3075
+ enabled: boolean;
3076
+ }>;
3077
+ declare const validatePluginsUninstallParams: ProtocolValidator<{
3078
+ pluginId: string;
3079
+ }>;
3080
+ declare const validatePluginsUiDescriptorsParams: ProtocolValidator<object>;
3081
+ declare const validatePluginsUiDescriptorsResult: ProtocolValidator<{
3082
+ ok: true;
3083
+ descriptors: {
3084
+ placement?: string | undefined;
3085
+ description?: string | undefined;
3086
+ schema?: unknown;
3087
+ pluginName?: string | undefined;
3088
+ requiredScopes?: string[] | undefined;
3089
+ id: string;
3090
+ label: string;
3091
+ pluginId: string;
3092
+ surface: "tool" | "session" | "widget" | "run" | "settings" | "tab";
3093
+ }[];
3094
+ }>;
3095
+ declare const validatePluginsSessionActionParams: ProtocolValidator<{
3096
+ payload?: unknown;
3097
+ sessionKey?: string | undefined;
3098
+ pluginId: string;
3099
+ actionId: string;
3100
+ }>;
3101
+ declare const validatePluginsSessionActionResult: ProtocolValidator<{
3102
+ result?: unknown;
3103
+ continueAgent?: boolean | undefined;
3104
+ reply?: unknown;
3105
+ ok: true;
3106
+ } | {
3107
+ code?: string | undefined;
3108
+ details?: unknown;
3109
+ error: string;
3110
+ ok: false;
3111
+ }>;
3112
+ declare const validateExecApprovalsNodeGetParams: ProtocolValidator<{
3113
+ nodeId: string;
3114
+ }>;
3115
+ declare const validateExecApprovalsNodeSetParams: ProtocolValidator<{
3116
+ native?: {
3117
+ defaultAction?: "allow" | "deny" | "prompt" | undefined;
3118
+ rules: {
3119
+ description?: string | undefined;
3120
+ enabled?: boolean | undefined;
3121
+ shells?: string[] | undefined;
3122
+ action: "allow" | "deny" | "prompt";
3123
+ pattern: string;
3124
+ }[];
3125
+ } | undefined;
3126
+ file?: {
3127
+ socket?: {
3128
+ token?: string | undefined;
3129
+ path?: string | undefined;
3130
+ } | undefined;
3131
+ defaults?: {
3132
+ security?: string | undefined;
3133
+ ask?: string | undefined;
3134
+ askFallback?: string | undefined;
3135
+ autoAllowSkills?: boolean | undefined;
3136
+ } | undefined;
3137
+ agents?: Record<string, {
3138
+ security?: string | undefined;
3139
+ ask?: string | undefined;
3140
+ askFallback?: string | undefined;
3141
+ autoAllowSkills?: boolean | undefined;
3142
+ allowlist?: {
3143
+ id?: string | undefined;
3144
+ source?: "allow-always" | undefined;
3145
+ commandText?: string | undefined;
3146
+ argPattern?: string | undefined;
3147
+ lastUsedAt?: number | undefined;
3148
+ lastUsedCommand?: string | undefined;
3149
+ lastResolvedPath?: string | undefined;
3150
+ pattern: string;
3151
+ }[] | undefined;
3152
+ }> | undefined;
3153
+ version: 1;
3154
+ } | undefined;
3155
+ baseHash?: string | undefined;
3156
+ nodeId: string;
3157
+ }>;
3158
+ declare const validateExecApprovalsNodeSnapshot: ProtocolValidator<{
3159
+ message?: string | undefined;
3160
+ file?: {
3161
+ socket?: {
3162
+ token?: string | undefined;
3163
+ path?: string | undefined;
3164
+ } | undefined;
3165
+ defaults?: {
3166
+ security?: string | undefined;
3167
+ ask?: string | undefined;
3168
+ askFallback?: string | undefined;
3169
+ autoAllowSkills?: boolean | undefined;
3170
+ } | undefined;
3171
+ agents?: Record<string, {
3172
+ security?: string | undefined;
3173
+ ask?: string | undefined;
3174
+ askFallback?: string | undefined;
3175
+ autoAllowSkills?: boolean | undefined;
3176
+ allowlist?: {
3177
+ id?: string | undefined;
3178
+ source?: "allow-always" | undefined;
3179
+ commandText?: string | undefined;
3180
+ argPattern?: string | undefined;
3181
+ lastUsedAt?: number | undefined;
3182
+ lastUsedCommand?: string | undefined;
3183
+ lastResolvedPath?: string | undefined;
3184
+ pattern: string;
3185
+ }[] | undefined;
3186
+ }> | undefined;
3187
+ version: 1;
3188
+ } | undefined;
3189
+ path?: string | undefined;
3190
+ baseHash?: string | undefined;
3191
+ enabled?: boolean | undefined;
3192
+ defaultAction?: "allow" | "deny" | "prompt" | undefined;
3193
+ rules?: {
3194
+ description?: string | undefined;
3195
+ enabled?: boolean | undefined;
3196
+ shells?: string[] | undefined;
3197
+ action: "allow" | "deny" | "prompt";
3198
+ pattern: string;
3199
+ }[] | undefined;
3200
+ exists?: boolean | undefined;
3201
+ hash?: string | undefined;
3202
+ resolvedDefaults?: {
3203
+ security: "full" | "deny" | "allowlist";
3204
+ ask: "off" | "always" | "on-miss";
3205
+ askFallback: "full" | "deny" | "allowlist";
3206
+ autoAllowSkills: boolean;
3207
+ } | undefined;
3208
+ constraints?: {
3209
+ baseHashRequired?: boolean | undefined;
3210
+ defaultAllowAllowed?: boolean | undefined;
3211
+ broadAllowRulesAllowed?: boolean | undefined;
3212
+ dangerousAllowRulesAllowed?: boolean | undefined;
3213
+ } | undefined;
3214
+ }>;
3215
+ declare const validateLogsTailParams: ProtocolValidator<{
3216
+ limit?: number | undefined;
3217
+ cursor?: number | undefined;
3218
+ maxBytes?: number | undefined;
3219
+ }>;
3220
+ declare const validateModelsProbeParams: ProtocolValidator<{
3221
+ agentId?: string | undefined;
3222
+ timeoutMs?: number | undefined;
3223
+ profileId?: string | undefined;
3224
+ provider: string;
3225
+ }>;
3226
+ declare const validateChatHistoryParams: ProtocolValidator<{
3227
+ agentId?: string | undefined;
3228
+ sessionId?: string | undefined;
3229
+ limit?: number | undefined;
3230
+ offset?: number | undefined;
3231
+ maxChars?: number | undefined;
3232
+ messageId?: string | undefined;
3233
+ sessionKey: string;
3234
+ }>;
3235
+ declare const validateChatMetadataParams: ProtocolValidator<{
3236
+ agentId?: string | undefined;
3237
+ }>;
3238
+ declare const validateChatMessageGetParams: ProtocolValidator<{
3239
+ agentId?: string | undefined;
3240
+ maxChars?: number | undefined;
3241
+ sessionKey: string;
3242
+ messageId: string;
3243
+ }>;
3244
+ declare const validateChatToolTitlesParams: ProtocolValidator<{
3245
+ agentId?: string | undefined;
3246
+ items: {
3247
+ id: string;
3248
+ name: string;
3249
+ input: string;
3250
+ }[];
3251
+ sessionKey: string;
3252
+ }>;
3253
+ declare const validateChatSendParams: ProtocolValidator<{
3254
+ agentId?: string | undefined;
3255
+ sessionId?: string | undefined;
3256
+ thinking?: string | undefined;
3257
+ replyToId?: string | undefined;
3258
+ timeoutMs?: number | undefined;
3259
+ deliver?: boolean | undefined;
3260
+ attachments?: unknown[] | undefined;
3261
+ fastMode?: boolean | "auto" | undefined;
3262
+ fastAutoOnSeconds?: number | undefined;
3263
+ queueMode?: string | undefined;
3264
+ originatingChannel?: string | undefined;
3265
+ originatingTo?: string | undefined;
3266
+ originatingAccountId?: string | undefined;
3267
+ originatingThreadId?: string | undefined;
3268
+ toolBindings?: Record<string, unknown> | undefined;
3269
+ systemInputProvenance?: {
3270
+ sourceSessionKey?: string | undefined;
3271
+ originSessionId?: string | undefined;
3272
+ sourceChannel?: string | undefined;
3273
+ sourceTool?: string | undefined;
3274
+ kind: string;
3275
+ } | undefined;
3276
+ systemProvenanceReceipt?: string | undefined;
3277
+ suppressCommandInterpretation?: boolean | undefined;
3278
+ expectedLeafEntryId?: string | null | undefined;
3279
+ expectedSessionRoutingContract?: string | undefined;
3280
+ message: string;
3281
+ sessionKey: string;
3282
+ idempotencyKey: string;
3283
+ }>;
3284
+ declare const validateChatAbortParams: ProtocolValidator<{
3285
+ agentId?: string | undefined;
3286
+ runId?: string | undefined;
3287
+ preserveSideRuns?: boolean | undefined;
3288
+ sessionKey: string;
3289
+ }>;
3290
+ declare const validateChatInjectParams: ProtocolValidator<{
3291
+ agentId?: string | undefined;
3292
+ label?: string | undefined;
3293
+ message: string;
3294
+ sessionKey: string;
3295
+ }>;
3296
+ declare const validateUpdateStatusParams: ProtocolValidator<object>;
3297
+ declare const validateUpdateRunParams: ProtocolValidator<{
3298
+ sessionKey?: string | undefined;
3299
+ timeoutMs?: number | undefined;
3300
+ deliveryContext?: {
3301
+ channel?: string | undefined;
3302
+ accountId?: string | undefined;
3303
+ to?: string | undefined;
3304
+ threadId?: string | number | undefined;
3305
+ } | undefined;
3306
+ note?: string | undefined;
3307
+ restartDelayMs?: number | undefined;
3308
+ continuationMessage?: string | undefined;
3309
+ }>;
3310
+ declare const validateUiCommandParams: ProtocolValidator<{
3311
+ sessionKey?: string | undefined;
3312
+ command: {
3313
+ kind: "split";
3314
+ sessionKey: string;
3315
+ direction: "right" | "down";
3316
+ } | {
3317
+ kind: "close-pane";
3318
+ sessionKey: string;
3319
+ } | {
3320
+ kind: "focus";
3321
+ sessionKey: string;
3322
+ } | {
3323
+ kind: "sidebar";
3324
+ visible: boolean;
3325
+ } | {
3326
+ dock?: "right" | "bottom" | undefined;
3327
+ terminalSessionId?: string | undefined;
3328
+ kind: "panel";
3329
+ open: boolean;
3330
+ panel: "terminal" | "browser";
3331
+ } | {
3332
+ kind: "navigate";
3333
+ sessionKey: string;
3334
+ };
3335
+ }>;
3336
+ declare const validateWebLoginStartParams: ProtocolValidator<{
3337
+ accountId?: string | undefined;
3338
+ timeoutMs?: number | undefined;
3339
+ force?: boolean | undefined;
3340
+ verbose?: boolean | undefined;
3341
+ }>;
3342
+ declare const validateWebLoginWaitParams: ProtocolValidator<{
3343
+ accountId?: string | undefined;
3344
+ timeoutMs?: number | undefined;
3345
+ currentQrDataUrl?: string | undefined;
3346
+ }>;
3347
+ type SessionsPatchResult = {
3348
+ ok: true;
3349
+ path: string;
3350
+ key: string;
3351
+ entry: Record<string, unknown>;
3352
+ resolved?: {
3353
+ modelProvider?: string;
3354
+ model?: string;
3355
+ agentRuntime?: GatewayAgentRuntime;
3356
+ thinkingLevel?: string;
3357
+ thinkingLevels?: Array<{
3358
+ id: string;
3359
+ label: string;
3360
+ }>;
3361
+ };
3362
+ };
3363
+ type GatewayAgentRuntime = {
3364
+ id: string;
3365
+ fallback?: "openclaw" | "none";
3366
+ source: "env" | "agent" | "defaults" | "model" | "provider" | "implicit" | "session" | "session-key";
3367
+ };
3368
+ //#endregion
3369
+ export { type AgentEvent, AgentEventSchema, type AgentIdentityParams, AgentIdentityParamsSchema, type AgentIdentityResult, AgentIdentityResultSchema, type AgentKind, AgentKindSchema, AgentParamsSchema, type AgentSummary, AgentSummarySchema, type AgentWaitParams, type AgentsCreateParams, AgentsCreateParamsSchema, type AgentsCreateResult, AgentsCreateResultSchema, type AgentsDeleteParams, AgentsDeleteParamsSchema, type AgentsDeleteResult, AgentsDeleteResultSchema, type AgentsFileEntry, AgentsFileEntrySchema, type AgentsFilesGetParams, AgentsFilesGetParamsSchema, type AgentsFilesGetResult, AgentsFilesGetResultSchema, type AgentsFilesListParams, AgentsFilesListParamsSchema, type AgentsFilesListResult, AgentsFilesListResultSchema, type AgentsFilesSetParams, AgentsFilesSetParamsSchema, type AgentsFilesSetResult, AgentsFilesSetResultSchema, type AgentsListParams, AgentsListParamsSchema, type AgentsListResult, AgentsListResultSchema, type AgentsUpdateParams, AgentsUpdateParamsSchema, type AgentsUpdateResult, AgentsUpdateResultSchema, type AgentsWorkspaceEntry, AgentsWorkspaceEntrySchema, type AgentsWorkspaceFile, AgentsWorkspaceFileSchema, type AgentsWorkspaceGetParams, AgentsWorkspaceGetParamsSchema, type AgentsWorkspaceGetResult, AgentsWorkspaceGetResultSchema, type AgentsWorkspaceListParams, AgentsWorkspaceListParamsSchema, type AgentsWorkspaceListResult, AgentsWorkspaceListResultSchema, type AllowedApprovalSnapshot, AllowedApprovalSnapshotSchema, type ApprovalAllowDecision, ApprovalAllowDecisionSchema, type ApprovalDecision, ApprovalDecisionSchema, type ApprovalGetParams, ApprovalGetParamsSchema, type ApprovalGetResult, ApprovalGetResultSchema, type ApprovalHistoryParams, ApprovalHistoryParamsSchema, type ApprovalHistoryResult, ApprovalHistoryResultSchema, type ApprovalKind, ApprovalKindSchema, type ApprovalPresentation, ApprovalPresentationSchema, type ApprovalResolveParams, ApprovalResolveParamsSchema, type ApprovalResolveResult, ApprovalResolveResultSchema, type ApprovalSnapshot, ApprovalSnapshotSchema, type ApprovalTerminalReason, ApprovalTerminalReasonSchema, type ArtifactSummary, ArtifactSummarySchema, type ArtifactsDownloadParams, ArtifactsDownloadParamsSchema, type ArtifactsDownloadResult, type ArtifactsGetParams, ArtifactsGetParamsSchema, type ArtifactsGetResult, type ArtifactsListParams, ArtifactsListParamsSchema, type ArtifactsListResult, type AuditActivityAgentRunV1, AuditActivityAgentRunV1Schema, type AuditActivityEventV1, AuditActivityEventV1Schema, type AuditActivityInboundMessageV1, AuditActivityInboundMessageV1Schema, type AuditActivityListParams, AuditActivityListParamsSchema, type AuditActivityListResult, AuditActivityListResultSchema, type AuditActivityOutboundMessageV1, AuditActivityOutboundMessageV1Schema, type AuditActivityToolActionV1, AuditActivityToolActionV1Schema, type AuditEvent, AuditEventSchema, type AuditListParams, AuditListParamsSchema, type AuditListResult, AuditListResultSchema, type AuthProbeStatus, AuthProbeStatusSchema, BOARD_CRON_JOB_ID_MAX_LENGTH, BOARD_CRON_TRIGGER_PREFIX, BOARD_DATA_BINDING_ID_MAX_LENGTH, BOARD_WIDGET_TOOL_MAX_LENGTH, BoardActionParams, BoardActionParamsSchema, BoardCanvasDocumentSource, BoardCanvasDocumentSourceSchema, BoardChangedEvent, BoardChangedEventSchema, BoardChatDockSchema, BoardCommand, BoardCommandEvent, BoardCommandEventSchema, BoardCommandSchema, BoardCronActionParamsSchema, BoardDataReadParams, BoardDataReadParamsSchema, BoardEventParams, BoardEventParamsSchema, BoardFocusTabCommandSchema, BoardGetParams, BoardGetParamsSchema, BoardLegacyEventParamsSchema, BoardMcpAppDescriptor, BoardMcpAppDescriptorSchema, BoardOp, BoardOpSchema, BoardPluginActionParamsSchema, BoardPromptAuthorizeParams, BoardPromptAuthorizeParamsSchema, BoardSetChatDockCommandSchema, BoardSizeSchema, BoardSnapshot, BoardSnapshotSchema, BoardTab, BoardTabCreateOpSchema, BoardTabDeleteOpSchema, BoardTabIdSchema, BoardTabSchema, BoardTabUpdateOpSchema, BoardTabsReorderOpSchema, BoardTicketEventParamsSchema, BoardUpdateParams, BoardUpdateParamsSchema, BoardViewTicketSchema, BoardWidget, BoardWidgetAppViewParams, BoardWidgetAppViewParamsSchema, BoardWidgetAppViewResult, BoardWidgetAppViewResultSchema, BoardWidgetContent, BoardWidgetContentSchema, BoardWidgetDeclared, BoardWidgetDeclaredSchema, BoardWidgetGrantParams, BoardWidgetGrantParamsSchema, BoardWidgetHeightModeSchema, BoardWidgetHtmlContentSchema, BoardWidgetMaterializedContent, BoardWidgetMaterializedPutParams, BoardWidgetMcpAppContentSchema, BoardWidgetMcpAppPutContentSchema, BoardWidgetMoveOpSchema, BoardWidgetNameSchema, BoardWidgetPluginContentSchema, BoardWidgetPluginKindSchema, BoardWidgetPluginPropsSchema, BoardWidgetPresentationSchema, BoardWidgetPutContent, BoardWidgetPutContentSchema, BoardWidgetPutParams, BoardWidgetPutParamsSchema, BoardWidgetRemoveOpSchema, BoardWidgetResizeOpSchema, BoardWidgetSchema, type CancelledApprovalSnapshot, CancelledApprovalSnapshotSchema, type ChannelsLogoutParams, ChannelsLogoutParamsSchema, type ChannelsPairingAccount, type ChannelsPairingApproveParams, ChannelsPairingApproveParamsSchema, type ChannelsPairingApproveResult, ChannelsPairingApproveResultSchema, type ChannelsPairingDismissParams, ChannelsPairingDismissParamsSchema, type ChannelsPairingDismissResult, ChannelsPairingDismissResultSchema, type ChannelsPairingListParams, ChannelsPairingListParamsSchema, type ChannelsPairingListResult, ChannelsPairingListResultSchema, type ChannelsPairingRequest, type ChannelsStartParams, ChannelsStartParamsSchema, type ChannelsStatusParams, ChannelsStatusParamsSchema, type ChannelsStatusResult, ChannelsStatusResultSchema, type ChannelsStopParams, ChannelsStopParamsSchema, type ChatEvent, ChatEventSchema, ChatHistoryParamsSchema, type ChatInjectParams, ChatInjectParamsSchema, type ChatMetadataParams, ChatMetadataParamsSchema, type ChatRunStartupPhase, ChatRunStartupPhaseSchema, ChatSendParamsSchema, type ChatStatusEvent, ChatStatusEventSchema, type ChatToolTitlesParams, ChatToolTitlesParamsSchema, type ChatToolTitlesResult, ChatToolTitlesResultSchema, ClawHubTrustErrorCodes, ClawHubTrustErrorDetails, type CommandEntry, type CommandsListParams, CommandsListParamsSchema, type CommandsListResult, CommandsListResultSchema, type ConfigApplyParams, ConfigApplyParamsSchema, type ConfigGetParams, ConfigGetParamsSchema, type ConfigPatchParams, ConfigPatchParamsSchema, ConfigSchemaLookupParamsSchema, ConfigSchemaLookupResultSchema, type ConfigSchemaParams, ConfigSchemaParamsSchema, type ConfigSchemaResponse, ConfigSchemaResponseSchema, type ConfigSetParams, ConfigSetParamsSchema, type ConnectParams, ConnectParamsSchema, type ConversationListItem, ConversationListItemSchema, type ConversationListParams, ConversationListParamsSchema, type ConversationListResult, ConversationListResultSchema, type ConversationSendParams, ConversationSendParamsSchema, type ConversationSendResult, ConversationSendResultSchema, type ConversationTurnCancelParams, ConversationTurnCancelParamsSchema, type ConversationTurnCancelResult, ConversationTurnCancelResultSchema, type ConversationTurnParams, ConversationTurnParamsSchema, type ConversationTurnReply, ConversationTurnReplySchema, type ConversationTurnResult, ConversationTurnResultSchema, type CronAddParams, CronAddParamsSchema, type CronAddResult, CronAddResultSchema, type CronDeclarativeAddResult, CronDeclarativeAddResultSchema, type CronGetParams, CronGetParamsSchema, type CronJob, CronJobSchema, type CronListParams, CronListParamsSchema, type CronRemoveParams, CronRemoveParamsSchema, type CronRunLogEntry, type CronRunParams, CronRunParamsSchema, type CronRunsParams, CronRunsParamsSchema, type CronScratchGetParams, CronScratchGetParamsSchema, type CronScratchGetResult, CronScratchGetResultSchema, type CronScratchSetParams, CronScratchSetParamsSchema, type CronScratchSetResult, CronScratchSetResultSchema, type CronStatusParams, CronStatusParamsSchema, type CronUpdateParams, CronUpdateParamsSchema, type DeniedApprovalSnapshot, DeniedApprovalSnapshotSchema, type DevicePairApproveParams, type DevicePairListParams, type DevicePairRejectParams, type DevicePairRenameParams, type DevicePairSetupCodeParams, type DevicePairSetupCodeResult, type EnvironmentStatus, EnvironmentStatusSchema, type EnvironmentSummary, EnvironmentSummarySchema, type EnvironmentsCreateParams, EnvironmentsCreateParamsSchema, type EnvironmentsCreateResult, EnvironmentsCreateResultSchema, type EnvironmentsDestroyParams, EnvironmentsDestroyParamsSchema, type EnvironmentsDestroyResult, EnvironmentsDestroyResultSchema, type EnvironmentsListParams, EnvironmentsListParamsSchema, type EnvironmentsListResult, EnvironmentsListResultSchema, type EnvironmentsStatusParams, EnvironmentsStatusParamsSchema, type EnvironmentsStatusResult, EnvironmentsStatusResultSchema, ErrorCodes, type ErrorShape, ErrorShapeSchema, type EventFrame, EventFrameSchema, type ExecApprovalGetParams, ExecApprovalGetParamsSchema, type ExecApprovalPresentation, ExecApprovalPresentationSchema, type ExecApprovalRequestParams, ExecApprovalRequestParamsSchema, type ExecApprovalResolveParams, ExecApprovalResolveParamsSchema, type ExecApprovalsGetParams, ExecApprovalsGetParamsSchema, type ExecApprovalsNodeSnapshot, type ExecApprovalsSetParams, ExecApprovalsSetParamsSchema, type ExecApprovalsSnapshot, type ExpiredApprovalSnapshot, ExpiredApprovalSnapshotSchema, type FsDirEntry, FsDirEntrySchema, type FsListDirParams, FsListDirParamsSchema, type FsListDirResult, FsListDirResultSchema, GATEWAY_SERVER_CAPS, GatewayErrorDetailCodes, type GatewayErrorDetails, GatewayErrorDetailsSchema, type GatewayFrame, GatewayFrameSchema, type GatewaySuspendBlocker, GatewaySuspendBlockerSchema, GatewaySuspendPrepareBusyResultSchema, type GatewaySuspendPrepareParams, GatewaySuspendPrepareParamsSchema, GatewaySuspendPrepareReadyResultSchema, type GatewaySuspendPrepareResult, GatewaySuspendPrepareResultSchema, type GatewaySuspendResumeParams, GatewaySuspendResumeParamsSchema, type GatewaySuspendResumeResult, GatewaySuspendResumeResultSchema, type GatewaySuspendStatusParams, GatewaySuspendStatusParamsSchema, GatewaySuspendStatusReadyResultSchema, type GatewaySuspendStatusResult, GatewaySuspendStatusResultSchema, GatewaySuspendStatusRunningResultSchema, type GatewaySuspendTaskBlocker, GatewaySuspendTaskBlockerSchema, type HelloOk, HelloOkSchema, type LogsTailParams, LogsTailParamsSchema, type LogsTailResult, LogsTailResultSchema, MAX_MEMORY_MIGRATION_ITEMS, MIN_CLIENT_PROTOCOL_VERSION, MIN_NODE_PROTOCOL_VERSION, MIN_PROBE_PROTOCOL_VERSION, type McpAppViewExpiredErrorDetails, MemoryMigrationItem, MemoryMigrationProviderPlan, MessageActionParamsSchema, MigrationProtocolSchemas, MigrationsMemoryApplyParamsSchema, MigrationsMemoryApplyResult, MigrationsMemoryPlanParamsSchema, MigrationsMemoryPlanResult, type MissingScopeErrorDetails, MissingScopeErrorDetailsSchema, ModelsAuthLogoutParamsSchema, ModelsAuthStatusParamsSchema, ModelsListParamsSchema, type ModelsProbeParams, ModelsProbeParamsSchema, type ModelsProbeResult, ModelsProbeResultSchema, type ModelsProbeTargetResult, ModelsProbeTargetResultSchema, type NodeEventParams, type NodeEventResult, NodeEventResultSchema, type NodeInvokeInputEvent, NodeInvokeInputEventSchema, type NodeInvokeParams, NodeInvokeParamsSchema, type NodeInvokeProgressParams, NodeInvokeProgressParamsSchema, type NodeInvokeResultParams, type NodeListParams, NodeListParamsSchema, type NodePairApproveParams, NodePairApproveParamsSchema, type NodePairListParams, NodePairListParamsSchema, type NodePairRejectParams, NodePairRejectParamsSchema, type NodePairRemoveParams, NodePairRemoveParamsSchema, NodePendingAckParamsSchema, type NodePendingDrainParams, NodePendingDrainParamsSchema, type NodePendingDrainResult, NodePendingDrainResultSchema, type NodePendingEnqueueParams, NodePendingEnqueueParamsSchema, type NodePendingEnqueueResult, NodePendingEnqueueResultSchema, type NodePluginToolDescriptor, NodePluginToolDescriptorSchema, type NodePluginToolsUpdateParams, NodePluginToolsUpdateParamsSchema, type NodePresenceActivityPayload, NodePresenceActivityPayloadSchema, type NodePresenceAlivePayload, NodePresenceAlivePayloadSchema, type NodePresenceAliveReason, NodePresenceAliveReasonSchema, type NodeSkillDescriptor, NodeSkillDescriptorSchema, type NodeSkillsUpdateParams, NodeSkillsUpdateParamsSchema, PROTOCOL_VERSION, type PendingApprovalSnapshot, PendingApprovalSnapshotSchema, type PluginApprovalPresentation, PluginApprovalPresentationSchema, type PluginApprovalSeverity, PluginApprovalSeveritySchema, type PluginCatalogEntry, PluginCatalogEntrySchema, PluginCatalogInstallActionSchema, PluginSearchPackageSchema, PluginSearchResultEntrySchema, type PluginsInstallParams, PluginsInstallParamsSchema, type PluginsInstallResult, PluginsInstallResultSchema, type PluginsListParams, PluginsListParamsSchema, type PluginsListResult, PluginsListResultSchema, type PluginsRefreshParams, PluginsRefreshParamsSchema, type PluginsRefreshResult, PluginsRefreshResultSchema, type PluginsSearchParams, PluginsSearchParamsSchema, type PluginsSearchResult, PluginsSearchResultSchema, type PluginsSessionActionParams, PluginsSessionActionParamsSchema, type PluginsSessionActionResult, PluginsSessionActionResultSchema, type PluginsSetEnabledParams, PluginsSetEnabledParamsSchema, type PluginsSetEnabledResult, PluginsSetEnabledResultSchema, PluginsUiDescriptorsParamsSchema, PluginsUiDescriptorsResultSchema, type PluginsUninstallParams, PluginsUninstallParamsSchema, type PluginsUninstallResult, PluginsUninstallResultSchema, type PollParams, PollParamsSchema, type PresenceEntry, PresenceEntrySchema, type ProtocolValidator, PushTestParamsSchema, PushTestResultSchema, type Question, type QuestionAnswers, QuestionAnswersSchema, type QuestionGetParams, QuestionGetParamsSchema, type QuestionGetResult, QuestionGetResultSchema, type QuestionListParams, QuestionListParamsSchema, type QuestionListResult, QuestionListResultSchema, type QuestionOption, QuestionOptionSchema, type QuestionRecord, QuestionRecordSchema, type QuestionRequestParams, QuestionRequestParamsSchema, type QuestionRequestQuestion, QuestionRequestQuestionSchema, type QuestionRequestResult, QuestionRequestResultSchema, type QuestionRequestedEvent, QuestionRequestedEventSchema, type QuestionResolveParams, QuestionResolveParamsSchema, type QuestionResolveResult, QuestionResolveResultSchema, type QuestionResolvedEvent, QuestionResolvedEventSchema, QuestionSchema, type QuestionStatus, QuestionStatusSchema, type QuestionWaitAnswerParams, QuestionWaitAnswerParamsSchema, type QuestionWaitAnswerResult, QuestionWaitAnswerResultSchema, type RequestFrame, RequestFrameSchema, type ResponseFrame, ResponseFrameSchema, SESSION_AGENT_ATTENTION_ICON_IDS, SESSION_OBSERVER_HEALTH_VALUES, SendParamsSchema, SessionAgentAttentionIconId, SessionAgentStatus, type SessionApprovalEvent, SessionApprovalEventSchema, type SessionApprovalReplay, SessionApprovalReplaySchema, type SessionBranch, SessionBranchSchema, type SessionCatalog, type SessionCatalogCapabilities, SessionCatalogCapabilitiesSchema, type SessionCatalogDescriptor, SessionCatalogDescriptorSchema, type SessionCatalogHost, SessionCatalogHostSchema, type SessionCatalogLocator, SessionCatalogLocatorSchema, type SessionCatalogPullRequestSummary, SessionCatalogPullRequestSummarySchema, SessionCatalogSchema, type SessionCatalogSession, SessionCatalogSessionSchema, type SessionCatalogTranscriptItem, SessionCatalogTranscriptItemSchema, type SessionCreatedActor, SessionCreatedActorSchema, type SessionDiffFile, SessionDiffFileSchema, type SessionDiffFileStatus, SessionDiffFileStatusSchema, type SessionDiscussionInfo, type SessionDiscussionInfoParams, SessionDiscussionInfoParamsSchema, type SessionDiscussionInfoResult, SessionDiscussionInfoResultSchema, SessionDiscussionInfoSchema, type SessionDiscussionOpenParams, SessionDiscussionOpenParamsSchema, type SessionDiscussionOpenResult, SessionDiscussionOpenResultSchema, type SessionDiscussionState, SessionDiscussionStateSchema, type SessionFileBrowserEntry, SessionFileBrowserEntrySchema, type SessionFileBrowserResult, SessionFileBrowserResultSchema, type SessionFileEntry, SessionFileEntrySchema, type SessionFileKind, SessionFileKindSchema, type SessionFileRelevance, SessionFileRelevanceSchema, type SessionGroup, SessionGroupSchema, SessionIcon, SessionIconNormalizationResult, type SessionMember, type SessionMemberAddParams, SessionMemberAddParamsSchema, type SessionMemberMutationResult, SessionMemberMutationResultSchema, type SessionMemberRemoveParams, SessionMemberRemoveParamsSchema, SessionMemberSchema, type SessionMembersListParams, SessionMembersListParamsSchema, type SessionMembersListResult, SessionMembersListResultSchema, type SessionObserverDigest, SessionObserverDigestSchema, type SessionObserverHealth, SessionObserverHealthSchema, type SessionObserverPlanProgress, SessionObserverPlanProgressSchema, type SessionOperationEvent, type SessionPlacement, SessionPlacementSchema, type SessionPlacementState, SessionPlacementStateSchema, type SessionRow, SessionRowSchema, type SessionSharingAction, SessionSharingActionSchema, type SessionSharingEvent, SessionSharingEventSchema, type SessionSharingIdentity, SessionSharingIdentitySchema, type SessionSharingRole, SessionSharingRoleSchema, type SessionVisibility, SessionVisibilitySchema, type SessionVisibilitySetParams, SessionVisibilitySetParamsSchema, type SessionVisibilitySetResult, SessionVisibilitySetResultSchema, type SessionWorktreeInfo, SessionWorktreeInfoSchema, SessionsAbortParamsSchema, type SessionsBranchesListParams, SessionsBranchesListParamsSchema, type SessionsBranchesListResult, SessionsBranchesListResultSchema, type SessionsBranchesSwitchParams, SessionsBranchesSwitchParamsSchema, type SessionsBranchesSwitchResult, SessionsBranchesSwitchResultSchema, type SessionsCatalogArchiveParams, SessionsCatalogArchiveParamsSchema, type SessionsCatalogArchiveResult, SessionsCatalogArchiveResultSchema, type SessionsCatalogContinueParams, SessionsCatalogContinueParamsSchema, type SessionsCatalogContinueResult, SessionsCatalogContinueResultSchema, type SessionsCatalogHostEvent, SessionsCatalogHostEventSchema, type SessionsCatalogListParams, SessionsCatalogListParamsSchema, type SessionsCatalogListResult, SessionsCatalogListResultSchema, type SessionsCatalogReadParams, SessionsCatalogReadParamsSchema, type SessionsCatalogReadResult, SessionsCatalogReadResultSchema, type SessionsCleanupParams, SessionsCleanupParamsSchema, type SessionsCompactParams, SessionsCompactParamsSchema, SessionsCompactionBranchParamsSchema, SessionsCompactionGetParamsSchema, SessionsCompactionListParamsSchema, SessionsCompactionRestoreParamsSchema, SessionsCreateParamsSchema, type SessionsCreateResult, SessionsCreateResultSchema, type SessionsDeleteParams, SessionsDeleteParamsSchema, type SessionsDescribeParams, SessionsDescribeParamsSchema, type SessionsDiffParams, SessionsDiffParamsSchema, type SessionsDiffResult, SessionsDiffResultSchema, type SessionsDispatchParams, SessionsDispatchParamsSchema, type SessionsDispatchResult, SessionsDispatchResultSchema, type SessionsFilesGetParams, SessionsFilesGetParamsSchema, type SessionsFilesGetResult, SessionsFilesGetResultSchema, type SessionsFilesListParams, SessionsFilesListParamsSchema, type SessionsFilesListResult, SessionsFilesListResultSchema, type SessionsFilesRevealParams, SessionsFilesRevealParamsSchema, type SessionsFilesRevealResult, SessionsFilesRevealResultSchema, type SessionsFilesSetParams, SessionsFilesSetParamsSchema, type SessionsFilesSetResult, SessionsFilesSetResultSchema, type SessionsForkParams, SessionsForkParamsSchema, type SessionsForkResult, SessionsForkResultSchema, type SessionsGroupsDeleteParams, SessionsGroupsDeleteParamsSchema, type SessionsGroupsListParams, SessionsGroupsListParamsSchema, type SessionsGroupsListResult, SessionsGroupsListResultSchema, type SessionsGroupsMutationResult, SessionsGroupsMutationResultSchema, type SessionsGroupsPutParams, SessionsGroupsPutParamsSchema, type SessionsGroupsRenameParams, SessionsGroupsRenameParamsSchema, type SessionsListParams, SessionsListParamsSchema, type SessionsObserverAskParams, SessionsObserverAskParamsSchema, type SessionsObserverAskResult, SessionsObserverAskResultSchema, type SessionsObserverVisibilityParams, SessionsObserverVisibilityParamsSchema, type SessionsObserverVisibilityResult, SessionsObserverVisibilityResultSchema, type SessionsPatchParams, SessionsPatchParamsSchema, SessionsPatchResult, SessionsPluginPatchParamsSchema, type SessionsPreviewParams, SessionsPreviewParamsSchema, type SessionsReclaimParams, SessionsReclaimParamsSchema, type SessionsReclaimResult, SessionsReclaimResultSchema, type SessionsResetParams, SessionsResetParamsSchema, type SessionsResolveParams, SessionsResolveParamsSchema, type SessionsRewindParams, SessionsRewindParamsSchema, type SessionsRewindResult, SessionsRewindResultSchema, type SessionsSearchHit, SessionsSearchHitSchema, type SessionsSearchParams, SessionsSearchParamsSchema, type SessionsSearchResult, SessionsSearchResultSchema, SessionsSendParamsSchema, type SessionsUsageParams, SessionsUsageParamsSchema, type ShutdownEvent, ShutdownEventSchema, type SkillsBinsParams, type SkillsBinsResult, type SkillsCuratorActionParams, SkillsCuratorActionParamsSchema, type SkillsCuratorActionResult, SkillsCuratorActionResultSchema, type SkillsCuratorStatusParams, SkillsCuratorStatusParamsSchema, type SkillsCuratorStatusResult, SkillsCuratorStatusResultSchema, type SkillsDetailParams, SkillsDetailParamsSchema, type SkillsDetailResult, SkillsDetailResultSchema, type SkillsInstallParams, SkillsInstallParamsSchema, type SkillsProposalActionParams, SkillsProposalActionParamsSchema, type SkillsProposalApplyResult, SkillsProposalApplyResultSchema, type SkillsProposalCreateParams, SkillsProposalCreateParamsSchema, SkillsProposalHistoryScanParams, SkillsProposalHistoryScanParamsSchema, SkillsProposalHistoryScanResult, SkillsProposalHistoryScanResultSchema, SkillsProposalHistoryStatusParams, SkillsProposalHistoryStatusParamsSchema, type SkillsProposalInspectParams, SkillsProposalInspectParamsSchema, type SkillsProposalInspectResult, SkillsProposalInspectResultSchema, type SkillsProposalRecordResult, SkillsProposalRecordResultSchema, type SkillsProposalRequestRevisionParams, SkillsProposalRequestRevisionParamsSchema, type SkillsProposalRequestRevisionResult, SkillsProposalRequestRevisionResultSchema, type SkillsProposalReviseParams, SkillsProposalReviseParamsSchema, type SkillsProposalUpdateParams, SkillsProposalUpdateParamsSchema, type SkillsProposalsListParams, SkillsProposalsListParamsSchema, type SkillsProposalsListResult, SkillsProposalsListResultSchema, type SkillsSearchParams, SkillsSearchParamsSchema, type SkillsSearchResult, SkillsSearchResultSchema, type SkillsSecurityVerdictsParams, SkillsSecurityVerdictsParamsSchema, type SkillsSecurityVerdictsResult, SkillsSecurityVerdictsResultSchema, type SkillsSkillCardParams, SkillsSkillCardParamsSchema, type SkillsSkillCardResult, SkillsSkillCardResultSchema, type SkillsStatusParams, SkillsStatusParamsSchema, type SkillsUpdateParams, SkillsUpdateParamsSchema, type SkillsUploadBeginParams, SkillsUploadBeginParamsSchema, type SkillsUploadChunkParams, SkillsUploadChunkParamsSchema, type SkillsUploadCommitParams, SkillsUploadCommitParamsSchema, type Snapshot, SnapshotSchema, type StateVersion, StateVersionSchema, type SystemAgentChatHistoryParams, SystemAgentChatHistoryParamsSchema, type SystemAgentChatHistoryResult, SystemAgentChatHistoryResultSchema, type SystemAgentChatHistoryTurn, SystemAgentChatHistoryTurnSchema, type SystemAgentChatParams, SystemAgentChatParamsSchema, type SystemAgentChatQuestion, SystemAgentChatQuestionSchema, type SystemAgentChatResult, SystemAgentChatResultSchema, SystemAgentErrorDetailCodes, SystemAgentSessionInvalidatedErrorDetails, type SystemAgentSetupActivateParams, SystemAgentSetupActivateParamsSchema, type SystemAgentSetupActivateResult, SystemAgentSetupActivateResultSchema, type SystemAgentSetupAuthStartParams, SystemAgentSetupAuthStartParamsSchema, type SystemAgentSetupAuthStartResult, SystemAgentSetupAuthStartResultSchema, type SystemAgentSetupDetectParams, SystemAgentSetupDetectParamsSchema, type SystemAgentSetupDetectResult, SystemAgentSetupDetectResultSchema, type SystemAgentSetupVerifyParams, SystemAgentSetupVerifyParamsSchema, type SystemAgentSetupVerifyResult, SystemAgentSetupVerifyResultSchema, type SystemChangeEntry, SystemChangeEntrySchema, type SystemChangeKind, SystemChangeKindSchema, type SystemChangeSource, SystemChangeSourceSchema, type SystemChangesListParams, SystemChangesListParamsSchema, type SystemChangesListResult, SystemChangesListResultSchema, type SystemInfoParams, SystemInfoParamsSchema, type SystemInfoResult, SystemInfoResultSchema, type TalkAgentControlResult, TalkAgentControlResultSchema, type TalkCatalogParams, TalkCatalogParamsSchema, type TalkCatalogResult, TalkCatalogResultSchema, type TalkClientCloseParams, TalkClientCloseParamsSchema, type TalkClientCreateParams, TalkClientCreateParamsSchema, type TalkClientCreateResult, TalkClientCreateResultSchema, type TalkClientMutationResult, TalkClientMutationResultSchema, type TalkClientSteerParams, TalkClientSteerParamsSchema, type TalkClientToolCallParams, TalkClientToolCallParamsSchema, type TalkClientToolCallResult, TalkClientToolCallResultSchema, type TalkClientTranscriptParams, TalkClientTranscriptParamsSchema, type TalkConfigParams, TalkConfigParamsSchema, type TalkConfigResult, TalkConfigResultSchema, TalkEventSchema, type TalkModeParams, type TalkSessionAcknowledgeMarkParams, TalkSessionAcknowledgeMarkParamsSchema, type TalkSessionAppendAudioParams, TalkSessionAppendAudioParamsSchema, type TalkSessionCancelOutputParams, TalkSessionCancelOutputParamsSchema, type TalkSessionCancelTurnParams, TalkSessionCancelTurnParamsSchema, type TalkSessionCloseParams, TalkSessionCloseParamsSchema, type TalkSessionCreateParams, TalkSessionCreateParamsSchema, type TalkSessionCreateResult, TalkSessionCreateResultSchema, type TalkSessionJoinParams, TalkSessionJoinParamsSchema, type TalkSessionJoinResult, TalkSessionJoinResultSchema, type TalkSessionOkResult, TalkSessionOkResultSchema, type TalkSessionSteerParams, TalkSessionSteerParamsSchema, type TalkSessionSubmitToolResultParams, TalkSessionSubmitToolResultParamsSchema, type TalkSessionTurnParams, TalkSessionTurnParamsSchema, type TalkSessionTurnResult, TalkSessionTurnResultSchema, type TalkSpeakParams, TalkSpeakParamsSchema, type TalkSpeakResult, TalkSpeakResultSchema, type TaskSuggestion, type TaskSuggestionEvent, TaskSuggestionEventSchema, type TaskSuggestionResolution, TaskSuggestionResolutionSchema, TaskSuggestionSchema, type TaskSuggestionsAcceptParams, TaskSuggestionsAcceptParamsSchema, type TaskSuggestionsAcceptResult, TaskSuggestionsAcceptResultSchema, type TaskSuggestionsCreateParams, TaskSuggestionsCreateParamsSchema, type TaskSuggestionsCreateResult, TaskSuggestionsCreateResultSchema, type TaskSuggestionsDismissParams, TaskSuggestionsDismissParamsSchema, type TaskSuggestionsDismissResult, TaskSuggestionsDismissResultSchema, type TaskSuggestionsListParams, TaskSuggestionsListParamsSchema, type TaskSuggestionsListResult, TaskSuggestionsListResultSchema, type TaskSummary, TaskSummarySchema, type TasksCancelParams, TasksCancelParamsSchema, type TasksCancelResult, TasksCancelResultSchema, type TasksGetParams, TasksGetParamsSchema, type TasksGetResult, TasksGetResultSchema, type TasksListParams, TasksListParamsSchema, type TasksListResult, TasksListResultSchema, type TerminalAckResult, TerminalAckResultSchema, type TerminalApprovalSnapshot, TerminalApprovalSnapshotSchema, type TerminalAttachParams, TerminalAttachParamsSchema, type TerminalAttachResult, TerminalAttachResultSchema, type TerminalCloseParams, TerminalCloseParamsSchema, type TerminalDataEvent, TerminalDataEventSchema, type TerminalEvent, TerminalEventSchema, type TerminalExitEvent, TerminalExitEventSchema, type TerminalInputParams, TerminalInputParamsSchema, type TerminalListResult, TerminalListResultSchema, type TerminalOpenParams, TerminalOpenParamsSchema, type TerminalOpenResult, TerminalOpenResultSchema, type TerminalResizeParams, TerminalResizeParamsSchema, type TerminalSessionInfo, TerminalSessionInfoSchema, type TerminalTextParams, TerminalTextParamsSchema, type TerminalTextResult, TerminalTextResultSchema, type TerminalUploadParams, TerminalUploadParamsSchema, type TerminalUploadResult, TerminalUploadResultSchema, type TickEvent, TickEventSchema, type ToolsCatalogParams, ToolsCatalogParamsSchema, type ToolsCatalogResult, type ToolsEffectiveParams, ToolsEffectiveParamsSchema, type ToolsEffectiveResult, type ToolsInvokeParams, ToolsInvokeParamsSchema, type ToolsInvokeResult, type TtsSpeakParams, TtsSpeakParamsSchema, type TtsSpeakResult, TtsSpeakResultSchema, UiClosePaneCommandSchema, UiCommand, UiCommandParams, UiCommandParamsSchema, UiCommandResult, UiCommandResultSchema, UiCommandSchema, UiFocusCommandSchema, UiNavigateCommandSchema, UiPanelCommandSchema, UiSidebarCommandSchema, UiSplitCommandSchema, type UpdateRunParams, UpdateRunParamsSchema, type UpdateStatusParams, UpdateStatusParamsSchema, type UserProfile, UserProfileSchema, type UsersLinkEmailParams, UsersLinkEmailParamsSchema, type UsersLinkEmailResult, UsersLinkEmailResultSchema, type UsersListParams, UsersListParamsSchema, type UsersListResult, UsersListResultSchema, type UsersSelfParams, UsersSelfParamsSchema, type UsersSelfResult, UsersSelfResultSchema, type UsersSetAvatarParams, UsersSetAvatarParamsSchema, type UsersSetAvatarResult, UsersSetAvatarResultSchema, type UsersSetDisplayNameParams, UsersSetDisplayNameParamsSchema, type UsersSetDisplayNameResult, UsersSetDisplayNameResultSchema, type ValidationError, WORKER_HEARTBEAT_INTERVAL_MS, WORKER_INFERENCE_MAX_CONTEXT_MESSAGES, WORKER_INFERENCE_MAX_OUTPUT_TOKENS, WORKER_INFERENCE_METHODS, WORKER_INFERENCE_PROTOCOL_FEATURE, WORKER_LIVE_EVENT_PROTOCOL_FEATURE, WORKER_PROTOCOL_FEATURES, WORKER_PROTOCOL_MAX_FEATURES, WORKER_PROTOCOL_MAX_FEATURE_LENGTH, WORKER_PROTOCOL_MAX_FRAME_ID_LENGTH, WORKER_PROTOCOL_MAX_IDENTIFIER_LENGTH, WORKER_PROTOCOL_MAX_INFERENCE_PAYLOAD_BYTES, WORKER_PROTOCOL_MAX_METHOD_LENGTH, WORKER_PROTOCOL_MAX_PAYLOAD_BYTES, WORKER_PROTOCOL_METHODS, WORKER_RPC_SET_VERSION, WORKER_TRANSCRIPT_COMMIT_PROTOCOL_FEATURE, WORKER_TRANSCRIPT_MAX_BATCH_MESSAGES, WORKER_TRANSCRIPT_MAX_CONTENT_PARTS, WORKER_TRANSCRIPT_MAX_JSON_DEPTH, type WakeParams, WakeParamsSchema, type WebLoginStartParams, WebLoginStartParamsSchema, type WebLoginWaitParams, WebLoginWaitParamsSchema, type WebPushSubscribeParams, WebPushSubscribeParamsSchema, type WebPushTestParams, WebPushTestParamsSchema, type WebPushUnsubscribeParams, WebPushUnsubscribeParamsSchema, type WebPushVapidPublicKeyParams, WebPushVapidPublicKeyParamsSchema, type WizardCancelParams, WizardCancelParamsSchema, type WizardNextParams, WizardNextParamsSchema, type WizardNextResult, WizardNextResultSchema, type WizardNotFoundErrorDetails, WizardNotFoundErrorDetailsSchema, type WizardStartParams, WizardStartParamsSchema, type WizardStartResult, WizardStartResultSchema, type WizardStatusParams, WizardStatusParamsSchema, type WizardStatusResult, WizardStatusResultSchema, type WizardStep, WizardStepSchema, type WorkerAdmissionFailureReason, WorkerAdmissionFailureReasonSchema, type WorkerAdmissionHandshake, WorkerAdmissionHandshakeSchema, type WorkerAdmissionResponseFrame, WorkerAdmissionResponseFrameSchema, type WorkerConnectParams, type WorkerConnectRequestFrame, WorkerConnectRequestFrameSchema, type WorkerEnvironmentMetadata, WorkerEnvironmentMetadataSchema, type WorkerEnvironmentState, WorkerEnvironmentStateSchema, type WorkerErrorShape, type WorkerHeartbeatParams, WorkerHeartbeatParamsSchema, type WorkerHeartbeatRequestFrame, WorkerHeartbeatRequestFrameSchema, type WorkerHeartbeatResponseFrame, WorkerHeartbeatResponseFrameSchema, type WorkerHeartbeatResult, type WorkerHelloOk, WorkerInferenceCancelParams, WorkerInferenceCancelRequestFrame, WorkerInferenceCancelRequestFrameSchema, WorkerInferenceCancelResponseFrame, WorkerInferenceCancelResponseFrameSchema, WorkerInferenceCancelResult, WorkerInferenceContext, WorkerInferenceErrorReason, WorkerInferenceErrorShape, WorkerInferenceEventFrame, WorkerInferenceEventParams, WorkerInferenceModelRef, WorkerInferenceModelRefSchema, WorkerInferenceOptions, WorkerInferenceOptionsSchema, WorkerInferenceStartParams, WorkerInferenceStartRequestFrame, WorkerInferenceStartRequestFrameSchema, WorkerInferenceStartResponseFrame, WorkerInferenceStartResponseFrameSchema, WorkerInferenceStartResult, WorkerInferenceTerminalFrame, WorkerInferenceTerminalOutcome, WorkerInferenceTerminalParams, type WorkerLiveEvent, type WorkerLiveEventErrorDetails, WorkerLiveEventErrorDetailsSchema, type WorkerLiveEventErrorShape, WorkerLiveEventErrorShapeSchema, type WorkerLiveEventParams, WorkerLiveEventParamsSchema, type WorkerLiveEventRequestFrame, WorkerLiveEventRequestFrameSchema, type WorkerLiveEventResponseFrame, WorkerLiveEventResponseFrameSchema, type WorkerLiveEventResult, WorkerLiveEventResultSchema, WorkerLiveEventSchema, type WorkerProtocolCloseReason, WorkerProtocolCloseReasonSchema, type WorkerTranscriptCommitErrorReason, WorkerTranscriptCommitErrorReasonSchema, type WorkerTranscriptCommitErrorShape, WorkerTranscriptCommitErrorShapeSchema, type WorkerTranscriptCommitParams, WorkerTranscriptCommitParamsSchema, type WorkerTranscriptCommitRequestFrame, WorkerTranscriptCommitRequestFrameSchema, type WorkerTranscriptCommitResponseFrame, WorkerTranscriptCommitResponseFrameSchema, type WorkerTranscriptCommitResult, WorkerTranscriptCommitResultSchema, type WorkerTranscriptMessage, WorkerTranscriptMessageSchema, type WorkerTunnelStatus, WorkerTunnelStatusSchema, type WorktreeBranch, WorktreeBranchSchema, type WorktreeRecord, WorktreeRecordSchema, type WorktreeRepositoryStatus, WorktreeRepositoryStatusSchema, type WorktreesBranchesParams, WorktreesBranchesParamsSchema, type WorktreesBranchesResult, WorktreesBranchesResultSchema, type WorktreesCreateParams, WorktreesCreateParamsSchema, type WorktreesGcParams, WorktreesGcParamsSchema, type WorktreesGcResult, WorktreesGcResultSchema, type WorktreesListParams, WorktreesListParamsSchema, type WorktreesListResult, WorktreesListResultSchema, type WorktreesRemoveParams, WorktreesRemoveParamsSchema, type WorktreesRemoveResult, WorktreesRemoveResultSchema, type WorktreesRestoreParams, WorktreesRestoreParamsSchema, buildClawHubTrustErrorDetails, buildMissingScopeErrorDetails, buildSystemAgentSessionInvalidatedErrorDetails, errorShape, formatValidationErrors, isClawHubTrustErrorCode, isCloudWorkerPlacementState, isMcpAppViewExpiredError, isWellFormedApprovalId, missingScopeErrorShape, normalizeSessionIconInput, parseSessionIcon, readClawHubTrustErrorDetails, readMissingScopeError, readMissingScopeErrorDetails, readSystemAgentSessionInvalidatedErrorDetails, validateAgentIdentityParams, validateAgentParams, validateAgentWaitParams, validateAgentsCreateParams, validateAgentsDeleteParams, validateAgentsFilesGetParams, validateAgentsFilesListParams, validateAgentsFilesSetParams, validateAgentsListParams, validateAgentsUpdateParams, validateAgentsWorkspaceGetParams, validateAgentsWorkspaceListParams, validateApprovalGetParams, validateApprovalGetResult, validateApprovalHistoryParams, validateApprovalHistoryResult, validateApprovalPresentation, validateApprovalResolveParams, validateApprovalResolveResult, validateArtifactsDownloadParams, validateArtifactsGetParams, validateArtifactsListParams, validateAuditActivityListParams, validateAuditListParams, validateBoardActionParams, validateBoardDataReadParams, validateBoardEventParams, validateBoardGetParams, validateBoardPromptAuthorizeParams, validateBoardUpdateParams, validateBoardWidgetAppViewParams, validateBoardWidgetContent, validateBoardWidgetGrantParams, validateBoardWidgetPutParams, validateChannelsLogoutParams, validateChannelsPairingApproveParams, validateChannelsPairingDismissParams, validateChannelsPairingListParams, validateChannelsStartParams, validateChannelsStatusParams, validateChannelsStopParams, validateChatAbortParams, validateChatHistoryParams, validateChatInjectParams, validateChatMessageGetParams, validateChatMetadataParams, validateChatSendParams, validateChatToolTitlesParams, validateCommandsListParams, validateConfigApplyParams, validateConfigGetParams, validateConfigPatchParams, validateConfigSchemaLookupParams, validateConfigSchemaLookupResult, validateConfigSchemaParams, validateConfigSetParams, validateConnectParams, validateConversationListParams, validateConversationSendParams, validateConversationTurnCancelParams, validateConversationTurnParams, validateCronAddParams, validateCronGetParams, validateCronListParams, validateCronRemoveParams, validateCronRunParams, validateCronRunsParams, validateCronScratchGetParams, validateCronScratchSetParams, validateCronStatusParams, validateCronUpdateParams, validateDevicePairApproveParams, validateDevicePairListParams, validateDevicePairRejectParams, validateDevicePairRemoveParams, validateDevicePairRenameParams, validateDevicePairSetupCodeParams, validateDeviceTokenRevokeParams, validateDeviceTokenRotateParams, validateEnvironmentsCreateParams, validateEnvironmentsDestroyParams, validateEnvironmentsListParams, validateEnvironmentsStatusParams, validateExecApprovalGetParams, validateExecApprovalRequestParams, validateExecApprovalResolveParams, validateExecApprovalsGetParams, validateExecApprovalsNodeGetParams, validateExecApprovalsNodeSetParams, validateExecApprovalsNodeSnapshot, validateExecApprovalsSetParams, validateFsListDirParams, validateFsListDirResult, validateGatewaySuspendPrepareParams, validateGatewaySuspendResumeParams, validateGatewaySuspendStatusParams, validateLogsTailParams, validateMessageActionParams, validateMigrationsMemoryApplyParams, validateMigrationsMemoryPlanParams, validateModelsAuthLogoutParams, validateModelsAuthStatusParams, validateModelsListParams, validateModelsProbeParams, validateNodeDescribeParams, validateNodeEventParams, validateNodeInvokeParams, validateNodeInvokeProgressParams, validateNodeInvokeResultParams, validateNodeListParams, validateNodePairApproveParams, validateNodePairListParams, validateNodePairRejectParams, validateNodePairRemoveParams, validateNodePendingAckParams, validateNodePendingDrainParams, validateNodePendingEnqueueParams, validateNodePluginToolsUpdateParams, validateNodePresenceActivityPayload, validateNodeRenameParams, validateNodeSkillsUpdateParams, validatePluginApprovalRequestParams, validatePluginApprovalResolveParams, validatePluginsInstallParams, validatePluginsListParams, validatePluginsRefreshParams, validatePluginsSearchParams, validatePluginsSessionActionParams, validatePluginsSessionActionResult, validatePluginsSetEnabledParams, validatePluginsUiDescriptorsParams, validatePluginsUiDescriptorsResult, validatePluginsUninstallParams, validatePollParams, validatePushTestParams, validateQuestionGetParams, validateQuestionListParams, validateQuestionRequestParams, validateQuestionResolveParams, validateQuestionWaitAnswerParams, validateRequestFrame, validateSecretsResolveParams, validateSecretsResolveResult, validateSendParams, validateSessionDiscussionInfoParams, validateSessionDiscussionInfoResult, validateSessionDiscussionOpenParams, validateSessionDiscussionOpenResult, validateSessionMemberAddParams, validateSessionMemberRemoveParams, validateSessionMembersListParams, validateSessionVisibilitySetParams, validateSessionsAbortParams, validateSessionsBranchesListParams, validateSessionsBranchesSwitchParams, validateSessionsCatalogArchiveParams, validateSessionsCatalogContinueParams, validateSessionsCatalogListParams, validateSessionsCatalogReadParams, validateSessionsCleanupParams, validateSessionsCompactParams, validateSessionsCompactionBranchParams, validateSessionsCompactionGetParams, validateSessionsCompactionListParams, validateSessionsCompactionRestoreParams, validateSessionsCreateParams, validateSessionsDeleteParams, validateSessionsDescribeParams, validateSessionsDiffParams, validateSessionsDispatchParams, validateSessionsFilesGetParams, validateSessionsFilesListParams, validateSessionsFilesRevealParams, validateSessionsFilesSetParams, validateSessionsForkParams, validateSessionsGroupsDeleteParams, validateSessionsGroupsListParams, validateSessionsGroupsPutParams, validateSessionsGroupsRenameParams, validateSessionsListParams, validateSessionsMessagesSubscribeParams, validateSessionsMessagesUnsubscribeParams, validateSessionsObserverAskParams, validateSessionsObserverVisibilityParams, validateSessionsPatchParams, validateSessionsPluginPatchParams, validateSessionsPreviewParams, validateSessionsReclaimParams, validateSessionsResetParams, validateSessionsResolveParams, validateSessionsRewindParams, validateSessionsSearchParams, validateSessionsSendParams, validateSessionsUsageParams, validateSkillsBinsParams, validateSkillsCuratorActionParams, validateSkillsCuratorStatusParams, validateSkillsDetailParams, validateSkillsInstallParams, validateSkillsProposalActionParams, validateSkillsProposalCreateParams, validateSkillsProposalHistoryScanParams, validateSkillsProposalHistoryStatusParams, validateSkillsProposalInspectParams, validateSkillsProposalRequestRevisionParams, validateSkillsProposalReviseParams, validateSkillsProposalUpdateParams, validateSkillsProposalsListParams, validateSkillsSearchParams, validateSkillsSecurityVerdictsParams, validateSkillsSkillCardParams, validateSkillsStatusParams, validateSkillsUpdateParams, validateSkillsUploadBeginParams, validateSkillsUploadChunkParams, validateSkillsUploadCommitParams, validateSystemAgentChatHistoryParams, validateSystemAgentChatParams, validateSystemAgentSetupActivateParams, validateSystemAgentSetupAuthStartParams, validateSystemAgentSetupDetectParams, validateSystemAgentSetupVerifyParams, validateSystemChangesListParams, validateSystemInfoParams, validateSystemInfoResult, validateTalkCatalogParams, validateTalkClientCloseParams, validateTalkClientCreateParams, validateTalkClientCreateResult, validateTalkClientMutationResult, validateTalkClientSteerParams, validateTalkClientToolCallParams, validateTalkClientToolCallResult, validateTalkClientTranscriptParams, validateTalkConfigParams, validateTalkConfigResult, validateTalkModeParams, validateTalkSessionAcknowledgeMarkParams, validateTalkSessionAppendAudioParams, validateTalkSessionCancelOutputParams, validateTalkSessionCancelTurnParams, validateTalkSessionCloseParams, validateTalkSessionCreateParams, validateTalkSessionJoinParams, validateTalkSessionSteerParams, validateTalkSessionSubmitToolResultParams, validateTalkSessionTurnParams, validateTalkSpeakParams, validateTaskSuggestionsAcceptParams, validateTaskSuggestionsCreateParams, validateTaskSuggestionsDismissParams, validateTaskSuggestionsListParams, validateTasksCancelParams, validateTasksGetParams, validateTasksListParams, validateTerminalAttachParams, validateTerminalCloseParams, validateTerminalInputParams, validateTerminalOpenParams, validateTerminalResizeParams, validateTerminalTextParams, validateTerminalUploadParams, validateTerminalUploadResult, validateToolsCatalogParams, validateToolsEffectiveParams, validateToolsInvokeParams, validateTtsSpeakParams, validateUiCommandParams, validateUpdateRunParams, validateUpdateStatusParams, validateUsersLinkEmailParams, validateUsersLinkEmailResult, validateUsersListParams, validateUsersSelfParams, validateUsersSelfResult, validateUsersSetAvatarParams, validateUsersSetAvatarResult, validateUsersSetDisplayNameParams, validateUsersSetDisplayNameResult, validateWakeParams, validateWebLoginStartParams, validateWebLoginWaitParams, validateWebPushSubscribeParams, validateWebPushTestParams, validateWebPushUnsubscribeParams, validateWebPushVapidPublicKeyParams, validateWizardCancelParams, validateWizardNextParams, validateWizardStartParams, validateWizardStatusParams, validateWorkerAdmissionHandshake, validateWorkerConnectRequestFrame, validateWorkerHeartbeatParams, validateWorkerInferenceCancelParams, validateWorkerInferenceEventFrame, validateWorkerInferenceStartParams, validateWorkerInferenceTerminalFrame, validateWorkerInferenceTerminalOutcome, validateWorkerLiveEventParams, validateWorkerTranscriptCommitParams, validateWorktreesBranchesParams, validateWorktreesCreateParams, validateWorktreesGcParams, validateWorktreesListParams, validateWorktreesRemoveParams, validateWorktreesRestoreParams };