n8n-nodes-base
Version:
Base nodes of n8n
32 lines (28 loc) • 892 B
text/typescript
/**
* Slack Node - Version 1
* Discriminator: resource=channel, operation=setPurpose
*/
interface Credentials {
slackApi: CredentialReference;
slackOAuth2Api: CredentialReference;
}
/** Sets the purpose for a conversation */
export type SlackV1ChannelSetPurposeParams = {
resource: 'channel';
operation: 'setPurpose';
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
/**
* Conversation to set the purpose of. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
channelId?: string | Expression<string>;
/**
* A new, specialer purpose
*/
purpose?: string | Expression<string> | PlaceholderValue;
};
export type SlackV1ChannelSetPurposeNode = {
type: 'n8n-nodes-base.slack';
version: 1;
credentials?: Credentials;
config: NodeConfig<SlackV1ChannelSetPurposeParams>;
};