@unboundcx/sdk 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unboundcx/sdk",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Official JavaScript SDK for the Unbound API - A comprehensive toolkit for integrating with Unbound's communication, AI, and data management services",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -427,14 +427,12 @@ export class StorageService {
427
427
  );
428
428
  }
429
429
 
430
- // Use the same robust upload logic as the main upload method
431
- return this.upload({
432
- classification,
433
- fileName: fileName || 'profile-image.jpg',
434
- file,
435
- isPublic: false,
436
- country: 'US',
437
- });
430
+ // Build form fields for profile image upload - minimal fields since controller handles the logic
431
+ const formFields = [];
432
+ formFields.push(['classification', classification]);
433
+
434
+ // Use the dedicated profile image endpoint
435
+ return this._performUpload(file, fileName || 'profile-image.jpg', formFields, '/storage/upload-profile-image');
438
436
  }
439
437
 
440
438
  async getFileInfo(storageId) {