No Description

messages.d.ts 559B

1234567891011121314151617181920212223242526272829
  1. export interface ContactMsg {
  2. fid: string;
  3. }
  4. export interface ContactAddMsg {
  5. id: string;
  6. to: string;
  7. }
  8. export interface ChatroomMsg {
  9. room_id: string;
  10. admin_id?: string;
  11. admins_id?: string[];
  12. member: string;
  13. authority?: number;
  14. }
  15. export interface ChatMsg {
  16. from: string;
  17. type: 'room';
  18. to: string;
  19. msg: {
  20. type: 'cmd' | 'text' | 'image';
  21. command?: string;
  22. action?: string;
  23. message?: string;
  24. msg_id?: string;
  25. };
  26. msg_id?: string;
  27. ext?: Record<string, string>;
  28. }