@formant/data-sdk 1.6.0 → 1.7.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.
@@ -460,7 +460,7 @@ async function _(a) {
460
460
  }
461
461
  })).json()).items;
462
462
  }
463
- class Me {
463
+ class Be {
464
464
  constructor() {
465
465
  s(this, "queryStoreCache", new x({
466
466
  capacity: 1e4,
@@ -508,14 +508,14 @@ class Me {
508
508
  });
509
509
  }
510
510
  }
511
- const Be = new Me();
511
+ const Me = new Be();
512
512
  function qe(a, e, t) {
513
513
  const n = (i) => {
514
514
  const r = i.data;
515
515
  if (r.type === "module_data") {
516
516
  const { start: c, end: d } = r.queryRange;
517
517
  t(
518
- Be.moduleQuery(
518
+ Me.moduleQuery(
519
519
  {},
520
520
  a,
521
521
  e,
@@ -622,7 +622,7 @@ const g = {
622
622
  TELEOP: 1,
623
623
  PORT_FORWARD: 2,
624
624
  OBSERVE: 3
625
- }, Gt = {
625
+ }, Ht = {
626
626
  ...g,
627
627
  Unknown: g.UNKNOWN,
628
628
  Teleop: g.TELEOP,
@@ -633,10 +633,10 @@ const g = {
633
633
  portForward: g.PORT_FORWARD,
634
634
  observe: g.OBSERVE
635
635
  }, O = Symbol("RtcClientPool.instance");
636
- var Bt;
636
+ var qt;
637
637
  class N {
638
638
  constructor(e) {
639
- s(this, Bt, null);
639
+ s(this, qt, null);
640
640
  s(this, "createClient");
641
641
  s(this, "ttlMs");
642
642
  s(this, "proxyHandler");
@@ -691,7 +691,7 @@ class N {
691
691
  }, this.ttlMs)), !0) : (console.warn("this instance has already been released!"), !1);
692
692
  }
693
693
  }
694
- Bt = O;
694
+ qt = O;
695
695
  const j = async () => f(o.token, "Realtime when user isn't authorized"), R = {
696
696
  [g.UNKNOWN]: new N({
697
697
  ttlMs: 2500,
@@ -1259,7 +1259,7 @@ async function Y(a, e) {
1259
1259
  viewId: n[0].id
1260
1260
  })}`;
1261
1261
  }
1262
- const Ht = [
1262
+ const Kt = [
1263
1263
  "day",
1264
1264
  "week",
1265
1265
  "month",
@@ -1267,7 +1267,7 @@ const Ht = [
1267
1267
  "hour",
1268
1268
  "minute",
1269
1269
  "quarter"
1270
- ], Kt = [
1270
+ ], Qt = [
1271
1271
  "interval",
1272
1272
  "start",
1273
1273
  "end",
@@ -1295,7 +1295,7 @@ function it(a) {
1295
1295
  function ot(a) {
1296
1296
  return a.count;
1297
1297
  }
1298
- const Qt = {
1298
+ const Xt = {
1299
1299
  min: nt,
1300
1300
  max: tt,
1301
1301
  "standard deviation": et,
@@ -1394,7 +1394,7 @@ async function ee(a, e, t, n, i) {
1394
1394
  })
1395
1395
  );
1396
1396
  }
1397
- async function M(a, e) {
1397
+ async function B(a, e) {
1398
1398
  return (await z({
1399
1399
  ...a,
1400
1400
  eventTypes: ["annotation"]
@@ -1411,7 +1411,7 @@ async function te(a, e, t) {
1411
1411
  end: new Date(n)
1412
1412
  }), d = c.map((m, w) => {
1413
1413
  const v = new Date(m).toISOString(), C = w === c.length - 1 ? new Date(Date.now()).toISOString() : new Date(c[w + 1]);
1414
- return M(
1414
+ return B(
1415
1415
  {
1416
1416
  ...a,
1417
1417
  start: v,
@@ -1512,7 +1512,21 @@ async function ht(a) {
1512
1512
  }
1513
1513
  })).json()).items;
1514
1514
  }
1515
- class E extends Q {
1515
+ async function lt(a) {
1516
+ if (!o.token)
1517
+ throw new Error("Not authenticated");
1518
+ return await (await fetch(
1519
+ `${h}/v1/admin/devices/${a}/disable`,
1520
+ {
1521
+ method: "POST",
1522
+ headers: {
1523
+ "Content-Type": "application/json",
1524
+ Authorization: "Bearer " + o.token
1525
+ }
1526
+ }
1527
+ )).json();
1528
+ }
1529
+ class S extends Q {
1516
1530
  constructor(e, t, n, i) {
1517
1531
  super(), this.id = e, this.name = t, this.organizationId = n, this.tags = i;
1518
1532
  }
@@ -1821,7 +1835,7 @@ class E extends Q {
1821
1835
  )).json();
1822
1836
  }
1823
1837
  async getAnnotationCount(e, t) {
1824
- return await M({ ...e, deviceIds: [this.id] }, t);
1838
+ return await B({ ...e, deviceIds: [this.id] }, t);
1825
1839
  }
1826
1840
  async getAnnotationCountByIntervals(e, t, n) {
1827
1841
  return await te(
@@ -1840,8 +1854,8 @@ class E extends Q {
1840
1854
  return e.scope.deviceIds = [this.id], await Y(e, t);
1841
1855
  }
1842
1856
  }
1843
- s(E, "createDevice", st), s(E, "patchDevice", ct), s(E, "getDevicesData", dt), s(E, "queryDevicesData", ht);
1844
- class lt extends Q {
1857
+ s(S, "createDevice", st), s(S, "patchDevice", ct), s(S, "getDevicesData", dt), s(S, "queryDevicesData", ht), s(S, "disableDevice", lt);
1858
+ class ut extends Q {
1845
1859
  constructor(t) {
1846
1860
  super();
1847
1861
  s(this, "id");
@@ -1962,7 +1976,7 @@ class lt extends Q {
1962
1976
  });
1963
1977
  }
1964
1978
  }
1965
- async function ut(a, e) {
1979
+ async function mt(a, e) {
1966
1980
  if (!o.token)
1967
1981
  throw new Error("Not authenticated");
1968
1982
  return await (await fetch(`${h}/v1/admin/devices/${a}`, {
@@ -1974,7 +1988,7 @@ async function ut(a, e) {
1974
1988
  }
1975
1989
  })).json();
1976
1990
  }
1977
- async function mt(a) {
1991
+ async function ft(a) {
1978
1992
  if (!o.token)
1979
1993
  throw new Error("Not authenticated");
1980
1994
  return (await (await fetch(`${h}/v1/queries/queries`, {
@@ -1986,7 +2000,7 @@ async function mt(a) {
1986
2000
  }
1987
2001
  })).json()).aggregates;
1988
2002
  }
1989
- async function ft(a) {
2003
+ async function wt(a) {
1990
2004
  if (!o.token)
1991
2005
  throw new Error("Not authenticated");
1992
2006
  await fetch(`${h}/v1/admin/fleets/${a}`, {
@@ -1997,7 +2011,7 @@ async function ft(a) {
1997
2011
  }
1998
2012
  });
1999
2013
  }
2000
- async function wt() {
2014
+ async function pt() {
2001
2015
  if (!o.token)
2002
2016
  throw new Error("Not authenticated");
2003
2017
  return (await (await fetch(
@@ -2011,7 +2025,7 @@ async function wt() {
2011
2025
  }
2012
2026
  )).json()).items;
2013
2027
  }
2014
- async function pt() {
2028
+ async function yt() {
2015
2029
  if (!o.token)
2016
2030
  throw new Error("Not authenticated");
2017
2031
  return (await (await fetch(
@@ -2025,7 +2039,7 @@ async function pt() {
2025
2039
  }
2026
2040
  )).json()).items;
2027
2041
  }
2028
- async function yt(a) {
2042
+ async function gt(a) {
2029
2043
  if (!o.token)
2030
2044
  throw new Error("Not authenticated");
2031
2045
  return await (await fetch(`${h}/v1/queries/analytics/rows`, {
@@ -2048,10 +2062,10 @@ async function oe(a) {
2048
2062
  Authorization: "Bearer " + o.token
2049
2063
  }
2050
2064
  })).json()).items.map(
2051
- (n) => new E(n.id, n.name, n.organizationId, n.tags)
2065
+ (n) => new S(n.id, n.name, n.organizationId, n.tags)
2052
2066
  );
2053
2067
  }
2054
- async function gt() {
2068
+ async function vt() {
2055
2069
  if (!o.token)
2056
2070
  throw new Error("Not authenticated");
2057
2071
  let a = new URLSearchParams("");
@@ -2074,7 +2088,7 @@ async function gt() {
2074
2088
  type: "default"
2075
2089
  });
2076
2090
  }
2077
- async function vt(a) {
2091
+ async function Tt(a) {
2078
2092
  if (!o.token)
2079
2093
  throw new Error("Not authenticated");
2080
2094
  const t = await (await fetch(`${h}/v1/admin/devices/${a}`, {
@@ -2084,9 +2098,9 @@ async function vt(a) {
2084
2098
  Authorization: "Bearer " + o.token
2085
2099
  }
2086
2100
  })).json(), n = t.name;
2087
- return new E(a, n, t.organizationId, t.tags);
2101
+ return new S(a, n, t.organizationId, t.tags);
2088
2102
  }
2089
- async function B() {
2103
+ async function M() {
2090
2104
  if (!o.token)
2091
2105
  throw new Error("Not authenticated");
2092
2106
  const e = await (await fetch(`${h}/v1/admin/device-details/query`, {
@@ -2098,7 +2112,7 @@ async function B() {
2098
2112
  }
2099
2113
  })).json();
2100
2114
  return e.items, e.items.map(
2101
- (t) => new E(
2115
+ (t) => new S(
2102
2116
  t.id,
2103
2117
  t.name,
2104
2118
  t.organizationId,
@@ -2106,7 +2120,7 @@ async function B() {
2106
2120
  )
2107
2121
  );
2108
2122
  }
2109
- async function Tt(a) {
2123
+ async function Ct(a) {
2110
2124
  if (!o.token)
2111
2125
  throw new Error("Not authenticated");
2112
2126
  return (await (await fetch(
@@ -2120,7 +2134,7 @@ async function Tt(a) {
2120
2134
  }
2121
2135
  )).json()).items;
2122
2136
  }
2123
- async function Ct(a) {
2137
+ async function St(a) {
2124
2138
  const t = await (await fetch(`${h}/v1/admin/files/query`, {
2125
2139
  method: "POST",
2126
2140
  body: JSON.stringify({
@@ -2135,7 +2149,7 @@ async function Ct(a) {
2135
2149
  throw new Error("File not found");
2136
2150
  return t.fileUrls[0];
2137
2151
  }
2138
- async function St(a) {
2152
+ async function Et(a) {
2139
2153
  if (!o.token)
2140
2154
  throw new Error("Not authenticated");
2141
2155
  return await (await fetch(`${h}/v1/admin/fleets/${a}`, {
@@ -2146,7 +2160,7 @@ async function St(a) {
2146
2160
  }
2147
2161
  })).json();
2148
2162
  }
2149
- async function Et(a) {
2163
+ async function kt(a) {
2150
2164
  if (!o.token)
2151
2165
  throw new Error("Not authenticated");
2152
2166
  return (await (await fetch(`${h}/v1/admin/fleets/${a}/devices`, {
@@ -2157,7 +2171,7 @@ async function Et(a) {
2157
2171
  }
2158
2172
  })).json()).items;
2159
2173
  }
2160
- async function kt() {
2174
+ async function Ot() {
2161
2175
  if (!o.token)
2162
2176
  throw new Error("Not authenticated");
2163
2177
  return (await (await fetch(
@@ -2171,7 +2185,7 @@ async function kt() {
2171
2185
  }
2172
2186
  )).json()).items;
2173
2187
  }
2174
- async function Ot(...a) {
2188
+ async function Rt(...a) {
2175
2189
  const e = a.flat().filter((i) => !!i);
2176
2190
  return e.length === 0 ? [] : (await (await fetch(
2177
2191
  `${h}/v1/queries/stream-current-value`,
@@ -2187,7 +2201,7 @@ async function Ot(...a) {
2187
2201
  }
2188
2202
  )).json()).items;
2189
2203
  }
2190
- async function Rt() {
2204
+ async function bt() {
2191
2205
  if (!o.token)
2192
2206
  throw new Error("Not authenticated");
2193
2207
  const t = (await (await fetch(`${h}/v1/queries/online-devices`, {
@@ -2197,9 +2211,9 @@ async function Rt() {
2197
2211
  Authorization: "Bearer " + o.token
2198
2212
  }
2199
2213
  })).json()).items;
2200
- return (await B()).filter((i) => t.includes(i.id));
2214
+ return (await M()).filter((i) => t.includes(i.id));
2201
2215
  }
2202
- async function bt() {
2216
+ async function At() {
2203
2217
  if (!o.token)
2204
2218
  throw new Error("Not authenticated");
2205
2219
  const t = (await (await fetch(`${h}/v1/signaling/peers`, {
@@ -2211,9 +2225,9 @@ async function bt() {
2211
2225
  })).json()).items.map(
2212
2226
  (i) => i.deviceId
2213
2227
  );
2214
- return (await B()).filter((i) => t.includes(i.id));
2228
+ return (await M()).filter((i) => t.includes(i.id));
2215
2229
  }
2216
- async function At() {
2230
+ async function Dt() {
2217
2231
  if (!o.token)
2218
2232
  throw new Error("Not authenticated");
2219
2233
  return (await (await fetch(`${h}/v1/admin/streams`, {
@@ -2226,7 +2240,7 @@ async function At() {
2226
2240
  (t) => t.enabled
2227
2241
  );
2228
2242
  }
2229
- async function Dt(a) {
2243
+ async function Pt(a) {
2230
2244
  if (!o.token)
2231
2245
  throw new Error("Not authenticated");
2232
2246
  return await (await fetch(
@@ -2241,7 +2255,7 @@ async function Dt(a) {
2241
2255
  }
2242
2256
  )).json();
2243
2257
  }
2244
- async function Pt() {
2258
+ async function Nt() {
2245
2259
  if (!o.token)
2246
2260
  throw new Error("Not authenticated");
2247
2261
  return (await (await fetch(
@@ -2255,7 +2269,7 @@ async function Pt() {
2255
2269
  }
2256
2270
  )).json()).items;
2257
2271
  }
2258
- async function Nt() {
2272
+ async function jt() {
2259
2273
  if (!o.token)
2260
2274
  throw new Error("Not authenticated");
2261
2275
  return (await (await fetch(`${h}/v1/admin/fleets`, {
@@ -2266,7 +2280,7 @@ async function Nt() {
2266
2280
  }
2267
2281
  })).json()).items;
2268
2282
  }
2269
- async function jt(a, e) {
2283
+ async function It(a, e) {
2270
2284
  if (!o.token)
2271
2285
  throw new Error("Not authenticated");
2272
2286
  return await (await fetch(`${h}/v1/admin/fleets/${a}`, {
@@ -2278,7 +2292,7 @@ async function jt(a, e) {
2278
2292
  }
2279
2293
  })).json();
2280
2294
  }
2281
- async function It(a) {
2295
+ async function Lt(a) {
2282
2296
  if (!o.token)
2283
2297
  throw new Error("Not authenticated");
2284
2298
  return await (await fetch(
@@ -2293,7 +2307,7 @@ async function It(a) {
2293
2307
  }
2294
2308
  )).json();
2295
2309
  }
2296
- async function Lt(a) {
2310
+ async function _t(a) {
2297
2311
  if (!o.token)
2298
2312
  throw new Error("Not authenticated");
2299
2313
  return await (await fetch(`${h}/v1/admin/views/${a.id}`, {
@@ -2305,7 +2319,7 @@ async function Lt(a) {
2305
2319
  }
2306
2320
  })).json();
2307
2321
  }
2308
- async function _t(a) {
2322
+ async function $t(a) {
2309
2323
  if (!o.token)
2310
2324
  throw new Error("Not authenticated");
2311
2325
  return await (await fetch(`${h}/v1/queries/analytics`, {
@@ -2317,7 +2331,7 @@ async function _t(a) {
2317
2331
  }
2318
2332
  })).json();
2319
2333
  }
2320
- async function $t(a) {
2334
+ async function zt(a) {
2321
2335
  if (!o.token)
2322
2336
  throw new Error("Not authenticated");
2323
2337
  return await (await fetch(`${h}/v1/admin/fleets`, {
@@ -2329,14 +2343,14 @@ async function $t(a) {
2329
2343
  }
2330
2344
  })).json();
2331
2345
  }
2332
- const S = class {
2346
+ const E = class {
2333
2347
  static async setDefaultDevice(e) {
2334
- S.defaultDeviceId = e;
2348
+ E.defaultDeviceId = e;
2335
2349
  }
2336
2350
  static async getCurrentDevice() {
2337
2351
  if (!o.token)
2338
2352
  throw new Error("Not authenticated");
2339
- if (!S.defaultDeviceId)
2353
+ if (!E.defaultDeviceId)
2340
2354
  throw new Error("No known default device");
2341
2355
  const n = (await (await fetch(
2342
2356
  `${h}/v1/admin/device-details/query`,
@@ -2348,27 +2362,27 @@ const S = class {
2348
2362
  }
2349
2363
  }
2350
2364
  )).json()).items.find(
2351
- (c) => c.id === S.defaultDeviceId
2352
- ), i = n.name, r = new E(
2353
- S.defaultDeviceId,
2365
+ (c) => c.id === E.defaultDeviceId
2366
+ ), i = n.name, r = new S(
2367
+ E.defaultDeviceId,
2354
2368
  i,
2355
2369
  f(o.currentOrganization),
2356
2370
  n.tags
2357
2371
  );
2358
- return S.knownContext.push(new WeakRef(r)), r;
2372
+ return E.knownContext.push(new WeakRef(r)), r;
2359
2373
  }
2360
2374
  static async getPeerDevice(e) {
2361
- const t = new lt(e);
2375
+ const t = new ut(e);
2362
2376
  return t.id = await t.getDeviceId(), t;
2363
2377
  }
2364
2378
  static async getDevice(e) {
2365
- const t = await vt(e);
2366
- return S.knownContext.push(new WeakRef(t)), t;
2379
+ const t = await Tt(e);
2380
+ return E.knownContext.push(new WeakRef(t)), t;
2367
2381
  }
2368
2382
  };
2369
- let l = S;
2370
- s(l, "defaultDeviceId"), s(l, "knownContext", []), s(l, "createFleet", $t), s(l, "listFleets", Nt), s(l, "getFleet", St), s(l, "patchFleet", jt), s(l, "deleteFleet", ft), s(l, "addDeviceToFleet", ut), s(l, "getFleetDevices", Et), s(l, "aggregateTelemetry", mt), s(l, "createShareLink", Y), s(l, "eventsCounter", ee), s(l, "getAnalyticStreams", wt), s(l, "getAnalyticsModules", pt), s(l, "getAnalyticsRows", yt), s(l, "getAnnotationCount", M), s(l, "getAnnotationCountByIntervals", te), s(l, "getCurrentGroup", gt), s(l, "getDevices", B), s(l, "getEvent", Tt), s(l, "getFileUrl", Ct), s(l, "getInterventions", kt), s(l, "getLatestTelemetry", Ot), s(l, "getOnlineDevices", Rt), s(l, "getPeers", ie), s(l, "getRealtimeDevices", bt), s(l, "getRealtimeSessions", ae), s(l, "getStreams", At), s(l, "getTaskReportRows", Dt), s(l, "getTaskReportTables", Pt), s(l, "getTelemetry", ne), s(l, "getViews", X), s(l, "patchStream", It), s(l, "patchView", Lt), s(l, "queryAnalytics", _t), s(l, "queryDevices", oe), s(l, "queryEvents", z), s(l, "queryTelemetry", _);
2371
- class Xt {
2383
+ let l = E;
2384
+ s(l, "defaultDeviceId"), s(l, "knownContext", []), s(l, "createFleet", zt), s(l, "listFleets", jt), s(l, "getFleet", Et), s(l, "patchFleet", It), s(l, "deleteFleet", wt), s(l, "addDeviceToFleet", mt), s(l, "getFleetDevices", kt), s(l, "aggregateTelemetry", ft), s(l, "createShareLink", Y), s(l, "eventsCounter", ee), s(l, "getAnalyticStreams", pt), s(l, "getAnalyticsModules", yt), s(l, "getAnalyticsRows", gt), s(l, "getAnnotationCount", B), s(l, "getAnnotationCountByIntervals", te), s(l, "getCurrentGroup", vt), s(l, "getDevices", M), s(l, "getEvent", Ct), s(l, "getFileUrl", St), s(l, "getInterventions", Ot), s(l, "getLatestTelemetry", Rt), s(l, "getOnlineDevices", bt), s(l, "getPeers", ie), s(l, "getRealtimeDevices", At), s(l, "getRealtimeSessions", ae), s(l, "getStreams", Dt), s(l, "getTaskReportRows", Pt), s(l, "getTaskReportTables", Nt), s(l, "getTelemetry", ne), s(l, "getViews", X), s(l, "patchStream", Lt), s(l, "patchView", _t), s(l, "queryAnalytics", $t), s(l, "queryDevices", oe), s(l, "queryEvents", z), s(l, "queryTelemetry", _);
2385
+ class Yt {
2372
2386
  static async set(e, t, n) {
2373
2387
  try {
2374
2388
  const i = await fetch(h + "/v1/admin/key-value", {
@@ -2444,7 +2458,7 @@ class Xt {
2444
2458
  }
2445
2459
  }
2446
2460
  }
2447
- function zt(a) {
2461
+ function Bt(a) {
2448
2462
  return Uint8Array.from(J(a), (e) => e.charCodeAt(0));
2449
2463
  }
2450
2464
  function U() {
@@ -2452,7 +2466,7 @@ function U() {
2452
2466
  return a ? a.includes("Firefox/") ? "Firefox" : a.includes("Edg/") ? "Edge" : a.includes("Chrome/") ? "Chrome" : a.includes("Safari/") ? "Safari" : a.includes("MSIE/") || a.includes("Trident/") ? "IE" : "Other" : "Other";
2453
2467
  }
2454
2468
  const Mt = "audio-chunk";
2455
- class Yt {
2469
+ class Zt {
2456
2470
  constructor(e, t) {
2457
2471
  s(this, "muted", !1);
2458
2472
  s(this, "hasReceivedData", !1);
@@ -2471,7 +2485,7 @@ class Yt {
2471
2485
  const { audioContext: n, muted: i } = this;
2472
2486
  if (!n || e.header.stream.streamType !== Mt || i !== !1)
2473
2487
  return;
2474
- const r = zt(t);
2488
+ const r = Bt(t);
2475
2489
  try {
2476
2490
  await n.decodeAudioData(
2477
2491
  r.buffer,
@@ -2524,7 +2538,7 @@ class Yt {
2524
2538
  (async () => await this.device.changeStreamAudioType(t.name, e))();
2525
2539
  }
2526
2540
  }
2527
- class Zt {
2541
+ class en {
2528
2542
  static async listAccounts() {
2529
2543
  if (!o.token)
2530
2544
  throw new Error("Not authenticated");
@@ -2597,7 +2611,7 @@ class Zt {
2597
2611
  )).json();
2598
2612
  }
2599
2613
  }
2600
- class en {
2614
+ class tn {
2601
2615
  static async listRoles() {
2602
2616
  if (!o.token)
2603
2617
  throw new Error("Not authenticated");
@@ -2656,7 +2670,7 @@ class en {
2656
2670
  });
2657
2671
  }
2658
2672
  }
2659
- class tn {
2673
+ class nn {
2660
2674
  static async listUsers() {
2661
2675
  if (!o.token)
2662
2676
  throw new Error("Not authenticated");
@@ -2716,14 +2730,14 @@ class tn {
2716
2730
  });
2717
2731
  }
2718
2732
  }
2719
- const nn = ["viewer", "operator", "administrator"], an = "viewer", on = "operator", rn = "administrator", sn = [
2733
+ const an = ["viewer", "operator", "administrator"], on = "viewer", rn = "operator", sn = "administrator", cn = [
2720
2734
  "year",
2721
2735
  "month",
2722
2736
  "week",
2723
2737
  "day",
2724
2738
  "hour",
2725
2739
  "minute"
2726
- ], cn = ["tag", "sheet", "user"], dn = [
2740
+ ], dn = ["tag", "sheet", "user"], hn = [
2727
2741
  "triggered-event",
2728
2742
  "intervention-request",
2729
2743
  "teleop-session-record",
@@ -2735,12 +2749,12 @@ const nn = ["viewer", "operator", "administrator"], an = "viewer", on = "operato
2735
2749
  "comment",
2736
2750
  "system",
2737
2751
  "annotation"
2738
- ], hn = [
2752
+ ], ln = [
2739
2753
  "unknown",
2740
2754
  "operational",
2741
2755
  "offline",
2742
2756
  "error"
2743
- ], ln = ["selection", "labeling", "teleop"], un = ["info", "warning", "error", "critical"], mn = ["video/mp4"];
2757
+ ], un = ["selection", "labeling", "teleop"], mn = ["info", "warning", "error", "critical"], fn = ["video/mp4"], wn = (a) => new Promise((e) => setTimeout(e, a * 1e3));
2744
2758
  try {
2745
2759
  const a = typeof window < "u" && window.location ? new URLSearchParams(window.location.search) : new URLSearchParams(""), e = a.get("device");
2746
2760
  e && l.setDefaultDevice(e);
@@ -2749,30 +2763,30 @@ try {
2749
2763
  } catch {
2750
2764
  }
2751
2765
  export {
2752
- Zt as Account,
2766
+ en as Account,
2753
2767
  y as App,
2754
- Yt as AudioPlayer,
2768
+ Zt as AudioPlayer,
2755
2769
  o as Authentication,
2756
2770
  Ke as BinaryRequestDataChannel,
2757
2771
  Fe as CaptureStream,
2758
2772
  Ge as DataChannel,
2759
- E as Device,
2773
+ S as Device,
2760
2774
  l as Fleet,
2761
- Xt as KeyValue,
2775
+ Yt as KeyValue,
2762
2776
  He as Manipulator,
2763
- lt as PeerDevice,
2764
- en as Role,
2765
- Gt as SessionType,
2777
+ ut as PeerDevice,
2778
+ tn as Role,
2779
+ Ht as SessionType,
2766
2780
  Qe as TextRequestDataChannel,
2767
- tn as User,
2768
- nn as accessLevels,
2769
- rn as administrator,
2781
+ nn as User,
2782
+ an as accessLevels,
2783
+ sn as administrator,
2770
2784
  Z as aggregateByDateFunctions,
2771
- Qt as aggregateFunctionMap,
2772
- Kt as aggregateFunctions,
2773
- sn as aggregateLevels,
2774
- cn as annotationTypes,
2775
- dn as eventTypes,
2785
+ Xt as aggregateFunctionMap,
2786
+ Qt as aggregateFunctions,
2787
+ cn as aggregateLevels,
2788
+ dn as annotationTypes,
2789
+ hn as eventTypes,
2776
2790
  rt as formatTimeFrameText,
2777
2791
  at as getAverage,
2778
2792
  ot as getCount,
@@ -2781,12 +2795,13 @@ export {
2781
2795
  et as getStandardDeviation,
2782
2796
  it as getSum,
2783
2797
  Ze as getVariance,
2784
- hn as healthStatuses,
2785
- ln as interventionTypes,
2786
- on as operator,
2787
- un as severities,
2788
- Ht as vailableAggregationIntervals,
2789
- mn as videoMimeTypes,
2790
- an as viewer
2798
+ ln as healthStatuses,
2799
+ un as interventionTypes,
2800
+ rn as operator,
2801
+ mn as severities,
2802
+ wn as timeout,
2803
+ Kt as vailableAggregationIntervals,
2804
+ fn as videoMimeTypes,
2805
+ on as viewer
2791
2806
  };
2792
2807
  //# sourceMappingURL=data-sdk.es.js.map