@eyepop.ai/eyepop 1.0.2 → 1.0.4
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
|
@@ -518,6 +518,7 @@ interface AutoAnnotateParams {
|
|
|
518
518
|
interface Annotation {
|
|
519
519
|
type: AnnotationType;
|
|
520
520
|
user_review: UserReview;
|
|
521
|
+
approved_threshold?: number;
|
|
521
522
|
auto_annotate?: string;
|
|
522
523
|
auto_annotate_params?: AutoAnnotateParams;
|
|
523
524
|
uncertainty_score?: number;
|
|
@@ -542,6 +543,9 @@ interface Asset {
|
|
|
542
543
|
created_at: Date;
|
|
543
544
|
updated_at: Date;
|
|
544
545
|
annotations: Annotation[];
|
|
546
|
+
partition?: string;
|
|
547
|
+
review_priority?: number;
|
|
548
|
+
model_relevance?: number;
|
|
545
549
|
}
|
|
546
550
|
declare enum ModelType {
|
|
547
551
|
epdet_b1 = "epdet_b1"
|
|
@@ -626,7 +630,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
626
630
|
deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
627
631
|
resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
|
|
628
632
|
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, prediction?: Prediction$1): Promise<void>;
|
|
629
|
-
updateAutoAnnotationStatus(asset_uuid: string, auto_annotate: string, user_review: UserReview): Promise<void>;
|
|
633
|
+
updateAutoAnnotationStatus(asset_uuid: string, auto_annotate: string, user_review: UserReview, approved_threshold?: number): Promise<void>;
|
|
630
634
|
downloadAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, transcode_mode?: TranscodeMode): Promise<Blob>;
|
|
631
635
|
previewAutoAnnotateAsset(asset_uuid: string, auto_annotate: string, auto_annotate_params?: AutoAnnotateParams): Promise<Annotation>;
|
|
632
636
|
listModels(): Promise<Model[]>;
|
package/dist/eyepop.index.d.ts
CHANGED
|
@@ -518,6 +518,7 @@ interface AutoAnnotateParams {
|
|
|
518
518
|
interface Annotation {
|
|
519
519
|
type: AnnotationType;
|
|
520
520
|
user_review: UserReview;
|
|
521
|
+
approved_threshold?: number;
|
|
521
522
|
auto_annotate?: string;
|
|
522
523
|
auto_annotate_params?: AutoAnnotateParams;
|
|
523
524
|
uncertainty_score?: number;
|
|
@@ -542,6 +543,9 @@ interface Asset {
|
|
|
542
543
|
created_at: Date;
|
|
543
544
|
updated_at: Date;
|
|
544
545
|
annotations: Annotation[];
|
|
546
|
+
partition?: string;
|
|
547
|
+
review_priority?: number;
|
|
548
|
+
model_relevance?: number;
|
|
545
549
|
}
|
|
546
550
|
declare enum ModelType {
|
|
547
551
|
epdet_b1 = "epdet_b1"
|
|
@@ -626,7 +630,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
626
630
|
deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
627
631
|
resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
|
|
628
632
|
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, prediction?: Prediction$1): Promise<void>;
|
|
629
|
-
updateAutoAnnotationStatus(asset_uuid: string, auto_annotate: string, user_review: UserReview): Promise<void>;
|
|
633
|
+
updateAutoAnnotationStatus(asset_uuid: string, auto_annotate: string, user_review: UserReview, approved_threshold?: number): Promise<void>;
|
|
630
634
|
downloadAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, transcode_mode?: TranscodeMode): Promise<Blob>;
|
|
631
635
|
previewAutoAnnotateAsset(asset_uuid: string, auto_annotate: string, auto_annotate_params?: AutoAnnotateParams): Promise<Annotation>;
|
|
632
636
|
listModels(): Promise<Model[]>;
|
package/dist/eyepop.index.js
CHANGED
|
@@ -11066,12 +11066,13 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11066
11066
|
body: JSON.stringify(prediction)
|
|
11067
11067
|
});
|
|
11068
11068
|
}
|
|
11069
|
-
async updateAutoAnnotationStatus(asset_uuid, auto_annotate, user_review) {
|
|
11069
|
+
async updateAutoAnnotationStatus(asset_uuid, auto_annotate, user_review, approved_threshold) {
|
|
11070
11070
|
const validStatuses = ["approved", "rejected", "unknown"];
|
|
11071
11071
|
if (!validStatuses.includes(user_review)) {
|
|
11072
11072
|
throw new Error("Invalid status");
|
|
11073
11073
|
}
|
|
11074
|
-
|
|
11074
|
+
const thresholdQuery = approved_threshold ? `?approved_threshold=${approved_threshold}` : "";
|
|
11075
|
+
return this.request(`/assets/${asset_uuid}/auto_annotations/${auto_annotate}/user_review/${user_review}${thresholdQuery}`, {
|
|
11075
11076
|
method: "PATCH"
|
|
11076
11077
|
});
|
|
11077
11078
|
}
|