@eyepop.ai/eyepop 1.2.0 → 1.2.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
|
@@ -559,12 +559,16 @@ declare enum ModelStatus {
|
|
|
559
559
|
available = "available",
|
|
560
560
|
published = "published"
|
|
561
561
|
}
|
|
562
|
+
interface ModelMetrics {
|
|
563
|
+
cpr?: number[][3];
|
|
564
|
+
}
|
|
562
565
|
interface Model {
|
|
563
566
|
uuid: string;
|
|
564
567
|
name: string;
|
|
565
568
|
description?: string;
|
|
566
569
|
type: ModelType;
|
|
567
570
|
status: ModelStatus;
|
|
571
|
+
metrics?: ModelMetrics;
|
|
568
572
|
account_uuid: string;
|
|
569
573
|
created_at: Date;
|
|
570
574
|
updated_at: Date;
|
|
@@ -587,13 +591,17 @@ declare enum ModelTrainingStage {
|
|
|
587
591
|
training = "training",
|
|
588
592
|
exporting = "exporting"
|
|
589
593
|
}
|
|
594
|
+
interface ModelSample {
|
|
595
|
+
asset_uuid: string;
|
|
596
|
+
prediction: Prediction;
|
|
597
|
+
}
|
|
590
598
|
interface ModelTrainingProgress {
|
|
591
599
|
stage: ModelTrainingStage;
|
|
592
600
|
queue_length?: number;
|
|
593
601
|
started_at: Date;
|
|
594
602
|
finished_at?: Date;
|
|
595
|
-
|
|
596
|
-
|
|
603
|
+
metrics?: ModelMetrics;
|
|
604
|
+
samples?: ModelSample[];
|
|
597
605
|
remaining_seconds_min?: number;
|
|
598
606
|
remaining_seconds_max?: number;
|
|
599
607
|
}
|
|
@@ -609,7 +617,8 @@ declare enum ChangeType {
|
|
|
609
617
|
model_added = "model_added",
|
|
610
618
|
model_removed = "model_removed",
|
|
611
619
|
model_modified = "model_modified",
|
|
612
|
-
model_status_modified = "model_status_modified"
|
|
620
|
+
model_status_modified = "model_status_modified",
|
|
621
|
+
model_progress = "model_progress"
|
|
613
622
|
}
|
|
614
623
|
interface ChangeEvent {
|
|
615
624
|
change_type: ChangeType;
|
|
@@ -648,6 +657,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
648
657
|
deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
649
658
|
resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
|
|
650
659
|
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, prediction?: Prediction$1): Promise<void>;
|
|
660
|
+
deleteAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
651
661
|
updateAutoAnnotationStatus(asset_uuid: string, auto_annotate: string, user_review: UserReview, approved_threshold?: number): Promise<void>;
|
|
652
662
|
downloadAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, transcode_mode?: TranscodeMode): Promise<Blob>;
|
|
653
663
|
previewAutoAnnotateAsset(asset_uuid: string, auto_annotate: string, auto_annotate_params?: AutoAnnotateParams): Promise<Annotation>;
|
|
@@ -786,4 +796,4 @@ declare namespace EyePop {
|
|
|
786
796
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
787
797
|
}
|
|
788
798
|
|
|
789
|
-
export { AbstractJob, type Annotation, AnnotationType, type Asset, 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 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, ModelPrecisionType, 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 PredictedLabel, type PredictedMesh, type PredictedObject, type Prediction, type ResultStream, type Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
|
799
|
+
export { AbstractJob, type Annotation, AnnotationType, type Asset, 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 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 PredictedLabel, type PredictedMesh, type PredictedObject, type Prediction, type ResultStream, type Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, 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
|
@@ -559,12 +559,16 @@ declare enum ModelStatus {
|
|
|
559
559
|
available = "available",
|
|
560
560
|
published = "published"
|
|
561
561
|
}
|
|
562
|
+
interface ModelMetrics {
|
|
563
|
+
cpr?: number[][3];
|
|
564
|
+
}
|
|
562
565
|
interface Model {
|
|
563
566
|
uuid: string;
|
|
564
567
|
name: string;
|
|
565
568
|
description?: string;
|
|
566
569
|
type: ModelType;
|
|
567
570
|
status: ModelStatus;
|
|
571
|
+
metrics?: ModelMetrics;
|
|
568
572
|
account_uuid: string;
|
|
569
573
|
created_at: Date;
|
|
570
574
|
updated_at: Date;
|
|
@@ -587,13 +591,17 @@ declare enum ModelTrainingStage {
|
|
|
587
591
|
training = "training",
|
|
588
592
|
exporting = "exporting"
|
|
589
593
|
}
|
|
594
|
+
interface ModelSample {
|
|
595
|
+
asset_uuid: string;
|
|
596
|
+
prediction: Prediction;
|
|
597
|
+
}
|
|
590
598
|
interface ModelTrainingProgress {
|
|
591
599
|
stage: ModelTrainingStage;
|
|
592
600
|
queue_length?: number;
|
|
593
601
|
started_at: Date;
|
|
594
602
|
finished_at?: Date;
|
|
595
|
-
|
|
596
|
-
|
|
603
|
+
metrics?: ModelMetrics;
|
|
604
|
+
samples?: ModelSample[];
|
|
597
605
|
remaining_seconds_min?: number;
|
|
598
606
|
remaining_seconds_max?: number;
|
|
599
607
|
}
|
|
@@ -609,7 +617,8 @@ declare enum ChangeType {
|
|
|
609
617
|
model_added = "model_added",
|
|
610
618
|
model_removed = "model_removed",
|
|
611
619
|
model_modified = "model_modified",
|
|
612
|
-
model_status_modified = "model_status_modified"
|
|
620
|
+
model_status_modified = "model_status_modified",
|
|
621
|
+
model_progress = "model_progress"
|
|
613
622
|
}
|
|
614
623
|
interface ChangeEvent {
|
|
615
624
|
change_type: ChangeType;
|
|
@@ -648,6 +657,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
648
657
|
deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
649
658
|
resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
|
|
650
659
|
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, prediction?: Prediction$1): Promise<void>;
|
|
660
|
+
deleteAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
651
661
|
updateAutoAnnotationStatus(asset_uuid: string, auto_annotate: string, user_review: UserReview, approved_threshold?: number): Promise<void>;
|
|
652
662
|
downloadAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, transcode_mode?: TranscodeMode): Promise<Blob>;
|
|
653
663
|
previewAutoAnnotateAsset(asset_uuid: string, auto_annotate: string, auto_annotate_params?: AutoAnnotateParams): Promise<Annotation>;
|
|
@@ -786,4 +796,4 @@ declare namespace EyePop {
|
|
|
786
796
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
787
797
|
}
|
|
788
798
|
|
|
789
|
-
export { AbstractJob, type Annotation, AnnotationType, type Asset, 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 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, ModelPrecisionType, 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 PredictedLabel, type PredictedMesh, type PredictedObject, type Prediction, type ResultStream, type Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
|
799
|
+
export { AbstractJob, type Annotation, AnnotationType, type Asset, 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 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 PredictedLabel, type PredictedMesh, type PredictedObject, type Prediction, type ResultStream, type Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, 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
|
@@ -10798,6 +10798,7 @@ var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
|
|
|
10798
10798
|
ChangeType2["model_removed"] = "model_removed";
|
|
10799
10799
|
ChangeType2["model_modified"] = "model_modified";
|
|
10800
10800
|
ChangeType2["model_status_modified"] = "model_status_modified";
|
|
10801
|
+
ChangeType2["model_progress"] = "model_progress";
|
|
10801
10802
|
return ChangeType2;
|
|
10802
10803
|
})(ChangeType || {});
|
|
10803
10804
|
|
|
@@ -11090,6 +11091,13 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11090
11091
|
body: JSON.stringify(prediction)
|
|
11091
11092
|
});
|
|
11092
11093
|
}
|
|
11094
|
+
async deleteAssetGroundTruth(asset_uuid, dataset_uuid, dataset_version) {
|
|
11095
|
+
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11096
|
+
const datasetQuery = dataset_uuid ? `&dataset_uuid=${dataset_uuid}` : "";
|
|
11097
|
+
return this.request(`/assets/${asset_uuid}/ground_truth?${datasetQuery}${versionQuery}`, {
|
|
11098
|
+
method: "DELETE"
|
|
11099
|
+
});
|
|
11100
|
+
}
|
|
11093
11101
|
async updateAutoAnnotationStatus(asset_uuid, auto_annotate, user_review, approved_threshold) {
|
|
11094
11102
|
const validStatuses = ["approved", "rejected", "unknown"];
|
|
11095
11103
|
if (!validStatuses.includes(user_review)) {
|
|
@@ -11221,6 +11229,7 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11221
11229
|
case "model_modified" /* model_modified */:
|
|
11222
11230
|
case "model_removed" /* model_removed */:
|
|
11223
11231
|
case "model_status_modified" /* model_status_modified */:
|
|
11232
|
+
case "model_progress" /* model_progress */:
|
|
11224
11233
|
const event_handlers = this._dataset_uuid_to_event_handlers.get(change_event.dataset_uuid);
|
|
11225
11234
|
this._logger.debug("dispatchChangeEvent event_handlers=%s", event_handlers);
|
|
11226
11235
|
if (event_handlers !== void 0) {
|