import type { ClientUploadsConfig, CollectionOptions } from '@payloadcms/plugin-cloud-storage/types'; import type { UploadCollectionSlug } from 'payload'; export type CloudinaryStorageOptions = { /** * Do uploads directly on the client, to bypass limits on Vercel. */ clientUploads?: ClientUploadsConfig; /** * Cloudinary cloud name. */ cloudName: string; /** * Collections to apply the Cloudinary storage adapter to */ collections: Partial | true>>; /** * Cloudinary client configuration. */ credentials: { apiKey: string; apiSecret: string; }; /** * Whether or not to enable the plugin * * @default true */ enabled?: boolean; /** * Folder name to upload files to. */ folder?: string; /** * Whether to use the original filename as part of the public ID * @default true */ useFilename?: boolean; };