@eyepop.ai/eyepop 3.10.1 → 3.12.0
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/eyepop.index.d.mts +21 -1
- package/dist/eyepop.index.d.ts +21 -1
- package/dist/eyepop.index.js +16 -0
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +16 -0
- package/dist/eyepop.index.mjs.map +1 -1
- package/dist/eyepop.min.js +1 -1
- package/package.json +1 -1
package/dist/eyepop.index.mjs
CHANGED
|
@@ -11507,6 +11507,22 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11507
11507
|
headers: auto_annotate_params ? { "Content-Type": "application/json" } : {}
|
|
11508
11508
|
});
|
|
11509
11509
|
}
|
|
11510
|
+
async addAssetRoi(asset_uuid, roi, dataset_uuid, dataset_version, predictions) {
|
|
11511
|
+
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11512
|
+
const datasetQuery = dataset_uuid ? `&dataset_uuid=${dataset_uuid}` : "";
|
|
11513
|
+
return this.request(`/assets/${asset_uuid}/rois?${datasetQuery}${versionQuery}`, {
|
|
11514
|
+
method: "POST",
|
|
11515
|
+
body: JSON.stringify(roi),
|
|
11516
|
+
headers: { "Content-Type": "application/json" }
|
|
11517
|
+
});
|
|
11518
|
+
}
|
|
11519
|
+
async deleteAssetRoi(asset_uuid, name, dataset_uuid, dataset_version) {
|
|
11520
|
+
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11521
|
+
const datasetQuery = dataset_uuid ? `&dataset_uuid=${dataset_uuid}` : "";
|
|
11522
|
+
return this.request(`/assets/${asset_uuid}/rois/${encodeURIComponent(name)}?${datasetQuery}${versionQuery}`, {
|
|
11523
|
+
method: "DELETE"
|
|
11524
|
+
});
|
|
11525
|
+
}
|
|
11510
11526
|
// Model methods
|
|
11511
11527
|
async listModels() {
|
|
11512
11528
|
return this.request(`/models?account_uuid=${this._accountId}`, {
|