/** * Represents a request for sending a text email message. * * @group Email * @category Requests * * @remarks * Vonage API's will return information using `snake_case`. This represents the * pure request before the client will transform the keys into `camelCase`. */ type EmailTextRequest = { /** * The sender's email address (or "Display Name
"). */ from: string; /** * The recipient's email address. */ to: string; /** * The channel, always 'email'. */ channel: 'email'; /** * The message type, always 'text'. */ message_type: 'text'; /** * The plain text body of the email. */ text: string; /** * Email-specific settings such as subject, importance, priority and sensitivity. */ email: { subject: string; importance?: string; priority?: string; sensitivity?: string; }; /** * An optional client reference for the message. */ client_ref?: string; /** * An optional webhook URL to receive status updates. */ webhook_url?: string; /** * An optional webhook version. */ webhook_version?: string; }; export type { EmailTextRequest };