@eyepop.ai/eyepop 1.5.2 → 1.5.6
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/README.md +2 -2
- package/dist/eyepop.index.d.mts +29 -8
- package/dist/eyepop.index.d.ts +29 -8
- package/dist/eyepop.index.js +43 -9
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +41 -9
- package/dist/eyepop.index.mjs.map +1 -1
- package/dist/eyepop.min.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -212,7 +212,7 @@ const example_video_url = 'https://demo-eyepop-videos.s3.amazonaws.com/test1_vlo
|
|
|
212
212
|
(async() => {
|
|
213
213
|
const endpoint = await EyePop.workerEndpoint().connect()
|
|
214
214
|
try {
|
|
215
|
-
let results = await endpoint.process({url:
|
|
215
|
+
let results = await endpoint.process({url: example_video_url})
|
|
216
216
|
for await (let result of results) {
|
|
217
217
|
console.log(result)
|
|
218
218
|
}
|
|
@@ -232,7 +232,7 @@ const example_video_url = 'https://demo-eyepop-videos.s3.amazonaws.com/test1_vlo
|
|
|
232
232
|
(async() => {
|
|
233
233
|
const endpoint = EyePop.workerEndpoint().connect()
|
|
234
234
|
try {
|
|
235
|
-
let results = await endpoint.process({url:
|
|
235
|
+
let results = await endpoint.process({url: example_video_url})
|
|
236
236
|
for await (let result of results) {
|
|
237
237
|
console.log(result)
|
|
238
238
|
if (result['seconds'] >= 10.0) {
|
package/dist/eyepop.index.d.mts
CHANGED
|
@@ -454,6 +454,7 @@ interface DataSession extends Session {
|
|
|
454
454
|
}
|
|
455
455
|
interface DatasetVersionAssetStats {
|
|
456
456
|
total?: number;
|
|
457
|
+
accepted?: number;
|
|
457
458
|
annotated?: number;
|
|
458
459
|
auto_annotated?: number;
|
|
459
460
|
auto_annotated_approved?: number;
|
|
@@ -464,8 +465,8 @@ interface DatasetVersion {
|
|
|
464
465
|
modifiable: boolean;
|
|
465
466
|
created_at: Date;
|
|
466
467
|
updated_at: Date;
|
|
467
|
-
|
|
468
|
-
|
|
468
|
+
assets_modified_at: Date;
|
|
469
|
+
last_analysed_at?: Date;
|
|
469
470
|
hero_asset_uuid?: string;
|
|
470
471
|
asset_stats?: DatasetVersionAssetStats;
|
|
471
472
|
}
|
|
@@ -572,6 +573,24 @@ declare enum ModelStatus {
|
|
|
572
573
|
interface ModelMetrics {
|
|
573
574
|
cpr?: number[][3];
|
|
574
575
|
}
|
|
576
|
+
declare enum ModelExportStatus {
|
|
577
|
+
in_progress = "in_progress",
|
|
578
|
+
finished = "finished",
|
|
579
|
+
error = "error"
|
|
580
|
+
}
|
|
581
|
+
declare enum ExportedBy {
|
|
582
|
+
eyepop = "eyepop",
|
|
583
|
+
qc_ai_hub = "qc_ai_hub"
|
|
584
|
+
}
|
|
585
|
+
interface QcAiHubExportParams {
|
|
586
|
+
device_name: string;
|
|
587
|
+
}
|
|
588
|
+
interface ModelExport {
|
|
589
|
+
format: ModelFormat;
|
|
590
|
+
exported_by: ExportedBy;
|
|
591
|
+
export_params?: QcAiHubExportParams[];
|
|
592
|
+
status: ModelExportStatus;
|
|
593
|
+
}
|
|
575
594
|
interface Model {
|
|
576
595
|
uuid: string;
|
|
577
596
|
name: string;
|
|
@@ -586,6 +605,7 @@ interface Model {
|
|
|
586
605
|
updated_at: Date;
|
|
587
606
|
dataset_uuid: string;
|
|
588
607
|
dataset_version: number;
|
|
608
|
+
exports?: ModelExport[];
|
|
589
609
|
}
|
|
590
610
|
interface ModelCreate {
|
|
591
611
|
name: string;
|
|
@@ -631,7 +651,8 @@ declare enum ChangeType {
|
|
|
631
651
|
model_removed = "model_removed",
|
|
632
652
|
model_modified = "model_modified",
|
|
633
653
|
model_status_modified = "model_status_modified",
|
|
634
|
-
model_progress = "model_progress"
|
|
654
|
+
model_progress = "model_progress",
|
|
655
|
+
events_lost = "events_lost"
|
|
635
656
|
}
|
|
636
657
|
interface ChangeEvent {
|
|
637
658
|
change_type: ChangeType;
|
|
@@ -657,11 +678,9 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
657
678
|
private reconnect_ws;
|
|
658
679
|
private options;
|
|
659
680
|
private request;
|
|
660
|
-
listDatasets(
|
|
661
|
-
/** @deprecated */ include_hero_asset?: boolean, include_stats?: boolean): Promise<Dataset[]>;
|
|
681
|
+
listDatasets(include_stats?: boolean): Promise<Dataset[]>;
|
|
662
682
|
createDataset(data: DatasetCreate): Promise<Dataset>;
|
|
663
|
-
getDataset(dataset_uuid: string,
|
|
664
|
-
/** @deprecated */ include_hero_asset?: boolean, include_stats?: boolean): Promise<Dataset>;
|
|
683
|
+
getDataset(dataset_uuid: string, include_stats?: boolean): Promise<Dataset>;
|
|
665
684
|
updateDataset(dataset_uuid: string, data: DatasetUpdate, start_auto_annotate?: boolean): Promise<Dataset>;
|
|
666
685
|
updateDatasetHeroAsset(dataset_uuid: string, update: DatasetHeroAssetUpdate): Promise<Dataset>;
|
|
667
686
|
deleteDataset(dataset_uuid: string): Promise<void>;
|
|
@@ -669,6 +688,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
669
688
|
analyzeDatasetVersion(dataset_uuid: string, dataset_version?: number): Promise<void>;
|
|
670
689
|
autoAnnotateDatasetVersion(dataset_uuid: string, dataset_version?: number, max_assets?: number): Promise<void>;
|
|
671
690
|
deleteDatasetVersion(dataset_uuid: string, dataset_version: number): Promise<Dataset>;
|
|
691
|
+
deleteAnnotations(dataset_uuid: string, dataset_version: number, user_reviews?: UserReview[]): Promise<void>;
|
|
672
692
|
uploadAsset(dataset_uuid: string, dataset_version: number | undefined, blob: Blob, external_id?: string | undefined): Promise<Asset>;
|
|
673
693
|
importAsset(dataset_uuid: string, dataset_version: number | undefined, asset_import: AssetImport, external_id?: string | undefined): Promise<Asset>;
|
|
674
694
|
listAssets(dataset_uuid: string, dataset_version?: number, include_annotations?: boolean): Promise<Asset[]>;
|
|
@@ -688,6 +708,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
688
708
|
deleteModel(model_uuid: string): Promise<void>;
|
|
689
709
|
trainModel(model_uuid: string): Promise<Model>;
|
|
690
710
|
publishModel(model_uuid: string): Promise<Model>;
|
|
711
|
+
exportModel(model_uuid: string, export_by: ExportedBy, params: QcAiHubExportParams[]): Promise<void>;
|
|
691
712
|
addAccountEventHandler(eventHandler: OnChangeEvent): void;
|
|
692
713
|
removeAccountEventHandler(eventHandler: OnChangeEvent): void;
|
|
693
714
|
addDatasetEventHandler(dataset_uuid: string, eventHandler: OnChangeEvent): void;
|
|
@@ -824,4 +845,4 @@ declare namespace EyePop {
|
|
|
824
845
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
825
846
|
}
|
|
826
847
|
|
|
827
|
-
export { AbstractJob, type Annotation, AnnotationType, type Asset, type AssetImport, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type Contour, type ContourFinderComponent, ContourType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, EyePop, type FileSource, type ForwardComponent, ForwardOperatorType, type InferenceComponent, InferenceType, type IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type Mask, type Model, type ModelCreate, ModelFormat, type ModelInstanceDef, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type Point2d, type Point3d, type Pop, type PopComponent, PopComponentType, type PopCrop, type PopForward, type PopForwardOperator, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedMesh, type PredictedObject, type PredictedText, type Prediction, type ResultStream, type Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, type StreamEvent, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
|
848
|
+
export { AbstractJob, type Annotation, AnnotationType, type Asset, type AssetImport, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type Contour, type ContourFinderComponent, ContourType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, type FileSource, type ForwardComponent, ForwardOperatorType, type InferenceComponent, InferenceType, type IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type Mask, type Model, type ModelCreate, type ModelExport, ModelExportStatus, ModelFormat, type ModelInstanceDef, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type Point2d, type Point3d, type Pop, type PopComponent, PopComponentType, type PopCrop, type PopForward, type PopForwardOperator, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedMesh, type PredictedObject, type PredictedText, type Prediction, type QcAiHubExportParams, type ResultStream, type Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, type StreamEvent, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
package/dist/eyepop.index.d.ts
CHANGED
|
@@ -454,6 +454,7 @@ interface DataSession extends Session {
|
|
|
454
454
|
}
|
|
455
455
|
interface DatasetVersionAssetStats {
|
|
456
456
|
total?: number;
|
|
457
|
+
accepted?: number;
|
|
457
458
|
annotated?: number;
|
|
458
459
|
auto_annotated?: number;
|
|
459
460
|
auto_annotated_approved?: number;
|
|
@@ -464,8 +465,8 @@ interface DatasetVersion {
|
|
|
464
465
|
modifiable: boolean;
|
|
465
466
|
created_at: Date;
|
|
466
467
|
updated_at: Date;
|
|
467
|
-
|
|
468
|
-
|
|
468
|
+
assets_modified_at: Date;
|
|
469
|
+
last_analysed_at?: Date;
|
|
469
470
|
hero_asset_uuid?: string;
|
|
470
471
|
asset_stats?: DatasetVersionAssetStats;
|
|
471
472
|
}
|
|
@@ -572,6 +573,24 @@ declare enum ModelStatus {
|
|
|
572
573
|
interface ModelMetrics {
|
|
573
574
|
cpr?: number[][3];
|
|
574
575
|
}
|
|
576
|
+
declare enum ModelExportStatus {
|
|
577
|
+
in_progress = "in_progress",
|
|
578
|
+
finished = "finished",
|
|
579
|
+
error = "error"
|
|
580
|
+
}
|
|
581
|
+
declare enum ExportedBy {
|
|
582
|
+
eyepop = "eyepop",
|
|
583
|
+
qc_ai_hub = "qc_ai_hub"
|
|
584
|
+
}
|
|
585
|
+
interface QcAiHubExportParams {
|
|
586
|
+
device_name: string;
|
|
587
|
+
}
|
|
588
|
+
interface ModelExport {
|
|
589
|
+
format: ModelFormat;
|
|
590
|
+
exported_by: ExportedBy;
|
|
591
|
+
export_params?: QcAiHubExportParams[];
|
|
592
|
+
status: ModelExportStatus;
|
|
593
|
+
}
|
|
575
594
|
interface Model {
|
|
576
595
|
uuid: string;
|
|
577
596
|
name: string;
|
|
@@ -586,6 +605,7 @@ interface Model {
|
|
|
586
605
|
updated_at: Date;
|
|
587
606
|
dataset_uuid: string;
|
|
588
607
|
dataset_version: number;
|
|
608
|
+
exports?: ModelExport[];
|
|
589
609
|
}
|
|
590
610
|
interface ModelCreate {
|
|
591
611
|
name: string;
|
|
@@ -631,7 +651,8 @@ declare enum ChangeType {
|
|
|
631
651
|
model_removed = "model_removed",
|
|
632
652
|
model_modified = "model_modified",
|
|
633
653
|
model_status_modified = "model_status_modified",
|
|
634
|
-
model_progress = "model_progress"
|
|
654
|
+
model_progress = "model_progress",
|
|
655
|
+
events_lost = "events_lost"
|
|
635
656
|
}
|
|
636
657
|
interface ChangeEvent {
|
|
637
658
|
change_type: ChangeType;
|
|
@@ -657,11 +678,9 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
657
678
|
private reconnect_ws;
|
|
658
679
|
private options;
|
|
659
680
|
private request;
|
|
660
|
-
listDatasets(
|
|
661
|
-
/** @deprecated */ include_hero_asset?: boolean, include_stats?: boolean): Promise<Dataset[]>;
|
|
681
|
+
listDatasets(include_stats?: boolean): Promise<Dataset[]>;
|
|
662
682
|
createDataset(data: DatasetCreate): Promise<Dataset>;
|
|
663
|
-
getDataset(dataset_uuid: string,
|
|
664
|
-
/** @deprecated */ include_hero_asset?: boolean, include_stats?: boolean): Promise<Dataset>;
|
|
683
|
+
getDataset(dataset_uuid: string, include_stats?: boolean): Promise<Dataset>;
|
|
665
684
|
updateDataset(dataset_uuid: string, data: DatasetUpdate, start_auto_annotate?: boolean): Promise<Dataset>;
|
|
666
685
|
updateDatasetHeroAsset(dataset_uuid: string, update: DatasetHeroAssetUpdate): Promise<Dataset>;
|
|
667
686
|
deleteDataset(dataset_uuid: string): Promise<void>;
|
|
@@ -669,6 +688,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
669
688
|
analyzeDatasetVersion(dataset_uuid: string, dataset_version?: number): Promise<void>;
|
|
670
689
|
autoAnnotateDatasetVersion(dataset_uuid: string, dataset_version?: number, max_assets?: number): Promise<void>;
|
|
671
690
|
deleteDatasetVersion(dataset_uuid: string, dataset_version: number): Promise<Dataset>;
|
|
691
|
+
deleteAnnotations(dataset_uuid: string, dataset_version: number, user_reviews?: UserReview[]): Promise<void>;
|
|
672
692
|
uploadAsset(dataset_uuid: string, dataset_version: number | undefined, blob: Blob, external_id?: string | undefined): Promise<Asset>;
|
|
673
693
|
importAsset(dataset_uuid: string, dataset_version: number | undefined, asset_import: AssetImport, external_id?: string | undefined): Promise<Asset>;
|
|
674
694
|
listAssets(dataset_uuid: string, dataset_version?: number, include_annotations?: boolean): Promise<Asset[]>;
|
|
@@ -688,6 +708,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
688
708
|
deleteModel(model_uuid: string): Promise<void>;
|
|
689
709
|
trainModel(model_uuid: string): Promise<Model>;
|
|
690
710
|
publishModel(model_uuid: string): Promise<Model>;
|
|
711
|
+
exportModel(model_uuid: string, export_by: ExportedBy, params: QcAiHubExportParams[]): Promise<void>;
|
|
691
712
|
addAccountEventHandler(eventHandler: OnChangeEvent): void;
|
|
692
713
|
removeAccountEventHandler(eventHandler: OnChangeEvent): void;
|
|
693
714
|
addDatasetEventHandler(dataset_uuid: string, eventHandler: OnChangeEvent): void;
|
|
@@ -824,4 +845,4 @@ declare namespace EyePop {
|
|
|
824
845
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
825
846
|
}
|
|
826
847
|
|
|
827
|
-
export { AbstractJob, type Annotation, AnnotationType, type Asset, type AssetImport, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type Contour, type ContourFinderComponent, ContourType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, EyePop, type FileSource, type ForwardComponent, ForwardOperatorType, type InferenceComponent, InferenceType, type IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type Mask, type Model, type ModelCreate, ModelFormat, type ModelInstanceDef, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type Point2d, type Point3d, type Pop, type PopComponent, PopComponentType, type PopCrop, type PopForward, type PopForwardOperator, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedMesh, type PredictedObject, type PredictedText, type Prediction, type ResultStream, type Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, type StreamEvent, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
|
848
|
+
export { AbstractJob, type Annotation, AnnotationType, type Asset, type AssetImport, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type Contour, type ContourFinderComponent, ContourType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, type FileSource, type ForwardComponent, ForwardOperatorType, type InferenceComponent, InferenceType, type IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type Mask, type Model, type ModelCreate, type ModelExport, ModelExportStatus, ModelFormat, type ModelInstanceDef, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type Point2d, type Point3d, type Pop, type PopComponent, PopComponentType, type PopCrop, type PopForward, type PopForwardOperator, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedMesh, type PredictedObject, type PredictedText, type Prediction, type QcAiHubExportParams, type ResultStream, type Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, type StreamEvent, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
package/dist/eyepop.index.js
CHANGED
|
@@ -8664,11 +8664,13 @@ __export(eyepop_exports, {
|
|
|
8664
8664
|
DataEndpoint: () => DataEndpoint,
|
|
8665
8665
|
Endpoint: () => Endpoint,
|
|
8666
8666
|
EndpointState: () => EndpointState,
|
|
8667
|
+
ExportedBy: () => ExportedBy,
|
|
8667
8668
|
EyePop: () => EyePop,
|
|
8668
8669
|
ForwardOperatorType: () => ForwardOperatorType,
|
|
8669
8670
|
InferenceType: () => InferenceType,
|
|
8670
8671
|
LoadFromJob: () => LoadFromJob,
|
|
8671
8672
|
LoadLiveIngressJob: () => LoadLiveIngressJob,
|
|
8673
|
+
ModelExportStatus: () => ModelExportStatus,
|
|
8672
8674
|
ModelFormat: () => ModelFormat,
|
|
8673
8675
|
ModelPrecisionType: () => ModelPrecisionType,
|
|
8674
8676
|
ModelStatus: () => ModelStatus,
|
|
@@ -10858,11 +10860,11 @@ var AnnotationType = /* @__PURE__ */ ((AnnotationType2) => {
|
|
|
10858
10860
|
AnnotationType2["auto"] = "auto";
|
|
10859
10861
|
return AnnotationType2;
|
|
10860
10862
|
})(AnnotationType || {});
|
|
10861
|
-
var UserReview = /* @__PURE__ */ ((
|
|
10862
|
-
|
|
10863
|
-
|
|
10864
|
-
|
|
10865
|
-
return
|
|
10863
|
+
var UserReview = /* @__PURE__ */ ((UserReview2) => {
|
|
10864
|
+
UserReview2["approved"] = "approved";
|
|
10865
|
+
UserReview2["rejected"] = "rejected";
|
|
10866
|
+
UserReview2["unknown"] = "unknown";
|
|
10867
|
+
return UserReview2;
|
|
10866
10868
|
})(UserReview || {});
|
|
10867
10869
|
var TranscodeMode = /* @__PURE__ */ ((TranscodeMode2) => {
|
|
10868
10870
|
TranscodeMode2["original"] = "original";
|
|
@@ -10888,6 +10890,17 @@ var ModelStatus = /* @__PURE__ */ ((ModelStatus2) => {
|
|
|
10888
10890
|
ModelStatus2["published"] = "published";
|
|
10889
10891
|
return ModelStatus2;
|
|
10890
10892
|
})(ModelStatus || {});
|
|
10893
|
+
var ModelExportStatus = /* @__PURE__ */ ((ModelExportStatus2) => {
|
|
10894
|
+
ModelExportStatus2["in_progress"] = "in_progress";
|
|
10895
|
+
ModelExportStatus2["finished"] = "finished";
|
|
10896
|
+
ModelExportStatus2["error"] = "error";
|
|
10897
|
+
return ModelExportStatus2;
|
|
10898
|
+
})(ModelExportStatus || {});
|
|
10899
|
+
var ExportedBy = /* @__PURE__ */ ((ExportedBy2) => {
|
|
10900
|
+
ExportedBy2["eyepop"] = "eyepop";
|
|
10901
|
+
ExportedBy2["qc_ai_hub"] = "qc_ai_hub";
|
|
10902
|
+
return ExportedBy2;
|
|
10903
|
+
})(ExportedBy || {});
|
|
10891
10904
|
var ModelTrainingStage = /* @__PURE__ */ ((ModelTrainingStage2) => {
|
|
10892
10905
|
ModelTrainingStage2["waiting"] = "waiting";
|
|
10893
10906
|
ModelTrainingStage2["scheduling"] = "scheduling";
|
|
@@ -10910,6 +10923,7 @@ var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
|
|
|
10910
10923
|
ChangeType2["model_modified"] = "model_modified";
|
|
10911
10924
|
ChangeType2["model_status_modified"] = "model_status_modified";
|
|
10912
10925
|
ChangeType2["model_progress"] = "model_progress";
|
|
10926
|
+
ChangeType2["events_lost"] = "events_lost";
|
|
10913
10927
|
return ChangeType2;
|
|
10914
10928
|
})(ChangeType || {});
|
|
10915
10929
|
|
|
@@ -11111,7 +11125,7 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11111
11125
|
this._requestLogger.debug("Response - " + response.status + " " + response.statusText);
|
|
11112
11126
|
return response.json();
|
|
11113
11127
|
}
|
|
11114
|
-
async listDatasets(
|
|
11128
|
+
async listDatasets(include_stats = true) {
|
|
11115
11129
|
return this.request(`/datasets?account_uuid=${this._accountId}&include_stats=${include_stats}`, {
|
|
11116
11130
|
method: "GET"
|
|
11117
11131
|
});
|
|
@@ -11122,7 +11136,7 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11122
11136
|
body: JSON.stringify(data)
|
|
11123
11137
|
});
|
|
11124
11138
|
}
|
|
11125
|
-
async getDataset(dataset_uuid,
|
|
11139
|
+
async getDataset(dataset_uuid, include_stats = true) {
|
|
11126
11140
|
return this.request(`/datasets/${dataset_uuid}?include_stats=${include_stats}`, {
|
|
11127
11141
|
method: "GET"
|
|
11128
11142
|
});
|
|
@@ -11164,8 +11178,17 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11164
11178
|
});
|
|
11165
11179
|
}
|
|
11166
11180
|
async deleteDatasetVersion(dataset_uuid, dataset_version) {
|
|
11167
|
-
return this.request(`/datasets/${dataset_uuid}/
|
|
11168
|
-
method: "
|
|
11181
|
+
return this.request(`/datasets/${dataset_uuid}/versions?dataset_version=${dataset_version}`, {
|
|
11182
|
+
method: "DELETE"
|
|
11183
|
+
});
|
|
11184
|
+
}
|
|
11185
|
+
async deleteAnnotations(dataset_uuid, dataset_version, user_reviews = ["unknown" /* unknown */]) {
|
|
11186
|
+
let userReviewsQuery = "";
|
|
11187
|
+
for (let userReview in user_reviews) {
|
|
11188
|
+
userReviewsQuery += `&user_review=${userReview}`;
|
|
11189
|
+
}
|
|
11190
|
+
await this.request(`/datasets/${dataset_uuid}/annotations?dataset_version=${dataset_version}${userReviewsQuery}`, {
|
|
11191
|
+
method: "DELETE"
|
|
11169
11192
|
});
|
|
11170
11193
|
}
|
|
11171
11194
|
// Asset methods
|
|
@@ -11310,6 +11333,15 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11310
11333
|
method: "POST"
|
|
11311
11334
|
});
|
|
11312
11335
|
}
|
|
11336
|
+
async exportModel(model_uuid, export_by, params) {
|
|
11337
|
+
if (export_by != "qc_ai_hub" /* qc_ai_hub */) {
|
|
11338
|
+
return Promise.reject(`Unexpected export_by ${export_by}, must be 'qc_ai_hub'`);
|
|
11339
|
+
}
|
|
11340
|
+
await this.request(`/models/${model_uuid}/exports/qc_ai_hub`, {
|
|
11341
|
+
method: "POST",
|
|
11342
|
+
body: JSON.stringify(params)
|
|
11343
|
+
});
|
|
11344
|
+
}
|
|
11313
11345
|
addAccountEventHandler(eventHandler) {
|
|
11314
11346
|
this._account_event_handlers.push(eventHandler);
|
|
11315
11347
|
}
|
|
@@ -11551,11 +11583,13 @@ var eyepop_default = EyePop;
|
|
|
11551
11583
|
DataEndpoint,
|
|
11552
11584
|
Endpoint,
|
|
11553
11585
|
EndpointState,
|
|
11586
|
+
ExportedBy,
|
|
11554
11587
|
EyePop,
|
|
11555
11588
|
ForwardOperatorType,
|
|
11556
11589
|
InferenceType,
|
|
11557
11590
|
LoadFromJob,
|
|
11558
11591
|
LoadLiveIngressJob,
|
|
11592
|
+
ModelExportStatus,
|
|
11559
11593
|
ModelFormat,
|
|
11560
11594
|
ModelPrecisionType,
|
|
11561
11595
|
ModelStatus,
|