@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.
package/dist/eyepop.index.d.mts
CHANGED
|
@@ -413,7 +413,7 @@ declare enum AssetStatus {
|
|
|
413
413
|
accepted = "accepted"
|
|
414
414
|
}
|
|
415
415
|
declare enum AnnotationType {
|
|
416
|
-
|
|
416
|
+
ground_truth = "ground_truth",
|
|
417
417
|
prediction = "prediction",
|
|
418
418
|
auto = "auto"
|
|
419
419
|
}
|
|
@@ -531,7 +531,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
531
531
|
getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean): Promise<Asset>;
|
|
532
532
|
deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
533
533
|
resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
|
|
534
|
-
|
|
534
|
+
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, prediction?: Prediction$1): Promise<void>;
|
|
535
535
|
updateAutoAnnotationStatus(asset_uuid: string, auto_annotate: string, user_review: UserReview): Promise<void>;
|
|
536
536
|
downloadAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, transcode_mode?: TranscodeMode): Promise<Blob>;
|
|
537
537
|
listModels(): Promise<Model[]>;
|
package/dist/eyepop.index.d.ts
CHANGED
|
@@ -413,7 +413,7 @@ declare enum AssetStatus {
|
|
|
413
413
|
accepted = "accepted"
|
|
414
414
|
}
|
|
415
415
|
declare enum AnnotationType {
|
|
416
|
-
|
|
416
|
+
ground_truth = "ground_truth",
|
|
417
417
|
prediction = "prediction",
|
|
418
418
|
auto = "auto"
|
|
419
419
|
}
|
|
@@ -531,7 +531,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
531
531
|
getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean): Promise<Asset>;
|
|
532
532
|
deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
533
533
|
resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
|
|
534
|
-
|
|
534
|
+
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, prediction?: Prediction$1): Promise<void>;
|
|
535
535
|
updateAutoAnnotationStatus(asset_uuid: string, auto_annotate: string, user_review: UserReview): Promise<void>;
|
|
536
536
|
downloadAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, transcode_mode?: TranscodeMode): Promise<Blob>;
|
|
537
537
|
listModels(): Promise<Model[]>;
|
package/dist/eyepop.index.js
CHANGED
|
@@ -10774,7 +10774,7 @@ var AssetStatus = /* @__PURE__ */ ((AssetStatus2) => {
|
|
|
10774
10774
|
return AssetStatus2;
|
|
10775
10775
|
})(AssetStatus || {});
|
|
10776
10776
|
var AnnotationType = /* @__PURE__ */ ((AnnotationType2) => {
|
|
10777
|
-
AnnotationType2["
|
|
10777
|
+
AnnotationType2["ground_truth"] = "ground_truth";
|
|
10778
10778
|
AnnotationType2["prediction"] = "prediction";
|
|
10779
10779
|
AnnotationType2["auto"] = "auto";
|
|
10780
10780
|
return AnnotationType2;
|
|
@@ -11048,11 +11048,12 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11048
11048
|
}
|
|
11049
11049
|
// Asset methods
|
|
11050
11050
|
async uploadAsset(dataset_uuid, dataset_version, blob, external_id = void 0) {
|
|
11051
|
+
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11051
11052
|
let post_path;
|
|
11052
11053
|
if (external_id) {
|
|
11053
|
-
post_path = `/assets?dataset_uuid=${dataset_uuid}
|
|
11054
|
+
post_path = `/assets?dataset_uuid=${dataset_uuid}${versionQuery}&external_id=${external_id}`;
|
|
11054
11055
|
} else {
|
|
11055
|
-
post_path = `/assets?dataset_uuid=${dataset_uuid}
|
|
11056
|
+
post_path = `/assets?dataset_uuid=${dataset_uuid}${versionQuery}`;
|
|
11056
11057
|
}
|
|
11057
11058
|
return this.request(post_path, {
|
|
11058
11059
|
method: "POST",
|
|
@@ -11090,10 +11091,10 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11090
11091
|
method: "POST"
|
|
11091
11092
|
});
|
|
11092
11093
|
}
|
|
11093
|
-
async
|
|
11094
|
+
async updateAssetGroundTruth(asset_uuid, dataset_uuid, dataset_version, prediction) {
|
|
11094
11095
|
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11095
11096
|
const datasetQuery = dataset_uuid ? `&dataset_uuid=${dataset_uuid}` : "";
|
|
11096
|
-
return this.request(`/assets/${asset_uuid}/
|
|
11097
|
+
return this.request(`/assets/${asset_uuid}/ground_truth?${datasetQuery}${versionQuery}`, {
|
|
11097
11098
|
method: "PATCH",
|
|
11098
11099
|
body: JSON.stringify(prediction)
|
|
11099
11100
|
});
|