import {ChatEventType} from './models/eventBase';

export interface NewMessageNotification {
  /**
   * ULID timestamp
   */
  ts: string;
  /**
   * Event type
   */
  type: ChatEventType;
  /**
   * Community id
   */
  instance: number;
  /**
   * User id which triggered the event
   */
  initiaror: string;
  /**
   * JSON extra data
   */
  data?: string;
  msg_text: string;
  /**
   * User id of the message sender
   */
  msg_sender_id: string;
  /**
   * ULID timestamp of the message
   */
  msg_ts: string;
  msg_client_msg_id: string;
  /**
   * Channel ULID timestamp
   */
  channel_ts: string;
  /**
   * Channel ULID lastest message id
   */
  channel_last_msg_id: string;
  /**
   * 1o1 conversation
   */
  channel_is_im: boolean;
  /**
   * Message version
   */
  msg_version: number;
  /**
   * Message position
   */
  msg_position: number;
  /**
   * Channel version
   */
  channel_version: number;
  /**
   * User id which triggered the event
   */
  initiator: number;
  /**
   * Request client id
   */
  request_client_id: string;

  event_json?: string;
}
