openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
40 lines • 1.3 kB
TypeScript
import { b as ChannelRouteRef, r as GroupKeyResolution } from "./types-DeuBjaEd.js";
import { s as MsgContext } from "./templating-CpgmHvb9.js";
import { t as PairingChannel } from "./pairing-store.types-BwFec4xR.js";
//#region src/channels/session.types.d.ts
type InboundLastRouteUpdate = {
sessionKey: string;
channel: string;
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
//#region src/pairing/pairing-messages.d.ts
declare function buildPairingReply(params: {
channel: PairingChannel;
idLine: string;
code: string;
}): string;
//#endregion
export { InboundLastRouteUpdate as n, RecordInboundSession as r, buildPairingReply as t };