@eyepop.ai/eyepop 1.2.2 → 1.2.3
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
|
@@ -493,6 +493,10 @@ interface DatasetUpdate {
|
|
|
493
493
|
auto_annotates?: string[];
|
|
494
494
|
auto_annotate_params?: AutoAnnotateParams;
|
|
495
495
|
}
|
|
496
|
+
interface AssetImport {
|
|
497
|
+
url: string;
|
|
498
|
+
ground_truth?: Prediction;
|
|
499
|
+
}
|
|
496
500
|
declare enum AssetStatus {
|
|
497
501
|
rejected = "rejected",
|
|
498
502
|
upload_in_progress = "upload_in_progress",
|
|
@@ -568,6 +572,7 @@ interface Model {
|
|
|
568
572
|
description?: string;
|
|
569
573
|
type: ModelType;
|
|
570
574
|
status: ModelStatus;
|
|
575
|
+
status_message?: string;
|
|
571
576
|
metrics?: ModelMetrics;
|
|
572
577
|
account_uuid: string;
|
|
573
578
|
created_at: Date;
|
|
@@ -577,12 +582,11 @@ interface Model {
|
|
|
577
582
|
}
|
|
578
583
|
interface ModelCreate {
|
|
579
584
|
name: string;
|
|
580
|
-
description
|
|
581
|
-
type: ModelType;
|
|
585
|
+
description: string;
|
|
582
586
|
}
|
|
583
587
|
interface ModelUpdate {
|
|
584
588
|
name: string;
|
|
585
|
-
description
|
|
589
|
+
description: string;
|
|
586
590
|
}
|
|
587
591
|
declare enum ModelTrainingStage {
|
|
588
592
|
waiting = "waiting",
|
|
@@ -652,6 +656,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
652
656
|
freezeDatasetVersion(dataset_uuid: string, dataset_version?: number): Promise<Dataset>;
|
|
653
657
|
deleteDatasetVersion(dataset_uuid: string, dataset_version: number): Promise<Dataset>;
|
|
654
658
|
uploadAsset(dataset_uuid: string, dataset_version: number | undefined, blob: Blob, external_id?: string | undefined): Promise<Asset>;
|
|
659
|
+
importAsset(dataset_uuid: string, dataset_version: number | undefined, asset_import: AssetImport, external_id?: string | undefined): Promise<Asset>;
|
|
655
660
|
listAssets(dataset_uuid: string, dataset_version?: number, include_annotations?: boolean): Promise<Asset[]>;
|
|
656
661
|
getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean): Promise<Asset>;
|
|
657
662
|
deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
@@ -796,4 +801,4 @@ declare namespace EyePop {
|
|
|
796
801
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
797
802
|
}
|
|
798
803
|
|
|
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 };
|
|
804
|
+
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 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
|
@@ -493,6 +493,10 @@ interface DatasetUpdate {
|
|
|
493
493
|
auto_annotates?: string[];
|
|
494
494
|
auto_annotate_params?: AutoAnnotateParams;
|
|
495
495
|
}
|
|
496
|
+
interface AssetImport {
|
|
497
|
+
url: string;
|
|
498
|
+
ground_truth?: Prediction;
|
|
499
|
+
}
|
|
496
500
|
declare enum AssetStatus {
|
|
497
501
|
rejected = "rejected",
|
|
498
502
|
upload_in_progress = "upload_in_progress",
|
|
@@ -568,6 +572,7 @@ interface Model {
|
|
|
568
572
|
description?: string;
|
|
569
573
|
type: ModelType;
|
|
570
574
|
status: ModelStatus;
|
|
575
|
+
status_message?: string;
|
|
571
576
|
metrics?: ModelMetrics;
|
|
572
577
|
account_uuid: string;
|
|
573
578
|
created_at: Date;
|
|
@@ -577,12 +582,11 @@ interface Model {
|
|
|
577
582
|
}
|
|
578
583
|
interface ModelCreate {
|
|
579
584
|
name: string;
|
|
580
|
-
description
|
|
581
|
-
type: ModelType;
|
|
585
|
+
description: string;
|
|
582
586
|
}
|
|
583
587
|
interface ModelUpdate {
|
|
584
588
|
name: string;
|
|
585
|
-
description
|
|
589
|
+
description: string;
|
|
586
590
|
}
|
|
587
591
|
declare enum ModelTrainingStage {
|
|
588
592
|
waiting = "waiting",
|
|
@@ -652,6 +656,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
652
656
|
freezeDatasetVersion(dataset_uuid: string, dataset_version?: number): Promise<Dataset>;
|
|
653
657
|
deleteDatasetVersion(dataset_uuid: string, dataset_version: number): Promise<Dataset>;
|
|
654
658
|
uploadAsset(dataset_uuid: string, dataset_version: number | undefined, blob: Blob, external_id?: string | undefined): Promise<Asset>;
|
|
659
|
+
importAsset(dataset_uuid: string, dataset_version: number | undefined, asset_import: AssetImport, external_id?: string | undefined): Promise<Asset>;
|
|
655
660
|
listAssets(dataset_uuid: string, dataset_version?: number, include_annotations?: boolean): Promise<Asset[]>;
|
|
656
661
|
getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean): Promise<Asset>;
|
|
657
662
|
deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
@@ -796,4 +801,4 @@ declare namespace EyePop {
|
|
|
796
801
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
797
802
|
}
|
|
798
803
|
|
|
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 };
|
|
804
|
+
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 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
|
@@ -11055,6 +11055,22 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11055
11055
|
}
|
|
11056
11056
|
});
|
|
11057
11057
|
}
|
|
11058
|
+
async importAsset(dataset_uuid, dataset_version, asset_import, external_id = void 0) {
|
|
11059
|
+
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11060
|
+
let post_path;
|
|
11061
|
+
if (external_id) {
|
|
11062
|
+
post_path = `/assets/imports?dataset_uuid=${dataset_uuid}${versionQuery}&external_id=${external_id}`;
|
|
11063
|
+
} else {
|
|
11064
|
+
post_path = `/assets/imports?dataset_uuid=${dataset_uuid}${versionQuery}`;
|
|
11065
|
+
}
|
|
11066
|
+
return this.request(post_path, {
|
|
11067
|
+
method: "POST",
|
|
11068
|
+
body: JSON.stringify(asset_import),
|
|
11069
|
+
headers: {
|
|
11070
|
+
"Content-Type": "application/json"
|
|
11071
|
+
}
|
|
11072
|
+
});
|
|
11073
|
+
}
|
|
11058
11074
|
async listAssets(dataset_uuid, dataset_version, include_annotations = false) {
|
|
11059
11075
|
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11060
11076
|
const annotationsQuery = include_annotations ? "&include_annotations=true" : "";
|