@howone/sdk 0.3.11 → 0.3.13
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/dist/index.js +2 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2468,11 +2468,7 @@ function createUploadClient(req, projectId) {
|
|
|
2468
2468
|
signal: options?.signal
|
|
2469
2469
|
});
|
|
2470
2470
|
return {
|
|
2471
|
-
url: response.
|
|
2472
|
-
thumbnailUrl: response.thumbnailUrl,
|
|
2473
|
-
id: response.id,
|
|
2474
|
-
size: response.size,
|
|
2475
|
-
mimeType: response.mimeType || response.contentType
|
|
2471
|
+
url: response.data.publicUrl
|
|
2476
2472
|
};
|
|
2477
2473
|
},
|
|
2478
2474
|
/**
|
|
@@ -2571,9 +2567,7 @@ function createAIClient(req, projectId) {
|
|
|
2571
2567
|
signal
|
|
2572
2568
|
});
|
|
2573
2569
|
return {
|
|
2574
|
-
imageUrl: response.imageUrl
|
|
2575
|
-
taskId: response.taskId || response.id,
|
|
2576
|
-
metadata: response.metadata
|
|
2570
|
+
imageUrl: response.data.result.imageUrl
|
|
2577
2571
|
};
|
|
2578
2572
|
}
|
|
2579
2573
|
};
|