@eyepop.ai/eyepop 2.1.0 → 3.1.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.
@@ -92,6 +92,11 @@ interface PredictedKeyPoint extends Point3d, PredictedClass {
92
92
  visible: boolean | undefined;
93
93
  }
94
94
 
95
+ declare enum PredictionVersion {
96
+ V1 = 1,
97
+ V2 = 2
98
+ }
99
+ declare const DEFAULT_PREDICTION_VERSION: PredictionVersion;
95
100
  interface WorkerSession extends Session {
96
101
  readonly popId: string;
97
102
  readonly baseUrl: string | undefined;
@@ -134,6 +139,7 @@ declare enum PopComponentType {
134
139
  FORWARD = "forward",
135
140
  INFERENCE = "inference",
136
141
  TRACING = "tracing",
142
+ TRACKING = "tracking",
137
143
  CONTOUR_FINDER = "contour_finder",
138
144
  COMPONENT_FINDER = "component_finder"
139
145
  }
@@ -188,7 +194,7 @@ interface InferenceComponent extends BaseComponent {
188
194
  [index: string]: any;
189
195
  };
190
196
  }
191
- interface TracingComponent extends BaseComponent {
197
+ interface TrackingComponent extends BaseComponent {
192
198
  reidModelUuid?: string;
193
199
  reidModel?: string;
194
200
  maxAgeSeconds?: number;
@@ -215,7 +221,7 @@ interface ComponentFinderComponent extends BaseComponent {
215
221
  keepSource?: boolean;
216
222
  componentClassLabel?: string;
217
223
  }
218
- type PopComponent = ForwardComponent | InferenceComponent | TracingComponent | ContourFinderComponent | ComponentFinderComponent;
224
+ type PopComponent = ForwardComponent | InferenceComponent | TrackingComponent | ContourFinderComponent | ComponentFinderComponent;
219
225
  interface Pop {
220
226
  components: PopComponent[];
221
227
  postTransform?: string;
@@ -575,7 +581,8 @@ declare enum ModelType {
575
581
  }
576
582
  declare enum ModelTask {
577
583
  object_detection = "object_detection",
578
- image_classification = "image_classification"
584
+ image_classification = "image_classification",
585
+ keypoint_detection = "keypoint_detection"
579
586
  }
580
587
  declare enum ModelStatus {
581
588
  error = "error",
@@ -682,7 +689,13 @@ declare enum ChangeType {
682
689
  model_modified = "model_modified",
683
690
  model_status_modified = "model_status_modified",
684
691
  model_progress = "model_progress",
685
- events_lost = "events_lost"
692
+ events_lost = "events_lost",
693
+ workflow_started = "workflow_started",
694
+ workflow_succeeded = "workflow_succeeded",
695
+ workflow_failed = "workflow_failed",
696
+ workflow_task_started = "workflow_task_started",
697
+ workflow_task_succeeded = "workflow_task_succeeded",
698
+ workflow_task_failed = "workflow_task_failed"
686
699
  }
687
700
  interface ChangeEvent {
688
701
  change_type: ChangeType;
@@ -691,6 +704,8 @@ interface ChangeEvent {
691
704
  dataset_version?: number;
692
705
  asset_uuid?: string;
693
706
  mdl_uuid?: string;
707
+ message?: string;
708
+ workflow_task_name?: string;
694
709
  }
695
710
  type OnChangeEvent = (event: ChangeEvent) => Promise<void>;
696
711
  interface CreateWorkflowConfig {
@@ -847,8 +862,9 @@ declare class AbstractJob implements ResultStream {
847
862
  protected _controller: AbortController;
848
863
  protected _client: HttpClient;
849
864
  protected _requestLogger: Logger;
865
+ protected _version: PredictionVersion;
850
866
  [Symbol.asyncIterator](): AsyncIterator<Prediction>;
851
- protected constructor(params: ComponentParams[] | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
867
+ protected constructor(params: ComponentParams[] | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger, version?: PredictionVersion);
852
868
  protected startJob(): Promise<Response>;
853
869
  protected onEvent(event: StreamEvent): Promise<void>;
854
870
  static n: number;
@@ -955,4 +971,4 @@ declare namespace EyePop {
955
971
  function dataEndpoint(opts?: DataOptions): DataEndpoint;
956
972
  }
957
973
 
958
- export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, 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, 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, type QcAiHubExportParams, type ResultStream, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, Stream, type StreamEvent, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, type Workflow, WorkflowPhase, EyePop as default, readableStreamFromString };
974
+ export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DEFAULT_PREDICTION_VERSION, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, 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, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type PlatformSupport, type Point2d, type Point3d, type Pop, type PopComponent, PopComponentType, type PopCrop, type PopForward, type PopForwardOperator, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedMesh, type PredictedObject, type PredictedText, type Prediction, PredictionVersion, type QcAiHubExportParams, type ResultStream, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, Stream, type StreamEvent, type StreamSource, type StreamTime, type TrackingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, type Workflow, WorkflowPhase, EyePop as default, readableStreamFromString };
@@ -92,6 +92,11 @@ interface PredictedKeyPoint extends Point3d, PredictedClass {
92
92
  visible: boolean | undefined;
93
93
  }
94
94
 
95
+ declare enum PredictionVersion {
96
+ V1 = 1,
97
+ V2 = 2
98
+ }
99
+ declare const DEFAULT_PREDICTION_VERSION: PredictionVersion;
95
100
  interface WorkerSession extends Session {
96
101
  readonly popId: string;
97
102
  readonly baseUrl: string | undefined;
@@ -134,6 +139,7 @@ declare enum PopComponentType {
134
139
  FORWARD = "forward",
135
140
  INFERENCE = "inference",
136
141
  TRACING = "tracing",
142
+ TRACKING = "tracking",
137
143
  CONTOUR_FINDER = "contour_finder",
138
144
  COMPONENT_FINDER = "component_finder"
139
145
  }
@@ -188,7 +194,7 @@ interface InferenceComponent extends BaseComponent {
188
194
  [index: string]: any;
189
195
  };
190
196
  }
191
- interface TracingComponent extends BaseComponent {
197
+ interface TrackingComponent extends BaseComponent {
192
198
  reidModelUuid?: string;
193
199
  reidModel?: string;
194
200
  maxAgeSeconds?: number;
@@ -215,7 +221,7 @@ interface ComponentFinderComponent extends BaseComponent {
215
221
  keepSource?: boolean;
216
222
  componentClassLabel?: string;
217
223
  }
218
- type PopComponent = ForwardComponent | InferenceComponent | TracingComponent | ContourFinderComponent | ComponentFinderComponent;
224
+ type PopComponent = ForwardComponent | InferenceComponent | TrackingComponent | ContourFinderComponent | ComponentFinderComponent;
219
225
  interface Pop {
220
226
  components: PopComponent[];
221
227
  postTransform?: string;
@@ -575,7 +581,8 @@ declare enum ModelType {
575
581
  }
576
582
  declare enum ModelTask {
577
583
  object_detection = "object_detection",
578
- image_classification = "image_classification"
584
+ image_classification = "image_classification",
585
+ keypoint_detection = "keypoint_detection"
579
586
  }
580
587
  declare enum ModelStatus {
581
588
  error = "error",
@@ -682,7 +689,13 @@ declare enum ChangeType {
682
689
  model_modified = "model_modified",
683
690
  model_status_modified = "model_status_modified",
684
691
  model_progress = "model_progress",
685
- events_lost = "events_lost"
692
+ events_lost = "events_lost",
693
+ workflow_started = "workflow_started",
694
+ workflow_succeeded = "workflow_succeeded",
695
+ workflow_failed = "workflow_failed",
696
+ workflow_task_started = "workflow_task_started",
697
+ workflow_task_succeeded = "workflow_task_succeeded",
698
+ workflow_task_failed = "workflow_task_failed"
686
699
  }
687
700
  interface ChangeEvent {
688
701
  change_type: ChangeType;
@@ -691,6 +704,8 @@ interface ChangeEvent {
691
704
  dataset_version?: number;
692
705
  asset_uuid?: string;
693
706
  mdl_uuid?: string;
707
+ message?: string;
708
+ workflow_task_name?: string;
694
709
  }
695
710
  type OnChangeEvent = (event: ChangeEvent) => Promise<void>;
696
711
  interface CreateWorkflowConfig {
@@ -847,8 +862,9 @@ declare class AbstractJob implements ResultStream {
847
862
  protected _controller: AbortController;
848
863
  protected _client: HttpClient;
849
864
  protected _requestLogger: Logger;
865
+ protected _version: PredictionVersion;
850
866
  [Symbol.asyncIterator](): AsyncIterator<Prediction>;
851
- protected constructor(params: ComponentParams[] | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
867
+ protected constructor(params: ComponentParams[] | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger, version?: PredictionVersion);
852
868
  protected startJob(): Promise<Response>;
853
869
  protected onEvent(event: StreamEvent): Promise<void>;
854
870
  static n: number;
@@ -955,4 +971,4 @@ declare namespace EyePop {
955
971
  function dataEndpoint(opts?: DataOptions): DataEndpoint;
956
972
  }
957
973
 
958
- export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, 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, 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, type QcAiHubExportParams, type ResultStream, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, Stream, type StreamEvent, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, type Workflow, WorkflowPhase, EyePop as default, readableStreamFromString };
974
+ export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DEFAULT_PREDICTION_VERSION, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, 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, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type PlatformSupport, type Point2d, type Point3d, type Pop, type PopComponent, PopComponentType, type PopCrop, type PopForward, type PopForwardOperator, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedMesh, type PredictedObject, type PredictedText, type Prediction, PredictionVersion, type QcAiHubExportParams, type ResultStream, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, Stream, type StreamEvent, type StreamSource, type StreamTime, type TrackingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, type Workflow, WorkflowPhase, EyePop as default, readableStreamFromString };
@@ -8663,6 +8663,7 @@ __export(index_exports, {
8663
8663
  AutoAnnotateTask: () => AutoAnnotateTask,
8664
8664
  ChangeType: () => ChangeType,
8665
8665
  ContourType: () => ContourType,
8666
+ DEFAULT_PREDICTION_VERSION: () => DEFAULT_PREDICTION_VERSION,
8666
8667
  DataEndpoint: () => DataEndpoint,
8667
8668
  Endpoint: () => Endpoint,
8668
8669
  EndpointState: () => EndpointState,
@@ -8683,6 +8684,7 @@ __export(index_exports, {
8683
8684
  ModelTrainingStage: () => ModelTrainingStage,
8684
8685
  ModelType: () => ModelType,
8685
8686
  PopComponentType: () => PopComponentType,
8687
+ PredictionVersion: () => PredictionVersion,
8686
8688
  Semaphore: () => Semaphore,
8687
8689
  Stream: () => Stream,
8688
8690
  TranscodeMode: () => TranscodeMode,
@@ -8894,6 +8896,12 @@ function readableStreamFromString(s) {
8894
8896
  }
8895
8897
 
8896
8898
  // worker/worker_types.ts
8899
+ var PredictionVersion = /* @__PURE__ */ ((PredictionVersion3) => {
8900
+ PredictionVersion3[PredictionVersion3["V1"] = 1] = "V1";
8901
+ PredictionVersion3[PredictionVersion3["V2"] = 2] = "V2";
8902
+ return PredictionVersion3;
8903
+ })(PredictionVersion || {});
8904
+ var DEFAULT_PREDICTION_VERSION = 2 /* V2 */;
8897
8905
  var VideoMode = /* @__PURE__ */ ((VideoMode2) => {
8898
8906
  VideoMode2["STREAM"] = "stream";
8899
8907
  VideoMode2["BUFFER"] = "buffer";
@@ -8903,6 +8911,7 @@ var PopComponentType = /* @__PURE__ */ ((PopComponentType2) => {
8903
8911
  PopComponentType2["FORWARD"] = "forward";
8904
8912
  PopComponentType2["INFERENCE"] = "inference";
8905
8913
  PopComponentType2["TRACING"] = "tracing";
8914
+ PopComponentType2["TRACKING"] = "tracking";
8906
8915
  PopComponentType2["CONTOUR_FINDER"] = "contour_finder";
8907
8916
  PopComponentType2["COMPONENT_FINDER"] = "component_finder";
8908
8917
  return PopComponentType2;
@@ -9280,13 +9289,14 @@ var WebrtcWhip = class extends WebrtcBase {
9280
9289
 
9281
9290
  // worker/jobs.ts
9282
9291
  var AbstractJob = class {
9283
- constructor(params, getSession, client, requestLogger) {
9292
+ constructor(params, getSession, client, requestLogger, version = DEFAULT_PREDICTION_VERSION) {
9284
9293
  this._responseStream = null;
9285
9294
  this._controller = new AbortController();
9286
9295
  this._getSession = getSession;
9287
9296
  this._params = params ?? null;
9288
9297
  this._client = client;
9289
9298
  this._requestLogger = requestLogger;
9299
+ this._version = version;
9290
9300
  }
9291
9301
  [Symbol.asyncIterator]() {
9292
9302
  if (!this._responseStream) {
@@ -9391,7 +9401,8 @@ var UploadJob = class extends AbstractJob {
9391
9401
  }
9392
9402
  let request;
9393
9403
  const videoModeQuery = this._videoMode ? `&videoMode=${this._videoMode}` : "";
9394
- const postUrl = `${session.baseUrl.replace(/\/+$/, "")}/pipelines/${session.pipelineId}/source?mode=queue&processing=async&sourceId=${event.source_id}${videoModeQuery}`;
9404
+ const versionQuery = this._version ? `&version=${this._version}` : "";
9405
+ const postUrl = `${session.baseUrl.replace(/\/+$/, "")}/pipelines/${session.pipelineId}/source?mode=queue&processing=async&sourceId=${event.source_id}${videoModeQuery}${versionQuery}`;
9395
9406
  if (this._params) {
9396
9407
  const params = JSON.stringify(this._params);
9397
9408
  const paramBlob = new Blob([params], { type: "application/json" });
@@ -9463,7 +9474,8 @@ var UploadJob = class extends AbstractJob {
9463
9474
  });
9464
9475
  } else {
9465
9476
  const videoModeQuery = this._videoMode ? `&videoMode=${this._videoMode}` : "";
9466
- const postUrl = `${session.baseUrl.replace(/\/+$/, "")}/pipelines/${session.pipelineId}/source?mode=queue&processing=sync${videoModeQuery}`;
9477
+ const versionQuery = this._version ? `&version=${this._version}` : "";
9478
+ const postUrl = `${session.baseUrl.replace(/\/+$/, "")}/pipelines/${session.pipelineId}/source?mode=queue&processing=sync${videoModeQuery}${versionQuery}`;
9467
9479
  if (this._params) {
9468
9480
  const params = JSON.stringify(this._params);
9469
9481
  const paramBlob = new Blob([params], { type: "application/json" });
@@ -9522,7 +9534,8 @@ var LoadFromJob = class extends AbstractJob {
9522
9534
  const body = {
9523
9535
  sourceType: "URL",
9524
9536
  url: this._location,
9525
- params: this._params
9537
+ params: this._params,
9538
+ version: this._version
9526
9539
  };
9527
9540
  const headers = {
9528
9541
  ...session.authenticationHeaders(),
@@ -9556,7 +9569,8 @@ var LoadFromAssetUuidJob = class extends AbstractJob {
9556
9569
  const body = {
9557
9570
  sourceType: "ASSET_UUID",
9558
9571
  assetUuid: this._assetUuid,
9559
- params: this._params
9572
+ params: this._params,
9573
+ version: this._version
9560
9574
  };
9561
9575
  const headers = {
9562
9576
  ...session.authenticationHeaders(),
@@ -9590,7 +9604,8 @@ var LoadLiveIngressJob = class extends AbstractJob {
9590
9604
  const body = {
9591
9605
  sourceType: "LIVE_INGRESS",
9592
9606
  liveIngressId: this._ingressId,
9593
- params: this._params
9607
+ params: this._params,
9608
+ version: this._version
9594
9609
  };
9595
9610
  const headers = {
9596
9611
  ...session.authenticationHeaders(),
@@ -9638,7 +9653,8 @@ var LoadMediaStreamJob = class extends AbstractJob {
9638
9653
  const body = {
9639
9654
  sourceType: "WHIP",
9640
9655
  whipIngressId: whip.ingressId(),
9641
- params: this._params
9656
+ params: this._params,
9657
+ version: this._version
9642
9658
  };
9643
9659
  const headers = {
9644
9660
  ...session.authenticationHeaders(),
@@ -10728,6 +10744,7 @@ var ModelType = /* @__PURE__ */ ((ModelType2) => {
10728
10744
  var ModelTask = /* @__PURE__ */ ((ModelTask2) => {
10729
10745
  ModelTask2["object_detection"] = "object_detection";
10730
10746
  ModelTask2["image_classification"] = "image_classification";
10747
+ ModelTask2["keypoint_detection"] = "keypoint_detection";
10731
10748
  return ModelTask2;
10732
10749
  })(ModelTask || {});
10733
10750
  var ModelStatus = /* @__PURE__ */ ((ModelStatus2) => {
@@ -10778,6 +10795,12 @@ var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
10778
10795
  ChangeType2["model_status_modified"] = "model_status_modified";
10779
10796
  ChangeType2["model_progress"] = "model_progress";
10780
10797
  ChangeType2["events_lost"] = "events_lost";
10798
+ ChangeType2["workflow_started"] = "workflow_started";
10799
+ ChangeType2["workflow_succeeded"] = "workflow_succeeded";
10800
+ ChangeType2["workflow_failed"] = "workflow_failed";
10801
+ ChangeType2["workflow_task_started"] = "workflow_task_started";
10802
+ ChangeType2["workflow_task_succeeded"] = "workflow_task_succeeded";
10803
+ ChangeType2["workflow_task_failed"] = "workflow_task_failed";
10781
10804
  return ChangeType2;
10782
10805
  })(ChangeType || {});
10783
10806
  var WorkflowPhase = /* @__PURE__ */ ((WorkflowPhase3) => {
@@ -11322,13 +11345,22 @@ var DataEndpoint = class extends Endpoint {
11322
11345
  }
11323
11346
  async dispatchChangeEvent(change_event) {
11324
11347
  switch (change_event.change_type) {
11348
+ // account event types
11325
11349
  case "dataset_added" /* dataset_added */:
11326
11350
  case "dataset_modified" /* dataset_modified */:
11327
11351
  case "dataset_removed" /* dataset_removed */:
11328
11352
  case "dataset_version_modified" /* dataset_version_modified */:
11353
+ case "workflow_started" /* workflow_started */:
11354
+ case "workflow_succeeded" /* workflow_succeeded */:
11355
+ case "workflow_failed" /* workflow_failed */:
11356
+ case "workflow_task_started" /* workflow_task_started */:
11357
+ case "workflow_task_succeeded" /* workflow_task_succeeded */:
11358
+ case "workflow_task_failed" /* workflow_task_failed */:
11359
+ this._logger.debug("dispatchChangeEvent account_event_handlers=%s", this._account_event_handlers);
11329
11360
  for (let handler of this._account_event_handlers) {
11330
11361
  await handler(change_event);
11331
11362
  }
11363
+ // dataset event types
11332
11364
  case "asset_added" /* asset_added */:
11333
11365
  case "asset_removed" /* asset_removed */:
11334
11366
  case "asset_status_modified" /* asset_status_modified */:
@@ -11457,7 +11489,7 @@ var EyePop;
11457
11489
  if (opts.isLocalMode === void 0) {
11458
11490
  opts.isLocalMode = stringToBooleanSafe(readEnv("EYEPOP_LOCAL_MODE"));
11459
11491
  }
11460
- _fill_default_options(opts, opts.isLocalMode ? "http://127.0.0.1:8080/standalone" : void 0);
11492
+ _fill_default_options(opts, opts.isLocalMode ? "http://127.0.0.1:8080" : void 0);
11461
11493
  if (opts.auth === void 0) {
11462
11494
  if (opts.isLocalMode) {
11463
11495
  opts.auth = { isLocal: true };
@@ -11556,6 +11588,7 @@ var index_default = EyePop;
11556
11588
  AutoAnnotateTask,
11557
11589
  ChangeType,
11558
11590
  ContourType,
11591
+ DEFAULT_PREDICTION_VERSION,
11559
11592
  DataEndpoint,
11560
11593
  Endpoint,
11561
11594
  EndpointState,
@@ -11576,6 +11609,7 @@ var index_default = EyePop;
11576
11609
  ModelTrainingStage,
11577
11610
  ModelType,
11578
11611
  PopComponentType,
11612
+ PredictionVersion,
11579
11613
  Semaphore,
11580
11614
  Stream,
11581
11615
  TranscodeMode,