@eyepop.ai/eyepop 3.12.3 → 3.14.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.
@@ -942,6 +942,7 @@ interface InferRuntimeConfig {
942
942
  min_frames?: number;
943
943
  max_aspect_ratio?: number;
944
944
  context_length?: number;
945
+ roi?: Area;
945
946
  }
946
947
  interface TransformInto {
947
948
  classes?: string[];
@@ -957,14 +958,16 @@ interface EvaluateFilter {
957
958
  partitions?: string[];
958
959
  ground_truth_classes?: string[];
959
960
  }
960
- interface EvaluateRequest {
961
- ability_uuid?: string;
962
- infer?: InferRequest;
961
+ interface EvaluateConfig {
963
962
  dataset_uuid: string;
964
963
  filter?: EvaluateFilter;
965
964
  video_chunk_length_ns?: number;
966
965
  video_chunk_overlap?: number;
967
966
  }
967
+ interface EvaluateRequest extends EvaluateConfig {
968
+ ability_uuid?: string;
969
+ infer?: InferRequest;
970
+ }
968
971
  declare enum EvaluationStatus {
969
972
  success = "success",
970
973
  failed = "failed"
@@ -997,7 +1000,14 @@ interface InferRunInfo {
997
1000
  output_tokens?: number;
998
1001
  aspect_ratio?: number;
999
1002
  }
1003
+ interface AutoPromptConfig {
1004
+ num_samples: number;
1005
+ task_description?: string;
1006
+ infer: InferRequest;
1007
+ evaluate: EvaluateConfig;
1008
+ }
1000
1009
  declare enum VlmAbilityStatus {
1010
+ in_progress = "in_progress",
1001
1011
  draft = "draft",
1002
1012
  published = "published"
1003
1013
  }
@@ -1013,6 +1023,8 @@ interface VlmAbilityCreate {
1013
1023
  transform_into: TransformInto;
1014
1024
  config: InferRuntimeConfig;
1015
1025
  is_public: boolean;
1026
+ video_chunk_length_ns?: number;
1027
+ video_chunk_overlap?: number;
1016
1028
  }
1017
1029
  interface VlmAbilityUpdate {
1018
1030
  name?: string;
@@ -1022,6 +1034,8 @@ interface VlmAbilityUpdate {
1022
1034
  transform_into?: TransformInto;
1023
1035
  config?: InferRuntimeConfig;
1024
1036
  is_public?: boolean;
1037
+ video_chunk_length_ns?: number;
1038
+ video_chunk_overlap?: number;
1025
1039
  }
1026
1040
  interface VlmAbility {
1027
1041
  uuid: string;
@@ -1037,11 +1051,15 @@ interface VlmAbility {
1037
1051
  text_prompt: string;
1038
1052
  transform_into: TransformInto;
1039
1053
  config: InferRuntimeConfig;
1054
+ video_chunk_length_ns?: number;
1055
+ video_chunk_overlap?: number;
1040
1056
  alias_entries?: AbilityAliasEntry[];
1057
+ auto_prompt?: AutoPromptConfig;
1041
1058
  }
1042
1059
  interface VlmAbilityGroupCreate {
1043
1060
  name: string;
1044
1061
  description: string;
1062
+ auto_prompt?: AutoPromptConfig;
1045
1063
  default_alias_name?: string;
1046
1064
  default_dataset_uuid?: string;
1047
1065
  }
@@ -1061,6 +1079,10 @@ interface VlmAbilityGroup {
1061
1079
  default_alias_name?: string;
1062
1080
  default_dataset_uuid?: string;
1063
1081
  }
1082
+ interface AliasResolution {
1083
+ alias: string;
1084
+ model_uuid: string | null;
1085
+ }
1064
1086
 
1065
1087
  type VlmFetch = (path: string, options: RequestInit) => Promise<any>;
1066
1088
  declare class InferAssetJob implements ResultStream {
@@ -1166,12 +1188,15 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
1166
1188
  getVlmAbility(vlm_ability_uuid: string): Promise<VlmAbility>;
1167
1189
  deleteVlmAbility(vlm_ability_uuid: string): Promise<void>;
1168
1190
  updateVlmAbility(vlm_ability_uuid: string, update: VlmAbilityUpdate): Promise<VlmAbility>;
1191
+ refineVlmAbility(vlm_ability_uuid: string, auto_prompt: AutoPromptConfig): Promise<VlmAbility>;
1192
+ cloneVlmAbility(vlm_ability_uuid: string, account_uuid?: string, name?: string, default_alias_name?: string): Promise<VlmAbility>;
1169
1193
  publishVlmAbility(vlm_ability_uuid: string, alias_name?: string, tag_name?: string): Promise<VlmAbility>;
1170
1194
  addVlmAbilityAlias(vlm_ability_uuid: string, alias_name: string, tag_name?: string): Promise<VlmAbility>;
1171
1195
  removeVlmAbilityAlias(vlm_ability_uuid: string, alias_name: string, tag_name: string): Promise<VlmAbility>;
1172
1196
  listVlmAbilityEvaluations(vlm_ability_uuid: string): Promise<DatasetAutoAnnotate[]>;
1173
1197
  getVlmAbilityEvaluation(vlm_ability_uuid: string, source: string): Promise<DatasetAutoAnnotate>;
1174
1198
  startVlmAbilityEvaluation(vlm_ability_uuid: string, evaluate_request: EvaluateRequest): Promise<DatasetAutoAnnotate>;
1199
+ resolveAliases(aliases: string[]): Promise<AliasResolution>;
1175
1200
  }
1176
1201
 
1177
1202
  type Bytes = string | ArrayBuffer | Uint8Array | Buffer | null | undefined;
@@ -1327,4 +1352,4 @@ declare namespace EyePop {
1327
1352
  function dataEndpoint(opts?: DataOptions): DataEndpoint;
1328
1353
  }
1329
1354
 
1330
- 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 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 };
1355
+ 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, 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 };
@@ -942,6 +942,7 @@ interface InferRuntimeConfig {
942
942
  min_frames?: number;
943
943
  max_aspect_ratio?: number;
944
944
  context_length?: number;
945
+ roi?: Area;
945
946
  }
946
947
  interface TransformInto {
947
948
  classes?: string[];
@@ -957,14 +958,16 @@ interface EvaluateFilter {
957
958
  partitions?: string[];
958
959
  ground_truth_classes?: string[];
959
960
  }
960
- interface EvaluateRequest {
961
- ability_uuid?: string;
962
- infer?: InferRequest;
961
+ interface EvaluateConfig {
963
962
  dataset_uuid: string;
964
963
  filter?: EvaluateFilter;
965
964
  video_chunk_length_ns?: number;
966
965
  video_chunk_overlap?: number;
967
966
  }
967
+ interface EvaluateRequest extends EvaluateConfig {
968
+ ability_uuid?: string;
969
+ infer?: InferRequest;
970
+ }
968
971
  declare enum EvaluationStatus {
969
972
  success = "success",
970
973
  failed = "failed"
@@ -997,7 +1000,14 @@ interface InferRunInfo {
997
1000
  output_tokens?: number;
998
1001
  aspect_ratio?: number;
999
1002
  }
1003
+ interface AutoPromptConfig {
1004
+ num_samples: number;
1005
+ task_description?: string;
1006
+ infer: InferRequest;
1007
+ evaluate: EvaluateConfig;
1008
+ }
1000
1009
  declare enum VlmAbilityStatus {
1010
+ in_progress = "in_progress",
1001
1011
  draft = "draft",
1002
1012
  published = "published"
1003
1013
  }
@@ -1013,6 +1023,8 @@ interface VlmAbilityCreate {
1013
1023
  transform_into: TransformInto;
1014
1024
  config: InferRuntimeConfig;
1015
1025
  is_public: boolean;
1026
+ video_chunk_length_ns?: number;
1027
+ video_chunk_overlap?: number;
1016
1028
  }
1017
1029
  interface VlmAbilityUpdate {
1018
1030
  name?: string;
@@ -1022,6 +1034,8 @@ interface VlmAbilityUpdate {
1022
1034
  transform_into?: TransformInto;
1023
1035
  config?: InferRuntimeConfig;
1024
1036
  is_public?: boolean;
1037
+ video_chunk_length_ns?: number;
1038
+ video_chunk_overlap?: number;
1025
1039
  }
1026
1040
  interface VlmAbility {
1027
1041
  uuid: string;
@@ -1037,11 +1051,15 @@ interface VlmAbility {
1037
1051
  text_prompt: string;
1038
1052
  transform_into: TransformInto;
1039
1053
  config: InferRuntimeConfig;
1054
+ video_chunk_length_ns?: number;
1055
+ video_chunk_overlap?: number;
1040
1056
  alias_entries?: AbilityAliasEntry[];
1057
+ auto_prompt?: AutoPromptConfig;
1041
1058
  }
1042
1059
  interface VlmAbilityGroupCreate {
1043
1060
  name: string;
1044
1061
  description: string;
1062
+ auto_prompt?: AutoPromptConfig;
1045
1063
  default_alias_name?: string;
1046
1064
  default_dataset_uuid?: string;
1047
1065
  }
@@ -1061,6 +1079,10 @@ interface VlmAbilityGroup {
1061
1079
  default_alias_name?: string;
1062
1080
  default_dataset_uuid?: string;
1063
1081
  }
1082
+ interface AliasResolution {
1083
+ alias: string;
1084
+ model_uuid: string | null;
1085
+ }
1064
1086
 
1065
1087
  type VlmFetch = (path: string, options: RequestInit) => Promise<any>;
1066
1088
  declare class InferAssetJob implements ResultStream {
@@ -1166,12 +1188,15 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
1166
1188
  getVlmAbility(vlm_ability_uuid: string): Promise<VlmAbility>;
1167
1189
  deleteVlmAbility(vlm_ability_uuid: string): Promise<void>;
1168
1190
  updateVlmAbility(vlm_ability_uuid: string, update: VlmAbilityUpdate): Promise<VlmAbility>;
1191
+ refineVlmAbility(vlm_ability_uuid: string, auto_prompt: AutoPromptConfig): Promise<VlmAbility>;
1192
+ cloneVlmAbility(vlm_ability_uuid: string, account_uuid?: string, name?: string, default_alias_name?: string): Promise<VlmAbility>;
1169
1193
  publishVlmAbility(vlm_ability_uuid: string, alias_name?: string, tag_name?: string): Promise<VlmAbility>;
1170
1194
  addVlmAbilityAlias(vlm_ability_uuid: string, alias_name: string, tag_name?: string): Promise<VlmAbility>;
1171
1195
  removeVlmAbilityAlias(vlm_ability_uuid: string, alias_name: string, tag_name: string): Promise<VlmAbility>;
1172
1196
  listVlmAbilityEvaluations(vlm_ability_uuid: string): Promise<DatasetAutoAnnotate[]>;
1173
1197
  getVlmAbilityEvaluation(vlm_ability_uuid: string, source: string): Promise<DatasetAutoAnnotate>;
1174
1198
  startVlmAbilityEvaluation(vlm_ability_uuid: string, evaluate_request: EvaluateRequest): Promise<DatasetAutoAnnotate>;
1199
+ resolveAliases(aliases: string[]): Promise<AliasResolution>;
1175
1200
  }
1176
1201
 
1177
1202
  type Bytes = string | ArrayBuffer | Uint8Array | Buffer | null | undefined;
@@ -1327,4 +1352,4 @@ declare namespace EyePop {
1327
1352
  function dataEndpoint(opts?: DataOptions): DataEndpoint;
1328
1353
  }
1329
1354
 
1330
- 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 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 };
1355
+ 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, 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 };
@@ -11028,6 +11028,7 @@ var EvaluationStatus = /* @__PURE__ */ ((EvaluationStatus2) => {
11028
11028
  return EvaluationStatus2;
11029
11029
  })(EvaluationStatus || {});
11030
11030
  var VlmAbilityStatus = /* @__PURE__ */ ((VlmAbilityStatus2) => {
11031
+ VlmAbilityStatus2["in_progress"] = "in_progress";
11031
11032
  VlmAbilityStatus2["draft"] = "draft";
11032
11033
  VlmAbilityStatus2["published"] = "published";
11033
11034
  return VlmAbilityStatus2;
@@ -11181,6 +11182,12 @@ var EvaluateDatasetJob = class {
11181
11182
  // data/data_endpoint.ts
11182
11183
  var WS_INITIAL_RECONNECT_DELAY = 1e3;
11183
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
+ }
11184
11191
  var DataEndpoint = class extends Endpoint {
11185
11192
  constructor(options) {
11186
11193
  super(options);
@@ -11879,7 +11886,7 @@ var DataEndpoint = class extends Endpoint {
11879
11886
  async createVlmAbilityGroup(create) {
11880
11887
  return this.request(`/vlm_ability_groups?account_uuid=${this._accountId}`, {
11881
11888
  method: "POST",
11882
- body: JSON.stringify(create),
11889
+ body: JSON.stringify(create, omit_nulls),
11883
11890
  headers: { "Content-Type": "application/json" }
11884
11891
  });
11885
11892
  }
@@ -11909,7 +11916,7 @@ var DataEndpoint = class extends Endpoint {
11909
11916
  const groupQuery = vlm_ability_group_uuid ? `&vlm_ability_group_uuid=${vlm_ability_group_uuid}` : "";
11910
11917
  return this.request(`/vlm_abilities?account_uuid=${this._accountId}${groupQuery}`, {
11911
11918
  method: "POST",
11912
- body: JSON.stringify(create),
11919
+ body: JSON.stringify(create, omit_nulls),
11913
11920
  headers: { "Content-Type": "application/json" }
11914
11921
  });
11915
11922
  }
@@ -11930,6 +11937,30 @@ var DataEndpoint = class extends Endpoint {
11930
11937
  headers: { "Content-Type": "application/json" }
11931
11938
  });
11932
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
+ }
11933
11964
  async publishVlmAbility(vlm_ability_uuid, alias_name, tag_name) {
11934
11965
  const alias_name_query = alias_name ? `alias_name=${encodeURIComponent(alias_name)}&` : "";
11935
11966
  const tag_name_query = tag_name ? `tag_name=${encodeURIComponent(tag_name)}&` : "";
@@ -11964,6 +11995,15 @@ var DataEndpoint = class extends Endpoint {
11964
11995
  headers: { "Content-Type": "application/json" }
11965
11996
  });
11966
11997
  }
11998
+ async resolveAliases(aliases) {
11999
+ const params = new URLSearchParams();
12000
+ aliases.forEach((alias) => {
12001
+ params.append("alias", alias);
12002
+ });
12003
+ return this.request(`/exports/aliases?${params.toString()}`, {
12004
+ method: "GET"
12005
+ });
12006
+ }
11967
12007
  };
11968
12008
 
11969
12009
  // worker/webrtc_whep.ts