diff --git a/src/emails/interfaces/get-email-options.interface.ts b/src/emails/interfaces/get-email-options.interface.ts index 40ca416c..bf1d6d78 100644 --- a/src/emails/interfaces/get-email-options.interface.ts +++ b/src/emails/interfaces/get-email-options.interface.ts @@ -1,7 +1,23 @@ import type { Response } from '../../interfaces'; +export interface GetEmailResponseBounce { + message: string | null; + type: 'Undetermined' | 'Transient' | 'Permanent' | null; + subType: + | 'Undetermined' + | 'General' + | 'NoEmail' + | 'MailboxFull' + | 'MessageTooLarge' + | 'ContentRejected' + | 'AttachmentRejected' + | null; + diagnosticCode?: string[]; +} + export interface GetEmailResponseSuccess { bcc: string[] | null; + bounce?: GetEmailResponseBounce; cc: string[] | null; created_at: string; from: string;