export type MessageRevisionType =
  | 'create'
  | 'author-edit'
  | 'author-delete'
  | 'moderate-edit'
  | 'moderate-delete'
  | 'plugin-edit'
  | 'plugin-delete';

export interface MessageRevision {
  messageId: string;
  revision: number;
  prevRevisionHash: string;
  headHash: string;
  type: MessageRevisionType;
  actorId: string;
  senderId: string;
  roomId: string;
  channelId?: string;
  senderName?: string;
  content?: string;
  editedAt: number;
  isDeleted: boolean;
  replyToId?: string;
  pluginId?: string;
  signature?: string;
}
