/** * Gmail Node - Version 2.2 * Discriminator: resource=message, operation=get */ interface Credentials { googleApi: CredentialReference; gmailOAuth2: CredentialReference; } export type GmailV22MessageGetParams = { resource: 'message'; operation: 'get'; authentication?: 'oAuth2' | 'serviceAccount' | Expression; /** * Message ID */ messageId?: string | Expression | PlaceholderValue; /** * Whether to return a simplified version of the response instead of the raw data * @default true */ simple?: boolean | Expression; /** * Options * @displayOptions.hide { simple: [true] } * @default {} */ options?: { /** Prefix for name of the binary property to which to write the attachment. An index starting with 0 will be added. So if name is 'attachment_' the first attachment is saved to 'attachment_0'. * @default attachment_ */ dataPropertyAttachmentsPrefixName?: string | Expression | PlaceholderValue; /** Whether the email's attachments will be downloaded and included in the output * @default false */ downloadAttachments?: boolean | Expression; }; }; export type GmailV22MessageGetOutput = { date?: string; from?: { html?: string; text?: string; value?: Array<{ address?: string; name?: string; }>; }; headers?: { 'arc-authentication-results'?: string; 'arc-message-signature'?: string; 'arc-seal'?: string; 'authentication-results'?: string; 'content-type'?: string; date?: string; 'delivered-to'?: string; 'dkim-signature'?: string; from?: string; 'message-id'?: string; 'mime-version'?: string; received?: string; 'received-spf'?: string; 'return-path'?: string; subject?: string; to?: string; 'x-google-smtp-source'?: string; 'x-received'?: string; }; id?: string; labelIds?: Array; messageId?: string; sizeEstimate?: number; subject?: string; text?: string; textAsHtml?: string; threadId?: string; to?: { html?: string; text?: string; value?: Array<{ address?: string; name?: string; }>; }; }; export type GmailV22MessageGetNode = { type: 'n8n-nodes-base.gmail'; version: 2.2; credentials?: Credentials; config: NodeConfig; output?: Items; };