UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

51 lines • 2.28 kB
import { r as OpenClawConfig } from "./types.openclaw-A0y1x1SF.js"; import "./index-DSy-_0fC.js"; import { a as ApprovalResolveParams, o as ApprovalResolveResult, r as ApprovalDecision } from "./exec-approvals-CymhV2M5.js"; import { r as ChannelApprovalKind } from "./approval-types-Bh5AmS0_.js"; type ResolveApprovalOverGatewayBaseParams = { cfg: OpenClawConfig; approvalId: string; decision: ApprovalDecision; channel?: string; accountId?: string | null; senderId?: string | null; gatewayUrl?: string; clientDisplayName?: string; }; type ApprovalGatewayRuntime = { request: (method: "approval.resolve", params: ApprovalResolveParams, options?: { clientDisplayName?: string; }) => Promise<ApprovalResolveResult>; }; type CanonicalResolveApprovalOverGatewayParams = ResolveApprovalOverGatewayBaseParams & { /** Explicit owner required by the canonical approval resolver. */ approvalKind: ChannelApprovalKind; gatewayRuntime?: ApprovalGatewayRuntime; allowPluginFallback?: never; resolveMethod?: never; }; /** * Shipped compatibility input for command-backed and older channel controls. * @deprecated Pass approvalKind so resolution uses the canonical approval service. */ type LegacyResolveApprovalOverGatewayParams = ResolveApprovalOverGatewayBaseParams & { approvalKind?: never; /** * Shipped legacy fallback after an exec lookup proves no match. * @deprecated Pass approvalKind so resolution uses the canonical approval service. */ allowPluginFallback?: boolean; /** * Explicit legacy owner. Omission retains the shipped id-based routing contract. * @deprecated Pass approvalKind so resolution uses the canonical approval service. */ resolveMethod?: ChannelApprovalKind; }; /** * Resolves a shipped legacy approval control through its kind-specific Gateway adapter. * @deprecated Pass approvalKind so resolution uses the canonical approval service. */ declare function resolveApprovalOverGateway(params: LegacyResolveApprovalOverGatewayParams): Promise<void>; /** Resolves a typed approval through the canonical operator approval service. */ declare function resolveApprovalOverGateway(params: CanonicalResolveApprovalOverGatewayParams): Promise<ApprovalResolveResult>; export { resolveApprovalOverGateway as t };