@gguf/claw
Version:
Multi-channel AI gateway with extensible messaging integrations
17 lines (16 loc) • 525 B
TypeScript
/**
* Extract deliveryContext and threadId from a sessionKey.
* Supports both :thread: (most channels) and :topic: (Telegram).
*/
export declare function parseSessionThreadInfo(sessionKey: string | undefined): {
baseSessionKey: string | undefined;
threadId: string | undefined;
};
export declare function extractDeliveryInfo(sessionKey: string | undefined): {
deliveryContext: {
channel?: string;
to?: string;
accountId?: string;
} | undefined;
threadId: string | undefined;
};