@forge/bridge
5.15.2-next.0-experimental-5b726e65.16.0-next.1
out/object-store/upload.d.ts~
out/object-store/upload.d.tsModified+17
Index: package/out/object-store/upload.d.ts
===================================================================
--- package/out/object-store/upload.d.ts
+++ package/out/object-store/upload.d.ts
@@ -1,9 +1,26 @@
import type { UploadResult, UploadObject, UploadPromiseItem } from './types';
+/**
+ * Start individual upload operations and return array of promises
+ * This allows tracking per-file upload progress
+ *
+ * @param functionKey - Configuration object containing the backend function key to filter and generate presigned URLs
+ * @param objects - Array of Blob objects or Base64Object (with data and optional mimeType) to upload
+ * @returns Array of individual upload promises with their associated index
+ * @throws {BridgeAPIError} When filtering fails or upload encounters an error
+ */
export declare const createUploadPromises: ({ functionKey, objects }: {
functionKey: string;
objects: UploadObject[];
}) => Promise<UploadPromiseItem[]>;
+/**
+ * Upload multiple objects to pre-signed URLs
+ *
+ * @param functionKey - Configuration object containing the backend function key to filter and generate presigned URLs
+ * @param objects - Array of Blob objects or Base64Object (with data and optional mimeType) to upload
+ * @returns Promise resolving to UploadResult[]
+ * @throws {BridgeAPIError} When filtering fails or upload encounters an error
+ */
export declare const upload: ({ functionKey, objects }: {
functionKey: string;
objects: UploadObject[];
}) => Promise<UploadResult[]>;