Spaces:
Sleeping
Sleeping
File size: 1,029 Bytes
1305386 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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<string, string>; // Custom headers cho API requests
apiBody?: any; // Request body cho API requests
data?: PayloadData;
} |