@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.
@@ -8839,6 +8839,8 @@ var ModelFormat = /* @__PURE__ */ ((ModelFormat2) => {
8839
8839
  ModelFormat2["TorchScript"] = "TorchScript";
8840
8840
  ModelFormat2["TorchScriptCpu"] = "TorchScriptCpu";
8841
8841
  ModelFormat2["TorchScriptCuda"] = "TorchScriptCuda";
8842
+ ModelFormat2["PyTorch"] = "PyTorch";
8843
+ ModelFormat2["ModelLess"] = "ModelLess";
8842
8844
  return ModelFormat2;
8843
8845
  })(ModelFormat || {});
8844
8846
  var ModelPrecisionType = /* @__PURE__ */ ((ModelPrecisionType2) => {
@@ -9256,7 +9258,6 @@ var WebrtcBase = class _WebrtcBase {
9256
9258
  if (!this._offerData) {
9257
9259
  throw new Error("sendLocalCandidates no offerData");
9258
9260
  }
9259
- let urlPath = void 0;
9260
9261
  const session = await this._getSession();
9261
9262
  const ingressUrl = this.gresUrl(session, this._location);
9262
9263
  const headers = {
@@ -11039,6 +11040,15 @@ var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
11039
11040
  ChangeType2["events_lost"] = "events_lost";
11040
11041
  return ChangeType2;
11041
11042
  })(ChangeType || {});
11043
+ var WorkflowPhase = /* @__PURE__ */ ((WorkflowPhase3) => {
11044
+ WorkflowPhase3["unknown"] = "Unknown";
11045
+ WorkflowPhase3["pending"] = "Pending";
11046
+ WorkflowPhase3["running"] = "Running";
11047
+ WorkflowPhase3["succeeded"] = "Succeeded";
11048
+ WorkflowPhase3["failed"] = "Failed";
11049
+ WorkflowPhase3["error"] = "Error";
11050
+ return WorkflowPhase3;
11051
+ })(WorkflowPhase || {});
11042
11052
 
11043
11053
  // data/data_endpoint.ts
11044
11054
  var WS_INITIAL_RECONNECT_DELAY = 1e3;
@@ -11531,6 +11541,26 @@ var DataEndpoint = class extends Endpoint {
11531
11541
  }
11532
11542
  this._dataset_uuid_to_event_handlers.delete(dataset_uuid);
11533
11543
  }
11544
+ async startWorkflow(account_uuid, template_name, workflow) {
11545
+ return this.request(`/workflows?account_uuid=${account_uuid}&template_name=${template_name}`, {
11546
+ method: "POST",
11547
+ body: JSON.stringify(workflow)
11548
+ });
11549
+ }
11550
+ async getWorkflow(workflow_id, account_uuid) {
11551
+ return this.request(`/workflows/${workflow_id}?account_uuid=${account_uuid}`, {
11552
+ method: "GET"
11553
+ });
11554
+ }
11555
+ async listWorkflows(account_uuid, dataset_uuids, model_uuids, phases) {
11556
+ const datasetQuery = dataset_uuids?.map((uuid) => `dataset_uuid=${uuid}`).join("&") || "";
11557
+ const modelQuery = model_uuids?.map((uuid) => `model_uuid=${uuid}`).join("&") || "";
11558
+ const phaseQuery = phases?.map((p) => `phase=${p}`).join("&") || "";
11559
+ const queryParams = [datasetQuery, modelQuery, phaseQuery].filter((q) => q).join("&");
11560
+ return this.request(`/workflows?account_uuid=${account_uuid}${queryParams ? `&${queryParams}` : ""}`, {
11561
+ method: "GET"
11562
+ });
11563
+ }
11534
11564
  async dispatchChangeEvent(change_event) {
11535
11565
  switch (change_event.change_type) {
11536
11566
  case "dataset_added" /* dataset_added */:
@@ -11713,6 +11743,7 @@ export {
11713
11743
  WebrtcWhep,
11714
11744
  WebrtcWhip,
11715
11745
  WorkerEndpoint,
11746
+ WorkflowPhase,
11716
11747
  index_default as default,
11717
11748
  readableStreamFromString
11718
11749
  };