/**
 * Generated by orval 🍺
 * Do not edit manually.
 * messages API
 * This is the messages API schema.
 * OpenAPI spec version: 1.0.0 (v1.0)
 */

export type ThreadsListParams = {
  /**
   * Filter threads that have active messages (1=true, 0=false).
   */
  has_active?: number;
  /**
   * Filter threads that have archived (1=true, 0=false).
   */
  has_archived?: number;
  /**
   * Filter threads assigned to the current user (1=true, 0=false).
   */
  has_assigned_to_me?: number;
  /**
   * Filter threads with attachments (1=true, 0=false).
   */
  has_attachments?: number;
  /**
   * Filter threads that have delivery pending messages: sending, retry or failed (1=true, 0=false).
   */
  has_delivery_pending?: number;
  /**
   * Filter threads with draft messages (1=true, 0=false).
   */
  has_draft?: number;
  /**
   * Filter threads with any mention (read or unread) for the current user (1=true, 0=false).
   */
  has_mention?: number;
  /**
   * Filter threads that have messages (1=true, 0=false).
   */
  has_messages?: number;
  /**
   * Filter threads with messages sent by the user (1=true, 0=false).
   */
  has_sender?: number;
  /**
   * Filter threads with starred messages (1=true, 0=false).
   */
  has_starred?: number;
  /**
   * Filter threads that have trashed messages (1=true, 0=false).
   */
  has_trashed?: number;
  /**
   * Filter threads with no active assignment from any user (1=true, 0=false).
   */
  has_unassigned?: number;
  /**
   * Filter threads with unread messages (1=true, 0=false). Requires mailbox_id.
   */
  has_unread?: number;
  /**
   * Filter threads with unread mentions for the current user (1=true, 0=false).
   */
  has_unread_mention?: number;
  /**
   * Filter threads that are spam (1=true, 0=false).
   */
  is_spam?: number;
  /**
   * Filter threads that have all messages trashed (1=true, 0=false).
   */
  is_trashed?: number;
  /**
   * Filter threads by label slug.
   */
  label_slug?: string;
  /**
   * Filter threads by mailbox ID.
   */
  mailbox_id?: string;
  /**
   * A page number within the paginated result set.
   */
  page?: number;
  /**
   * Search threads by content (subject, sender, recipients, message body).
   */
  search?: string;
};
