n8n-nodes-base
Version:
Base nodes of n8n
55 lines (51 loc) • 1.55 kB
text/typescript
/**
* Slack Node - Version 1
* Discriminator: resource=channel, operation=history
*/
interface Credentials {
slackApi: CredentialReference;
slackOAuth2Api: CredentialReference;
}
/** Get a conversation's history of messages and events */
export type SlackV1ChannelHistoryParams = {
resource: 'channel';
operation: 'history';
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>;
/**
* Whether to return all results or only up to a given limit
* @default false
*/
returnAll?: boolean | Expression<boolean>;
/**
* Max number of results to return
* @displayOptions.show { returnAll: [false] }
* @default 50
*/
limit?: number | Expression<number>;
/**
* Filters
* @default {}
*/
filters?: {
/** Whether to include messages with latest or oldest timestamp in results only when either timestamp is specified
* @default false
*/
inclusive?: boolean | Expression<boolean>;
/** End of time range of messages to include in results
*/
latest?: string | Expression<string>;
/** Start of time range of messages to include in results
*/
oldest?: string | Expression<string>;
};
};
export type SlackV1ChannelHistoryNode = {
type: 'n8n-nodes-base.slack';
version: 1;
credentials?: Credentials;
config: NodeConfig<SlackV1ChannelHistoryParams>;
};