n8n-nodes-base
Version:
Base nodes of n8n
32 lines (28 loc) • 821 B
text/typescript
/**
* Gmail Node - Version 1
* Discriminator: resource=messageLabel, operation=remove
*/
interface Credentials {
googleApi: CredentialReference;
gmailOAuth2: CredentialReference;
}
export type GmailV1MessageLabelRemoveParams = {
resource: 'messageLabel';
operation: 'remove';
authentication?: 'oAuth2' | 'serviceAccount' | Expression<string>;
/**
* Message ID
*/
messageId?: string | Expression<string> | PlaceholderValue;
/**
* The ID of the label. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
* @default []
*/
labelIds?: string[];
};
export type GmailV1MessageLabelRemoveNode = {
type: 'n8n-nodes-base.gmail';
version: 1;
credentials?: Credentials;
config: NodeConfig<GmailV1MessageLabelRemoveParams>;
};