import { PayloadData } from "../../types/PayloadData"; import { StorageType } from "../../types/StorageType"; /** * Tham chiếu tới payload trong storage bất kỳ để snake có thể lấy hoặc post vào storage */ export interface IPayloadReference { storageType: StorageType; uri?: string; // e.g., connection string, endpoint, API URL apiToken?: string; // e.g., access token, password để truy cập storage dropbox, r2, hoặc API authorization accessKeyS3?: string; // e.g., access key để truy cập S3 secretKeyS3?: string; // e.g., secret key để truy cập S3 collectionName?: string; // MongoDB collection documentId?: string; // MongoDB document ID bucket?: string; // S3/R2 bucket key?: string; // S3/R2 object key filePath?: string; // filepath trên dropbox apiHeaders?: Record; // Custom headers cho API requests apiBody?: any; // Request body cho API requests data?: PayloadData; }