export interface ContactMsg { fid: string; } export interface ContactAddMsg { id: string; to: string; } export interface ChatroomMsg { room_id: string; admin_id?: string; admins_id?: string[]; member: string; authority?: number; } export interface ChatMsg { from: string; type: 'room'; to: string; msg: { type: 'cmd' | 'text' | 'image'; command?: string; action?: string; message?: string; msg_id?: string; }; msg_id?: string; ext?: Record; }