@eyepop.ai/eyepop 1.0.1 → 1.0.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
|
@@ -471,6 +471,7 @@ interface Dataset {
|
|
|
471
471
|
name: string;
|
|
472
472
|
description?: string;
|
|
473
473
|
auto_annotates: string[];
|
|
474
|
+
auto_annotate_params?: AutoAnnotateParams;
|
|
474
475
|
tags: string[];
|
|
475
476
|
account_uuid: string;
|
|
476
477
|
created_at: Date;
|
|
@@ -482,12 +483,14 @@ interface DatasetCreate {
|
|
|
482
483
|
description?: string;
|
|
483
484
|
tags?: string[];
|
|
484
485
|
auto_annotates?: string[];
|
|
486
|
+
auto_annotate_params?: AutoAnnotateParams;
|
|
485
487
|
}
|
|
486
488
|
interface DatasetUpdate {
|
|
487
489
|
name: string;
|
|
488
490
|
description?: string;
|
|
489
491
|
tags?: string[];
|
|
490
492
|
auto_annotates?: string[];
|
|
493
|
+
auto_annotate_params?: AutoAnnotateParams;
|
|
491
494
|
}
|
|
492
495
|
declare enum AssetStatus {
|
|
493
496
|
rejected = "rejected",
|
|
@@ -507,10 +510,16 @@ declare enum UserReview {
|
|
|
507
510
|
rejected = "rejected",
|
|
508
511
|
unknown = "unknown"
|
|
509
512
|
}
|
|
513
|
+
interface AutoAnnotateParams {
|
|
514
|
+
candidate_labels?: string[];
|
|
515
|
+
prompt?: string;
|
|
516
|
+
confidence_threshold?: number;
|
|
517
|
+
}
|
|
510
518
|
interface Annotation {
|
|
511
519
|
type: AnnotationType;
|
|
512
520
|
user_review: UserReview;
|
|
513
521
|
auto_annotate?: string;
|
|
522
|
+
auto_annotate_params?: AutoAnnotateParams;
|
|
514
523
|
uncertainty_score?: number;
|
|
515
524
|
annotation: Prediction;
|
|
516
525
|
}
|
|
@@ -619,6 +628,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
619
628
|
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, prediction?: Prediction$1): Promise<void>;
|
|
620
629
|
updateAutoAnnotationStatus(asset_uuid: string, auto_annotate: string, user_review: UserReview): Promise<void>;
|
|
621
630
|
downloadAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, transcode_mode?: TranscodeMode): Promise<Blob>;
|
|
631
|
+
previewAutoAnnotateAsset(asset_uuid: string, auto_annotate: string, auto_annotate_params?: AutoAnnotateParams): Promise<Annotation>;
|
|
622
632
|
listModels(): Promise<Model[]>;
|
|
623
633
|
createModel(dataset_uuid: string, dataset_version: number, data: ModelCreate): Promise<Model>;
|
|
624
634
|
getModel(model_uuid: string): Promise<Model>;
|
|
@@ -753,4 +763,4 @@ declare namespace EyePop {
|
|
|
753
763
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
754
764
|
}
|
|
755
765
|
|
|
756
|
-
export { AbstractJob, type Annotation, AnnotationType, type Asset, AssetStatus, type Auth0Options, type Authentication, 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, 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 };
|
|
766
|
+
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, 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
|
@@ -471,6 +471,7 @@ interface Dataset {
|
|
|
471
471
|
name: string;
|
|
472
472
|
description?: string;
|
|
473
473
|
auto_annotates: string[];
|
|
474
|
+
auto_annotate_params?: AutoAnnotateParams;
|
|
474
475
|
tags: string[];
|
|
475
476
|
account_uuid: string;
|
|
476
477
|
created_at: Date;
|
|
@@ -482,12 +483,14 @@ interface DatasetCreate {
|
|
|
482
483
|
description?: string;
|
|
483
484
|
tags?: string[];
|
|
484
485
|
auto_annotates?: string[];
|
|
486
|
+
auto_annotate_params?: AutoAnnotateParams;
|
|
485
487
|
}
|
|
486
488
|
interface DatasetUpdate {
|
|
487
489
|
name: string;
|
|
488
490
|
description?: string;
|
|
489
491
|
tags?: string[];
|
|
490
492
|
auto_annotates?: string[];
|
|
493
|
+
auto_annotate_params?: AutoAnnotateParams;
|
|
491
494
|
}
|
|
492
495
|
declare enum AssetStatus {
|
|
493
496
|
rejected = "rejected",
|
|
@@ -507,10 +510,16 @@ declare enum UserReview {
|
|
|
507
510
|
rejected = "rejected",
|
|
508
511
|
unknown = "unknown"
|
|
509
512
|
}
|
|
513
|
+
interface AutoAnnotateParams {
|
|
514
|
+
candidate_labels?: string[];
|
|
515
|
+
prompt?: string;
|
|
516
|
+
confidence_threshold?: number;
|
|
517
|
+
}
|
|
510
518
|
interface Annotation {
|
|
511
519
|
type: AnnotationType;
|
|
512
520
|
user_review: UserReview;
|
|
513
521
|
auto_annotate?: string;
|
|
522
|
+
auto_annotate_params?: AutoAnnotateParams;
|
|
514
523
|
uncertainty_score?: number;
|
|
515
524
|
annotation: Prediction;
|
|
516
525
|
}
|
|
@@ -619,6 +628,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
619
628
|
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, prediction?: Prediction$1): Promise<void>;
|
|
620
629
|
updateAutoAnnotationStatus(asset_uuid: string, auto_annotate: string, user_review: UserReview): Promise<void>;
|
|
621
630
|
downloadAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, transcode_mode?: TranscodeMode): Promise<Blob>;
|
|
631
|
+
previewAutoAnnotateAsset(asset_uuid: string, auto_annotate: string, auto_annotate_params?: AutoAnnotateParams): Promise<Annotation>;
|
|
622
632
|
listModels(): Promise<Model[]>;
|
|
623
633
|
createModel(dataset_uuid: string, dataset_version: number, data: ModelCreate): Promise<Model>;
|
|
624
634
|
getModel(model_uuid: string): Promise<Model>;
|
|
@@ -753,4 +763,4 @@ declare namespace EyePop {
|
|
|
753
763
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
754
764
|
}
|
|
755
765
|
|
|
756
|
-
export { AbstractJob, type Annotation, AnnotationType, type Asset, AssetStatus, type Auth0Options, type Authentication, 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, 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 };
|
|
766
|
+
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, 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
|
@@ -11082,6 +11082,12 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11082
11082
|
method: "GET"
|
|
11083
11083
|
});
|
|
11084
11084
|
}
|
|
11085
|
+
async previewAutoAnnotateAsset(asset_uuid, auto_annotate, auto_annotate_params) {
|
|
11086
|
+
return this.request(`/assets/${asset_uuid}/preview_auto_annotate?auto_annotate=${auto_annotate}`, {
|
|
11087
|
+
method: "POST",
|
|
11088
|
+
body: auto_annotate_params ? JSON.stringify(auto_annotate_params) : null
|
|
11089
|
+
});
|
|
11090
|
+
}
|
|
11085
11091
|
// Model methods
|
|
11086
11092
|
async listModels() {
|
|
11087
11093
|
return this.request(`/models?account_uuid=${this._accountId}`, {
|