@eyepop.ai/eyepop 1.2.3 → 1.3.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 +9 -3
- package/dist/eyepop.index.d.ts +9 -3
- package/dist/eyepop.index.js +14 -14
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +14 -14
- package/dist/eyepop.index.mjs.map +1 -1
- package/dist/eyepop.min.js +1 -1
- package/package.json +1 -1
package/dist/eyepop.index.d.mts
CHANGED
|
@@ -493,6 +493,9 @@ interface DatasetUpdate {
|
|
|
493
493
|
auto_annotates?: string[];
|
|
494
494
|
auto_annotate_params?: AutoAnnotateParams;
|
|
495
495
|
}
|
|
496
|
+
interface DatasetHeroAssetUpdate {
|
|
497
|
+
uuid: string;
|
|
498
|
+
}
|
|
496
499
|
interface AssetImport {
|
|
497
500
|
url: string;
|
|
498
501
|
ground_truth?: Prediction;
|
|
@@ -648,10 +651,13 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
648
651
|
private reconnect_ws;
|
|
649
652
|
private options;
|
|
650
653
|
private request;
|
|
651
|
-
listDatasets(
|
|
654
|
+
listDatasets(
|
|
655
|
+
/** @deprecated */ include_hero_asset?: boolean, include_stats?: boolean): Promise<Dataset[]>;
|
|
652
656
|
createDataset(data: DatasetCreate): Promise<Dataset>;
|
|
653
|
-
getDataset(dataset_uuid: string,
|
|
657
|
+
getDataset(dataset_uuid: string,
|
|
658
|
+
/** @deprecated */ include_hero_asset?: boolean, include_stats?: boolean): Promise<Dataset>;
|
|
654
659
|
updateDataset(dataset_uuid: string, data: DatasetUpdate): Promise<Dataset>;
|
|
660
|
+
updateDatasetHeroAsset(dataset_uuid: string, update: DatasetHeroAssetUpdate): Promise<Dataset>;
|
|
655
661
|
deleteDataset(dataset_uuid: string): Promise<void>;
|
|
656
662
|
freezeDatasetVersion(dataset_uuid: string, dataset_version?: number): Promise<Dataset>;
|
|
657
663
|
deleteDatasetVersion(dataset_uuid: string, dataset_version: number): Promise<Dataset>;
|
|
@@ -801,4 +807,4 @@ declare namespace EyePop {
|
|
|
801
807
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
802
808
|
}
|
|
803
809
|
|
|
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 };
|
|
810
|
+
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 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,9 @@ interface DatasetUpdate {
|
|
|
493
493
|
auto_annotates?: string[];
|
|
494
494
|
auto_annotate_params?: AutoAnnotateParams;
|
|
495
495
|
}
|
|
496
|
+
interface DatasetHeroAssetUpdate {
|
|
497
|
+
uuid: string;
|
|
498
|
+
}
|
|
496
499
|
interface AssetImport {
|
|
497
500
|
url: string;
|
|
498
501
|
ground_truth?: Prediction;
|
|
@@ -648,10 +651,13 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
648
651
|
private reconnect_ws;
|
|
649
652
|
private options;
|
|
650
653
|
private request;
|
|
651
|
-
listDatasets(
|
|
654
|
+
listDatasets(
|
|
655
|
+
/** @deprecated */ include_hero_asset?: boolean, include_stats?: boolean): Promise<Dataset[]>;
|
|
652
656
|
createDataset(data: DatasetCreate): Promise<Dataset>;
|
|
653
|
-
getDataset(dataset_uuid: string,
|
|
657
|
+
getDataset(dataset_uuid: string,
|
|
658
|
+
/** @deprecated */ include_hero_asset?: boolean, include_stats?: boolean): Promise<Dataset>;
|
|
654
659
|
updateDataset(dataset_uuid: string, data: DatasetUpdate): Promise<Dataset>;
|
|
660
|
+
updateDatasetHeroAsset(dataset_uuid: string, update: DatasetHeroAssetUpdate): Promise<Dataset>;
|
|
655
661
|
deleteDataset(dataset_uuid: string): Promise<void>;
|
|
656
662
|
freezeDatasetVersion(dataset_uuid: string, dataset_version?: number): Promise<Dataset>;
|
|
657
663
|
deleteDatasetVersion(dataset_uuid: string, dataset_version: number): Promise<Dataset>;
|
|
@@ -801,4 +807,4 @@ declare namespace EyePop {
|
|
|
801
807
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
802
808
|
}
|
|
803
809
|
|
|
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 };
|
|
810
|
+
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 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
|
@@ -9046,8 +9046,7 @@ var UploadJob = class extends AbstractJob {
|
|
|
9046
9046
|
body: formData,
|
|
9047
9047
|
signal: this._controller.signal,
|
|
9048
9048
|
// @ts-ignore
|
|
9049
|
-
|
|
9050
|
-
dispatcher: this._dispatcher
|
|
9049
|
+
duplex: "half"
|
|
9051
9050
|
});
|
|
9052
9051
|
this._requestLogger.debug("after POST %s with multipart body because of params");
|
|
9053
9052
|
} else {
|
|
@@ -9063,8 +9062,7 @@ var UploadJob = class extends AbstractJob {
|
|
|
9063
9062
|
body: this._uploadStream,
|
|
9064
9063
|
signal: this._controller.signal,
|
|
9065
9064
|
// @ts-ignore
|
|
9066
|
-
|
|
9067
|
-
dispatcher: this._dispatcher
|
|
9065
|
+
duplex: "half"
|
|
9068
9066
|
});
|
|
9069
9067
|
this._requestLogger.debug("after POST %s with stream as body");
|
|
9070
9068
|
}
|
|
@@ -9100,9 +9098,7 @@ var LoadFromJob = class extends AbstractJob {
|
|
|
9100
9098
|
headers,
|
|
9101
9099
|
method: "PATCH",
|
|
9102
9100
|
body: JSON.stringify(body),
|
|
9103
|
-
signal: this._controller.signal
|
|
9104
|
-
// @ts-ignore
|
|
9105
|
-
dispatcher: this._dispatcher
|
|
9101
|
+
signal: this._controller.signal
|
|
9106
9102
|
});
|
|
9107
9103
|
this._requestLogger.debug("after PATCH %s with url %s as source", patchUrl, this._location);
|
|
9108
9104
|
return response;
|
|
@@ -9137,9 +9133,7 @@ var LoadLiveIngressJob = class extends AbstractJob {
|
|
|
9137
9133
|
headers,
|
|
9138
9134
|
method: "PATCH",
|
|
9139
9135
|
body: JSON.stringify(body),
|
|
9140
|
-
signal: this._controller.signal
|
|
9141
|
-
// @ts-ignore
|
|
9142
|
-
dispatcher: this._dispatcher
|
|
9136
|
+
signal: this._controller.signal
|
|
9143
9137
|
});
|
|
9144
9138
|
this._requestLogger.debug("after PATCH %s with url %s as source", patchUrl, this._ingressId);
|
|
9145
9139
|
return response;
|
|
@@ -11000,8 +10994,8 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11000
10994
|
this._requestLogger.debug("Response - " + response.status + " " + response.statusText);
|
|
11001
10995
|
return response.json();
|
|
11002
10996
|
}
|
|
11003
|
-
async listDatasets(include_hero_asset = false) {
|
|
11004
|
-
return this.request(`/datasets?account_uuid=${this._accountId}&
|
|
10997
|
+
async listDatasets(include_hero_asset = false, include_stats = true) {
|
|
10998
|
+
return this.request(`/datasets?account_uuid=${this._accountId}&include_stats=${include_stats}`, {
|
|
11005
10999
|
method: "GET"
|
|
11006
11000
|
});
|
|
11007
11001
|
}
|
|
@@ -11011,8 +11005,8 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11011
11005
|
body: JSON.stringify(data)
|
|
11012
11006
|
});
|
|
11013
11007
|
}
|
|
11014
|
-
async getDataset(dataset_uuid, include_hero_asset = false) {
|
|
11015
|
-
return this.request(`/datasets/${dataset_uuid}?
|
|
11008
|
+
async getDataset(dataset_uuid, include_hero_asset = false, include_stats = true) {
|
|
11009
|
+
return this.request(`/datasets/${dataset_uuid}?include_stats=${include_stats}`, {
|
|
11016
11010
|
method: "GET"
|
|
11017
11011
|
});
|
|
11018
11012
|
}
|
|
@@ -11022,6 +11016,12 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11022
11016
|
body: JSON.stringify(data)
|
|
11023
11017
|
});
|
|
11024
11018
|
}
|
|
11019
|
+
async updateDatasetHeroAsset(dataset_uuid, update) {
|
|
11020
|
+
return this.request(`/datasets/${dataset_uuid}/hero_asset`, {
|
|
11021
|
+
method: "PATCH",
|
|
11022
|
+
body: JSON.stringify(update)
|
|
11023
|
+
});
|
|
11024
|
+
}
|
|
11025
11025
|
async deleteDataset(dataset_uuid) {
|
|
11026
11026
|
return this.request(`/datasets/${dataset_uuid}`, {
|
|
11027
11027
|
method: "DELETE"
|