/** * Slack Node - Version 2.1 * Discriminator: resource=channel, operation=getAll */ interface Credentials { slackApi: CredentialReference; slackOAuth2Api: CredentialReference; } /** Get many channels in a Slack team */ export type SlackV21ChannelGetAllParams = { resource: 'channel'; operation: 'getAll'; authentication?: 'accessToken' | 'oAuth2' | Expression; /** * Whether to return all results or only up to a given limit * @default false */ returnAll?: boolean | Expression; /** * Max number of results to return * @displayOptions.show { returnAll: [false] } * @default 50 */ limit?: number | Expression; /** * Filters * @default {} */ filters?: { /** Whether to exclude archived channels from the list * @default false */ excludeArchived?: boolean | Expression; /** Mix and match channel types * @default ["public_channel"] */ types?: Array<'public_channel' | 'private_channel' | 'mpim' | 'im'>; }; }; export type SlackV21ChannelGetAllOutput = { context_team_id?: string; created?: number; creator?: string; id?: string; is_archived?: boolean; is_channel?: boolean; is_ext_shared?: boolean; is_general?: boolean; is_group?: boolean; is_im?: boolean; is_member?: boolean; is_mpim?: boolean; is_org_shared?: boolean; is_pending_ext_shared?: boolean; is_private?: boolean; is_shared?: boolean; name?: string; name_normalized?: string; num_members?: number; parent_conversation?: null; previous_names?: Array; properties?: { canvas?: { file_id?: string; is_empty?: boolean; quip_thread_id?: string; }; tabs?: Array<{ id?: string; label?: string; type?: string; }>; tabz?: Array<{ type?: string; }>; use_case?: string; }; purpose?: { creator?: string; last_set?: number; value?: string; }; shared_team_ids?: Array; topic?: { creator?: string; last_set?: number; value?: string; }; unlinked?: number; updated?: number; }; export type SlackV21ChannelGetAllNode = { type: 'n8n-nodes-base.slack'; version: 2.1; credentials?: Credentials; config: NodeConfig; output?: Items; };