feat(history): add multi-account and WhatsApp foundation

This commit is contained in:
wmq
2026-07-30 00:14:32 +08:00
parent 7f09132fad
commit 9804341463
43 changed files with 7484 additions and 290 deletions
+20
View File
@@ -41,7 +41,18 @@ export interface Message {
productCard?: { name: string; sku: string; price: string }
replyToId?: string
replyPreview?: string
editedAt?: string
isDeleted?: boolean
deletedAt?: string
reactions?: Array<{
actor: string
emoji: string
fromMe?: boolean
updatedAt?: string
}>
telegramFileId?: number
whatsappMessageId?: string
whatsappContentType?: string
attachmentMimeType?: string
attachmentSize?: number
stickerEmoji?: string
@@ -74,12 +85,17 @@ export interface Conversation {
channelId?: string
telegramChatId?: string
telegramChatType?: string
whatsappJid?: string
whatsappChatType?: string
isPinned?: boolean
archived?: boolean
mutedUntil?: string | null
markedUnread?: boolean
isBlocked?: boolean
leftAt?: string
presence?: 'available' | 'unavailable' | 'composing' | 'recording' | 'paused'
presenceUpdatedAt?: string
lastSeenAt?: string
}
export type ChannelStatus = 'connected' | 'disconnected' | 'error' | 'paused' | 'unconnected'
@@ -106,6 +122,10 @@ export interface ChannelConnection {
smtpSecure?: boolean
syncDays?: number
lastVerifiedAt?: string
isDefault?: boolean
provider?: string
pairingCode?: string
qrDataUrl?: string
}
export interface ChannelSyncLog {