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

export type ThreadsStatsRetrieveParams = {
  /**
   * Filter threads that are archived (1=true, 0=false).
   */
  has_archived?: number;
  /**
   * Filter threads with attachments (1=true, 0=false).
   */
  has_attachments?: number;
  /**
   * Filter threads with 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 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 are trashed (1=true, 0=false).
   */
  has_trashed?: number;
  /**
   * Filter threads by label slug.
   */
  label_slug?: string;
  /**
   * Filter threads by mailbox ID.
   */
  mailbox_id?: string;
  /**
   * Search threads by content (subject, sender, recipients, message body).
   */
  search?: string;
  /**
 * Comma-separated list of fields to aggregate.
                Special values: 'all' (count all threads), 'all_unread' (count all unread threads).
                Boolean fields: has_trashed, has_draft, has_starred, has_attachments, has_archived,
                has_sender, has_active, has_delivery_pending, has_delivery_failed, is_spam, has_messages.
                Unread variants ('_unread' suffix): count threads where the condition is true AND the thread is unread.
                Examples: 'all,all_unread', 'has_starred,has_starred_unread', 'is_spam,is_spam_unread'
 */
  stats_fields: ThreadsStatsRetrieveStatsFields;
};
