@eyepop.ai/eyepop 3.6.1 → 3.7.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 +48 -6
- package/dist/eyepop.index.d.ts +48 -6
- package/dist/eyepop.index.js +20 -6
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +19 -6
- 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
|
@@ -18,13 +18,46 @@ interface Box {
|
|
|
18
18
|
readonly bottomRight: Point2d;
|
|
19
19
|
}
|
|
20
20
|
interface StreamTime {
|
|
21
|
+
/**
|
|
22
|
+
* Temporal offset of prediction from start of the media (video or audio) in nano seconds.
|
|
23
|
+
*/
|
|
21
24
|
timestamp?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Convenience, same vale as 'timestamp' just in seconds.
|
|
27
|
+
*/
|
|
22
28
|
seconds?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Temporal length of the chunk that was the source for this prediction in nano seconds.
|
|
31
|
+
*/
|
|
32
|
+
duration?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Real time when the media was captured as epoch timestamp in nano seconds.
|
|
35
|
+
*
|
|
36
|
+
* Only provided if source provides this timestamp e.g. as timestamp/x-ntp in RTSP.
|
|
37
|
+
*/
|
|
38
|
+
captured_at?: number;
|
|
39
|
+
/**
|
|
40
|
+
* A media specific offset.
|
|
41
|
+
*
|
|
42
|
+
* For video frames, this is the frame number of prediction.
|
|
43
|
+
* For audio samples, this is the offset of the first sample for this prediction.
|
|
44
|
+
*/
|
|
23
45
|
offset?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Offset length of the chunk used for this prediction.
|
|
48
|
+
*
|
|
49
|
+
* It has the same format as offset.
|
|
50
|
+
*/
|
|
51
|
+
offset_duration?: number;
|
|
24
52
|
}
|
|
25
53
|
interface Prediction extends StreamTime {
|
|
26
|
-
|
|
54
|
+
/**
|
|
55
|
+
* The width of the source coordinate system for all prediction coordinates.
|
|
56
|
+
*/
|
|
27
57
|
source_width: number;
|
|
58
|
+
/**
|
|
59
|
+
* The height of the source coordinate system for all prediction coordinates.
|
|
60
|
+
*/
|
|
28
61
|
source_height: number;
|
|
29
62
|
source_id?: string;
|
|
30
63
|
objects?: Array<PredictedObject>;
|
|
@@ -56,7 +89,7 @@ interface Mask {
|
|
|
56
89
|
stride: number;
|
|
57
90
|
}
|
|
58
91
|
interface PredictedObject extends PredictedClass {
|
|
59
|
-
|
|
92
|
+
trackId: number | undefined;
|
|
60
93
|
x: number;
|
|
61
94
|
y: number;
|
|
62
95
|
width: number;
|
|
@@ -576,7 +609,7 @@ interface Annotation {
|
|
|
576
609
|
auto_annotate?: string;
|
|
577
610
|
auto_annotate_params?: AutoAnnotateParams;
|
|
578
611
|
uncertainty_score?: number;
|
|
579
|
-
|
|
612
|
+
predictions: Prediction[];
|
|
580
613
|
}
|
|
581
614
|
declare enum TranscodeMode {
|
|
582
615
|
original = "original",
|
|
@@ -789,6 +822,15 @@ declare enum ModelPrecisionType {
|
|
|
789
822
|
int8 = "int8",
|
|
790
823
|
uint8 = "uint8"
|
|
791
824
|
}
|
|
825
|
+
declare enum AssetUrlType {
|
|
826
|
+
gcs = "gcs",
|
|
827
|
+
s3 = "s3",
|
|
828
|
+
https_signed = "https_signed"
|
|
829
|
+
}
|
|
830
|
+
interface DownloadResponse {
|
|
831
|
+
url: string;
|
|
832
|
+
url_type: AssetUrlType;
|
|
833
|
+
}
|
|
792
834
|
|
|
793
835
|
declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
794
836
|
private _baseUrl;
|
|
@@ -821,10 +863,10 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
821
863
|
getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset>;
|
|
822
864
|
deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
823
865
|
resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
|
|
824
|
-
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number,
|
|
866
|
+
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, predictions?: Prediction[]): Promise<void>;
|
|
825
867
|
deleteAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
826
868
|
updateAutoAnnotationStatus(asset_uuid: string, auto_annotate: string, user_review: UserReview, approved_threshold?: number): Promise<void>;
|
|
827
|
-
downloadAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, transcode_mode?: TranscodeMode): Promise<Blob>;
|
|
869
|
+
downloadAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, transcode_mode?: TranscodeMode, start_timestamp?: number, end_timestamp?: number, url_type?: AssetUrlType): Promise<Blob | DownloadResponse>;
|
|
828
870
|
previewAutoAnnotateAsset(asset_uuid: string, auto_annotate: string, auto_annotate_params?: AutoAnnotateParams): Promise<Annotation>;
|
|
829
871
|
listModels(): Promise<Model[]>;
|
|
830
872
|
findModelsForDataset(dataset_uuid: string): Promise<Model[]>;
|
|
@@ -1001,4 +1043,4 @@ declare namespace EyePop {
|
|
|
1001
1043
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
1002
1044
|
}
|
|
1003
1045
|
|
|
1004
|
-
export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DEFAULT_PREDICTION_VERSION, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, type InferenceComponent, InferenceType, type ListWorkFlowItem, type ListWorkFlowItemMetadata, type ListWorkflowItemMetadataLabels, LoadFromAssetUuidJob, LoadFromJob, LoadLiveIngressJob, LoadMediaStreamJob, type LocalAuth, type Mask, type MediaStreamSource, type Model, type ModelCreate, type ModelExport, ModelExportStatus, ModelFormat, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, ModelTask, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, MotionModel, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type PlatformSupport, 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, PredictionVersion, type QcAiHubExportParams, type ResultStream, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, Stream, type StreamEvent, type StreamSource, type StreamTime, type TrackingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, type Workflow, WorkflowPhase, EyePop as default, readableStreamFromString };
|
|
1046
|
+
export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, AssetUrlType, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DEFAULT_PREDICTION_VERSION, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, type DownloadResponse, Endpoint, EndpointState, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, type InferenceComponent, InferenceType, type ListWorkFlowItem, type ListWorkFlowItemMetadata, type ListWorkflowItemMetadataLabels, LoadFromAssetUuidJob, LoadFromJob, LoadLiveIngressJob, LoadMediaStreamJob, type LocalAuth, type Mask, type MediaStreamSource, type Model, type ModelCreate, type ModelExport, ModelExportStatus, ModelFormat, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, ModelTask, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, MotionModel, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type PlatformSupport, 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, PredictionVersion, type QcAiHubExportParams, type ResultStream, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, Stream, type StreamEvent, type StreamSource, type StreamTime, type TrackingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, type Workflow, WorkflowPhase, EyePop as default, readableStreamFromString };
|
package/dist/eyepop.index.d.ts
CHANGED
|
@@ -18,13 +18,46 @@ interface Box {
|
|
|
18
18
|
readonly bottomRight: Point2d;
|
|
19
19
|
}
|
|
20
20
|
interface StreamTime {
|
|
21
|
+
/**
|
|
22
|
+
* Temporal offset of prediction from start of the media (video or audio) in nano seconds.
|
|
23
|
+
*/
|
|
21
24
|
timestamp?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Convenience, same vale as 'timestamp' just in seconds.
|
|
27
|
+
*/
|
|
22
28
|
seconds?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Temporal length of the chunk that was the source for this prediction in nano seconds.
|
|
31
|
+
*/
|
|
32
|
+
duration?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Real time when the media was captured as epoch timestamp in nano seconds.
|
|
35
|
+
*
|
|
36
|
+
* Only provided if source provides this timestamp e.g. as timestamp/x-ntp in RTSP.
|
|
37
|
+
*/
|
|
38
|
+
captured_at?: number;
|
|
39
|
+
/**
|
|
40
|
+
* A media specific offset.
|
|
41
|
+
*
|
|
42
|
+
* For video frames, this is the frame number of prediction.
|
|
43
|
+
* For audio samples, this is the offset of the first sample for this prediction.
|
|
44
|
+
*/
|
|
23
45
|
offset?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Offset length of the chunk used for this prediction.
|
|
48
|
+
*
|
|
49
|
+
* It has the same format as offset.
|
|
50
|
+
*/
|
|
51
|
+
offset_duration?: number;
|
|
24
52
|
}
|
|
25
53
|
interface Prediction extends StreamTime {
|
|
26
|
-
|
|
54
|
+
/**
|
|
55
|
+
* The width of the source coordinate system for all prediction coordinates.
|
|
56
|
+
*/
|
|
27
57
|
source_width: number;
|
|
58
|
+
/**
|
|
59
|
+
* The height of the source coordinate system for all prediction coordinates.
|
|
60
|
+
*/
|
|
28
61
|
source_height: number;
|
|
29
62
|
source_id?: string;
|
|
30
63
|
objects?: Array<PredictedObject>;
|
|
@@ -56,7 +89,7 @@ interface Mask {
|
|
|
56
89
|
stride: number;
|
|
57
90
|
}
|
|
58
91
|
interface PredictedObject extends PredictedClass {
|
|
59
|
-
|
|
92
|
+
trackId: number | undefined;
|
|
60
93
|
x: number;
|
|
61
94
|
y: number;
|
|
62
95
|
width: number;
|
|
@@ -576,7 +609,7 @@ interface Annotation {
|
|
|
576
609
|
auto_annotate?: string;
|
|
577
610
|
auto_annotate_params?: AutoAnnotateParams;
|
|
578
611
|
uncertainty_score?: number;
|
|
579
|
-
|
|
612
|
+
predictions: Prediction[];
|
|
580
613
|
}
|
|
581
614
|
declare enum TranscodeMode {
|
|
582
615
|
original = "original",
|
|
@@ -789,6 +822,15 @@ declare enum ModelPrecisionType {
|
|
|
789
822
|
int8 = "int8",
|
|
790
823
|
uint8 = "uint8"
|
|
791
824
|
}
|
|
825
|
+
declare enum AssetUrlType {
|
|
826
|
+
gcs = "gcs",
|
|
827
|
+
s3 = "s3",
|
|
828
|
+
https_signed = "https_signed"
|
|
829
|
+
}
|
|
830
|
+
interface DownloadResponse {
|
|
831
|
+
url: string;
|
|
832
|
+
url_type: AssetUrlType;
|
|
833
|
+
}
|
|
792
834
|
|
|
793
835
|
declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
794
836
|
private _baseUrl;
|
|
@@ -821,10 +863,10 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
821
863
|
getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset>;
|
|
822
864
|
deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
823
865
|
resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
|
|
824
|
-
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number,
|
|
866
|
+
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, predictions?: Prediction[]): Promise<void>;
|
|
825
867
|
deleteAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
826
868
|
updateAutoAnnotationStatus(asset_uuid: string, auto_annotate: string, user_review: UserReview, approved_threshold?: number): Promise<void>;
|
|
827
|
-
downloadAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, transcode_mode?: TranscodeMode): Promise<Blob>;
|
|
869
|
+
downloadAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, transcode_mode?: TranscodeMode, start_timestamp?: number, end_timestamp?: number, url_type?: AssetUrlType): Promise<Blob | DownloadResponse>;
|
|
828
870
|
previewAutoAnnotateAsset(asset_uuid: string, auto_annotate: string, auto_annotate_params?: AutoAnnotateParams): Promise<Annotation>;
|
|
829
871
|
listModels(): Promise<Model[]>;
|
|
830
872
|
findModelsForDataset(dataset_uuid: string): Promise<Model[]>;
|
|
@@ -1001,4 +1043,4 @@ declare namespace EyePop {
|
|
|
1001
1043
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
1002
1044
|
}
|
|
1003
1045
|
|
|
1004
|
-
export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DEFAULT_PREDICTION_VERSION, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, type InferenceComponent, InferenceType, type ListWorkFlowItem, type ListWorkFlowItemMetadata, type ListWorkflowItemMetadataLabels, LoadFromAssetUuidJob, LoadFromJob, LoadLiveIngressJob, LoadMediaStreamJob, type LocalAuth, type Mask, type MediaStreamSource, type Model, type ModelCreate, type ModelExport, ModelExportStatus, ModelFormat, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, ModelTask, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, MotionModel, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type PlatformSupport, 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, PredictionVersion, type QcAiHubExportParams, type ResultStream, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, Stream, type StreamEvent, type StreamSource, type StreamTime, type TrackingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, type Workflow, WorkflowPhase, EyePop as default, readableStreamFromString };
|
|
1046
|
+
export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, AssetUrlType, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DEFAULT_PREDICTION_VERSION, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, type DownloadResponse, Endpoint, EndpointState, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, type InferenceComponent, InferenceType, type ListWorkFlowItem, type ListWorkFlowItemMetadata, type ListWorkflowItemMetadataLabels, LoadFromAssetUuidJob, LoadFromJob, LoadLiveIngressJob, LoadMediaStreamJob, type LocalAuth, type Mask, type MediaStreamSource, type Model, type ModelCreate, type ModelExport, ModelExportStatus, ModelFormat, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, ModelTask, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, MotionModel, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type PlatformSupport, 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, PredictionVersion, type QcAiHubExportParams, type ResultStream, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, Stream, type StreamEvent, type StreamSource, type StreamTime, type TrackingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, type Workflow, WorkflowPhase, EyePop as default, readableStreamFromString };
|
package/dist/eyepop.index.js
CHANGED
|
@@ -8660,6 +8660,7 @@ __export(index_exports, {
|
|
|
8660
8660
|
AnnotationType: () => AnnotationType,
|
|
8661
8661
|
ArtifactType: () => ArtifactType,
|
|
8662
8662
|
AssetStatus: () => AssetStatus,
|
|
8663
|
+
AssetUrlType: () => AssetUrlType,
|
|
8663
8664
|
AutoAnnotateTask: () => AutoAnnotateTask,
|
|
8664
8665
|
ChangeType: () => ChangeType,
|
|
8665
8666
|
ContourType: () => ContourType,
|
|
@@ -10839,6 +10840,12 @@ var ModelPrecisionType = /* @__PURE__ */ ((ModelPrecisionType2) => {
|
|
|
10839
10840
|
ModelPrecisionType2["uint8"] = "uint8";
|
|
10840
10841
|
return ModelPrecisionType2;
|
|
10841
10842
|
})(ModelPrecisionType || {});
|
|
10843
|
+
var AssetUrlType = /* @__PURE__ */ ((AssetUrlType3) => {
|
|
10844
|
+
AssetUrlType3["gcs"] = "gcs";
|
|
10845
|
+
AssetUrlType3["s3"] = "s3";
|
|
10846
|
+
AssetUrlType3["https_signed"] = "https_signed";
|
|
10847
|
+
return AssetUrlType3;
|
|
10848
|
+
})(AssetUrlType || {});
|
|
10842
10849
|
|
|
10843
10850
|
// data/data_endpoint.ts
|
|
10844
10851
|
var WS_INITIAL_RECONNECT_DELAY = 1e3;
|
|
@@ -11170,12 +11177,12 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11170
11177
|
method: "POST"
|
|
11171
11178
|
});
|
|
11172
11179
|
}
|
|
11173
|
-
async updateAssetGroundTruth(asset_uuid, dataset_uuid, dataset_version,
|
|
11180
|
+
async updateAssetGroundTruth(asset_uuid, dataset_uuid, dataset_version, predictions) {
|
|
11174
11181
|
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11175
11182
|
const datasetQuery = dataset_uuid ? `&dataset_uuid=${dataset_uuid}` : "";
|
|
11176
11183
|
return this.request(`/assets/${asset_uuid}/ground_truth?${datasetQuery}${versionQuery}`, {
|
|
11177
11184
|
method: "PATCH",
|
|
11178
|
-
body: JSON.stringify(
|
|
11185
|
+
body: JSON.stringify(predictions)
|
|
11179
11186
|
});
|
|
11180
11187
|
}
|
|
11181
11188
|
async deleteAssetGroundTruth(asset_uuid, dataset_uuid, dataset_version) {
|
|
@@ -11195,12 +11202,18 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11195
11202
|
method: "PATCH"
|
|
11196
11203
|
});
|
|
11197
11204
|
}
|
|
11198
|
-
async downloadAsset(asset_uuid, dataset_uuid, dataset_version, transcode_mode = "original" /* original
|
|
11205
|
+
async downloadAsset(asset_uuid, dataset_uuid, dataset_version, transcode_mode = "original" /* original */, start_timestamp, end_timestamp, url_type) {
|
|
11199
11206
|
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11200
11207
|
const datasetQuery = dataset_uuid ? `&dataset_uuid=${dataset_uuid}` : "";
|
|
11201
|
-
|
|
11202
|
-
|
|
11203
|
-
}
|
|
11208
|
+
const startTimestampQuery = start_timestamp ? `&start_timestamp=${start_timestamp}` : "";
|
|
11209
|
+
const endTimestampQuery = end_timestamp ? `&end_timestamp=${end_timestamp}` : "";
|
|
11210
|
+
const urlTypeQuery = url_type ? `&url_type=${url_type}` : "";
|
|
11211
|
+
return this.request(
|
|
11212
|
+
`/assets/${asset_uuid}/download?transcode_mode=${transcode_mode}${datasetQuery}${versionQuery}${startTimestampQuery}${endTimestampQuery}${urlTypeQuery}`,
|
|
11213
|
+
{
|
|
11214
|
+
method: "GET"
|
|
11215
|
+
}
|
|
11216
|
+
);
|
|
11204
11217
|
}
|
|
11205
11218
|
async previewAutoAnnotateAsset(asset_uuid, auto_annotate, auto_annotate_params) {
|
|
11206
11219
|
return this.request(`/assets/${asset_uuid}/preview_auto_annotate?auto_annotate=${auto_annotate}`, {
|
|
@@ -11593,6 +11606,7 @@ var index_default = EyePop;
|
|
|
11593
11606
|
AnnotationType,
|
|
11594
11607
|
ArtifactType,
|
|
11595
11608
|
AssetStatus,
|
|
11609
|
+
AssetUrlType,
|
|
11596
11610
|
AutoAnnotateTask,
|
|
11597
11611
|
ChangeType,
|
|
11598
11612
|
ContourType,
|