UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

33 lines (29 loc) 985 B
/** * Slack Node - Version 1 * Discriminator: resource=channel, operation=invite */ interface Credentials { slackApi: CredentialReference; slackOAuth2Api: CredentialReference; } /** Invite a user to a channel */ export type SlackV1ChannelInviteParams = { resource: 'channel'; operation: 'invite'; authentication?: 'accessToken' | 'oAuth2' | Expression<string>; /** * The ID of the channel to invite user to. Choose from the list, or specify an ID using an &lt;a href="https://docs.n8n.io/code/expressions/"&gt;expression&lt;/a&gt;. */ channelId?: string | Expression<string>; /** * The ID of the user to invite into channel. Choose from the list, or specify IDs using an &lt;a href="https://docs.n8n.io/code/expressions/"&gt;expression&lt;/a&gt;. * @default [] */ userIds?: string[]; }; export type SlackV1ChannelInviteNode = { type: 'n8n-nodes-base.slack'; version: 1; credentials?: Credentials; config: NodeConfig<SlackV1ChannelInviteParams>; };