@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.js
CHANGED
|
@@ -2540,11 +2540,7 @@ function createUploadClient(req, projectId) {
|
|
|
2540
2540
|
signal: options?.signal
|
|
2541
2541
|
});
|
|
2542
2542
|
return {
|
|
2543
|
-
url: response.
|
|
2544
|
-
thumbnailUrl: response.thumbnailUrl,
|
|
2545
|
-
id: response.id,
|
|
2546
|
-
size: response.size,
|
|
2547
|
-
mimeType: response.mimeType || response.contentType
|
|
2543
|
+
url: response.data.publicUrl
|
|
2548
2544
|
};
|
|
2549
2545
|
},
|
|
2550
2546
|
/**
|
|
@@ -2643,9 +2639,7 @@ function createAIClient(req, projectId) {
|
|
|
2643
2639
|
signal
|
|
2644
2640
|
});
|
|
2645
2641
|
return {
|
|
2646
|
-
imageUrl: response.imageUrl
|
|
2647
|
-
taskId: response.taskId || response.id,
|
|
2648
|
-
metadata: response.metadata
|
|
2642
|
+
imageUrl: response.data.result.imageUrl
|
|
2649
2643
|
};
|
|
2650
2644
|
}
|
|
2651
2645
|
};
|