@eyepop.ai/eyepop 0.21.1 → 0.22.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.
@@ -10732,7 +10732,7 @@ var AssetStatus = /* @__PURE__ */ ((AssetStatus2) => {
10732
10732
  return AssetStatus2;
10733
10733
  })(AssetStatus || {});
10734
10734
  var AnnotationType = /* @__PURE__ */ ((AnnotationType2) => {
10735
- AnnotationType2["manual"] = "manual";
10735
+ AnnotationType2["ground_truth"] = "ground_truth";
10736
10736
  AnnotationType2["prediction"] = "prediction";
10737
10737
  AnnotationType2["auto"] = "auto";
10738
10738
  return AnnotationType2;
@@ -11006,11 +11006,12 @@ var DataEndpoint = class extends Endpoint {
11006
11006
  }
11007
11007
  // Asset methods
11008
11008
  async uploadAsset(dataset_uuid, dataset_version, blob, external_id = void 0) {
11009
+ const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
11009
11010
  let post_path;
11010
11011
  if (external_id) {
11011
- post_path = `/assets?dataset_uuid=${dataset_uuid}&dataset_version=${dataset_version}&external_id=${external_id}`;
11012
+ post_path = `/assets?dataset_uuid=${dataset_uuid}${versionQuery}&external_id=${external_id}`;
11012
11013
  } else {
11013
- post_path = `/assets?dataset_uuid=${dataset_uuid}&dataset_version=${dataset_version}`;
11014
+ post_path = `/assets?dataset_uuid=${dataset_uuid}${versionQuery}`;
11014
11015
  }
11015
11016
  return this.request(post_path, {
11016
11017
  method: "POST",
@@ -11048,10 +11049,10 @@ var DataEndpoint = class extends Endpoint {
11048
11049
  method: "POST"
11049
11050
  });
11050
11051
  }
11051
- async updateAssetManualAnnotation(asset_uuid, dataset_uuid, dataset_version, prediction) {
11052
+ async updateAssetGroundTruth(asset_uuid, dataset_uuid, dataset_version, prediction) {
11052
11053
  const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
11053
11054
  const datasetQuery = dataset_uuid ? `&dataset_uuid=${dataset_uuid}` : "";
11054
- return this.request(`/assets/${asset_uuid}/manual_annotate?${datasetQuery}${versionQuery}`, {
11055
+ return this.request(`/assets/${asset_uuid}/ground_truth?${datasetQuery}${versionQuery}`, {
11055
11056
  method: "PATCH",
11056
11057
  body: JSON.stringify(prediction)
11057
11058
  });