UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

46 lines • 2.57 kB
import { i as OpenClawConfig } from "./types.openclaw-BhmF31_h.js"; import { f as ReplyPayload, n as GetReplyOptions } from "./types-Iy-uj5hQ.js"; import { i as MsgContext, t as FinalizedMsgContext } from "./templating-C0ehoyWm.js"; import { yn as ReplyDispatcher } from "./hook-types-B1sEtxPP.js"; import { $r as CommandSessionMetadataChange, Jr as ReplyDispatcherWithTypingOptions, Qr as GetReplyFromConfig, Zr as DispatchFromConfigResult, qr as ReplyDispatcherOptions } from "./types-C6Y8zGKi.js"; //#region src/auto-reply/dispatch.d.ts type ReplyPayloadRunState = { runId?: string; }; type DispatchInboundResult = DispatchFromConfigResult; /** Dispatches one finalized inbound message through reply resolution and queued delivery. */ declare function dispatchInboundMessage(params: { ctx: MsgContext | FinalizedMsgContext; cfg: OpenClawConfig; dispatcher: ReplyDispatcher; toolsAllow?: string[]; replyOptions?: Omit<GetReplyOptions, "onBlockReply">; replyResolver?: GetReplyFromConfig; onSessionMetadataChanges?: (changes: CommandSessionMetadataChange[]) => void; replyPayloadRunState?: ReplyPayloadRunState; }): Promise<DispatchInboundResult>; /** Creates a buffered dispatcher with typing, hooks, and stale foreground delivery suppression. */ declare function dispatchInboundMessageWithBufferedDispatcher(params: { ctx: MsgContext | FinalizedMsgContext; cfg: OpenClawConfig; dispatcherOptions: ReplyDispatcherWithTypingOptions; toolsAllow?: string[]; replyOptions?: Omit<GetReplyOptions, "onBlockReply">; replyResolver?: GetReplyFromConfig; onSessionMetadataChanges?: (changes: CommandSessionMetadataChange[]) => void; }): Promise<DispatchInboundResult>; /** Creates a plain dispatcher, installs global send hooks, and dispatches the inbound message. */ declare function dispatchInboundMessageWithDispatcher(params: { ctx: MsgContext | FinalizedMsgContext; cfg: OpenClawConfig; dispatcherOptions: ReplyDispatcherOptions; toolsAllow?: string[]; replyOptions?: Omit<GetReplyOptions, "onBlockReply">; replyResolver?: GetReplyFromConfig; }): Promise<DispatchInboundResult>; //#endregion //#region src/auto-reply/heartbeat-reply-payload.d.ts /** Pick the last outbound-capable reply payload for heartbeat delivery. */ declare function resolveHeartbeatReplyPayload(replyResult: ReplyPayload | ReplyPayload[] | undefined): ReplyPayload | undefined; //#endregion export { dispatchInboundMessageWithDispatcher as i, dispatchInboundMessage as n, dispatchInboundMessageWithBufferedDispatcher as r, resolveHeartbeatReplyPayload as t };