/**
 * 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 { FlagEnum } from "./flag_enum";

export interface ChangeFlagRequestRequest {
  flag: FlagEnum;
  value: boolean;
  /** List of message UUIDs to apply the flag change to. */
  message_ids?: string[];
  /** List of thread UUIDs where all messages should have the flag change applied. */
  thread_ids?: string[];
  /** Mailbox UUID. Required when flag is 'unread' or 'starred'. */
  mailbox_id?: string;
  /**
   * Timestamp up to which messages are considered read. When provided with flag='unread', sets ThreadAccess.read_at directly. null means nothing has been read (all messages unread).
   * @nullable
   */
  read_at?: string | null;
  /**
   * Timestamp when the thread was starred. When provided with flag='starred' and value=true, sets ThreadAccess.starred_at. null or value=false removes the starred flag.
   * @nullable
   */
  starred_at?: string | null;
}
