UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

27 lines (26 loc) • 950 B
import type { ChannelId } from "../../channels/plugins/types.js"; import type { OpenClawConfig } from "../../config/config.js"; import type { OutboundChannel } from "../../infra/outbound/targets.js"; export type DeliveryTargetResolution = { ok: true; channel: Exclude<OutboundChannel, "none">; to: string; accountId?: string; threadId?: string | number; mode: "explicit" | "implicit"; } | { ok: false; channel?: Exclude<OutboundChannel, "none">; to?: string; accountId?: string; threadId?: string | number; mode: "explicit" | "implicit"; error: Error; }; export declare function resolveDeliveryTarget(cfg: OpenClawConfig, agentId: string, jobPayload: { channel?: "last" | ChannelId; to?: string; /** Explicit accountId from job.delivery — overrides session-derived and binding-derived values. */ accountId?: string; sessionKey?: string; }): Promise<DeliveryTargetResolution>;