n8n-nodes-base
Version:
Base nodes of n8n
37 lines (32 loc) • 832 B
text/typescript
/**
* Gmail Node - Version 2.1
* Discriminator: resource=thread, operation=trash
*/
interface Credentials {
googleApi: CredentialReference;
gmailOAuth2: CredentialReference;
}
export type GmailV21ThreadTrashParams = {
resource: 'thread';
operation: 'trash';
authentication?: 'oAuth2' | 'serviceAccount' | Expression<string>;
/**
* The ID of the thread you are operating on
*/
threadId?: string | Expression<string> | PlaceholderValue;
};
export type GmailV21ThreadTrashOutput = {
id?: string;
messages?: Array<{
id?: string;
labelIds?: Array<string>;
threadId?: string;
}>;
};
export type GmailV21ThreadTrashNode = {
type: 'n8n-nodes-base.gmail';
version: 2.1;
credentials?: Credentials;
config: NodeConfig<GmailV21ThreadTrashParams>;
output?: Items<GmailV21ThreadTrashOutput>;
};