@eyepop.ai/eyepop 3.14.4 → 3.14.6

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,19 @@ interface AutoPromptConfig {
616
616
  infer: InferRequest;
617
617
  evaluate: EvaluateConfig;
618
618
  }
619
+ declare enum TaskType {
620
+ classification = "classification"
621
+ }
622
+ interface BaseTask {
623
+ type: TaskType;
624
+ task_description?: string;
625
+ }
626
+ interface ClassificationTask extends BaseTask {
627
+ classes: string[];
628
+ dataset_uuid: string;
629
+ num_samples: number;
630
+ }
631
+ type AutoTask = ClassificationTask;
619
632
  declare enum VlmAbilityStatus {
620
633
  in_progress = "in_progress",
621
634
  draft = "draft",
@@ -665,11 +678,13 @@ interface VlmAbility {
665
678
  video_chunk_overlap?: number;
666
679
  alias_entries?: AbilityAliasEntry[];
667
680
  auto_prompt?: AutoPromptConfig;
681
+ auto_task?: AutoTask;
668
682
  }
669
683
  interface VlmAbilityGroupCreate {
670
684
  name: string;
671
685
  description: string;
672
686
  auto_prompt?: AutoPromptConfig;
687
+ auto_task?: AutoTask;
673
688
  default_alias_name?: string;
674
689
  default_dataset_uuid?: string;
675
690
  }
@@ -1227,7 +1242,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
1227
1242
  getVlmAbility(vlm_ability_uuid: string): Promise<VlmAbility>;
1228
1243
  deleteVlmAbility(vlm_ability_uuid: string): Promise<void>;
1229
1244
  updateVlmAbility(vlm_ability_uuid: string, update: VlmAbilityUpdate): Promise<VlmAbility>;
1230
- refineVlmAbility(vlm_ability_uuid: string, auto_prompt: AutoPromptConfig): Promise<VlmAbility>;
1245
+ refineVlmAbility(vlm_ability_uuid: string, auto_prompt: AutoPromptConfig | undefined, auto_task?: AutoTask | undefined): Promise<VlmAbility>;
1231
1246
  cloneVlmAbility(vlm_ability_uuid: string, account_uuid?: string, name?: string, default_alias_name?: string): Promise<VlmAbility>;
1232
1247
  publishVlmAbility(vlm_ability_uuid: string, alias_name?: string, tag_name?: string): Promise<VlmAbility>;
1233
1248
  addVlmAbilityAlias(vlm_ability_uuid: string, alias_name: string, tag_name?: string): Promise<VlmAbility>;
@@ -1385,4 +1400,4 @@ declare namespace EyePop {
1385
1400
  function dataEndpoint(opts?: DataOptions): DataEndpoint;
1386
1401
  }
1387
1402
 
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 };
1403
+ 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, 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,19 @@ interface AutoPromptConfig {
616
616
  infer: InferRequest;
617
617
  evaluate: EvaluateConfig;
618
618
  }
619
+ declare enum TaskType {
620
+ classification = "classification"
621
+ }
622
+ interface BaseTask {
623
+ type: TaskType;
624
+ task_description?: string;
625
+ }
626
+ interface ClassificationTask extends BaseTask {
627
+ classes: string[];
628
+ dataset_uuid: string;
629
+ num_samples: number;
630
+ }
631
+ type AutoTask = ClassificationTask;
619
632
  declare enum VlmAbilityStatus {
620
633
  in_progress = "in_progress",
621
634
  draft = "draft",
@@ -665,11 +678,13 @@ interface VlmAbility {
665
678
  video_chunk_overlap?: number;
666
679
  alias_entries?: AbilityAliasEntry[];
667
680
  auto_prompt?: AutoPromptConfig;
681
+ auto_task?: AutoTask;
668
682
  }
669
683
  interface VlmAbilityGroupCreate {
670
684
  name: string;
671
685
  description: string;
672
686
  auto_prompt?: AutoPromptConfig;
687
+ auto_task?: AutoTask;
673
688
  default_alias_name?: string;
674
689
  default_dataset_uuid?: string;
675
690
  }
@@ -1227,7 +1242,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
1227
1242
  getVlmAbility(vlm_ability_uuid: string): Promise<VlmAbility>;
1228
1243
  deleteVlmAbility(vlm_ability_uuid: string): Promise<void>;
1229
1244
  updateVlmAbility(vlm_ability_uuid: string, update: VlmAbilityUpdate): Promise<VlmAbility>;
1230
- refineVlmAbility(vlm_ability_uuid: string, auto_prompt: AutoPromptConfig): Promise<VlmAbility>;
1245
+ refineVlmAbility(vlm_ability_uuid: string, auto_prompt: AutoPromptConfig | undefined, auto_task?: AutoTask | undefined): Promise<VlmAbility>;
1231
1246
  cloneVlmAbility(vlm_ability_uuid: string, account_uuid?: string, name?: string, default_alias_name?: string): Promise<VlmAbility>;
1232
1247
  publishVlmAbility(vlm_ability_uuid: string, alias_name?: string, tag_name?: string): Promise<VlmAbility>;
1233
1248
  addVlmAbilityAlias(vlm_ability_uuid: string, alias_name: string, tag_name?: string): Promise<VlmAbility>;
@@ -1385,4 +1400,4 @@ declare namespace EyePop {
1385
1400
  function dataEndpoint(opts?: DataOptions): DataEndpoint;
1386
1401
  }
1387
1402
 
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 };
1403
+ 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, 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,7 @@ __export(index_exports, {
8695
8695
  Semaphore: () => Semaphore,
8696
8696
  SessionStatus: () => SessionStatus,
8697
8697
  Stream: () => Stream,
8698
+ TaskType: () => TaskType,
8698
8699
  TranscodeMode: () => TranscodeMode,
8699
8700
  TransientPopId: () => TransientPopId,
8700
8701
  UploadJob: () => UploadJob,
@@ -11073,6 +11074,10 @@ var EvaluationStatus = /* @__PURE__ */ ((EvaluationStatus2) => {
11073
11074
  EvaluationStatus2["failed"] = "failed";
11074
11075
  return EvaluationStatus2;
11075
11076
  })(EvaluationStatus || {});
11077
+ var TaskType = /* @__PURE__ */ ((TaskType2) => {
11078
+ TaskType2["classification"] = "classification";
11079
+ return TaskType2;
11080
+ })(TaskType || {});
11076
11081
  var VlmAbilityStatus = /* @__PURE__ */ ((VlmAbilityStatus2) => {
11077
11082
  VlmAbilityStatus2["in_progress"] = "in_progress";
11078
11083
  VlmAbilityStatus2["draft"] = "draft";
@@ -11983,12 +11988,22 @@ var DataEndpoint = class extends Endpoint {
11983
11988
  headers: { "Content-Type": "application/json" }
11984
11989
  });
11985
11990
  }
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
- });
11991
+ async refineVlmAbility(vlm_ability_uuid, auto_prompt, auto_task) {
11992
+ if (auto_prompt !== void 0) {
11993
+ return this.request(`/vlm_abilities/${vlm_ability_uuid}/refine`, {
11994
+ method: "POST",
11995
+ body: JSON.stringify(auto_prompt, omit_nulls),
11996
+ headers: { "Content-Type": "application/json" }
11997
+ });
11998
+ } else if (auto_task !== void 0) {
11999
+ return this.request(`/vlm_abilities/${vlm_ability_uuid}/refine_task`, {
12000
+ method: "POST",
12001
+ body: JSON.stringify(auto_task, omit_nulls),
12002
+ headers: { "Content-Type": "application/json" }
12003
+ });
12004
+ } else {
12005
+ return Promise.reject("refine vlm ability requires auto_prompt or auto_config parameter");
12006
+ }
11992
12007
  }
11993
12008
  async cloneVlmAbility(vlm_ability_uuid, account_uuid, name, default_alias_name) {
11994
12009
  const params = new URLSearchParams();
@@ -12294,6 +12309,7 @@ var index_default = EyePop;
12294
12309
  Semaphore,
12295
12310
  SessionStatus,
12296
12311
  Stream,
12312
+ TaskType,
12297
12313
  TranscodeMode,
12298
12314
  TransientPopId,
12299
12315
  UploadJob,