24 lines
811 B
TypeScript
24 lines
811 B
TypeScript
export type SupportRealtimeEvent = {
|
|
type: 'message.new';
|
|
conversationId: string;
|
|
messageId: string;
|
|
message?: Record<string, unknown>;
|
|
} | {
|
|
type: 'message.read';
|
|
conversationId: string;
|
|
} | {
|
|
type: 'conversation.updated';
|
|
conversationId: string;
|
|
} | {
|
|
type: 'typing';
|
|
conversationId: string;
|
|
party: 'user' | 'staff';
|
|
active: boolean;
|
|
};
|
|
export declare function publishSupportEvent(conversationId: string, event: SupportRealtimeEvent): Promise<void>;
|
|
export declare function setTypingIndicator(conversationId: string, party: 'user' | 'staff', active: boolean): Promise<void>;
|
|
export declare function getTypingIndicators(conversationId: string): Promise<{
|
|
userTyping: boolean;
|
|
staffTyping: boolean;
|
|
}>;
|
|
//# sourceMappingURL=supportRealtimeService.d.ts.map
|