@eyepop.ai/eyepop 3.12.2 → 3.14.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.
@@ -524,6 +524,7 @@ declare enum DataApiType {
524
524
  dataset = "dataset",
525
525
  vlm = "vlm"
526
526
  }
527
+ type AutoAnnotate = string;
527
528
  interface DataSession extends Session {
528
529
  readonly accountId: string;
529
530
  readonly datasetApiUrl: string | undefined;
@@ -644,6 +645,18 @@ declare enum UserReview {
644
645
  rejected = "rejected",
645
646
  unknown = "unknown"
646
647
  }
648
+ declare enum AssetInclusionMode {
649
+ all_assets = "all_assets",
650
+ annotated_only = "annotated_only",
651
+ manual_annotated_only = "manual_annotated_only",
652
+ auto_annotated_only = "auto_annotated_only"
653
+ }
654
+ declare enum AnnotationInclusionMode {
655
+ all = "all",
656
+ user_reviewed = "user_reviewed",
657
+ user_approved = "user_approved",
658
+ ground_truth = "ground_truth"
659
+ }
647
660
  interface AutoAnnotatePrompt {
648
661
  prompt: string;
649
662
  label: string;
@@ -929,6 +942,7 @@ interface InferRuntimeConfig {
929
942
  min_frames?: number;
930
943
  max_aspect_ratio?: number;
931
944
  context_length?: number;
945
+ roi?: Area;
932
946
  }
933
947
  interface TransformInto {
934
948
  classes?: string[];
@@ -944,14 +958,16 @@ interface EvaluateFilter {
944
958
  partitions?: string[];
945
959
  ground_truth_classes?: string[];
946
960
  }
947
- interface EvaluateRequest {
948
- ability_uuid?: string;
949
- infer?: InferRequest;
961
+ interface EvaluateConfig {
950
962
  dataset_uuid: string;
951
963
  filter?: EvaluateFilter;
952
964
  video_chunk_length_ns?: number;
953
965
  video_chunk_overlap?: number;
954
966
  }
967
+ interface EvaluateRequest extends EvaluateConfig {
968
+ ability_uuid?: string;
969
+ infer?: InferRequest;
970
+ }
955
971
  declare enum EvaluationStatus {
956
972
  success = "success",
957
973
  failed = "failed"
@@ -984,7 +1000,14 @@ interface InferRunInfo {
984
1000
  output_tokens?: number;
985
1001
  aspect_ratio?: number;
986
1002
  }
1003
+ interface AutoPromptConfig {
1004
+ num_samples: number;
1005
+ task_description?: string;
1006
+ infer: InferRequest;
1007
+ evaluate: EvaluateConfig;
1008
+ }
987
1009
  declare enum VlmAbilityStatus {
1010
+ in_progress = "in_progress",
988
1011
  draft = "draft",
989
1012
  published = "published"
990
1013
  }
@@ -1000,6 +1023,8 @@ interface VlmAbilityCreate {
1000
1023
  transform_into: TransformInto;
1001
1024
  config: InferRuntimeConfig;
1002
1025
  is_public: boolean;
1026
+ video_chunk_length_ns?: number;
1027
+ video_chunk_overlap?: number;
1003
1028
  }
1004
1029
  interface VlmAbilityUpdate {
1005
1030
  name?: string;
@@ -1009,6 +1034,8 @@ interface VlmAbilityUpdate {
1009
1034
  transform_into?: TransformInto;
1010
1035
  config?: InferRuntimeConfig;
1011
1036
  is_public?: boolean;
1037
+ video_chunk_length_ns?: number;
1038
+ video_chunk_overlap?: number;
1012
1039
  }
1013
1040
  interface VlmAbility {
1014
1041
  uuid: string;
@@ -1024,11 +1051,15 @@ interface VlmAbility {
1024
1051
  text_prompt: string;
1025
1052
  transform_into: TransformInto;
1026
1053
  config: InferRuntimeConfig;
1054
+ video_chunk_length_ns?: number;
1055
+ video_chunk_overlap?: number;
1027
1056
  alias_entries?: AbilityAliasEntry[];
1057
+ auto_prompt?: AutoPromptConfig;
1028
1058
  }
1029
1059
  interface VlmAbilityGroupCreate {
1030
1060
  name: string;
1031
1061
  description: string;
1062
+ auto_prompt?: AutoPromptConfig;
1032
1063
  default_alias_name?: string;
1033
1064
  default_dataset_uuid?: string;
1034
1065
  }
@@ -1107,7 +1138,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
1107
1138
  listDatasetAutoAnnotates(dataset_uuid: string, auto_annotate?: string, source?: string, dataset_version?: number): Promise<DatasetAutoAnnotate[]>;
1108
1139
  uploadAsset(dataset_uuid: string, dataset_version: number | undefined, blob: Blob, external_id?: string | undefined): Promise<Asset>;
1109
1140
  importAsset(dataset_uuid: string, dataset_version: number | undefined, asset_import: AssetImport, external_id?: string | undefined): Promise<Asset>;
1110
- listAssets(dataset_uuid: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset[]>;
1141
+ listAssets(dataset_uuid: string, dataset_version?: number, include_annotations?: boolean, top_k?: number, inclusion_mode?: AssetInclusionMode, annotation_inclusion_mode?: AnnotationInclusionMode, include_partitions?: string[], include_auto_annotates?: AutoAnnotate[], include_sources?: string[]): Promise<Asset[]>;
1111
1142
  getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset>;
1112
1143
  deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
1113
1144
  resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
@@ -1153,6 +1184,8 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
1153
1184
  getVlmAbility(vlm_ability_uuid: string): Promise<VlmAbility>;
1154
1185
  deleteVlmAbility(vlm_ability_uuid: string): Promise<void>;
1155
1186
  updateVlmAbility(vlm_ability_uuid: string, update: VlmAbilityUpdate): Promise<VlmAbility>;
1187
+ refineVlmAbility(vlm_ability_uuid: string, auto_prompt: AutoPromptConfig): Promise<VlmAbility>;
1188
+ cloneVlmAbility(vlm_ability_uuid: string, account_uuid?: string, name?: string, default_alias_name?: string): Promise<VlmAbility>;
1156
1189
  publishVlmAbility(vlm_ability_uuid: string, alias_name?: string, tag_name?: string): Promise<VlmAbility>;
1157
1190
  addVlmAbilityAlias(vlm_ability_uuid: string, alias_name: string, tag_name?: string): Promise<VlmAbility>;
1158
1191
  removeVlmAbilityAlias(vlm_ability_uuid: string, alias_name: string, tag_name: string): Promise<VlmAbility>;
@@ -1314,4 +1347,4 @@ declare namespace EyePop {
1314
1347
  function dataEndpoint(opts?: DataOptions): DataEndpoint;
1315
1348
  }
1316
1349
 
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 };
1350
+ export { type AbilityAliasEntry, AbstractJob, 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, 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 };
@@ -524,6 +524,7 @@ declare enum DataApiType {
524
524
  dataset = "dataset",
525
525
  vlm = "vlm"
526
526
  }
527
+ type AutoAnnotate = string;
527
528
  interface DataSession extends Session {
528
529
  readonly accountId: string;
529
530
  readonly datasetApiUrl: string | undefined;
@@ -644,6 +645,18 @@ declare enum UserReview {
644
645
  rejected = "rejected",
645
646
  unknown = "unknown"
646
647
  }
648
+ declare enum AssetInclusionMode {
649
+ all_assets = "all_assets",
650
+ annotated_only = "annotated_only",
651
+ manual_annotated_only = "manual_annotated_only",
652
+ auto_annotated_only = "auto_annotated_only"
653
+ }
654
+ declare enum AnnotationInclusionMode {
655
+ all = "all",
656
+ user_reviewed = "user_reviewed",
657
+ user_approved = "user_approved",
658
+ ground_truth = "ground_truth"
659
+ }
647
660
  interface AutoAnnotatePrompt {
648
661
  prompt: string;
649
662
  label: string;
@@ -929,6 +942,7 @@ interface InferRuntimeConfig {
929
942
  min_frames?: number;
930
943
  max_aspect_ratio?: number;
931
944
  context_length?: number;
945
+ roi?: Area;
932
946
  }
933
947
  interface TransformInto {
934
948
  classes?: string[];
@@ -944,14 +958,16 @@ interface EvaluateFilter {
944
958
  partitions?: string[];
945
959
  ground_truth_classes?: string[];
946
960
  }
947
- interface EvaluateRequest {
948
- ability_uuid?: string;
949
- infer?: InferRequest;
961
+ interface EvaluateConfig {
950
962
  dataset_uuid: string;
951
963
  filter?: EvaluateFilter;
952
964
  video_chunk_length_ns?: number;
953
965
  video_chunk_overlap?: number;
954
966
  }
967
+ interface EvaluateRequest extends EvaluateConfig {
968
+ ability_uuid?: string;
969
+ infer?: InferRequest;
970
+ }
955
971
  declare enum EvaluationStatus {
956
972
  success = "success",
957
973
  failed = "failed"
@@ -984,7 +1000,14 @@ interface InferRunInfo {
984
1000
  output_tokens?: number;
985
1001
  aspect_ratio?: number;
986
1002
  }
1003
+ interface AutoPromptConfig {
1004
+ num_samples: number;
1005
+ task_description?: string;
1006
+ infer: InferRequest;
1007
+ evaluate: EvaluateConfig;
1008
+ }
987
1009
  declare enum VlmAbilityStatus {
1010
+ in_progress = "in_progress",
988
1011
  draft = "draft",
989
1012
  published = "published"
990
1013
  }
@@ -1000,6 +1023,8 @@ interface VlmAbilityCreate {
1000
1023
  transform_into: TransformInto;
1001
1024
  config: InferRuntimeConfig;
1002
1025
  is_public: boolean;
1026
+ video_chunk_length_ns?: number;
1027
+ video_chunk_overlap?: number;
1003
1028
  }
1004
1029
  interface VlmAbilityUpdate {
1005
1030
  name?: string;
@@ -1009,6 +1034,8 @@ interface VlmAbilityUpdate {
1009
1034
  transform_into?: TransformInto;
1010
1035
  config?: InferRuntimeConfig;
1011
1036
  is_public?: boolean;
1037
+ video_chunk_length_ns?: number;
1038
+ video_chunk_overlap?: number;
1012
1039
  }
1013
1040
  interface VlmAbility {
1014
1041
  uuid: string;
@@ -1024,11 +1051,15 @@ interface VlmAbility {
1024
1051
  text_prompt: string;
1025
1052
  transform_into: TransformInto;
1026
1053
  config: InferRuntimeConfig;
1054
+ video_chunk_length_ns?: number;
1055
+ video_chunk_overlap?: number;
1027
1056
  alias_entries?: AbilityAliasEntry[];
1057
+ auto_prompt?: AutoPromptConfig;
1028
1058
  }
1029
1059
  interface VlmAbilityGroupCreate {
1030
1060
  name: string;
1031
1061
  description: string;
1062
+ auto_prompt?: AutoPromptConfig;
1032
1063
  default_alias_name?: string;
1033
1064
  default_dataset_uuid?: string;
1034
1065
  }
@@ -1107,7 +1138,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
1107
1138
  listDatasetAutoAnnotates(dataset_uuid: string, auto_annotate?: string, source?: string, dataset_version?: number): Promise<DatasetAutoAnnotate[]>;
1108
1139
  uploadAsset(dataset_uuid: string, dataset_version: number | undefined, blob: Blob, external_id?: string | undefined): Promise<Asset>;
1109
1140
  importAsset(dataset_uuid: string, dataset_version: number | undefined, asset_import: AssetImport, external_id?: string | undefined): Promise<Asset>;
1110
- listAssets(dataset_uuid: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset[]>;
1141
+ listAssets(dataset_uuid: string, dataset_version?: number, include_annotations?: boolean, top_k?: number, inclusion_mode?: AssetInclusionMode, annotation_inclusion_mode?: AnnotationInclusionMode, include_partitions?: string[], include_auto_annotates?: AutoAnnotate[], include_sources?: string[]): Promise<Asset[]>;
1111
1142
  getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset>;
1112
1143
  deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
1113
1144
  resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
@@ -1153,6 +1184,8 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
1153
1184
  getVlmAbility(vlm_ability_uuid: string): Promise<VlmAbility>;
1154
1185
  deleteVlmAbility(vlm_ability_uuid: string): Promise<void>;
1155
1186
  updateVlmAbility(vlm_ability_uuid: string, update: VlmAbilityUpdate): Promise<VlmAbility>;
1187
+ refineVlmAbility(vlm_ability_uuid: string, auto_prompt: AutoPromptConfig): Promise<VlmAbility>;
1188
+ cloneVlmAbility(vlm_ability_uuid: string, account_uuid?: string, name?: string, default_alias_name?: string): Promise<VlmAbility>;
1156
1189
  publishVlmAbility(vlm_ability_uuid: string, alias_name?: string, tag_name?: string): Promise<VlmAbility>;
1157
1190
  addVlmAbilityAlias(vlm_ability_uuid: string, alias_name: string, tag_name?: string): Promise<VlmAbility>;
1158
1191
  removeVlmAbilityAlias(vlm_ability_uuid: string, alias_name: string, tag_name: string): Promise<VlmAbility>;
@@ -1314,4 +1347,4 @@ declare namespace EyePop {
1314
1347
  function dataEndpoint(opts?: DataOptions): DataEndpoint;
1315
1348
  }
1316
1349
 
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 };
1350
+ export { type AbilityAliasEntry, AbstractJob, 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, 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 };
@@ -8657,9 +8657,11 @@ var require_mime_types = __commonJS({
8657
8657
  var index_exports = {};
8658
8658
  __export(index_exports, {
8659
8659
  AbstractJob: () => AbstractJob,
8660
+ AnnotationInclusionMode: () => AnnotationInclusionMode,
8660
8661
  AnnotationType: () => AnnotationType,
8661
8662
  AreaType: () => AreaType,
8662
8663
  ArtifactType: () => ArtifactType,
8664
+ AssetInclusionMode: () => AssetInclusionMode,
8663
8665
  AssetStatus: () => AssetStatus,
8664
8666
  AssetUrlType: () => AssetUrlType,
8665
8667
  AutoAnnotateStatus: () => AutoAnnotateStatus,
@@ -10882,6 +10884,20 @@ var UserReview = /* @__PURE__ */ ((UserReview2) => {
10882
10884
  UserReview2["unknown"] = "unknown";
10883
10885
  return UserReview2;
10884
10886
  })(UserReview || {});
10887
+ var AssetInclusionMode = /* @__PURE__ */ ((AssetInclusionMode3) => {
10888
+ AssetInclusionMode3["all_assets"] = "all_assets";
10889
+ AssetInclusionMode3["annotated_only"] = "annotated_only";
10890
+ AssetInclusionMode3["manual_annotated_only"] = "manual_annotated_only";
10891
+ AssetInclusionMode3["auto_annotated_only"] = "auto_annotated_only";
10892
+ return AssetInclusionMode3;
10893
+ })(AssetInclusionMode || {});
10894
+ var AnnotationInclusionMode = /* @__PURE__ */ ((AnnotationInclusionMode3) => {
10895
+ AnnotationInclusionMode3["all"] = "all";
10896
+ AnnotationInclusionMode3["user_reviewed"] = "user_reviewed";
10897
+ AnnotationInclusionMode3["user_approved"] = "user_approved";
10898
+ AnnotationInclusionMode3["ground_truth"] = "ground_truth";
10899
+ return AnnotationInclusionMode3;
10900
+ })(AnnotationInclusionMode || {});
10885
10901
  var AutoAnnotateTask = /* @__PURE__ */ ((AutoAnnotateTask2) => {
10886
10902
  AutoAnnotateTask2["object_detection"] = "object_detection";
10887
10903
  AutoAnnotateTask2["image_classification"] = "image_classification";
@@ -11012,6 +11028,7 @@ var EvaluationStatus = /* @__PURE__ */ ((EvaluationStatus2) => {
11012
11028
  return EvaluationStatus2;
11013
11029
  })(EvaluationStatus || {});
11014
11030
  var VlmAbilityStatus = /* @__PURE__ */ ((VlmAbilityStatus2) => {
11031
+ VlmAbilityStatus2["in_progress"] = "in_progress";
11015
11032
  VlmAbilityStatus2["draft"] = "draft";
11016
11033
  VlmAbilityStatus2["published"] = "published";
11017
11034
  return VlmAbilityStatus2;
@@ -11165,6 +11182,12 @@ var EvaluateDatasetJob = class {
11165
11182
  // data/data_endpoint.ts
11166
11183
  var WS_INITIAL_RECONNECT_DELAY = 1e3;
11167
11184
  var WS_MAX_RECONNECT_DELAY = 6e4;
11185
+ function omit_nulls(_, value) {
11186
+ if (value === null) {
11187
+ return void 0;
11188
+ }
11189
+ return value;
11190
+ }
11168
11191
  var DataEndpoint = class extends Endpoint {
11169
11192
  constructor(options) {
11170
11193
  super(options);
@@ -11494,11 +11517,18 @@ var DataEndpoint = class extends Endpoint {
11494
11517
  }
11495
11518
  });
11496
11519
  }
11497
- async listAssets(dataset_uuid, dataset_version, include_annotations = false, top_k) {
11498
- const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
11499
- const annotationsQuery = include_annotations ? "&include_annotations=true" : "";
11500
- const topKQuery = top_k ? `&top_k=${top_k}` : "";
11501
- return this.request(`/assets?dataset_uuid=${dataset_uuid}${versionQuery}${annotationsQuery}${topKQuery}`, {
11520
+ async listAssets(dataset_uuid, dataset_version, include_annotations = false, top_k, inclusion_mode, annotation_inclusion_mode, include_partitions, include_auto_annotates, include_sources) {
11521
+ const params = new URLSearchParams();
11522
+ params.set("dataset_uuid", dataset_uuid);
11523
+ if (dataset_version != null) params.set("dataset_version", String(dataset_version));
11524
+ if (include_annotations) params.set("include_annotations", "true");
11525
+ if (inclusion_mode != null) params.set("inclusion_mode", inclusion_mode);
11526
+ if (annotation_inclusion_mode != null) params.set("annotation_inclusion_mode", annotation_inclusion_mode);
11527
+ for (const p of include_partitions ?? []) params.append("include_partition", p);
11528
+ for (const a of include_auto_annotates ?? []) params.append("include_auto_annotate", a);
11529
+ for (const s of include_sources ?? []) params.append("include_source", s);
11530
+ if (top_k != null) params.set("top_k", String(top_k));
11531
+ return this.request(`/assets?${params.toString()}`, {
11502
11532
  method: "GET"
11503
11533
  });
11504
11534
  }
@@ -11856,7 +11886,7 @@ var DataEndpoint = class extends Endpoint {
11856
11886
  async createVlmAbilityGroup(create) {
11857
11887
  return this.request(`/vlm_ability_groups?account_uuid=${this._accountId}`, {
11858
11888
  method: "POST",
11859
- body: JSON.stringify(create),
11889
+ body: JSON.stringify(create, omit_nulls),
11860
11890
  headers: { "Content-Type": "application/json" }
11861
11891
  });
11862
11892
  }
@@ -11886,7 +11916,7 @@ var DataEndpoint = class extends Endpoint {
11886
11916
  const groupQuery = vlm_ability_group_uuid ? `&vlm_ability_group_uuid=${vlm_ability_group_uuid}` : "";
11887
11917
  return this.request(`/vlm_abilities?account_uuid=${this._accountId}${groupQuery}`, {
11888
11918
  method: "POST",
11889
- body: JSON.stringify(create),
11919
+ body: JSON.stringify(create, omit_nulls),
11890
11920
  headers: { "Content-Type": "application/json" }
11891
11921
  });
11892
11922
  }
@@ -11907,6 +11937,30 @@ var DataEndpoint = class extends Endpoint {
11907
11937
  headers: { "Content-Type": "application/json" }
11908
11938
  });
11909
11939
  }
11940
+ async refineVlmAbility(vlm_ability_uuid, auto_prompt) {
11941
+ return this.request(`/vlm_abilities/${vlm_ability_uuid}/refine`, {
11942
+ method: "POST",
11943
+ body: JSON.stringify(auto_prompt, omit_nulls),
11944
+ headers: { "Content-Type": "application/json" }
11945
+ });
11946
+ }
11947
+ async cloneVlmAbility(vlm_ability_uuid, account_uuid, name, default_alias_name) {
11948
+ const params = new URLSearchParams();
11949
+ if (account_uuid) {
11950
+ params.set("account_uuid", account_uuid);
11951
+ } else if (this._accountId) {
11952
+ params.set("account_uuid", this._accountId);
11953
+ }
11954
+ if (name) {
11955
+ params.set("name", name);
11956
+ }
11957
+ if (default_alias_name) {
11958
+ params.set("default_alias_name", default_alias_name);
11959
+ }
11960
+ return this.request(`/vlm_abilities/${vlm_ability_uuid}/clone?${params.toString()}`, {
11961
+ method: "POST"
11962
+ });
11963
+ }
11910
11964
  async publishVlmAbility(vlm_ability_uuid, alias_name, tag_name) {
11911
11965
  const alias_name_query = alias_name ? `alias_name=${encodeURIComponent(alias_name)}&` : "";
11912
11966
  const tag_name_query = tag_name ? `tag_name=${encodeURIComponent(tag_name)}&` : "";
@@ -12147,9 +12201,11 @@ var index_default = EyePop;
12147
12201
  // Annotate the CommonJS export names for ESM import in node:
12148
12202
  0 && (module.exports = {
12149
12203
  AbstractJob,
12204
+ AnnotationInclusionMode,
12150
12205
  AnnotationType,
12151
12206
  AreaType,
12152
12207
  ArtifactType,
12208
+ AssetInclusionMode,
12153
12209
  AssetStatus,
12154
12210
  AssetUrlType,
12155
12211
  AutoAnnotateStatus,