@forge/bridge

5.15.2-next.0-experimental-5b726e65.16.0-next.1
out/object-store/download.js
~out/object-store/download.jsModified
+8
Index: package/out/object-store/download.js
===================================================================
--- package/out/object-store/download.js
+++ package/out/object-store/download.js
@@ -5,8 +5,16 @@
 const errors_1 = require("../errors");
 const utils_1 = require("./utils");
 const bridge_1 = require("../bridge");
 const callBridge = (0, bridge_1.getCallBridge)();
+/**
+ * Download multiple objects from pre-signed URLs
+ *
+ * @param functionKey - Configuration object containing the backend function key to filter and generate download URLs
+ * @param keys - Array of object keys to download
+ * @returns Promise resolving to DownloadResult[]
+ * @throws {BridgeAPIError} When filtering fails or download encounters an error
+ */
 const download = async ({ functionKey, keys }) => {
     await (0, utils_1.checkRestrictedEnvironment)();
     void callBridge('trackObjectStoreAction', { action: 'download' });
     if (!functionKey || functionKey.length === 0) {