@eyepop.ai/eyepop 3.14.4 → 3.14.7

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.
@@ -616,6 +616,24 @@ interface AutoPromptConfig {
616
616
  infer: InferRequest;
617
617
  evaluate: EvaluateConfig;
618
618
  }
619
+ declare enum TaskType {
620
+ classification = "classification"
621
+ }
622
+ declare enum TaskMode {
623
+ image = "image",
624
+ video = "video"
625
+ }
626
+ interface BaseTask {
627
+ type: TaskType;
628
+ task_description?: string;
629
+ task_mode?: TaskMode;
630
+ }
631
+ interface ClassificationTask extends BaseTask {
632
+ classes: string[];
633
+ dataset_uuid: string;
634
+ num_samples: number;
635
+ }
636
+ type AutoTask = ClassificationTask;
619
637
  declare enum VlmAbilityStatus {
620
638
  in_progress = "in_progress",
621
639
  draft = "draft",
@@ -665,11 +683,13 @@ interface VlmAbility {
665
683
  video_chunk_overlap?: number;
666
684
  alias_entries?: AbilityAliasEntry[];
667
685
  auto_prompt?: AutoPromptConfig;
686
+ auto_task?: AutoTask;
668
687
  }
669
688
  interface VlmAbilityGroupCreate {
670
689
  name: string;
671
690
  description: string;
672
691
  auto_prompt?: AutoPromptConfig;
692
+ auto_task?: AutoTask;
673
693
  default_alias_name?: string;
674
694
  default_dataset_uuid?: string;
675
695
  }
@@ -1227,7 +1247,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
1227
1247
  getVlmAbility(vlm_ability_uuid: string): Promise<VlmAbility>;
1228
1248
  deleteVlmAbility(vlm_ability_uuid: string): Promise<void>;
1229
1249
  updateVlmAbility(vlm_ability_uuid: string, update: VlmAbilityUpdate): Promise<VlmAbility>;
1230
- refineVlmAbility(vlm_ability_uuid: string, auto_prompt: AutoPromptConfig): Promise<VlmAbility>;
1250
+ refineVlmAbility(vlm_ability_uuid: string, auto_prompt: AutoPromptConfig | undefined, auto_task?: AutoTask | undefined): Promise<VlmAbility>;
1231
1251
  cloneVlmAbility(vlm_ability_uuid: string, account_uuid?: string, name?: string, default_alias_name?: string): Promise<VlmAbility>;
1232
1252
  publishVlmAbility(vlm_ability_uuid: string, alias_name?: string, tag_name?: string): Promise<VlmAbility>;
1233
1253
  addVlmAbilityAlias(vlm_ability_uuid: string, alias_name: string, tag_name?: string): Promise<VlmAbility>;
@@ -1385,4 +1405,4 @@ declare namespace EyePop {
1385
1405
  function dataEndpoint(opts?: DataOptions): DataEndpoint;
1386
1406
  }
1387
1407
 
1388
- export { type AbilityAliasEntry, AbstractJob, type AliasResolution, type Annotation, AnnotationInclusionMode, AnnotationType, type ApiKeyAuth, type Area, AreaType, ArtifactType, type Asset, type AssetImport, AssetInclusionMode, AssetStatus, AssetUrlType, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotate, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateStatus, AutoAnnotateTask, type AutoPromptConfig, 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 EvaluateConfig, 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, 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, type MotionDetectConfig, 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 PredictedMotion, type PredictedObject, type PredictedText, type Prediction, PredictionVersion, type ProcessParams, type ProcessRequest, 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 };
1408
+ export { type AbilityAliasEntry, AbstractJob, type AliasResolution, type Annotation, AnnotationInclusionMode, AnnotationType, type ApiKeyAuth, type Area, AreaType, ArtifactType, type Asset, type AssetImport, AssetInclusionMode, AssetStatus, AssetUrlType, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotate, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateStatus, AutoAnnotateTask, type AutoPromptConfig, type AutoTask, type BaseArea, type BaseComponent, type BaseTask, type Box, type ChangeEvent, ChangeType, type ClassificationTask, 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 EvaluateConfig, 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, 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, type MotionDetectConfig, 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 PredictedMotion, type PredictedObject, type PredictedText, type Prediction, PredictionVersion, type ProcessParams, type ProcessRequest, type QcAiHubExportParams, type RectangleArea, type ResultStream, type Roi, Semaphore, type Session, type SessionAuth, SessionStatus, type Source, Stream, type StreamEvent, type StreamSource, type StreamTime, TaskMode, TaskType, 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 };
@@ -616,6 +616,24 @@ interface AutoPromptConfig {
616
616
  infer: InferRequest;
617
617
  evaluate: EvaluateConfig;
618
618
  }
619
+ declare enum TaskType {
620
+ classification = "classification"
621
+ }
622
+ declare enum TaskMode {
623
+ image = "image",
624
+ video = "video"
625
+ }
626
+ interface BaseTask {
627
+ type: TaskType;
628
+ task_description?: string;
629
+ task_mode?: TaskMode;
630
+ }
631
+ interface ClassificationTask extends BaseTask {
632
+ classes: string[];
633
+ dataset_uuid: string;
634
+ num_samples: number;
635
+ }
636
+ type AutoTask = ClassificationTask;
619
637
  declare enum VlmAbilityStatus {
620
638
  in_progress = "in_progress",
621
639
  draft = "draft",
@@ -665,11 +683,13 @@ interface VlmAbility {
665
683
  video_chunk_overlap?: number;
666
684
  alias_entries?: AbilityAliasEntry[];
667
685
  auto_prompt?: AutoPromptConfig;
686
+ auto_task?: AutoTask;
668
687
  }
669
688
  interface VlmAbilityGroupCreate {
670
689
  name: string;
671
690
  description: string;
672
691
  auto_prompt?: AutoPromptConfig;
692
+ auto_task?: AutoTask;
673
693
  default_alias_name?: string;
674
694
  default_dataset_uuid?: string;
675
695
  }
@@ -1227,7 +1247,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
1227
1247
  getVlmAbility(vlm_ability_uuid: string): Promise<VlmAbility>;
1228
1248
  deleteVlmAbility(vlm_ability_uuid: string): Promise<void>;
1229
1249
  updateVlmAbility(vlm_ability_uuid: string, update: VlmAbilityUpdate): Promise<VlmAbility>;
1230
- refineVlmAbility(vlm_ability_uuid: string, auto_prompt: AutoPromptConfig): Promise<VlmAbility>;
1250
+ refineVlmAbility(vlm_ability_uuid: string, auto_prompt: AutoPromptConfig | undefined, auto_task?: AutoTask | undefined): Promise<VlmAbility>;
1231
1251
  cloneVlmAbility(vlm_ability_uuid: string, account_uuid?: string, name?: string, default_alias_name?: string): Promise<VlmAbility>;
1232
1252
  publishVlmAbility(vlm_ability_uuid: string, alias_name?: string, tag_name?: string): Promise<VlmAbility>;
1233
1253
  addVlmAbilityAlias(vlm_ability_uuid: string, alias_name: string, tag_name?: string): Promise<VlmAbility>;
@@ -1385,4 +1405,4 @@ declare namespace EyePop {
1385
1405
  function dataEndpoint(opts?: DataOptions): DataEndpoint;
1386
1406
  }
1387
1407
 
1388
- export { type AbilityAliasEntry, AbstractJob, type AliasResolution, type Annotation, AnnotationInclusionMode, AnnotationType, type ApiKeyAuth, type Area, AreaType, ArtifactType, type Asset, type AssetImport, AssetInclusionMode, AssetStatus, AssetUrlType, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotate, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateStatus, AutoAnnotateTask, type AutoPromptConfig, 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 EvaluateConfig, 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, 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, type MotionDetectConfig, 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 PredictedMotion, type PredictedObject, type PredictedText, type Prediction, PredictionVersion, type ProcessParams, type ProcessRequest, 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 };
1408
+ export { type AbilityAliasEntry, AbstractJob, type AliasResolution, type Annotation, AnnotationInclusionMode, AnnotationType, type ApiKeyAuth, type Area, AreaType, ArtifactType, type Asset, type AssetImport, AssetInclusionMode, AssetStatus, AssetUrlType, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotate, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateStatus, AutoAnnotateTask, type AutoPromptConfig, type AutoTask, type BaseArea, type BaseComponent, type BaseTask, type Box, type ChangeEvent, ChangeType, type ClassificationTask, 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 EvaluateConfig, 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, 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, type MotionDetectConfig, 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 PredictedMotion, type PredictedObject, type PredictedText, type Prediction, PredictionVersion, type ProcessParams, type ProcessRequest, type QcAiHubExportParams, type RectangleArea, type ResultStream, type Roi, Semaphore, type Session, type SessionAuth, SessionStatus, type Source, Stream, type StreamEvent, type StreamSource, type StreamTime, TaskMode, TaskType, 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 };
@@ -8695,6 +8695,8 @@ __export(index_exports, {
8695
8695
  Semaphore: () => Semaphore,
8696
8696
  SessionStatus: () => SessionStatus,
8697
8697
  Stream: () => Stream,
8698
+ TaskMode: () => TaskMode,
8699
+ TaskType: () => TaskType,
8698
8700
  TranscodeMode: () => TranscodeMode,
8699
8701
  TransientPopId: () => TransientPopId,
8700
8702
  UploadJob: () => UploadJob,
@@ -11073,6 +11075,15 @@ var EvaluationStatus = /* @__PURE__ */ ((EvaluationStatus2) => {
11073
11075
  EvaluationStatus2["failed"] = "failed";
11074
11076
  return EvaluationStatus2;
11075
11077
  })(EvaluationStatus || {});
11078
+ var TaskType = /* @__PURE__ */ ((TaskType2) => {
11079
+ TaskType2["classification"] = "classification";
11080
+ return TaskType2;
11081
+ })(TaskType || {});
11082
+ var TaskMode = /* @__PURE__ */ ((TaskMode2) => {
11083
+ TaskMode2["image"] = "image";
11084
+ TaskMode2["video"] = "video";
11085
+ return TaskMode2;
11086
+ })(TaskMode || {});
11076
11087
  var VlmAbilityStatus = /* @__PURE__ */ ((VlmAbilityStatus2) => {
11077
11088
  VlmAbilityStatus2["in_progress"] = "in_progress";
11078
11089
  VlmAbilityStatus2["draft"] = "draft";
@@ -11983,12 +11994,22 @@ var DataEndpoint = class extends Endpoint {
11983
11994
  headers: { "Content-Type": "application/json" }
11984
11995
  });
11985
11996
  }
11986
- async refineVlmAbility(vlm_ability_uuid, auto_prompt) {
11987
- return this.request(`/vlm_abilities/${vlm_ability_uuid}/refine`, {
11988
- method: "POST",
11989
- body: JSON.stringify(auto_prompt, omit_nulls),
11990
- headers: { "Content-Type": "application/json" }
11991
- });
11997
+ async refineVlmAbility(vlm_ability_uuid, auto_prompt, auto_task) {
11998
+ if (auto_prompt !== void 0) {
11999
+ return this.request(`/vlm_abilities/${vlm_ability_uuid}/refine`, {
12000
+ method: "POST",
12001
+ body: JSON.stringify(auto_prompt, omit_nulls),
12002
+ headers: { "Content-Type": "application/json" }
12003
+ });
12004
+ } else if (auto_task !== void 0) {
12005
+ return this.request(`/vlm_abilities/${vlm_ability_uuid}/refine_task`, {
12006
+ method: "POST",
12007
+ body: JSON.stringify(auto_task, omit_nulls),
12008
+ headers: { "Content-Type": "application/json" }
12009
+ });
12010
+ } else {
12011
+ return Promise.reject("refine vlm ability requires auto_prompt or auto_config parameter");
12012
+ }
11992
12013
  }
11993
12014
  async cloneVlmAbility(vlm_ability_uuid, account_uuid, name, default_alias_name) {
11994
12015
  const params = new URLSearchParams();
@@ -12294,6 +12315,8 @@ var index_default = EyePop;
12294
12315
  Semaphore,
12295
12316
  SessionStatus,
12296
12317
  Stream,
12318
+ TaskMode,
12319
+ TaskType,
12297
12320
  TranscodeMode,
12298
12321
  TransientPopId,
12299
12322
  UploadJob,