n8n-nodes-base
Version:
Base nodes of n8n
39 lines (34 loc) • 961 B
text/typescript
/**
* Gmail Node - Version 2.1
* Discriminator: resource=message, operation=addLabels
*/
interface Credentials {
googleApi: CredentialReference;
gmailOAuth2: CredentialReference;
}
export type GmailV21MessageAddLabelsParams = {
resource: 'message';
operation: 'addLabels';
authentication?: 'oAuth2' | 'serviceAccount' | Expression<string>;
/**
* Message ID
*/
messageId?: string | Expression<string> | PlaceholderValue;
/**
* Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
* @default []
*/
labelIds?: string[];
};
export type GmailV21MessageAddLabelsOutput = {
id?: string;
labelIds?: Array<string>;
threadId?: string;
};
export type GmailV21MessageAddLabelsNode = {
type: 'n8n-nodes-base.gmail';
version: 2.1;
credentials?: Credentials;
config: NodeConfig<GmailV21MessageAddLabelsParams>;
output?: Items<GmailV21MessageAddLabelsOutput>;
};