n8n-nodes-base
Version:
Base nodes of n8n
42 lines (38 loc) • 1.18 kB
text/typescript
/**
* Slack Node - Version 2.1
* Discriminator: resource=star, operation=delete
*/
interface Credentials {
slackApi: CredentialReference;
slackOAuth2Api: CredentialReference;
}
export type SlackV21StarDeleteParams = {
resource: 'star';
operation: 'delete';
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
/**
* Options to set
* @default {}
*/
options?: {
/** Channel to add star to, or channel where the message to add star to was posted (used with timestamp). Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
channelId?: string | Expression<string>;
/** File to add star to
*/
fileId?: string | Expression<string> | PlaceholderValue;
/** File comment to add star to
*/
fileComment?: string | Expression<string> | PlaceholderValue;
/** Timestamp of the message to delete
* @default 0
*/
timestamp?: number | Expression<number>;
};
};
export type SlackV21StarDeleteNode = {
type: 'n8n-nodes-base.slack';
version: 2.1;
credentials?: Credentials;
config: NodeConfig<SlackV21StarDeleteParams>;
};