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

export interface DraftMessageRequestRequest {
  /**
   * Message ID if updating an existing draft
   * @nullable
   */
  messageId?: string | null;
  /**
   * Message ID if replying to an existing message
   * @nullable
   */
  parentId?: string | null;
  /** Mailbox ID to use as sender */
  senderId: string;
  /**
   * Subject of the message (optional; empty or null allowed)
   * @nullable
   */
  subject?: string | null;
  /** Content of the draft message as arbitrary text (usually JSON) */
  draftBody?: string;
  /** List of recipient email addresses */
  to?: string[];
  /** List of CC recipient email addresses */
  cc?: string[];
  /** List of BCC recipient email addresses */
  bcc?: string[];
  /** List of attachment objects with blobId, partId, and name */
  attachments?: DraftMessageRequestRequestAttachmentsItem[];
  /**
   * ID of the signature template to use
   * @nullable
   */
  signatureId?: string | null;
}
