n8n-nodes-base
Version:
Base nodes of n8n
38 lines (34 loc) • 835 B
text/typescript
/**
* Slack Node - Version 1
* Discriminator: resource=channel, operation=get
*/
interface Credentials {
slackApi: CredentialReference;
slackOAuth2Api: CredentialReference;
}
/** Get information about a channel */
export type SlackV1ChannelGetParams = {
resource: 'channel';
operation: 'get';
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
/**
* Channel ID to learn more about
*/
channelId?: string | Expression<string> | PlaceholderValue;
/**
* Additional Fields
* @default {}
*/
additionalFields?: {
/** Include Num of Members
* @default false
*/
includeNumMembers?: boolean | Expression<boolean>;
};
};
export type SlackV1ChannelGetNode = {
type: 'n8n-nodes-base.slack';
version: 1;
credentials?: Credentials;
config: NodeConfig<SlackV1ChannelGetParams>;
};