@eyepop.ai/eyepop 1.2.1 → 1.2.3
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 +10 -4
- package/dist/eyepop.index.d.ts +10 -4
- package/dist/eyepop.index.js +23 -0
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +23 -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
|
@@ -10998,6 +10998,22 @@ var DataEndpoint = class extends Endpoint {
|
|
|
10998
10998
|
}
|
|
10999
10999
|
});
|
|
11000
11000
|
}
|
|
11001
|
+
async importAsset(dataset_uuid, dataset_version, asset_import, external_id = void 0) {
|
|
11002
|
+
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11003
|
+
let post_path;
|
|
11004
|
+
if (external_id) {
|
|
11005
|
+
post_path = `/assets/imports?dataset_uuid=${dataset_uuid}${versionQuery}&external_id=${external_id}`;
|
|
11006
|
+
} else {
|
|
11007
|
+
post_path = `/assets/imports?dataset_uuid=${dataset_uuid}${versionQuery}`;
|
|
11008
|
+
}
|
|
11009
|
+
return this.request(post_path, {
|
|
11010
|
+
method: "POST",
|
|
11011
|
+
body: JSON.stringify(asset_import),
|
|
11012
|
+
headers: {
|
|
11013
|
+
"Content-Type": "application/json"
|
|
11014
|
+
}
|
|
11015
|
+
});
|
|
11016
|
+
}
|
|
11001
11017
|
async listAssets(dataset_uuid, dataset_version, include_annotations = false) {
|
|
11002
11018
|
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11003
11019
|
const annotationsQuery = include_annotations ? "&include_annotations=true" : "";
|
|
@@ -11034,6 +11050,13 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11034
11050
|
body: JSON.stringify(prediction)
|
|
11035
11051
|
});
|
|
11036
11052
|
}
|
|
11053
|
+
async deleteAssetGroundTruth(asset_uuid, dataset_uuid, dataset_version) {
|
|
11054
|
+
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11055
|
+
const datasetQuery = dataset_uuid ? `&dataset_uuid=${dataset_uuid}` : "";
|
|
11056
|
+
return this.request(`/assets/${asset_uuid}/ground_truth?${datasetQuery}${versionQuery}`, {
|
|
11057
|
+
method: "DELETE"
|
|
11058
|
+
});
|
|
11059
|
+
}
|
|
11037
11060
|
async updateAutoAnnotationStatus(asset_uuid, auto_annotate, user_review, approved_threshold) {
|
|
11038
11061
|
const validStatuses = ["approved", "rejected", "unknown"];
|
|
11039
11062
|
if (!validStatuses.includes(user_review)) {
|