/** * Keap Node - Version 1 * Discriminator: resource=file, operation=getAll */ interface Credentials { keapOAuth2Api: CredentialReference; } /** Retrieve many companies */ export type KeapV1FileGetAllParams = { resource: 'file'; operation: 'getAll'; /** * 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 100 */ limit?: number | Expression; /** * Filters * @default {} */ filters?: { /** Filter based on Contact ID, if user has permission to see Contact files * @default 0 */ contactId?: number | Expression; /** Filter files based on name, with '*' preceding or following to indicate LIKE queries */ name?: string | Expression | PlaceholderValue; /** Filter based on the permission of files * @default both */ permission?: 'user' | 'company' | 'both' | Expression; /** Filter based on the type of file */ type?: 'application' | 'attachment' | 'contact' | 'digitalProduct' | 'fax' | 'funnel' | 'hidden' | 'image' | 'import' | 'logoThumnail' | 'reSampledImage' | 'styleCart' | 'templateThumnail' | 'ticket' | 'webform' | Expression; /** Include public or private files in response * @default both */ viewable?: 'public' | 'private' | 'both' | Expression; }; }; export type KeapV1FileGetAllNode = { type: 'n8n-nodes-base.keap'; version: 1; credentials?: Credentials; config: NodeConfig; };