/**
 * Copyright 2024 Phenix Real Time Solutions, Inc. Confidential and Proprietary. All Rights Reserved.
 */
interface IUserMessage {
  sessionId?: string;
  screenName: string;
  role: string;
  lastUpdate: number;
}

export interface IMessage {
  messageId: string;
  timestamp: number;
  deletedTimestamp: number;
  mimeType: string;
  message: string;
  tags: string[];
  from: IUserMessage;
}

export interface IMessagesParams {
  beforeMessageId?: string;
  afterMessageId?: string;
  mimeTypes?: string;
}

export interface IGetMessagesResponse {
  messages: IMessage[];
  hasMoreBefore?: boolean;
  hasMoreAfter?: boolean;
  id?: string;
  view?: string;
  params?: IMessagesParams;
}
