@eyepop.ai/eyepop 3.10.1 → 3.12.1

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.
@@ -225,6 +225,8 @@ interface InferenceComponent extends BaseComponent {
225
225
  topK?: number;
226
226
  topKClasses?: number;
227
227
  targetFps?: string;
228
+ videoChunkLengthSeconds?: number;
229
+ videoChunkOverlap?: number;
228
230
  params?: {
229
231
  [index: string]: any;
230
232
  };
@@ -680,6 +682,32 @@ declare enum TranscodeMode {
680
682
  image_cover_640 = "image_cover_640",
681
683
  image_cover_224 = "image_cover_224"
682
684
  }
685
+ declare enum AreaType {
686
+ RECTANGLE = "rectangle",
687
+ CONTOUR = "contour"
688
+ }
689
+ interface BaseArea {
690
+ type: AreaType;
691
+ }
692
+ interface RectangleArea extends BaseArea {
693
+ x: number;
694
+ y: number;
695
+ width: number;
696
+ height: number;
697
+ }
698
+ interface ContourArea extends BaseArea {
699
+ points: Point2d[];
700
+ }
701
+ type Area = RectangleArea | ContourArea;
702
+ interface TimeSpan {
703
+ start_timestamp?: number;
704
+ end_timestamp?: number;
705
+ }
706
+ interface Roi {
707
+ name: string;
708
+ area?: Area;
709
+ time_span?: TimeSpan;
710
+ }
683
711
  interface Asset {
684
712
  uuid: string;
685
713
  external_id?: string;
@@ -696,6 +724,7 @@ interface Asset {
696
724
  review_priority?: number;
697
725
  model_relevance?: number;
698
726
  annotations: Annotation[];
727
+ rois: Roi[];
699
728
  }
700
729
  declare enum ModelType {
701
730
  epdet_b1 = "epdet_b1",
@@ -1089,6 +1118,8 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
1089
1118
  updateAssetAnnotationApproval(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, auto_annotate?: string, source?: string, user_review?: UserReview, approved_threshold?: number): Promise<void>;
1090
1119
  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>;
1091
1120
  previewAutoAnnotateAsset(asset_uuid: string, auto_annotate: string, auto_annotate_params?: AutoAnnotateParams): Promise<Annotation>;
1121
+ addAssetRoi(asset_uuid: string, roi: Roi, dataset_uuid?: string, dataset_version?: number, predictions?: Prediction[]): Promise<void>;
1122
+ deleteAssetRoi(asset_uuid: string, name: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
1092
1123
  listModels(): Promise<Model[]>;
1093
1124
  findModelsForDataset(dataset_uuid: string): Promise<Model[]>;
1094
1125
  createModel(dataset_uuid: string, dataset_version: number, data: ModelCreate, start_training?: boolean): Promise<Model>;
@@ -1283,4 +1314,4 @@ declare namespace EyePop {
1283
1314
  function dataEndpoint(opts?: DataOptions): DataEndpoint;
1284
1315
  }
1285
1316
 
1286
- export { type AbilityAliasEntry, AbstractJob, type Annotation, AnnotationType, type ApiKeyAuth, ArtifactType, type Asset, type AssetImport, AssetStatus, AssetUrlType, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateStatus, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DEFAULT_PREDICTION_VERSION, DataApiType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetAutoAnnotate, type DatasetAutoAnnotateCreate, type DatasetAutoAnnotateUpdate, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, type DownloadResponse, Endpoint, EndpointState, type EvaluateFilter, type EvaluateRequest, type EvaluateResponse, type EvaluateRunInfo, EvaluationStatus, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, type InferRequest, type InferRunInfo, type InferRuntimeConfig, 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, Semaphore, type Session, type SessionAuth, SessionStatus, type Source, Stream, type StreamEvent, type StreamSource, type StreamTime, type TrackingComponent, TranscodeMode, type TransformInto, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, type VlmAbility, type VlmAbilityCreate, type VlmAbilityGroup, type VlmAbilityGroupCreate, type VlmAbilityGroupUpdate, VlmAbilityStatus, type VlmAbilityUpdate, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, type Workflow, WorkflowPhase, EyePop as default, getBaseUrl, readableStreamFromString };
1317
+ export { type AbilityAliasEntry, AbstractJob, type Annotation, AnnotationType, type ApiKeyAuth, type Area, AreaType, ArtifactType, type Asset, type AssetImport, AssetStatus, AssetUrlType, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateStatus, AutoAnnotateTask, type BaseArea, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourArea, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DEFAULT_PREDICTION_VERSION, DataApiType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetAutoAnnotate, type DatasetAutoAnnotateCreate, type DatasetAutoAnnotateUpdate, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, type DownloadResponse, Endpoint, EndpointState, type EvaluateFilter, type EvaluateRequest, type EvaluateResponse, type EvaluateRunInfo, EvaluationStatus, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, type InferRequest, type InferRunInfo, type InferRuntimeConfig, 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 RectangleArea, type ResultStream, type Roi, Semaphore, type Session, type SessionAuth, SessionStatus, type Source, Stream, type StreamEvent, type StreamSource, type StreamTime, type TimeSpan, type TrackingComponent, TranscodeMode, type TransformInto, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, type VlmAbility, type VlmAbilityCreate, type VlmAbilityGroup, type VlmAbilityGroupCreate, type VlmAbilityGroupUpdate, VlmAbilityStatus, type VlmAbilityUpdate, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, type Workflow, WorkflowPhase, EyePop as default, getBaseUrl, readableStreamFromString };
@@ -225,6 +225,8 @@ interface InferenceComponent extends BaseComponent {
225
225
  topK?: number;
226
226
  topKClasses?: number;
227
227
  targetFps?: string;
228
+ videoChunkLengthSeconds?: number;
229
+ videoChunkOverlap?: number;
228
230
  params?: {
229
231
  [index: string]: any;
230
232
  };
@@ -680,6 +682,32 @@ declare enum TranscodeMode {
680
682
  image_cover_640 = "image_cover_640",
681
683
  image_cover_224 = "image_cover_224"
682
684
  }
685
+ declare enum AreaType {
686
+ RECTANGLE = "rectangle",
687
+ CONTOUR = "contour"
688
+ }
689
+ interface BaseArea {
690
+ type: AreaType;
691
+ }
692
+ interface RectangleArea extends BaseArea {
693
+ x: number;
694
+ y: number;
695
+ width: number;
696
+ height: number;
697
+ }
698
+ interface ContourArea extends BaseArea {
699
+ points: Point2d[];
700
+ }
701
+ type Area = RectangleArea | ContourArea;
702
+ interface TimeSpan {
703
+ start_timestamp?: number;
704
+ end_timestamp?: number;
705
+ }
706
+ interface Roi {
707
+ name: string;
708
+ area?: Area;
709
+ time_span?: TimeSpan;
710
+ }
683
711
  interface Asset {
684
712
  uuid: string;
685
713
  external_id?: string;
@@ -696,6 +724,7 @@ interface Asset {
696
724
  review_priority?: number;
697
725
  model_relevance?: number;
698
726
  annotations: Annotation[];
727
+ rois: Roi[];
699
728
  }
700
729
  declare enum ModelType {
701
730
  epdet_b1 = "epdet_b1",
@@ -1089,6 +1118,8 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
1089
1118
  updateAssetAnnotationApproval(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, auto_annotate?: string, source?: string, user_review?: UserReview, approved_threshold?: number): Promise<void>;
1090
1119
  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>;
1091
1120
  previewAutoAnnotateAsset(asset_uuid: string, auto_annotate: string, auto_annotate_params?: AutoAnnotateParams): Promise<Annotation>;
1121
+ addAssetRoi(asset_uuid: string, roi: Roi, dataset_uuid?: string, dataset_version?: number, predictions?: Prediction[]): Promise<void>;
1122
+ deleteAssetRoi(asset_uuid: string, name: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
1092
1123
  listModels(): Promise<Model[]>;
1093
1124
  findModelsForDataset(dataset_uuid: string): Promise<Model[]>;
1094
1125
  createModel(dataset_uuid: string, dataset_version: number, data: ModelCreate, start_training?: boolean): Promise<Model>;
@@ -1283,4 +1314,4 @@ declare namespace EyePop {
1283
1314
  function dataEndpoint(opts?: DataOptions): DataEndpoint;
1284
1315
  }
1285
1316
 
1286
- export { type AbilityAliasEntry, AbstractJob, type Annotation, AnnotationType, type ApiKeyAuth, ArtifactType, type Asset, type AssetImport, AssetStatus, AssetUrlType, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateStatus, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DEFAULT_PREDICTION_VERSION, DataApiType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetAutoAnnotate, type DatasetAutoAnnotateCreate, type DatasetAutoAnnotateUpdate, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, type DownloadResponse, Endpoint, EndpointState, type EvaluateFilter, type EvaluateRequest, type EvaluateResponse, type EvaluateRunInfo, EvaluationStatus, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, type InferRequest, type InferRunInfo, type InferRuntimeConfig, 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, Semaphore, type Session, type SessionAuth, SessionStatus, type Source, Stream, type StreamEvent, type StreamSource, type StreamTime, type TrackingComponent, TranscodeMode, type TransformInto, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, type VlmAbility, type VlmAbilityCreate, type VlmAbilityGroup, type VlmAbilityGroupCreate, type VlmAbilityGroupUpdate, VlmAbilityStatus, type VlmAbilityUpdate, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, type Workflow, WorkflowPhase, EyePop as default, getBaseUrl, readableStreamFromString };
1317
+ export { type AbilityAliasEntry, AbstractJob, type Annotation, AnnotationType, type ApiKeyAuth, type Area, AreaType, ArtifactType, type Asset, type AssetImport, AssetStatus, AssetUrlType, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateStatus, AutoAnnotateTask, type BaseArea, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourArea, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DEFAULT_PREDICTION_VERSION, DataApiType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetAutoAnnotate, type DatasetAutoAnnotateCreate, type DatasetAutoAnnotateUpdate, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, type DownloadResponse, Endpoint, EndpointState, type EvaluateFilter, type EvaluateRequest, type EvaluateResponse, type EvaluateRunInfo, EvaluationStatus, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, type InferRequest, type InferRunInfo, type InferRuntimeConfig, 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 RectangleArea, type ResultStream, type Roi, Semaphore, type Session, type SessionAuth, SessionStatus, type Source, Stream, type StreamEvent, type StreamSource, type StreamTime, type TimeSpan, type TrackingComponent, TranscodeMode, type TransformInto, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, type VlmAbility, type VlmAbilityCreate, type VlmAbilityGroup, type VlmAbilityGroupCreate, type VlmAbilityGroupUpdate, VlmAbilityStatus, type VlmAbilityUpdate, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, type Workflow, WorkflowPhase, EyePop as default, getBaseUrl, readableStreamFromString };
@@ -8658,6 +8658,7 @@ var index_exports = {};
8658
8658
  __export(index_exports, {
8659
8659
  AbstractJob: () => AbstractJob,
8660
8660
  AnnotationType: () => AnnotationType,
8661
+ AreaType: () => AreaType,
8661
8662
  ArtifactType: () => ArtifactType,
8662
8663
  AssetStatus: () => AssetStatus,
8663
8664
  AssetUrlType: () => AssetUrlType,
@@ -10898,6 +10899,11 @@ var TranscodeMode = /* @__PURE__ */ ((TranscodeMode2) => {
10898
10899
  TranscodeMode2["image_cover_224"] = "image_cover_224";
10899
10900
  return TranscodeMode2;
10900
10901
  })(TranscodeMode || {});
10902
+ var AreaType = /* @__PURE__ */ ((AreaType2) => {
10903
+ AreaType2["RECTANGLE"] = "rectangle";
10904
+ AreaType2["CONTOUR"] = "contour";
10905
+ return AreaType2;
10906
+ })(AreaType || {});
10901
10907
  var ModelType = /* @__PURE__ */ ((ModelType2) => {
10902
10908
  ModelType2["epdet_b1"] = "epdet_b1";
10903
10909
  ModelType2["imported"] = "imported";
@@ -11585,6 +11591,22 @@ var DataEndpoint = class extends Endpoint {
11585
11591
  headers: auto_annotate_params ? { "Content-Type": "application/json" } : {}
11586
11592
  });
11587
11593
  }
11594
+ async addAssetRoi(asset_uuid, roi, dataset_uuid, dataset_version, predictions) {
11595
+ const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
11596
+ const datasetQuery = dataset_uuid ? `&dataset_uuid=${dataset_uuid}` : "";
11597
+ return this.request(`/assets/${asset_uuid}/rois?${datasetQuery}${versionQuery}`, {
11598
+ method: "POST",
11599
+ body: JSON.stringify(roi),
11600
+ headers: { "Content-Type": "application/json" }
11601
+ });
11602
+ }
11603
+ async deleteAssetRoi(asset_uuid, name, dataset_uuid, dataset_version) {
11604
+ const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
11605
+ const datasetQuery = dataset_uuid ? `&dataset_uuid=${dataset_uuid}` : "";
11606
+ return this.request(`/assets/${asset_uuid}/rois/${encodeURIComponent(name)}?${datasetQuery}${versionQuery}`, {
11607
+ method: "DELETE"
11608
+ });
11609
+ }
11588
11610
  // Model methods
11589
11611
  async listModels() {
11590
11612
  return this.request(`/models?account_uuid=${this._accountId}`, {
@@ -12126,6 +12148,7 @@ var index_default = EyePop;
12126
12148
  0 && (module.exports = {
12127
12149
  AbstractJob,
12128
12150
  AnnotationType,
12151
+ AreaType,
12129
12152
  ArtifactType,
12130
12153
  AssetStatus,
12131
12154
  AssetUrlType,