n8n-nodes-base
Version:
Base nodes of n8n
32 lines (28 loc) • 933 B
text/typescript
/**
* Slack Node - Version 1
* Discriminator: resource=channel, operation=kick
*/
interface Credentials {
slackApi: CredentialReference;
slackOAuth2Api: CredentialReference;
}
/** Removes a user from a channel */
export type SlackV1ChannelKickParams = {
resource: 'channel';
operation: 'kick';
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
/**
* The name of the channel to create. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
channelId?: string | Expression<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 SlackV1ChannelKickNode = {
type: 'n8n-nodes-base.slack';
version: 1;
credentials?: Credentials;
config: NodeConfig<SlackV1ChannelKickParams>;
};