@eyepop.ai/eyepop 1.8.0 → 1.8.2
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
|
@@ -557,6 +557,7 @@ interface Annotation {
|
|
|
557
557
|
type: AnnotationType;
|
|
558
558
|
user_review: UserReview;
|
|
559
559
|
approved_threshold?: number;
|
|
560
|
+
source_model_uuid?: string;
|
|
560
561
|
auto_annotate?: string;
|
|
561
562
|
auto_annotate_params?: AutoAnnotateParams;
|
|
562
563
|
uncertainty_score?: number;
|
|
@@ -721,8 +722,8 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
721
722
|
deleteAnnotations(dataset_uuid: string, dataset_version: number, user_reviews?: UserReview[]): Promise<void>;
|
|
722
723
|
uploadAsset(dataset_uuid: string, dataset_version: number | undefined, blob: Blob, external_id?: string | undefined): Promise<Asset>;
|
|
723
724
|
importAsset(dataset_uuid: string, dataset_version: number | undefined, asset_import: AssetImport, external_id?: string | undefined): Promise<Asset>;
|
|
724
|
-
listAssets(dataset_uuid: string, dataset_version?: number, include_annotations?: boolean): Promise<Asset[]>;
|
|
725
|
-
getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean): Promise<Asset>;
|
|
725
|
+
listAssets(dataset_uuid: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset[]>;
|
|
726
|
+
getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset>;
|
|
726
727
|
deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
727
728
|
resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
|
|
728
729
|
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, prediction?: Prediction$1): Promise<void>;
|
package/dist/eyepop.index.d.ts
CHANGED
|
@@ -557,6 +557,7 @@ interface Annotation {
|
|
|
557
557
|
type: AnnotationType;
|
|
558
558
|
user_review: UserReview;
|
|
559
559
|
approved_threshold?: number;
|
|
560
|
+
source_model_uuid?: string;
|
|
560
561
|
auto_annotate?: string;
|
|
561
562
|
auto_annotate_params?: AutoAnnotateParams;
|
|
562
563
|
uncertainty_score?: number;
|
|
@@ -721,8 +722,8 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
721
722
|
deleteAnnotations(dataset_uuid: string, dataset_version: number, user_reviews?: UserReview[]): Promise<void>;
|
|
722
723
|
uploadAsset(dataset_uuid: string, dataset_version: number | undefined, blob: Blob, external_id?: string | undefined): Promise<Asset>;
|
|
723
724
|
importAsset(dataset_uuid: string, dataset_version: number | undefined, asset_import: AssetImport, external_id?: string | undefined): Promise<Asset>;
|
|
724
|
-
listAssets(dataset_uuid: string, dataset_version?: number, include_annotations?: boolean): Promise<Asset[]>;
|
|
725
|
-
getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean): Promise<Asset>;
|
|
725
|
+
listAssets(dataset_uuid: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset[]>;
|
|
726
|
+
getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset>;
|
|
726
727
|
deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
727
728
|
resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
|
|
728
729
|
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, prediction?: Prediction$1): Promise<void>;
|
package/dist/eyepop.index.js
CHANGED
|
@@ -11325,18 +11325,20 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11325
11325
|
}
|
|
11326
11326
|
});
|
|
11327
11327
|
}
|
|
11328
|
-
async listAssets(dataset_uuid, dataset_version, include_annotations = false) {
|
|
11328
|
+
async listAssets(dataset_uuid, dataset_version, include_annotations = false, top_k) {
|
|
11329
11329
|
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11330
11330
|
const annotationsQuery = include_annotations ? "&include_annotations=true" : "";
|
|
11331
|
-
|
|
11331
|
+
const topKQuery = top_k ? `&top_k=${top_k}` : "";
|
|
11332
|
+
return this.request(`/assets?dataset_uuid=${dataset_uuid}${versionQuery}${annotationsQuery}${topKQuery}`, {
|
|
11332
11333
|
method: "GET"
|
|
11333
11334
|
});
|
|
11334
11335
|
}
|
|
11335
|
-
async getAsset(asset_uuid, dataset_uuid, dataset_version, include_annotations = false) {
|
|
11336
|
+
async getAsset(asset_uuid, dataset_uuid, dataset_version, include_annotations = false, top_k) {
|
|
11336
11337
|
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11337
11338
|
const annotationsQuery = include_annotations ? "&include_annotations=true" : "";
|
|
11338
11339
|
const datasetQuery = dataset_uuid ? `&dataset_uuid=${dataset_uuid}` : "";
|
|
11339
|
-
|
|
11340
|
+
const topKQuery = top_k ? `&top_k=${top_k}` : "";
|
|
11341
|
+
return this.request(`/assets/${asset_uuid}?${datasetQuery}${versionQuery}${annotationsQuery}${topKQuery}`, {
|
|
11340
11342
|
method: "GET"
|
|
11341
11343
|
});
|
|
11342
11344
|
}
|