/**
 * Slack Node - Version 1
 * Discriminator: resource=channel, operation=close
 */


interface Credentials {
  slackApi: CredentialReference;
  slackOAuth2Api: CredentialReference;
}

/** Closes a direct message or multi-person direct message */
export type SlackV1ChannelCloseParams = {
  resource: 'channel';
  operation: 'close';
  authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
/**
 * The name of the channel to close. 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>;
};

export type SlackV1ChannelCloseNode = {
  type: 'n8n-nodes-base.slack';
  version: 1;
  credentials?: Credentials;
  config: NodeConfig<SlackV1ChannelCloseParams>;
};