@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.
@@ -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}`, {