@eyepop.ai/eyepop 1.15.3 → 1.17.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.
@@ -17,13 +17,6 @@ interface Box {
17
17
  readonly topLeft: Point2d;
18
18
  readonly bottomRight: Point2d;
19
19
  }
20
- interface Roi {
21
- readonly points?: Point2d[];
22
- readonly boxes?: Box[];
23
- }
24
- interface SourceParams {
25
- readonly roi?: Roi;
26
- }
27
20
  interface StreamTime {
28
21
  timestamp?: number;
29
22
  seconds?: number;
@@ -154,7 +147,9 @@ declare enum ModelFormat {
154
147
  ONNX = "ONNX",
155
148
  TorchScript = "TorchScript",
156
149
  TorchScriptCpu = "TorchScriptCpu",
157
- TorchScriptCuda = "TorchScriptCuda"
150
+ TorchScriptCuda = "TorchScriptCuda",
151
+ PyTorch = "PyTorch",
152
+ ModelLess = "ModelLess"
158
153
  }
159
154
  declare enum ModelPrecisionType {
160
155
  float32 = "float32",
@@ -200,6 +195,7 @@ interface PopForward {
200
195
  }
201
196
  interface BaseComponent {
202
197
  type: PopComponentType;
198
+ id?: number;
203
199
  forward?: PopForward;
204
200
  }
205
201
  interface ForwardComponent extends BaseComponent {
@@ -215,10 +211,12 @@ declare enum InferenceType {
215
211
  SEGMENTATION = "segmentation"
216
212
  }
217
213
  interface InferenceComponent extends BaseComponent {
218
- inferenceTypes: InferenceType[];
214
+ inferenceTypes?: InferenceType[];
219
215
  hidden?: boolean;
220
216
  modelUuid?: string;
221
217
  model?: string;
218
+ abilityUuid?: string;
219
+ ability?: string;
222
220
  categoryName?: string;
223
221
  confidenceThreshold?: number;
224
222
  targetFps?: string;
@@ -254,6 +252,12 @@ interface Pop {
254
252
  components: PopComponent[];
255
253
  postTransform?: string;
256
254
  }
255
+ interface ComponentParams {
256
+ componentId: number;
257
+ values: {
258
+ [index: string]: any;
259
+ };
260
+ }
257
261
 
258
262
  interface Auth0Options {
259
263
  domain: string;
@@ -469,7 +473,7 @@ declare class WorkerEndpoint extends Endpoint<WorkerEndpoint> {
469
473
  onIngressEvent(handler: (event: IngressEvent) => void): WorkerEndpoint;
470
474
  liveIngress(stream: MediaStream): Promise<LiveMedia>;
471
475
  liveEgress(ingressId: string): Promise<LiveMedia>;
472
- process(source: Source, params?: SourceParams): Promise<ResultStream>;
476
+ process(source: Source, params?: ComponentParams[]): Promise<ResultStream>;
473
477
  private startIngressWs;
474
478
  private uploadFile;
475
479
  private uploadStream;
@@ -750,6 +754,40 @@ interface ChangeEvent {
750
754
  mdl_uuid?: string;
751
755
  }
752
756
  type OnChangeEvent = (event: ChangeEvent) => Promise<void>;
757
+ interface CreateWorkflowConfig {
758
+ dataset_uuid?: string;
759
+ dataset_version?: number;
760
+ model_uuid?: string;
761
+ config?: Map<string, any>;
762
+ }
763
+ interface CreateWorkflow {
764
+ parameters?: CreateWorkflowConfig;
765
+ }
766
+ interface Workflow {
767
+ workflow_id: string;
768
+ }
769
+ interface ListWorkflowItemMetadataLabels {
770
+ account_uuid: string;
771
+ dataset_uuid?: string;
772
+ model_uuid?: string;
773
+ phase: WorkflowPhase;
774
+ }
775
+ interface ListWorkFlowItemMetadata {
776
+ workflow_id: string;
777
+ created_at: Date;
778
+ labels: ListWorkflowItemMetadataLabels;
779
+ }
780
+ interface ListWorkFlowItem {
781
+ metadata: ListWorkFlowItemMetadata;
782
+ }
783
+ declare enum WorkflowPhase {
784
+ unknown = "Unknown",
785
+ pending = "Pending",
786
+ running = "Running",
787
+ succeeded = "Succeeded",
788
+ failed = "Failed",
789
+ error = "Error"
790
+ }
753
791
 
754
792
  declare class DataEndpoint extends Endpoint<DataEndpoint> {
755
793
  private _baseUrl;
@@ -803,6 +841,9 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
803
841
  addDatasetEventHandler(dataset_uuid: string, eventHandler: OnChangeEvent): void;
804
842
  removeDatasetEventHandler(dataset_uuid: string, eventHandler: OnChangeEvent): void;
805
843
  removeAllDatasetEventHandlers(dataset_uuid: string): void;
844
+ startWorkflow(account_uuid: string, template_name: string, workflow: CreateWorkflow): Promise<Workflow>;
845
+ getWorkflow(workflow_id: string, account_uuid: string): Promise<ListWorkFlowItem>;
846
+ listWorkflows(account_uuid: string, dataset_uuids?: string[], model_uuids?: string[], phases?: WorkflowPhase[]): Promise<ListWorkFlowItem[]>;
806
847
  private dispatchChangeEvent;
807
848
  }
808
849
 
@@ -845,13 +886,13 @@ declare function readableStreamFromString(s: string): ReadableStream<Uint8Array>
845
886
 
846
887
  declare class AbstractJob implements ResultStream {
847
888
  protected _getSession: () => Promise<WorkerSession>;
848
- protected _params: SourceParams | null;
889
+ protected _params: ComponentParams[] | null;
849
890
  protected _responseStream: Promise<ReadableStream<Uint8Array>> | null;
850
891
  protected _controller: AbortController;
851
892
  protected _client: HttpClient;
852
893
  protected _requestLogger: Logger;
853
894
  [Symbol.asyncIterator](): AsyncIterator<Prediction>;
854
- protected constructor(params: SourceParams | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
895
+ protected constructor(params: ComponentParams[] | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
855
896
  protected startJob(): Promise<Response>;
856
897
  protected onEvent(event: StreamEvent): Promise<void>;
857
898
  static n: number;
@@ -865,19 +906,19 @@ declare class UploadJob extends AbstractJob {
865
906
  private readonly _needsFullDuplex;
866
907
  private readonly _videoMode;
867
908
  get [Symbol.toStringTag](): string;
868
- constructor(stream: ReadableStream<Uint8Array> | Blob | BufferSource, mimeType: string, size: number | undefined, videoMode: VideoMode | undefined, params: SourceParams | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
909
+ constructor(stream: ReadableStream<Uint8Array> | Blob | BufferSource, mimeType: string, size: number | undefined, videoMode: VideoMode | undefined, params: ComponentParams[] | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
869
910
  protected onEvent(event: StreamEvent): Promise<void>;
870
911
  protected startJob(): Promise<Response>;
871
912
  }
872
913
  declare class LoadFromJob extends AbstractJob {
873
914
  private readonly _location;
874
- constructor(location: string, params: SourceParams | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
915
+ constructor(location: string, params: ComponentParams[] | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
875
916
  get [Symbol.toStringTag](): string;
876
917
  protected startJob(): Promise<Response>;
877
918
  }
878
919
  declare class LoadLiveIngressJob extends AbstractJob {
879
920
  private readonly _ingressId;
880
- constructor(ingressId: string, params: SourceParams | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
921
+ constructor(ingressId: string, params: ComponentParams[] | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
881
922
  get [Symbol.toStringTag](): string;
882
923
  protected startJob(): Promise<Response>;
883
924
  }
@@ -898,7 +939,7 @@ declare abstract class WebrtcBase {
898
939
  protected _eTag: string;
899
940
  protected _queuedCandidates: RTCIceCandidate[];
900
941
  protected _offerData: OfferData | null;
901
- constructor(getSession: () => Promise<WorkerSession>, client: HttpClient, ingressId: string, urlBasePath: string, requestLogger: Logger);
942
+ protected constructor(getSession: () => Promise<WorkerSession>, client: HttpClient, ingressId: string, urlBasePath: string, requestLogger: Logger);
902
943
  close(): Promise<void>;
903
944
  ingressId(): string;
904
945
  protected gresUrl(session: WorkerSession, location?: string | null): URL;
@@ -945,4 +986,4 @@ declare namespace EyePop {
945
986
  function dataEndpoint(opts?: DataOptions): DataEndpoint;
946
987
  }
947
988
 
948
- export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type Contour, type ContourFinderComponent, ContourType, 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 IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type LocalAuth, type Mask, type Model, type ModelCreate, type ModelExport, ModelExportStatus, ModelFormat, type ModelInstanceDef, 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 Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, type StreamEvent, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default, readableStreamFromString };
989
+ export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, 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 IngressEvent, type ListWorkFlowItem, type ListWorkFlowItemMetadata, type ListWorkflowItemMetadataLabels, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type LocalAuth, type Mask, type Model, type ModelCreate, type ModelExport, ModelExportStatus, ModelFormat, type ModelInstanceDef, 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, type SourcesEntry, 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 };
@@ -17,13 +17,6 @@ interface Box {
17
17
  readonly topLeft: Point2d;
18
18
  readonly bottomRight: Point2d;
19
19
  }
20
- interface Roi {
21
- readonly points?: Point2d[];
22
- readonly boxes?: Box[];
23
- }
24
- interface SourceParams {
25
- readonly roi?: Roi;
26
- }
27
20
  interface StreamTime {
28
21
  timestamp?: number;
29
22
  seconds?: number;
@@ -154,7 +147,9 @@ declare enum ModelFormat {
154
147
  ONNX = "ONNX",
155
148
  TorchScript = "TorchScript",
156
149
  TorchScriptCpu = "TorchScriptCpu",
157
- TorchScriptCuda = "TorchScriptCuda"
150
+ TorchScriptCuda = "TorchScriptCuda",
151
+ PyTorch = "PyTorch",
152
+ ModelLess = "ModelLess"
158
153
  }
159
154
  declare enum ModelPrecisionType {
160
155
  float32 = "float32",
@@ -200,6 +195,7 @@ interface PopForward {
200
195
  }
201
196
  interface BaseComponent {
202
197
  type: PopComponentType;
198
+ id?: number;
203
199
  forward?: PopForward;
204
200
  }
205
201
  interface ForwardComponent extends BaseComponent {
@@ -215,10 +211,12 @@ declare enum InferenceType {
215
211
  SEGMENTATION = "segmentation"
216
212
  }
217
213
  interface InferenceComponent extends BaseComponent {
218
- inferenceTypes: InferenceType[];
214
+ inferenceTypes?: InferenceType[];
219
215
  hidden?: boolean;
220
216
  modelUuid?: string;
221
217
  model?: string;
218
+ abilityUuid?: string;
219
+ ability?: string;
222
220
  categoryName?: string;
223
221
  confidenceThreshold?: number;
224
222
  targetFps?: string;
@@ -254,6 +252,12 @@ interface Pop {
254
252
  components: PopComponent[];
255
253
  postTransform?: string;
256
254
  }
255
+ interface ComponentParams {
256
+ componentId: number;
257
+ values: {
258
+ [index: string]: any;
259
+ };
260
+ }
257
261
 
258
262
  interface Auth0Options {
259
263
  domain: string;
@@ -469,7 +473,7 @@ declare class WorkerEndpoint extends Endpoint<WorkerEndpoint> {
469
473
  onIngressEvent(handler: (event: IngressEvent) => void): WorkerEndpoint;
470
474
  liveIngress(stream: MediaStream): Promise<LiveMedia>;
471
475
  liveEgress(ingressId: string): Promise<LiveMedia>;
472
- process(source: Source, params?: SourceParams): Promise<ResultStream>;
476
+ process(source: Source, params?: ComponentParams[]): Promise<ResultStream>;
473
477
  private startIngressWs;
474
478
  private uploadFile;
475
479
  private uploadStream;
@@ -750,6 +754,40 @@ interface ChangeEvent {
750
754
  mdl_uuid?: string;
751
755
  }
752
756
  type OnChangeEvent = (event: ChangeEvent) => Promise<void>;
757
+ interface CreateWorkflowConfig {
758
+ dataset_uuid?: string;
759
+ dataset_version?: number;
760
+ model_uuid?: string;
761
+ config?: Map<string, any>;
762
+ }
763
+ interface CreateWorkflow {
764
+ parameters?: CreateWorkflowConfig;
765
+ }
766
+ interface Workflow {
767
+ workflow_id: string;
768
+ }
769
+ interface ListWorkflowItemMetadataLabels {
770
+ account_uuid: string;
771
+ dataset_uuid?: string;
772
+ model_uuid?: string;
773
+ phase: WorkflowPhase;
774
+ }
775
+ interface ListWorkFlowItemMetadata {
776
+ workflow_id: string;
777
+ created_at: Date;
778
+ labels: ListWorkflowItemMetadataLabels;
779
+ }
780
+ interface ListWorkFlowItem {
781
+ metadata: ListWorkFlowItemMetadata;
782
+ }
783
+ declare enum WorkflowPhase {
784
+ unknown = "Unknown",
785
+ pending = "Pending",
786
+ running = "Running",
787
+ succeeded = "Succeeded",
788
+ failed = "Failed",
789
+ error = "Error"
790
+ }
753
791
 
754
792
  declare class DataEndpoint extends Endpoint<DataEndpoint> {
755
793
  private _baseUrl;
@@ -803,6 +841,9 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
803
841
  addDatasetEventHandler(dataset_uuid: string, eventHandler: OnChangeEvent): void;
804
842
  removeDatasetEventHandler(dataset_uuid: string, eventHandler: OnChangeEvent): void;
805
843
  removeAllDatasetEventHandlers(dataset_uuid: string): void;
844
+ startWorkflow(account_uuid: string, template_name: string, workflow: CreateWorkflow): Promise<Workflow>;
845
+ getWorkflow(workflow_id: string, account_uuid: string): Promise<ListWorkFlowItem>;
846
+ listWorkflows(account_uuid: string, dataset_uuids?: string[], model_uuids?: string[], phases?: WorkflowPhase[]): Promise<ListWorkFlowItem[]>;
806
847
  private dispatchChangeEvent;
807
848
  }
808
849
 
@@ -845,13 +886,13 @@ declare function readableStreamFromString(s: string): ReadableStream<Uint8Array>
845
886
 
846
887
  declare class AbstractJob implements ResultStream {
847
888
  protected _getSession: () => Promise<WorkerSession>;
848
- protected _params: SourceParams | null;
889
+ protected _params: ComponentParams[] | null;
849
890
  protected _responseStream: Promise<ReadableStream<Uint8Array>> | null;
850
891
  protected _controller: AbortController;
851
892
  protected _client: HttpClient;
852
893
  protected _requestLogger: Logger;
853
894
  [Symbol.asyncIterator](): AsyncIterator<Prediction>;
854
- protected constructor(params: SourceParams | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
895
+ protected constructor(params: ComponentParams[] | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
855
896
  protected startJob(): Promise<Response>;
856
897
  protected onEvent(event: StreamEvent): Promise<void>;
857
898
  static n: number;
@@ -865,19 +906,19 @@ declare class UploadJob extends AbstractJob {
865
906
  private readonly _needsFullDuplex;
866
907
  private readonly _videoMode;
867
908
  get [Symbol.toStringTag](): string;
868
- constructor(stream: ReadableStream<Uint8Array> | Blob | BufferSource, mimeType: string, size: number | undefined, videoMode: VideoMode | undefined, params: SourceParams | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
909
+ constructor(stream: ReadableStream<Uint8Array> | Blob | BufferSource, mimeType: string, size: number | undefined, videoMode: VideoMode | undefined, params: ComponentParams[] | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
869
910
  protected onEvent(event: StreamEvent): Promise<void>;
870
911
  protected startJob(): Promise<Response>;
871
912
  }
872
913
  declare class LoadFromJob extends AbstractJob {
873
914
  private readonly _location;
874
- constructor(location: string, params: SourceParams | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
915
+ constructor(location: string, params: ComponentParams[] | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
875
916
  get [Symbol.toStringTag](): string;
876
917
  protected startJob(): Promise<Response>;
877
918
  }
878
919
  declare class LoadLiveIngressJob extends AbstractJob {
879
920
  private readonly _ingressId;
880
- constructor(ingressId: string, params: SourceParams | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
921
+ constructor(ingressId: string, params: ComponentParams[] | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
881
922
  get [Symbol.toStringTag](): string;
882
923
  protected startJob(): Promise<Response>;
883
924
  }
@@ -898,7 +939,7 @@ declare abstract class WebrtcBase {
898
939
  protected _eTag: string;
899
940
  protected _queuedCandidates: RTCIceCandidate[];
900
941
  protected _offerData: OfferData | null;
901
- constructor(getSession: () => Promise<WorkerSession>, client: HttpClient, ingressId: string, urlBasePath: string, requestLogger: Logger);
942
+ protected constructor(getSession: () => Promise<WorkerSession>, client: HttpClient, ingressId: string, urlBasePath: string, requestLogger: Logger);
902
943
  close(): Promise<void>;
903
944
  ingressId(): string;
904
945
  protected gresUrl(session: WorkerSession, location?: string | null): URL;
@@ -945,4 +986,4 @@ declare namespace EyePop {
945
986
  function dataEndpoint(opts?: DataOptions): DataEndpoint;
946
987
  }
947
988
 
948
- export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type Contour, type ContourFinderComponent, ContourType, 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 IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type LocalAuth, type Mask, type Model, type ModelCreate, type ModelExport, ModelExportStatus, ModelFormat, type ModelInstanceDef, 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 Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, type StreamEvent, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default, readableStreamFromString };
989
+ export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, 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 IngressEvent, type ListWorkFlowItem, type ListWorkFlowItemMetadata, type ListWorkflowItemMetadataLabels, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type LocalAuth, type Mask, type Model, type ModelCreate, type ModelExport, ModelExportStatus, ModelFormat, type ModelInstanceDef, 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, type SourcesEntry, 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 };
@@ -8692,6 +8692,7 @@ __export(index_exports, {
8692
8692
  WebrtcWhep: () => WebrtcWhep,
8693
8693
  WebrtcWhip: () => WebrtcWhip,
8694
8694
  WorkerEndpoint: () => WorkerEndpoint,
8695
+ WorkflowPhase: () => WorkflowPhase,
8695
8696
  default: () => index_default,
8696
8697
  readableStreamFromString: () => readableStreamFromString
8697
8698
  });
@@ -8904,6 +8905,8 @@ var ModelFormat = /* @__PURE__ */ ((ModelFormat2) => {
8904
8905
  ModelFormat2["TorchScript"] = "TorchScript";
8905
8906
  ModelFormat2["TorchScriptCpu"] = "TorchScriptCpu";
8906
8907
  ModelFormat2["TorchScriptCuda"] = "TorchScriptCuda";
8908
+ ModelFormat2["PyTorch"] = "PyTorch";
8909
+ ModelFormat2["ModelLess"] = "ModelLess";
8907
8910
  return ModelFormat2;
8908
8911
  })(ModelFormat || {});
8909
8912
  var ModelPrecisionType = /* @__PURE__ */ ((ModelPrecisionType2) => {
@@ -9321,7 +9324,6 @@ var WebrtcBase = class _WebrtcBase {
9321
9324
  if (!this._offerData) {
9322
9325
  throw new Error("sendLocalCandidates no offerData");
9323
9326
  }
9324
- let urlPath = void 0;
9325
9327
  const session = await this._getSession();
9326
9328
  const ingressUrl = this.gresUrl(session, this._location);
9327
9329
  const headers = {
@@ -11104,6 +11106,15 @@ var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
11104
11106
  ChangeType2["events_lost"] = "events_lost";
11105
11107
  return ChangeType2;
11106
11108
  })(ChangeType || {});
11109
+ var WorkflowPhase = /* @__PURE__ */ ((WorkflowPhase3) => {
11110
+ WorkflowPhase3["unknown"] = "Unknown";
11111
+ WorkflowPhase3["pending"] = "Pending";
11112
+ WorkflowPhase3["running"] = "Running";
11113
+ WorkflowPhase3["succeeded"] = "Succeeded";
11114
+ WorkflowPhase3["failed"] = "Failed";
11115
+ WorkflowPhase3["error"] = "Error";
11116
+ return WorkflowPhase3;
11117
+ })(WorkflowPhase || {});
11107
11118
 
11108
11119
  // data/data_endpoint.ts
11109
11120
  var WS_INITIAL_RECONNECT_DELAY = 1e3;
@@ -11596,6 +11607,26 @@ var DataEndpoint = class extends Endpoint {
11596
11607
  }
11597
11608
  this._dataset_uuid_to_event_handlers.delete(dataset_uuid);
11598
11609
  }
11610
+ async startWorkflow(account_uuid, template_name, workflow) {
11611
+ return this.request(`/workflows?account_uuid=${account_uuid}&template_name=${template_name}`, {
11612
+ method: "POST",
11613
+ body: JSON.stringify(workflow)
11614
+ });
11615
+ }
11616
+ async getWorkflow(workflow_id, account_uuid) {
11617
+ return this.request(`/workflows/${workflow_id}?account_uuid=${account_uuid}`, {
11618
+ method: "GET"
11619
+ });
11620
+ }
11621
+ async listWorkflows(account_uuid, dataset_uuids, model_uuids, phases) {
11622
+ const datasetQuery = dataset_uuids?.map((uuid) => `dataset_uuid=${uuid}`).join("&") || "";
11623
+ const modelQuery = model_uuids?.map((uuid) => `model_uuid=${uuid}`).join("&") || "";
11624
+ const phaseQuery = phases?.map((p) => `phase=${p}`).join("&") || "";
11625
+ const queryParams = [datasetQuery, modelQuery, phaseQuery].filter((q) => q).join("&");
11626
+ return this.request(`/workflows?account_uuid=${account_uuid}${queryParams ? `&${queryParams}` : ""}`, {
11627
+ method: "GET"
11628
+ });
11629
+ }
11599
11630
  async dispatchChangeEvent(change_event) {
11600
11631
  switch (change_event.change_type) {
11601
11632
  case "dataset_added" /* dataset_added */:
@@ -11779,6 +11810,7 @@ var index_default = EyePop;
11779
11810
  WebrtcWhep,
11780
11811
  WebrtcWhip,
11781
11812
  WorkerEndpoint,
11813
+ WorkflowPhase,
11782
11814
  readableStreamFromString
11783
11815
  });
11784
11816
  /*! Bundled license information: