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

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