openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
34 lines (33 loc) • 1.12 kB
TypeScript
import { n as MsgContext } from "./templating-BPhbA1Jb.js";
import { a as SessionEntry, n as GroupKeyResolution } from "./types-QMIFj7bE.js";
import { o as ChannelRouteRef } from "./channel-route-DUbOqcPC.js";
//#region src/channels/session.types.d.ts
type InboundLastRouteUpdate = {
sessionKey: string;
channel: SessionEntry["lastChannel"];
to: string;
accountId?: string;
threadId?: string | number;
route?: ChannelRouteRef;
mainDmOwnerPin?: {
ownerRecipient: string;
senderRecipient: string;
onSkip?: (params: {
ownerRecipient: string;
senderRecipient: string;
}) => void;
};
};
/** Function contract for recording inbound channel session state. */
type RecordInboundSession = (params: {
storePath: string;
sessionKey: string;
ctx: MsgContext;
groupResolution?: GroupKeyResolution | null;
createIfMissing?: boolean;
updateLastRoute?: InboundLastRouteUpdate;
onRecordError: (err: unknown) => void;
trackSessionMetaTask?: (task: Promise<unknown>) => void;
}) => Promise<void>;
//#endregion
export { RecordInboundSession as n, InboundLastRouteUpdate as t };