export const DELETED_MESSAGE_CONTENT = '[Message deleted]'; export interface LinkMetadata { url: string; title?: string; description?: string; imageUrl?: string; siteName?: string; failed?: boolean; } export interface Message { id: string; roomId: string; channelId?: string; senderId: string; senderName: string; content: string; timestamp: number; kind?: 'user' | 'system'; systemEvent?: 'call-started'; editedAt?: number; revision?: number; headHash?: string; reactions: Reaction[]; isDeleted: boolean; replyToId?: string; linkMetadata?: LinkMetadata[]; /** Originating client instance when relayed through signaling for multi-device sync. */ clientInstanceId?: string; } export interface Reaction { id: string; messageId: string; oderId: string; userId: string; emoji: string; timestamp: number; }