UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

33 lines (29 loc) 918 B
/** * 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 &lt;a href="https://docs.n8n.io/code/expressions/"&gt;expression&lt;/a&gt; */ userId?: string | Expression<string>; }; export type SlackV21ChannelKickNode = { type: 'n8n-nodes-base.slack'; version: 2.1; credentials?: Credentials; config: NodeConfig<SlackV21ChannelKickParams>; };