@eyepop.ai/eyepop 1.10.0 → 1.11.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.
@@ -9167,52 +9167,8 @@ var LoadLiveIngressJob = class extends AbstractJob {
9167
9167
  }
9168
9168
  };
9169
9169
 
9170
- // ../../node_modules/uuid/dist/esm-node/rng.js
9171
- import crypto from "crypto";
9172
- var rnds8Pool = new Uint8Array(256);
9173
- var poolPtr = rnds8Pool.length;
9174
- function rng() {
9175
- if (poolPtr > rnds8Pool.length - 16) {
9176
- crypto.randomFillSync(rnds8Pool);
9177
- poolPtr = 0;
9178
- }
9179
- return rnds8Pool.slice(poolPtr, poolPtr += 16);
9180
- }
9181
-
9182
- // ../../node_modules/uuid/dist/esm-node/stringify.js
9183
- var byteToHex = [];
9184
- for (let i = 0; i < 256; ++i) {
9185
- byteToHex.push((i + 256).toString(16).slice(1));
9186
- }
9187
- function unsafeStringify(arr, offset = 0) {
9188
- return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
9189
- }
9190
-
9191
- // ../../node_modules/uuid/dist/esm-node/native.js
9192
- import crypto2 from "crypto";
9193
- var native_default = {
9194
- randomUUID: crypto2.randomUUID
9195
- };
9196
-
9197
- // ../../node_modules/uuid/dist/esm-node/v4.js
9198
- function v4(options, buf, offset) {
9199
- if (native_default.randomUUID && !buf && !options) {
9200
- return native_default.randomUUID();
9201
- }
9202
- options = options || {};
9203
- const rnds = options.random || (options.rng || rng)();
9204
- rnds[6] = rnds[6] & 15 | 64;
9205
- rnds[8] = rnds[8] & 63 | 128;
9206
- if (buf) {
9207
- offset = offset || 0;
9208
- for (let i = 0; i < 16; ++i) {
9209
- buf[offset + i] = rnds[i];
9210
- }
9211
- return buf;
9212
- }
9213
- return unsafeStringify(rnds);
9214
- }
9215
- var v4_default = v4;
9170
+ // worker/webrtc_whip.ts
9171
+ import { v4 as uuidv4 } from "uuid";
9216
9172
 
9217
9173
  // worker/webrtc_base.ts
9218
9174
  import path from "path";
@@ -9460,7 +9416,7 @@ var WebrtcBase = class _WebrtcBase {
9460
9416
  // worker/webrtc_whip.ts
9461
9417
  var WebrtcWhip = class extends WebrtcBase {
9462
9418
  constructor(stream, getSession, client, requestLogger) {
9463
- super(getSession, client, v4_default().toString(), "/liveIngress/whip", requestLogger);
9419
+ super(getSession, client, uuidv4().toString(), "/liveIngress/whip", requestLogger);
9464
9420
  this._stream = stream;
9465
9421
  }
9466
9422
  async start() {
@@ -9677,6 +9633,22 @@ if ("document" in globalThis && "implementation" in globalThis.document) {
9677
9633
  }
9678
9634
  }
9679
9635
  createHttpClient = async () => {
9636
+ console.debug("EyePop: creating HttpClient in browser");
9637
+ return new HttpClient2();
9638
+ };
9639
+ }
9640
+ if (typeof navigator !== "undefined" && navigator.product === "ReactNative") {
9641
+ class HttpClient2 {
9642
+ constructor() {
9643
+ }
9644
+ async fetch(input, init) {
9645
+ return await fetch(input, init);
9646
+ }
9647
+ async close() {
9648
+ }
9649
+ }
9650
+ createHttpClient = async () => {
9651
+ console.debug("EyePop: creating HttpClient in ReactNative");
9680
9652
  return new HttpClient2();
9681
9653
  };
9682
9654
  } else {
@@ -9694,6 +9666,7 @@ if ("document" in globalThis && "implementation" in globalThis.document) {
9694
9666
  }
9695
9667
  }
9696
9668
  createHttpClient = async () => {
9669
+ console.debug("EyePop: creating HttpClient with undici agent in Node");
9697
9670
  const undici = __require("undici");
9698
9671
  const agent = new undici.Agent({
9699
9672
  keepAliveTimeout: 1e4,
@@ -10974,6 +10947,11 @@ var UserReview = /* @__PURE__ */ ((UserReview2) => {
10974
10947
  UserReview2["unknown"] = "unknown";
10975
10948
  return UserReview2;
10976
10949
  })(UserReview || {});
10950
+ var AutoAnnotateTask = /* @__PURE__ */ ((AutoAnnotateTask2) => {
10951
+ AutoAnnotateTask2["object_detection"] = "object_detection";
10952
+ AutoAnnotateTask2["image_classification"] = "image_classification";
10953
+ return AutoAnnotateTask2;
10954
+ })(AutoAnnotateTask || {});
10977
10955
  var TranscodeMode = /* @__PURE__ */ ((TranscodeMode2) => {
10978
10956
  TranscodeMode2["original"] = "original";
10979
10957
  TranscodeMode2["image_original_size"] = "image_original_size";
@@ -10989,6 +10967,11 @@ var ModelType = /* @__PURE__ */ ((ModelType2) => {
10989
10967
  ModelType2["epdet_b1"] = "epdet_b1";
10990
10968
  return ModelType2;
10991
10969
  })(ModelType || {});
10970
+ var ModelTask = /* @__PURE__ */ ((ModelTask2) => {
10971
+ ModelTask2["object_detection"] = "object_detection";
10972
+ ModelTask2["image_classification"] = "image_classification";
10973
+ return ModelTask2;
10974
+ })(ModelTask || {});
10992
10975
  var ModelStatus = /* @__PURE__ */ ((ModelStatus2) => {
10993
10976
  ModelStatus2["error"] = "error";
10994
10977
  ModelStatus2["draft"] = "draft";
@@ -11737,6 +11720,7 @@ export {
11737
11720
  AnnotationType,
11738
11721
  ArtifactType,
11739
11722
  AssetStatus,
11723
+ AutoAnnotateTask,
11740
11724
  ChangeType,
11741
11725
  ContourType,
11742
11726
  DataEndpoint,
@@ -11752,6 +11736,7 @@ export {
11752
11736
  ModelFormat,
11753
11737
  ModelPrecisionType,
11754
11738
  ModelStatus,
11739
+ ModelTask,
11755
11740
  ModelTrainingStage,
11756
11741
  ModelType,
11757
11742
  PopComponentType,