/** * Gmail Node - Version 2.2 * Discriminator: resource=thread, operation=trash */ interface Credentials { googleApi: CredentialReference; gmailOAuth2: CredentialReference; } export type GmailV22ThreadTrashParams = { resource: 'thread'; operation: 'trash'; authentication?: 'oAuth2' | 'serviceAccount' | Expression; /** * The ID of the thread you are operating on */ threadId?: string | Expression | PlaceholderValue; }; export type GmailV22ThreadTrashOutput = { id?: string; messages?: Array<{ id?: string; labelIds?: Array; threadId?: string; }>; }; export type GmailV22ThreadTrashNode = { type: 'n8n-nodes-base.gmail'; version: 2.2; credentials?: Credentials; config: NodeConfig; output?: Items; };