From 48bdd3ac98c913a3e4f4d2136d90da0f206334a0 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 23 Jul 2026 13:40:07 +0000 Subject: [PATCH] Add bounce info type to email retrieval response Co-authored-by: Gabriel Miranda --- .../interfaces/get-email-options.interface.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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;