/**
 * Generated by orval 🍺
 * Do not edit manually.
 * messages API
 * This is the messages API schema.
 * OpenAPI spec version: 1.0.0 (v1.0)
 */
import type { ThreadEventTypeEnum } from "./thread_event_type_enum";
import type { UserWithoutAbilities } from "./user_without_abilities";
import type { ThreadEventData } from "./thread_event_data";

/**
 * Serialize thread event information.
 */
export interface ThreadEvent {
  /** primary key for the record as UUID */
  readonly id: string;
  /** primary key for the record as UUID */
  readonly thread: string;
  type: ThreadEventTypeEnum;
  /**
   * primary key for the record as UUID
   * @nullable
   */
  readonly channel: string | null;
  /**
   * primary key for the record as UUID
   * @nullable
   */
  message?: string | null;
  readonly author: UserWithoutAbilities;
  /** @nullable */
  readonly author_display: string | null;
  data: ThreadEventData;
  readonly has_unread_mention: boolean;
  readonly is_editable: boolean;
  /** date and time at which a record was created */
  readonly created_at: string;
  /** date and time at which a record was last updated */
  readonly updated_at: string;
}
