@eyepop.ai/eyepop 1.8.2 → 1.9.0
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
|
@@ -495,6 +495,7 @@ interface DatasetVersion {
|
|
|
495
495
|
last_analysed_at?: Date;
|
|
496
496
|
hero_asset_uuid?: string;
|
|
497
497
|
asset_stats?: DatasetVersionAssetStats;
|
|
498
|
+
default_source_model_uuid?: string;
|
|
498
499
|
}
|
|
499
500
|
interface Dataset {
|
|
500
501
|
uuid: string;
|
|
@@ -609,6 +610,10 @@ declare enum ExportedBy {
|
|
|
609
610
|
eyepop = "eyepop",
|
|
610
611
|
qc_ai_hub = "qc_ai_hub"
|
|
611
612
|
}
|
|
613
|
+
declare enum ArtifactType {
|
|
614
|
+
eyepop_bundle = "eyepop_bundle",
|
|
615
|
+
weights_file = "weights_file"
|
|
616
|
+
}
|
|
612
617
|
interface QcAiHubExportParams {
|
|
613
618
|
device_name: string;
|
|
614
619
|
}
|
|
@@ -709,7 +714,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
709
714
|
private reconnect_ws;
|
|
710
715
|
private options;
|
|
711
716
|
private request;
|
|
712
|
-
listDatasets(include_stats?: boolean): Promise<Dataset[]>;
|
|
717
|
+
listDatasets(include_stats?: boolean, modifiable_version_only?: boolean): Promise<Dataset[]>;
|
|
713
718
|
createDataset(data: DatasetCreate): Promise<Dataset>;
|
|
714
719
|
getDataset(dataset_uuid: string, include_stats?: boolean, dataset_version?: number, modifiable_version_only?: boolean): Promise<Dataset>;
|
|
715
720
|
updateDataset(dataset_uuid: string, data: DatasetUpdate, start_auto_annotate?: boolean): Promise<Dataset>;
|
|
@@ -741,6 +746,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
741
746
|
trainModel(model_uuid: string): Promise<Model>;
|
|
742
747
|
publishModel(model_uuid: string): Promise<Model>;
|
|
743
748
|
exportModel(model_uuid: string, export_by: ExportedBy, params: QcAiHubExportParams[]): Promise<void>;
|
|
749
|
+
downloadModelArtifacts(model_uuid: string, model_formats?: ModelFormat[], device_name?: string, artifact_type?: ArtifactType): Promise<any>;
|
|
744
750
|
addAccountEventHandler(eventHandler: OnChangeEvent): void;
|
|
745
751
|
removeAccountEventHandler(eventHandler: OnChangeEvent): void;
|
|
746
752
|
addDatasetEventHandler(dataset_uuid: string, eventHandler: OnChangeEvent): void;
|
|
@@ -877,4 +883,4 @@ declare namespace EyePop {
|
|
|
877
883
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
878
884
|
}
|
|
879
885
|
|
|
880
|
-
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 };
|
|
886
|
+
export { AbstractJob, type Annotation, AnnotationType, ArtifactType, 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
|
@@ -495,6 +495,7 @@ interface DatasetVersion {
|
|
|
495
495
|
last_analysed_at?: Date;
|
|
496
496
|
hero_asset_uuid?: string;
|
|
497
497
|
asset_stats?: DatasetVersionAssetStats;
|
|
498
|
+
default_source_model_uuid?: string;
|
|
498
499
|
}
|
|
499
500
|
interface Dataset {
|
|
500
501
|
uuid: string;
|
|
@@ -609,6 +610,10 @@ declare enum ExportedBy {
|
|
|
609
610
|
eyepop = "eyepop",
|
|
610
611
|
qc_ai_hub = "qc_ai_hub"
|
|
611
612
|
}
|
|
613
|
+
declare enum ArtifactType {
|
|
614
|
+
eyepop_bundle = "eyepop_bundle",
|
|
615
|
+
weights_file = "weights_file"
|
|
616
|
+
}
|
|
612
617
|
interface QcAiHubExportParams {
|
|
613
618
|
device_name: string;
|
|
614
619
|
}
|
|
@@ -709,7 +714,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
709
714
|
private reconnect_ws;
|
|
710
715
|
private options;
|
|
711
716
|
private request;
|
|
712
|
-
listDatasets(include_stats?: boolean): Promise<Dataset[]>;
|
|
717
|
+
listDatasets(include_stats?: boolean, modifiable_version_only?: boolean): Promise<Dataset[]>;
|
|
713
718
|
createDataset(data: DatasetCreate): Promise<Dataset>;
|
|
714
719
|
getDataset(dataset_uuid: string, include_stats?: boolean, dataset_version?: number, modifiable_version_only?: boolean): Promise<Dataset>;
|
|
715
720
|
updateDataset(dataset_uuid: string, data: DatasetUpdate, start_auto_annotate?: boolean): Promise<Dataset>;
|
|
@@ -741,6 +746,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
741
746
|
trainModel(model_uuid: string): Promise<Model>;
|
|
742
747
|
publishModel(model_uuid: string): Promise<Model>;
|
|
743
748
|
exportModel(model_uuid: string, export_by: ExportedBy, params: QcAiHubExportParams[]): Promise<void>;
|
|
749
|
+
downloadModelArtifacts(model_uuid: string, model_formats?: ModelFormat[], device_name?: string, artifact_type?: ArtifactType): Promise<any>;
|
|
744
750
|
addAccountEventHandler(eventHandler: OnChangeEvent): void;
|
|
745
751
|
removeAccountEventHandler(eventHandler: OnChangeEvent): void;
|
|
746
752
|
addDatasetEventHandler(dataset_uuid: string, eventHandler: OnChangeEvent): void;
|
|
@@ -877,4 +883,4 @@ declare namespace EyePop {
|
|
|
877
883
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
878
884
|
}
|
|
879
885
|
|
|
880
|
-
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 };
|
|
886
|
+
export { AbstractJob, type Annotation, AnnotationType, ArtifactType, 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
|
@@ -8654,10 +8654,11 @@ var require_mime_types = __commonJS({
|
|
|
8654
8654
|
});
|
|
8655
8655
|
|
|
8656
8656
|
// index.ts
|
|
8657
|
-
var
|
|
8658
|
-
__export(
|
|
8657
|
+
var index_exports = {};
|
|
8658
|
+
__export(index_exports, {
|
|
8659
8659
|
AbstractJob: () => AbstractJob,
|
|
8660
8660
|
AnnotationType: () => AnnotationType,
|
|
8661
|
+
ArtifactType: () => ArtifactType,
|
|
8661
8662
|
AssetStatus: () => AssetStatus,
|
|
8662
8663
|
ChangeType: () => ChangeType,
|
|
8663
8664
|
ContourType: () => ContourType,
|
|
@@ -8687,9 +8688,9 @@ __export(eyepop_exports, {
|
|
|
8687
8688
|
WebrtcWhep: () => WebrtcWhep,
|
|
8688
8689
|
WebrtcWhip: () => WebrtcWhip,
|
|
8689
8690
|
WorkerEndpoint: () => WorkerEndpoint,
|
|
8690
|
-
default: () =>
|
|
8691
|
+
default: () => index_default
|
|
8691
8692
|
});
|
|
8692
|
-
module.exports = __toCommonJS(
|
|
8693
|
+
module.exports = __toCommonJS(index_exports);
|
|
8693
8694
|
|
|
8694
8695
|
// types.ts
|
|
8695
8696
|
var EndpointState = /* @__PURE__ */ ((EndpointState2) => {
|
|
@@ -11000,6 +11001,11 @@ var ExportedBy = /* @__PURE__ */ ((ExportedBy2) => {
|
|
|
11000
11001
|
ExportedBy2["qc_ai_hub"] = "qc_ai_hub";
|
|
11001
11002
|
return ExportedBy2;
|
|
11002
11003
|
})(ExportedBy || {});
|
|
11004
|
+
var ArtifactType = /* @__PURE__ */ ((ArtifactType3) => {
|
|
11005
|
+
ArtifactType3["eyepop_bundle"] = "eyepop_bundle";
|
|
11006
|
+
ArtifactType3["weights_file"] = "weights_file";
|
|
11007
|
+
return ArtifactType3;
|
|
11008
|
+
})(ArtifactType || {});
|
|
11003
11009
|
var ModelTrainingStage = /* @__PURE__ */ ((ModelTrainingStage2) => {
|
|
11004
11010
|
ModelTrainingStage2["waiting"] = "waiting";
|
|
11005
11011
|
ModelTrainingStage2["scheduling"] = "scheduling";
|
|
@@ -11224,8 +11230,9 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11224
11230
|
this._requestLogger.debug("Response - " + response.status + " " + response.statusText);
|
|
11225
11231
|
return response.json();
|
|
11226
11232
|
}
|
|
11227
|
-
async listDatasets(include_stats = true) {
|
|
11228
|
-
|
|
11233
|
+
async listDatasets(include_stats = true, modifiable_version_only) {
|
|
11234
|
+
const modifiableVersionQuery = typeof modifiable_version_only !== "undefined" ? `&modifiable_version_only=${modifiable_version_only}` : "";
|
|
11235
|
+
return this.request(`/datasets?account_uuid=${this._accountId}&include_stats=${include_stats}${modifiableVersionQuery}`, {
|
|
11229
11236
|
method: "GET"
|
|
11230
11237
|
});
|
|
11231
11238
|
}
|
|
@@ -11450,6 +11457,19 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11450
11457
|
body: JSON.stringify(params)
|
|
11451
11458
|
});
|
|
11452
11459
|
}
|
|
11460
|
+
async downloadModelArtifacts(model_uuid, model_formats, device_name, artifact_type) {
|
|
11461
|
+
const artifactTypeQuery = artifact_type ? `artifact_type=${artifact_type}&` : "";
|
|
11462
|
+
const deviceNameQuery = device_name ? `device_name=${encodeURIComponent(device_name)}&` : "";
|
|
11463
|
+
let modelFormatQuery = "";
|
|
11464
|
+
if (model_formats) {
|
|
11465
|
+
for (const model_format of model_formats) {
|
|
11466
|
+
modelFormatQuery += `model_format=${model_format}&`;
|
|
11467
|
+
}
|
|
11468
|
+
}
|
|
11469
|
+
return this.request(`/exports/model_artifacts/?model_uuid=${model_uuid}&${artifactTypeQuery}${deviceNameQuery}${modelFormatQuery}`, {
|
|
11470
|
+
method: "GET"
|
|
11471
|
+
});
|
|
11472
|
+
}
|
|
11453
11473
|
addAccountEventHandler(eventHandler) {
|
|
11454
11474
|
this._account_event_handlers.push(eventHandler);
|
|
11455
11475
|
}
|
|
@@ -11680,11 +11700,12 @@ var EyePop;
|
|
|
11680
11700
|
}
|
|
11681
11701
|
}
|
|
11682
11702
|
})(EyePop || (EyePop = {}));
|
|
11683
|
-
var
|
|
11703
|
+
var index_default = EyePop;
|
|
11684
11704
|
// Annotate the CommonJS export names for ESM import in node:
|
|
11685
11705
|
0 && (module.exports = {
|
|
11686
11706
|
AbstractJob,
|
|
11687
11707
|
AnnotationType,
|
|
11708
|
+
ArtifactType,
|
|
11688
11709
|
AssetStatus,
|
|
11689
11710
|
ChangeType,
|
|
11690
11711
|
ContourType,
|