@formant/data-sdk 1.11.1 → 1.12.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.
@@ -4,7 +4,7 @@ var r = (a, e, t) => (se(a, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import { decode as J } from "base-64";
5
5
  import * as l from "date-fns";
6
6
  import { startOfMinute as ce, addMinutes as de, roundToNearestMinutes as he, addSeconds as ue } from "date-fns";
7
- import { RtcClient as j, SignalingPromiseClient as N } from "@formant/realtime-sdk";
7
+ import { RtcClient as A, SignalingPromiseClient as j } from "@formant/realtime-sdk";
8
8
  import { EventEmitter as le } from "eventemitter3";
9
9
  import { deflate as me } from "pako";
10
10
  import { fromByteArray as fe } from "base64-js";
@@ -327,7 +327,7 @@ function Oe(a) {
327
327
  function Re(a) {
328
328
  T({ type: "show_message", message: a });
329
329
  }
330
- function be(a, e) {
330
+ function Ae(a, e) {
331
331
  const t = (n) => {
332
332
  const i = n.data;
333
333
  i.type === "channel_data" && i.channel === a && e({
@@ -337,21 +337,21 @@ function be(a, e) {
337
337
  };
338
338
  return window.addEventListener("message", t), () => window.removeEventListener("message", t);
339
339
  }
340
- function Ae(a) {
340
+ function be(a) {
341
341
  const e = (t) => {
342
342
  const n = t.data;
343
343
  n.type === "module_menu_item_clicked" && a(n.menu);
344
344
  };
345
345
  return window.addEventListener("message", e), () => window.removeEventListener("message", e);
346
346
  }
347
- function je(a) {
347
+ function De(a) {
348
348
  const e = (t) => {
349
349
  const n = t.data;
350
350
  n.type === "module_configuration" && a(n);
351
351
  };
352
352
  return window.addEventListener("message", e), () => window.removeEventListener("message", e);
353
353
  }
354
- function Ne(a) {
354
+ function je(a) {
355
355
  const e = k();
356
356
  e && T({ type: "request_module_data", module: e });
357
357
  const t = (n) => {
@@ -364,7 +364,7 @@ function Ne(a) {
364
364
  };
365
365
  return window.addEventListener("message", t), () => window.removeEventListener("message", t);
366
366
  }
367
- function De(a) {
367
+ function Ne(a) {
368
368
  T({ type: "request_devices" });
369
369
  const e = (t) => {
370
370
  const n = t.data;
@@ -372,14 +372,14 @@ function De(a) {
372
372
  };
373
373
  return window.addEventListener("message", e), () => window.removeEventListener("message", e);
374
374
  }
375
- const Pe = 1, F = 1e3, W = 60 * F, H = 60 * W, I = 24 * H, Ie = 7 * I, Le = 30 * I, _e = 365 * I, L = {
375
+ const Pe = 1, H = 1e3, F = 60 * H, W = 60 * F, L = 24 * W, Le = 7 * L, Ie = 30 * L, _e = 365 * L, I = {
376
376
  millisecond: Pe,
377
- second: F,
378
- minute: W,
379
- hour: H,
380
- day: I,
381
- week: Ie,
382
- month: Le,
377
+ second: H,
378
+ minute: F,
379
+ hour: W,
380
+ day: L,
381
+ week: Le,
382
+ month: Ie,
383
383
  year: _e
384
384
  };
385
385
  function $e(a, e) {
@@ -403,7 +403,7 @@ class x {
403
403
  r(this, "metadata", /* @__PURE__ */ new Map());
404
404
  r(this, "capacity");
405
405
  r(this, "timeout");
406
- this.capacity = e || 1e4, this.timeout = t || L.minute;
406
+ this.capacity = e || 1e4, this.timeout = t || I.minute;
407
407
  }
408
408
  get(e, t) {
409
409
  const n = this.keyToCacheKey(e), i = this.entries.get(n), s = this.metadata.get(n);
@@ -464,11 +464,11 @@ class Be {
464
464
  constructor() {
465
465
  r(this, "queryStoreCache", new x({
466
466
  capacity: 1e4,
467
- timeout: 20 * L.second
467
+ timeout: 20 * I.second
468
468
  }));
469
469
  r(this, "liveQueryStoreCache", new x({
470
470
  capacity: 1e4,
471
- timeout: 200 * L.millisecond
471
+ timeout: 200 * I.millisecond
472
472
  }));
473
473
  }
474
474
  moduleQuery(e, t, n, i, s, c = !1) {
@@ -476,8 +476,8 @@ class Be {
476
476
  ...e,
477
477
  names: [...t],
478
478
  types: [...n]
479
- }, p = this.query(d, i, s, c);
480
- return p === void 0 || p === "too much data" ? p : $e(p, n);
479
+ }, y = this.query(d, i, s, c);
480
+ return y === void 0 || y === "too much data" ? y : $e(y, n);
481
481
  }
482
482
  query(e, t, n, i = !1) {
483
483
  const s = {
@@ -607,34 +607,37 @@ const q = class {
607
607
  return Promise.race([n, s()]);
608
608
  }
609
609
  };
610
- let y = q;
611
- r(y, "getCurrentModuleContext", k), // senders
612
- r(y, "disableAnalyticsBottomBar", ve), r(y, "goToDevice", Te), r(y, "goToTime", Ce), r(y, "refreshAuthToken", V), r(y, "requestModuleData", Se), r(y, "sendChannelData", Ee), r(y, "setModuleDateTimeRange", ke), r(y, "setupModuleMenus", Oe), r(y, "showMessage", Re), // listeners
613
- r(y, "addAccessTokenRefreshListener", G), r(y, "addChannelDataListener", be), r(y, "addMenuListener", Ae), r(y, "addModuleConfigurationListener", je), r(y, "addModuleDataListener", Ne), r(y, "addOverviewDeviceListener", De), r(y, "addStreamListener", qe), // bidirectional
614
- r(y, "getDate", xe), r(y, "prompt", Ue), r(y, "_isOnline", null);
610
+ let g = q;
611
+ r(g, "getCurrentModuleContext", k), // senders
612
+ r(g, "disableAnalyticsBottomBar", ve), r(g, "goToDevice", Te), r(g, "goToTime", Ce), r(g, "refreshAuthToken", V), r(g, "requestModuleData", Se), r(g, "sendChannelData", Ee), r(g, "setModuleDateTimeRange", ke), r(g, "setupModuleMenus", Oe), r(g, "showMessage", Re), // listeners
613
+ r(g, "addAccessTokenRefreshListener", G), r(g, "addChannelDataListener", Ae), r(g, "addMenuListener", be), r(g, "addModuleConfigurationListener", De), r(g, "addModuleDataListener", je), r(g, "addOverviewDeviceListener", Ne), r(g, "addStreamListener", qe), // bidirectional
614
+ r(g, "getDate", xe), r(g, "prompt", Ue), r(g, "_isOnline", null);
615
615
  function f(a, e) {
616
616
  if (a !== void 0)
617
617
  return a;
618
618
  throw new Error(e || "Value is undefined");
619
619
  }
620
- const g = {
620
+ const p = {
621
621
  UNKNOWN: 0,
622
622
  TELEOP: 1,
623
623
  PORT_FORWARD: 2,
624
- OBSERVE: 3
624
+ OBSERVE: 3,
625
+ HEADLESS: 4
625
626
  }, Xt = {
626
- ...g,
627
- Unknown: g.UNKNOWN,
628
- Teleop: g.TELEOP,
629
- PortForward: g.PORT_FORWARD,
630
- Observe: g.OBSERVE,
631
- unknown: g.UNKNOWN,
632
- teleop: g.TELEOP,
633
- portForward: g.PORT_FORWARD,
634
- observe: g.OBSERVE
627
+ ...p,
628
+ Unknown: p.UNKNOWN,
629
+ Teleop: p.TELEOP,
630
+ PortForward: p.PORT_FORWARD,
631
+ Observe: p.OBSERVE,
632
+ Headless: p.HEADLESS,
633
+ unknown: p.UNKNOWN,
634
+ teleop: p.TELEOP,
635
+ portForward: p.PORT_FORWARD,
636
+ observe: p.OBSERVE,
637
+ headless: p.HEADLESS
635
638
  }, O = Symbol("RtcClientPool.instance");
636
639
  var Jt;
637
- class D {
640
+ class N {
638
641
  constructor(e) {
639
642
  r(this, Jt, null);
640
643
  r(this, "createClient");
@@ -693,49 +696,59 @@ class D {
693
696
  }
694
697
  Jt = O;
695
698
  const P = async () => f(o.token, "Realtime when user isn't authorized"), R = {
696
- [g.UNKNOWN]: new D({
699
+ [p.UNKNOWN]: new N({
697
700
  ttlMs: 2500,
698
- createClient: (a) => new j({
699
- signalingClient: new N(h),
701
+ createClient: (a) => new A({
702
+ signalingClient: new j(h),
700
703
  getToken: P,
701
- sessionType: g.UNKNOWN,
704
+ sessionType: p.UNKNOWN,
702
705
  receive: a
703
706
  })
704
707
  }),
705
- [g.TELEOP]: new D({
708
+ [p.TELEOP]: new N({
706
709
  ttlMs: 2500,
707
- createClient: (a) => new j({
708
- signalingClient: new N(h),
710
+ createClient: (a) => new A({
711
+ signalingClient: new j(h),
709
712
  getToken: P,
710
- sessionType: g.TELEOP,
713
+ sessionType: p.TELEOP,
711
714
  receive: a
712
715
  })
713
716
  }),
714
- [g.PORT_FORWARD]: new D({
717
+ [p.PORT_FORWARD]: new N({
715
718
  ttlMs: 2500,
716
- createClient: (a) => new j({
717
- signalingClient: new N(h),
719
+ createClient: (a) => new A({
720
+ signalingClient: new j(h),
718
721
  getToken: P,
719
- sessionType: g.PORT_FORWARD,
722
+ sessionType: p.PORT_FORWARD,
720
723
  receive: a
721
724
  })
722
725
  }),
723
- [g.OBSERVE]: new D({
726
+ [p.OBSERVE]: new N({
724
727
  ttlMs: 2500,
725
- createClient: (a) => new j({
726
- signalingClient: new N(h),
728
+ createClient: (a) => new A({
729
+ signalingClient: new j(h),
727
730
  getToken: P,
728
- sessionType: g.OBSERVE,
731
+ sessionType: p.OBSERVE,
732
+ receive: a
733
+ })
734
+ }),
735
+ [p.HEADLESS]: new N({
736
+ ttlMs: 2500,
737
+ createClient: (a) => new A({
738
+ signalingClient: new j(h),
739
+ getToken: P,
740
+ sessionType: p.HEADLESS,
729
741
  receive: a
730
742
  })
731
743
  })
732
744
  }, Je = {
733
745
  ...R,
734
- unknown: R[g.UNKNOWN],
735
- teleop: R[g.TELEOP],
736
- portForward: R[g.PORT_FORWARD],
737
- observe: R[g.OBSERVE]
738
- }, $ = R[g.TELEOP], Ve = (a) => {
746
+ unknown: R[p.UNKNOWN],
747
+ teleop: R[p.TELEOP],
748
+ portForward: R[p.PORT_FORWARD],
749
+ observe: R[p.OBSERVE],
750
+ headless: R[p.HEADLESS]
751
+ }, $ = R[p.TELEOP], Ve = (a) => {
739
752
  const { sessionType: e } = a;
740
753
  return e ? Je[e] : $;
741
754
  };
@@ -772,8 +785,8 @@ class Ge {
772
785
  function b(a) {
773
786
  return new Promise((e) => setTimeout(e, a));
774
787
  }
775
- const Fe = (a) => a !== void 0 && a.capabilities !== void 0 && a.capabilitySet !== void 0;
776
- class We {
788
+ const He = (a) => a !== void 0 && a.capabilities !== void 0 && a.capabilitySet !== void 0;
789
+ class Fe {
777
790
  constructor(e) {
778
791
  r(this, "ready", !1);
779
792
  r(this, "listeners", []);
@@ -859,7 +872,7 @@ class We {
859
872
  this.binaryListeners.splice(t, 1);
860
873
  }
861
874
  }
862
- class He {
875
+ class We {
863
876
  constructor(e, t) {
864
877
  r(this, "currentListeners", []);
865
878
  r(this, "onRealtimeMessage", (e, t) => {
@@ -953,8 +966,8 @@ class Ke extends K {
953
966
  await n.waitTilReady();
954
967
  const c = this.generateBinaryId(), d = c.toString();
955
968
  i.set(d, !0), n.sendBinary(new Uint8Array([...c, ...t]));
956
- const p = (/* @__PURE__ */ new Date()).getTime();
957
- for (; (/* @__PURE__ */ new Date()).getTime() < p + s; )
969
+ const y = (/* @__PURE__ */ new Date()).getTime();
970
+ for (; (/* @__PURE__ */ new Date()).getTime() < y + s; )
958
971
  if (await b(50), i.has(d)) {
959
972
  const m = i.get(d);
960
973
  if (m !== !0) {
@@ -1006,9 +1019,9 @@ class Qe extends K {
1006
1019
  const d = n.get(s);
1007
1020
  if (d !== !0) {
1008
1021
  n.delete(s);
1009
- const { data: p, error: m } = d;
1010
- if (p)
1011
- return p;
1022
+ const { data: y, error: m } = d;
1023
+ if (y)
1024
+ return y;
1012
1025
  if (m)
1013
1026
  throw console.error({
1014
1027
  name: "AdapterError",
@@ -1063,7 +1076,7 @@ class Q extends le {
1063
1076
  const t = await this.getConfiguration(), n = [];
1064
1077
  for (const i of t.teleop.rosStreams ?? [])
1065
1078
  i.topicType == "sensor_msgs/JointState" && n.push(
1066
- new He(this, {
1079
+ new We(this, {
1067
1080
  currentJointStateStream: { name: i.topicName },
1068
1081
  plannedJointStateStream: i.plannedTopic ? { name: i.plannedTopic } : void 0,
1069
1082
  planValidStream: i.planValidTopic ? { name: i.planValidTopic } : void 0,
@@ -1189,8 +1202,8 @@ class Q extends le {
1189
1202
  ...n
1190
1203
  },
1191
1204
  !1,
1192
- (p, m) => {
1193
- const w = new We(m);
1205
+ (y, m) => {
1206
+ const w = new Fe(m);
1194
1207
  d(w);
1195
1208
  }
1196
1209
  );
@@ -1375,11 +1388,11 @@ async function ee(a, e, t, n, i) {
1375
1388
  const s = Z[e];
1376
1389
  return await Promise.all(
1377
1390
  Array(t).fill(0).map(async (c, d) => {
1378
- const p = new Date(n), m = s.sub(
1379
- s.start(p),
1391
+ const y = new Date(n), m = s.sub(
1392
+ s.start(y),
1380
1393
  t - d - 1
1381
1394
  ), w = s.sub(
1382
- s.end(p),
1395
+ s.end(y),
1383
1396
  t - d - 1
1384
1397
  ), v = rt(
1385
1398
  m.toLocaleDateString(),
@@ -1419,10 +1432,10 @@ async function te(a, e, t) {
1419
1432
  },
1420
1433
  e
1421
1434
  );
1422
- }), p = await Promise.all(d);
1435
+ }), y = await Promise.all(d);
1423
1436
  return c.map((m, w) => ({
1424
1437
  date: new Date(m).toISOString(),
1425
- annotations: p[w]
1438
+ annotations: y[w]
1426
1439
  }));
1427
1440
  }
1428
1441
  async function ne(a, e, t, n, i) {
@@ -1604,7 +1617,7 @@ class S extends Q {
1604
1617
  sessionType: t
1605
1618
  }).get(this.handleMessage);
1606
1619
  let d = !1;
1607
- const p = new Promise(
1620
+ const y = new Promise(
1608
1621
  (w, v) => setTimeout(() => {
1609
1622
  d = !0, v(
1610
1623
  new Error(
@@ -1619,7 +1632,7 @@ class S extends Q {
1619
1632
  const w = await this.getRemoteDevicePeerId(c);
1620
1633
  this.assertNotCancelled(d);
1621
1634
  let v;
1622
- for (let A = 0; A < i && (v = await c.connect(w), !v); A++)
1635
+ for (let D = 0; D < i && (v = await c.connect(w), !v); D++)
1623
1636
  b(100), this.assertNotCancelled(d);
1624
1637
  if (!v)
1625
1638
  throw new Error(
@@ -1632,7 +1645,7 @@ class S extends Q {
1632
1645
  `${(/* @__PURE__ */ new Date()).toISOString()} :: Connection completed after ${C} retries`
1633
1646
  ), w;
1634
1647
  };
1635
- return Promise.race([m(), p]).then((w) => {
1648
+ return Promise.race([m(), y]).then((w) => {
1636
1649
  this.remoteDevicePeerId = w, this.initConnectionMonitoring(), this.rtcClient = c, this.emit("connect");
1637
1650
  }).catch((w) => {
1638
1651
  throw console.debug(
@@ -1645,7 +1658,7 @@ class S extends Q {
1645
1658
  }
1646
1659
  async getRemoteDevicePeerId(e) {
1647
1660
  const n = (await e.getPeers()).find((i) => i.deviceId === this.id);
1648
- if (!Fe(n))
1661
+ if (!He(n))
1649
1662
  throw new Error("Cannot find peer, is the robot offline?");
1650
1663
  return n.id;
1651
1664
  }
@@ -1721,7 +1734,7 @@ class S extends Q {
1721
1734
  throw new Error(`Could not find command with name "${e}"`);
1722
1735
  let d = "";
1723
1736
  t === void 0 ? c.parameterEnabled && c.parameterValue && (d = c.parameterValue) : d = t;
1724
- let p = {
1737
+ let y = {
1725
1738
  value: d,
1726
1739
  scrubberTime: (n || /* @__PURE__ */ new Date()).toISOString(),
1727
1740
  meta: {
@@ -1736,7 +1749,7 @@ class S extends Q {
1736
1749
  organizationId: this.organizationId,
1737
1750
  deviceId: this.id,
1738
1751
  command: c.command,
1739
- parameter: p,
1752
+ parameter: y,
1740
1753
  userId: (w = o.currentUser) == null ? void 0 : w.id
1741
1754
  }),
1742
1755
  headers: {
@@ -1779,7 +1792,7 @@ class S extends Q {
1779
1792
  );
1780
1793
  }
1781
1794
  async getTelemetryStreams() {
1782
- var d, p;
1795
+ var d, y;
1783
1796
  const e = await this.getConfiguration(), t = await fetch(
1784
1797
  `${h}/v1/queries/metadata/stream-names`,
1785
1798
  {
@@ -1793,7 +1806,7 @@ class S extends Q {
1793
1806
  }
1794
1807
  }
1795
1808
  ), n = [], i = [];
1796
- return (p = (d = e.telemetry) == null ? void 0 : d.streams) == null || p.forEach((m) => {
1809
+ return (y = (d = e.telemetry) == null ? void 0 : d.streams) == null || y.forEach((m) => {
1797
1810
  m.disabled !== !0 && n.push(m.name), m.onDemand === !0 && i.push(m.name);
1798
1811
  }), console.log(i), (await t.json()).items.filter((m) => !n.includes(m)).map((m) => ({ name: m, onDemand: i.includes(m) }));
1799
1812
  }
@@ -1895,8 +1908,8 @@ class lt extends Q {
1895
1908
  if (m.length > 0) {
1896
1909
  const v = JSON.parse(m);
1897
1910
  if ((w = v.result) != null && w.datapoint) {
1898
- const C = v.result.datapoint, A = C.stream;
1899
- delete C.stream, this.streamTelemetry[A] = C;
1911
+ const C = v.result.datapoint, D = C.stream;
1912
+ delete C.stream, this.streamTelemetry[D] = C;
1900
1913
  }
1901
1914
  }
1902
1915
  });
@@ -1919,7 +1932,7 @@ class lt extends Q {
1919
1932
  this.rtcClient && console.warn(
1920
1933
  "overwriting existing rtcClient due to missing connectionMonitorInterval"
1921
1934
  );
1922
- const n = new j({
1935
+ const n = new A({
1923
1936
  lanOnlyMode: !0,
1924
1937
  receive: this.handleMessage,
1925
1938
  sessionType: t
@@ -2201,7 +2214,7 @@ async function Rt(...a) {
2201
2214
  }
2202
2215
  )).json()).items;
2203
2216
  }
2204
- async function bt() {
2217
+ async function At() {
2205
2218
  if (!o.token)
2206
2219
  throw new Error("Not authenticated");
2207
2220
  const t = (await (await fetch(`${h}/v1/queries/online-devices`, {
@@ -2213,7 +2226,7 @@ async function bt() {
2213
2226
  })).json()).items;
2214
2227
  return (await M()).filter((i) => t.includes(i.id));
2215
2228
  }
2216
- async function At() {
2229
+ async function bt() {
2217
2230
  if (!o.token)
2218
2231
  throw new Error("Not authenticated");
2219
2232
  const t = (await (await fetch(`${h}/v1/signaling/peers`, {
@@ -2227,7 +2240,7 @@ async function At() {
2227
2240
  );
2228
2241
  return (await M()).filter((i) => t.includes(i.id));
2229
2242
  }
2230
- async function jt() {
2243
+ async function Dt() {
2231
2244
  if (!o.token)
2232
2245
  throw new Error("Not authenticated");
2233
2246
  return (await (await fetch(`${h}/v1/admin/streams`, {
@@ -2240,7 +2253,7 @@ async function jt() {
2240
2253
  (t) => t.enabled
2241
2254
  );
2242
2255
  }
2243
- async function Nt(a) {
2256
+ async function jt(a) {
2244
2257
  if (!o.token)
2245
2258
  throw new Error("Not authenticated");
2246
2259
  return await (await fetch(
@@ -2255,7 +2268,7 @@ async function Nt(a) {
2255
2268
  }
2256
2269
  )).json();
2257
2270
  }
2258
- async function Dt() {
2271
+ async function Nt() {
2259
2272
  if (!o.token)
2260
2273
  throw new Error("Not authenticated");
2261
2274
  return (await (await fetch(
@@ -2280,7 +2293,7 @@ async function Pt() {
2280
2293
  }
2281
2294
  })).json()).items;
2282
2295
  }
2283
- async function It(a, e) {
2296
+ async function Lt(a, e) {
2284
2297
  if (!o.token)
2285
2298
  throw new Error("Not authenticated");
2286
2299
  return await (await fetch(`${h}/v1/admin/fleets/${a}`, {
@@ -2292,7 +2305,7 @@ async function It(a, e) {
2292
2305
  }
2293
2306
  })).json();
2294
2307
  }
2295
- async function Lt(a) {
2308
+ async function It(a) {
2296
2309
  if (!o.token)
2297
2310
  throw new Error("Not authenticated");
2298
2311
  return await (await fetch(
@@ -2421,7 +2434,7 @@ const E = class {
2421
2434
  }
2422
2435
  };
2423
2436
  let u = E;
2424
- r(u, "defaultDeviceId"), r(u, "knownContext", []), r(u, "createFleet", zt), r(u, "listFleets", Pt), r(u, "getFleet", Et), r(u, "patchFleet", It), r(u, "deleteFleet", wt), r(u, "addDeviceToFleet", mt), r(u, "getFleetDevices", kt), r(u, "aggregateTelemetry", ft), r(u, "createShareLink", Y), r(u, "eventsCounter", ee), r(u, "getAnalyticStreams", pt), r(u, "getAnalyticsModules", yt), r(u, "getAnalyticsRows", gt), r(u, "getAnnotationCount", B), r(u, "getAnnotationCountByIntervals", te), r(u, "getCurrentGroup", vt), r(u, "getDevices", M), r(u, "getEvent", Ct), r(u, "getFileUrl", St), r(u, "getInterventions", Ot), r(u, "getLatestTelemetry", Rt), r(u, "getOnlineDevices", bt), r(u, "getPeers", ie), r(u, "getRealtimeDevices", At), r(u, "getRealtimeSessions", ae), r(u, "getStreams", jt), r(u, "getTaskReportRows", Nt), r(u, "getTaskReportTables", Dt), r(u, "getTelemetry", ne), r(u, "getViews", X), r(u, "patchStream", Lt), r(u, "patchView", _t), r(u, "queryAnalytics", $t), r(u, "queryDevices", oe), r(u, "queryEvents", z), r(u, "queryTelemetry", _), r(u, "getAllEventTriggerGroup", Bt), r(u, "getEventTriggerGroup", Mt), r(u, "patchEventTriggergroup", qt);
2437
+ r(u, "defaultDeviceId"), r(u, "knownContext", []), r(u, "createFleet", zt), r(u, "listFleets", Pt), r(u, "getFleet", Et), r(u, "patchFleet", Lt), r(u, "deleteFleet", wt), r(u, "addDeviceToFleet", mt), r(u, "getFleetDevices", kt), r(u, "aggregateTelemetry", ft), r(u, "createShareLink", Y), r(u, "eventsCounter", ee), r(u, "getAnalyticStreams", pt), r(u, "getAnalyticsModules", yt), r(u, "getAnalyticsRows", gt), r(u, "getAnnotationCount", B), r(u, "getAnnotationCountByIntervals", te), r(u, "getCurrentGroup", vt), r(u, "getDevices", M), r(u, "getEvent", Ct), r(u, "getFileUrl", St), r(u, "getInterventions", Ot), r(u, "getLatestTelemetry", Rt), r(u, "getOnlineDevices", At), r(u, "getPeers", ie), r(u, "getRealtimeDevices", bt), r(u, "getRealtimeSessions", ae), r(u, "getStreams", Dt), r(u, "getTaskReportRows", jt), r(u, "getTaskReportTables", Nt), r(u, "getTelemetry", ne), r(u, "getViews", X), r(u, "patchStream", It), r(u, "patchView", _t), r(u, "queryAnalytics", $t), r(u, "queryDevices", oe), r(u, "queryEvents", z), r(u, "queryTelemetry", _), r(u, "getAllEventTriggerGroup", Bt), r(u, "getEventTriggerGroup", Mt), r(u, "patchEventTriggergroup", qt);
2425
2438
  class tn {
2426
2439
  static async set(e, t, n) {
2427
2440
  try {
@@ -2819,21 +2832,21 @@ try {
2819
2832
  const a = typeof window < "u" && window.location ? new URLSearchParams(window.location.search) : new URLSearchParams(""), e = a.get("device");
2820
2833
  e && u.setDefaultDevice(e);
2821
2834
  const t = a.get("auth");
2822
- t && o.loginWithToken(t), a.get("module") && o.listenForRefresh(), typeof window < "u" && y.listenForConnectionEvents();
2835
+ t && o.loginWithToken(t), a.get("module") && o.listenForRefresh(), typeof window < "u" && g.listenForConnectionEvents();
2823
2836
  } catch {
2824
2837
  }
2825
2838
  export {
2826
2839
  an as Account,
2827
- y as App,
2840
+ g as App,
2828
2841
  nn as AudioPlayer,
2829
2842
  o as Authentication,
2830
2843
  Ke as BinaryRequestDataChannel,
2831
2844
  Ge as CaptureStream,
2832
- We as DataChannel,
2845
+ Fe as DataChannel,
2833
2846
  S as Device,
2834
2847
  u as Fleet,
2835
2848
  tn as KeyValue,
2836
- He as Manipulator,
2849
+ We as Manipulator,
2837
2850
  lt as PeerDevice,
2838
2851
  on as Role,
2839
2852
  Xt as SessionType,