n8n-nodes-base
Version:
Base nodes of n8n
33 lines (29 loc) • 918 B
text/typescript
/**
* Slack Node - Version 2.1
* Discriminator: resource=channel, operation=kick
*/
interface Credentials {
slackApi: CredentialReference;
slackOAuth2Api: CredentialReference;
}
/** Removes a user from a channel */
export type SlackV21ChannelKickParams = {
resource: 'channel';
operation: 'kick';
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
/**
* The Slack channel to kick the user from
* @default {"mode":"list","value":""}
*/
channelId?: { __rl: true; mode: 'list' | 'id' | 'url'; value: string; cachedResultName?: string };
/**
* Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
*/
userId?: string | Expression<string>;
};
export type SlackV21ChannelKickNode = {
type: 'n8n-nodes-base.slack';
version: 2.1;
credentials?: Credentials;
config: NodeConfig<SlackV21ChannelKickParams>;
};