@eyepop.ai/eyepop 0.21.2 → 0.23.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.
@@ -10070,14 +10070,15 @@ var WorkerEndpoint = class extends Endpoint {
10070
10070
  return null;
10071
10071
  }
10072
10072
  }
10073
- async changePopComp(popComp) {
10073
+ async changePopComp(popComp, modelRefs = []) {
10074
10074
  const client = this._client;
10075
10075
  const baseUrl = this._baseUrl;
10076
10076
  if (!baseUrl || !client) {
10077
10077
  return Promise.reject("endpoint not connected, use connect() before changePopComp()");
10078
10078
  }
10079
10079
  const body = {
10080
- "pipeline": popComp
10080
+ "pipeline": popComp,
10081
+ "modelRefs": modelRefs
10081
10082
  };
10082
10083
  let response = await this.fetchWithRetry(async () => {
10083
10084
  const session = await this.session();
@@ -10094,10 +10095,12 @@ var WorkerEndpoint = class extends Endpoint {
10094
10095
  });
10095
10096
  if (response.status != 204) {
10096
10097
  const message = await response.text();
10098
+ console.error(message);
10097
10099
  return Promise.reject(`Unexpected status ${response.status}: ${message}`);
10098
10100
  }
10099
10101
  if (this._pipeline) {
10100
10102
  this._pipeline.inferPipeline = popComp;
10103
+ this._pipeline.modelRefs = modelRefs;
10101
10104
  }
10102
10105
  }
10103
10106
  async changePostTransform(postTransform) {
@@ -10460,9 +10463,16 @@ var WorkerEndpoint = class extends Endpoint {
10460
10463
  } else {
10461
10464
  postTransform = null;
10462
10465
  }
10466
+ let modelRefs;
10467
+ if (this._pipeline && this._pipeline.modelRefs) {
10468
+ modelRefs = this._pipeline.modelRefs;
10469
+ } else {
10470
+ modelRefs = [];
10471
+ }
10463
10472
  const body = {
10464
10473
  "inferPipelineDef": {
10465
- "pipeline": pipeline
10474
+ "pipeline": pipeline,
10475
+ "modelRefs": modelRefs
10466
10476
  },
10467
10477
  "postTransformDef": {
10468
10478
  "transform": postTransform
@@ -10732,7 +10742,7 @@ var AssetStatus = /* @__PURE__ */ ((AssetStatus2) => {
10732
10742
  return AssetStatus2;
10733
10743
  })(AssetStatus || {});
10734
10744
  var AnnotationType = /* @__PURE__ */ ((AnnotationType2) => {
10735
- AnnotationType2["manual"] = "manual";
10745
+ AnnotationType2["ground_truth"] = "ground_truth";
10736
10746
  AnnotationType2["prediction"] = "prediction";
10737
10747
  AnnotationType2["auto"] = "auto";
10738
10748
  return AnnotationType2;
@@ -11049,10 +11059,10 @@ var DataEndpoint = class extends Endpoint {
11049
11059
  method: "POST"
11050
11060
  });
11051
11061
  }
11052
- async updateAssetManualAnnotation(asset_uuid, dataset_uuid, dataset_version, prediction) {
11062
+ async updateAssetGroundTruth(asset_uuid, dataset_uuid, dataset_version, prediction) {
11053
11063
  const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
11054
11064
  const datasetQuery = dataset_uuid ? `&dataset_uuid=${dataset_uuid}` : "";
11055
- return this.request(`/assets/${asset_uuid}/manual_annotate?${datasetQuery}${versionQuery}`, {
11065
+ return this.request(`/assets/${asset_uuid}/ground_truth?${datasetQuery}${versionQuery}`, {
11056
11066
  method: "PATCH",
11057
11067
  body: JSON.stringify(prediction)
11058
11068
  });
@@ -11302,19 +11312,29 @@ var EyePop;
11302
11312
  })(EyePop || (EyePop = {}));
11303
11313
  var eyepop_default = EyePop;
11304
11314
  export {
11315
+ AbstractJob,
11305
11316
  AnnotationType,
11306
11317
  AssetStatus,
11307
11318
  ChangeType,
11308
11319
  DataEndpoint,
11320
+ Endpoint,
11309
11321
  EndpointState,
11310
11322
  EyePop,
11323
+ LoadFromJob,
11324
+ LoadLiveIngressJob,
11311
11325
  ModelFormat,
11312
11326
  ModelPrecisionType,
11313
11327
  ModelStatus,
11314
11328
  ModelType,
11329
+ Semaphore,
11330
+ Stream,
11315
11331
  TranscodeMode,
11316
11332
  TransientPopId,
11333
+ UploadJob,
11317
11334
  UserReview,
11335
+ WebrtcBase,
11336
+ WebrtcWhep,
11337
+ WebrtcWhip,
11318
11338
  WorkerEndpoint,
11319
11339
  eyepop_default as default
11320
11340
  };