mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-30 01:58:44 +00:00
27 lines
836 B
TypeScript
27 lines
836 B
TypeScript
import type { MsgContext } from "../auto-reply/templating.js";
|
|
import type { GroupKeyResolution, SessionEntry } from "../config/sessions/types.js";
|
|
|
|
export type InboundLastRouteUpdate = {
|
|
sessionKey: string;
|
|
channel: SessionEntry["lastChannel"];
|
|
to: string;
|
|
accountId?: string;
|
|
threadId?: string | number;
|
|
mainDmOwnerPin?: {
|
|
ownerRecipient: string;
|
|
senderRecipient: string;
|
|
onSkip?: (params: { ownerRecipient: string; senderRecipient: string }) => void;
|
|
};
|
|
};
|
|
|
|
export 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>;
|