/** * Slack Node - Version 2.1 * Discriminator: resource=file, operation=getAll */ interface Credentials { slackApi: CredentialReference; slackOAuth2Api: CredentialReference; } /** Get many channels in a Slack team */ export type SlackV21FileGetAllParams = { resource: 'file'; 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?: { /** Channel containing the file to be listed. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ channelId?: string | Expression; /** Whether to show truncated file info for files hidden due to being too old, and the team who owns the file being over the file limit * @default false */ showFilesHidden?: boolean | Expression; /** Filter files created after this timestamp (inclusive) */ tsFrom?: string | Expression | PlaceholderValue; /** Filter files created before this timestamp (inclusive) */ tsTo?: string | Expression | PlaceholderValue; /** Filter files by type * @default ["all"] */ types?: Array<'all' | 'gdocs' | 'images' | 'pdfs' | 'snippets' | 'spaces' | 'zips'>; /** Filter files created by a single user. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ userId?: string | Expression; }; }; export type SlackV21FileGetAllOutput = { channels?: Array; comments_count?: number; created?: number; display_as_bot?: boolean; editable?: boolean; external_type?: string; filetype?: string; groups?: Array; id?: string; ims?: Array; is_external?: boolean; is_public?: boolean; media_display_type?: string; mimetype?: string; mode?: string; name?: string; permalink?: string; pretty_type?: string; public_url_shared?: boolean; size?: number; timestamp?: number; title?: string; url_private?: string; url_private_download?: string; user?: string; user_team?: string; username?: string; }; export type SlackV21FileGetAllNode = { type: 'n8n-nodes-base.slack'; version: 2.1; credentials?: Credentials; config: NodeConfig; output?: Items; };