Spaces:
Sleeping
Sleeping
Download src/interfaces/core/IPayloadReference.ts from lamsaoganh/teamta: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/spaces/lamsaoganh/teamta/resolve/main/src/interfaces/core/IPayloadReference.ts
- Command line
-
hf download hf://spaces/lamsaoganh/teamta/src/interfaces/core/IPayloadReference.ts
-
curl -L -o IPayloadReference.ts https://huggingface.co/spaces/lamsaoganh/teamta/resolve/main/src/interfaces/core/IPayloadReference.ts
1.03 kB
| 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; | |
| } |