@webdock/sdk 1.0.53 → 1.0.55

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.
package/dist/index.mjs CHANGED
@@ -274,7 +274,7 @@ const Mt = Be("string"), K = Be("function"), it = Be("number"), we = (r) => r !=
274
274
  } catch {
275
275
  return !1;
276
276
  }
277
- }, Vt = X("Date"), Gt = X("File"), Kt = X("Blob"), $t = X("FileList"), zt = (r) => we(r) && K(r.pipe), Wt = (r) => {
277
+ }, Gt = X("Date"), Vt = X("File"), Kt = X("Blob"), $t = X("FileList"), zt = (r) => we(r) && K(r.pipe), Wt = (r) => {
278
278
  let e;
279
279
  return r && (typeof FormData == "function" && r instanceof FormData || K(r.append) && ((e = Le(r)) === "formdata" || // detect form-data instance
280
280
  e === "object" && K(r.toString) && r.toString() === "[object FormData]"));
@@ -466,8 +466,8 @@ const yn = (r) => {
466
466
  isResponse: Qt,
467
467
  isHeaders: Zt,
468
468
  isUndefined: ae,
469
- isDate: Vt,
470
- isFile: Gt,
469
+ isDate: Gt,
470
+ isFile: Vt,
471
471
  isBlob: Kt,
472
472
  isRegExp: pn,
473
473
  isFunction: K,
@@ -509,7 +509,7 @@ const yn = (r) => {
509
509
  asap: On,
510
510
  isIterable: _n
511
511
  };
512
- let P = class dt extends Error {
512
+ let w = class dt extends Error {
513
513
  static from(e, t, n, s, o, i) {
514
514
  const a = new dt(e.message, t || e.code, n, s, o);
515
515
  return a.cause = e, a.name = e.name, i && Object.assign(a, i), a;
@@ -548,18 +548,18 @@ let P = class dt extends Error {
548
548
  };
549
549
  }
550
550
  };
551
- P.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
552
- P.ERR_BAD_OPTION = "ERR_BAD_OPTION";
553
- P.ECONNABORTED = "ECONNABORTED";
554
- P.ETIMEDOUT = "ETIMEDOUT";
555
- P.ERR_NETWORK = "ERR_NETWORK";
556
- P.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
557
- P.ERR_DEPRECATED = "ERR_DEPRECATED";
558
- P.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
559
- P.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
560
- P.ERR_CANCELED = "ERR_CANCELED";
561
- P.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
562
- P.ERR_INVALID_URL = "ERR_INVALID_URL";
551
+ w.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
552
+ w.ERR_BAD_OPTION = "ERR_BAD_OPTION";
553
+ w.ECONNABORTED = "ECONNABORTED";
554
+ w.ETIMEDOUT = "ETIMEDOUT";
555
+ w.ERR_NETWORK = "ERR_NETWORK";
556
+ w.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
557
+ w.ERR_DEPRECATED = "ERR_DEPRECATED";
558
+ w.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
559
+ w.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
560
+ w.ERR_CANCELED = "ERR_CANCELED";
561
+ w.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
562
+ w.ERR_INVALID_URL = "ERR_INVALID_URL";
563
563
  const Tn = null;
564
564
  function tr(r) {
565
565
  return c.isPlainObject(r) || c.isArray(r);
@@ -598,7 +598,7 @@ function Me(r, e, t) {
598
598
  if (c.isBoolean(h))
599
599
  return h.toString();
600
600
  if (!b && c.isBlob(h))
601
- throw new P("Blob is not supported. Use a Buffer instead.");
601
+ throw new w("Blob is not supported. Use a Buffer instead.");
602
602
  return c.isArrayBuffer(h) || c.isTypedArray(h) ? b && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
603
603
  }
604
604
  function f(h, O, g) {
@@ -762,14 +762,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Nn
762
762
  hasStandardBrowserWebWorkerEnv: qn,
763
763
  navigator: nr,
764
764
  origin: Nn
765
- }, Symbol.toStringTag, { value: "Module" })), V = {
765
+ }, Symbol.toStringTag, { value: "Module" })), G = {
766
766
  ...jn,
767
767
  ...Dn
768
768
  };
769
769
  function Un(r, e) {
770
- return Me(r, new V.classes.URLSearchParams(), {
770
+ return Me(r, new G.classes.URLSearchParams(), {
771
771
  visitor: function(t, n, s, o) {
772
- return V.isNode && c.isBuffer(t) ? (this.append(n, t.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
772
+ return G.isNode && c.isBuffer(t) ? (this.append(n, t.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
773
773
  },
774
774
  ...e
775
775
  });
@@ -849,7 +849,7 @@ const Re = {
849
849
  return JSON.parse(e, this.parseReviver);
850
850
  } catch (a) {
851
851
  if (i)
852
- throw a.name === "SyntaxError" ? P.from(a, P.ERR_BAD_RESPONSE, this, null, this.response) : a;
852
+ throw a.name === "SyntaxError" ? w.from(a, w.ERR_BAD_RESPONSE, this, null, this.response) : a;
853
853
  }
854
854
  }
855
855
  return e;
@@ -864,8 +864,8 @@ const Re = {
864
864
  maxContentLength: -1,
865
865
  maxBodyLength: -1,
866
866
  env: {
867
- FormData: V.classes.FormData,
868
- Blob: V.classes.Blob
867
+ FormData: G.classes.FormData,
868
+ Blob: G.classes.Blob
869
869
  },
870
870
  validateStatus: function(e) {
871
871
  return e >= 200 && e < 300;
@@ -919,7 +919,7 @@ function xn(r) {
919
919
  e[n[1]] = n[2];
920
920
  return e;
921
921
  }
922
- const Vn = (r) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());
922
+ const Gn = (r) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());
923
923
  function xe(r, e, t, n, s) {
924
924
  if (c.isFunction(n))
925
925
  return n.call(this, e, t);
@@ -930,7 +930,7 @@ function xe(r, e, t, n, s) {
930
930
  return n.test(e);
931
931
  }
932
932
  }
933
- function Gn(r) {
933
+ function Vn(r) {
934
934
  return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, n) => t.toUpperCase() + n);
935
935
  }
936
936
  function Kn(r, e) {
@@ -960,7 +960,7 @@ let $ = class {
960
960
  const i = (a, b) => c.forEach(a, (m, f) => o(m, f, b));
961
961
  if (c.isPlainObject(e) || e instanceof this.constructor)
962
962
  i(e, t);
963
- else if (c.isString(e) && (e = e.trim()) && !Vn(e))
963
+ else if (c.isString(e) && (e = e.trim()) && !Gn(e))
964
964
  i(Hn(e), t);
965
965
  else if (c.isObject(e) && c.isIterable(e)) {
966
966
  let a = {}, b, m;
@@ -1026,7 +1026,7 @@ let $ = class {
1026
1026
  t[i] = Ne(s), delete t[o];
1027
1027
  return;
1028
1028
  }
1029
- const a = e ? Gn(o) : String(o).trim();
1029
+ const a = e ? Vn(o) : String(o).trim();
1030
1030
  a !== o && delete t[o], t[a] = Ne(s), n[a] = !0;
1031
1031
  }), this;
1032
1032
  }
@@ -1081,7 +1081,7 @@ c.reduceDescriptors($.prototype, ({ value: r }, e) => {
1081
1081
  };
1082
1082
  });
1083
1083
  c.freezeMethods($);
1084
- function Ve(r, e) {
1084
+ function Ge(r, e) {
1085
1085
  const t = this || Re, n = e || t, s = $.from(n.headers);
1086
1086
  let o = n.data;
1087
1087
  return c.forEach(r, function(a) {
@@ -1091,7 +1091,7 @@ function Ve(r, e) {
1091
1091
  function St(r) {
1092
1092
  return !!(r && r.__CANCEL__);
1093
1093
  }
1094
- let ke = class extends P {
1094
+ let ke = class extends w {
1095
1095
  /**
1096
1096
  * A `CanceledError` is an object that is thrown when an operation is canceled.
1097
1097
  *
@@ -1102,14 +1102,14 @@ let ke = class extends P {
1102
1102
  * @returns {CanceledError} The created error.
1103
1103
  */
1104
1104
  constructor(e, t, n) {
1105
- super(e ?? "canceled", P.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
1105
+ super(e ?? "canceled", w.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
1106
1106
  }
1107
1107
  };
1108
1108
  function mt(r, e, t) {
1109
1109
  const n = t.config.validateStatus;
1110
- !t.status || !n || n(t.status) ? r(t) : e(new P(
1110
+ !t.status || !n || n(t.status) ? r(t) : e(new w(
1111
1111
  "Request failed with status code " + t.status,
1112
- [P.ERR_BAD_REQUEST, P.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4],
1112
+ [w.ERR_BAD_REQUEST, w.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4],
1113
1113
  t.config,
1114
1114
  t.request,
1115
1115
  t
@@ -1173,10 +1173,10 @@ const Ue = (r, e, t = 3) => {
1173
1173
  total: r,
1174
1174
  loaded: n
1175
1175
  }), e[1]];
1176
- }, br = (r) => (...e) => c.asap(() => r(...e)), Jn = V.hasStandardBrowserEnv ? /* @__PURE__ */ ((r, e) => (t) => (t = new URL(t, V.origin), r.protocol === t.protocol && r.host === t.host && (e || r.port === t.port)))(
1177
- new URL(V.origin),
1178
- V.navigator && /(msie|trident)/i.test(V.navigator.userAgent)
1179
- ) : () => !0, Xn = V.hasStandardBrowserEnv ? (
1176
+ }, br = (r) => (...e) => c.asap(() => r(...e)), Jn = G.hasStandardBrowserEnv ? /* @__PURE__ */ ((r, e) => (t) => (t = new URL(t, G.origin), r.protocol === t.protocol && r.host === t.host && (e || r.port === t.port)))(
1177
+ new URL(G.origin),
1178
+ G.navigator && /(msie|trident)/i.test(G.navigator.userAgent)
1179
+ ) : () => !0, Xn = G.hasStandardBrowserEnv ? (
1180
1180
  // Standard browser envs support document.cookie
1181
1181
  {
1182
1182
  write(r, e, t, n, s, o, i) {
@@ -1292,7 +1292,7 @@ const yt = (r) => {
1292
1292
  "Authorization",
1293
1293
  "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
1294
1294
  ), c.isFormData(t)) {
1295
- if (V.hasStandardBrowserEnv || V.hasStandardBrowserWebWorkerEnv)
1295
+ if (G.hasStandardBrowserEnv || G.hasStandardBrowserWebWorkerEnv)
1296
1296
  i.setContentType(void 0);
1297
1297
  else if (c.isFunction(t.getHeaders)) {
1298
1298
  const b = t.getHeaders(), m = ["content-type", "content-length"];
@@ -1301,7 +1301,7 @@ const yt = (r) => {
1301
1301
  });
1302
1302
  }
1303
1303
  }
1304
- if (V.hasStandardBrowserEnv && (n && c.isFunction(n) && (n = n(e)), n || n !== !1 && Jn(e.url))) {
1304
+ if (G.hasStandardBrowserEnv && (n && c.isFunction(n) && (n = n(e)), n || n !== !1 && Jn(e.url))) {
1305
1305
  const b = s && o && Xn.read(o);
1306
1306
  b && i.set(s, b);
1307
1307
  }
@@ -1339,16 +1339,16 @@ const yt = (r) => {
1339
1339
  "onloadend" in g ? g.onloadend = I : g.onreadystatechange = function() {
1340
1340
  !g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout(I);
1341
1341
  }, g.onabort = function() {
1342
- g && (n(new P("Request aborted", P.ECONNABORTED, r, g)), g = null);
1342
+ g && (n(new w("Request aborted", w.ECONNABORTED, r, g)), g = null);
1343
1343
  }, g.onerror = function(F) {
1344
- const B = F && F.message ? F.message : "Network Error", W = new P(B, P.ERR_NETWORK, r, g);
1344
+ const B = F && F.message ? F.message : "Network Error", W = new w(B, w.ERR_NETWORK, r, g);
1345
1345
  W.event = F || null, n(W), g = null;
1346
1346
  }, g.ontimeout = function() {
1347
1347
  let F = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1348
1348
  const B = s.transitional || ar;
1349
- s.timeoutErrorMessage && (F = s.timeoutErrorMessage), n(new P(
1349
+ s.timeoutErrorMessage && (F = s.timeoutErrorMessage), n(new w(
1350
1350
  F,
1351
- B.clarifyTimeoutError ? P.ETIMEDOUT : P.ECONNABORTED,
1351
+ B.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
1352
1352
  r,
1353
1353
  g
1354
1354
  )), g = null;
@@ -1358,8 +1358,8 @@ const yt = (r) => {
1358
1358
  g && (n(!N || N.type ? new ke(null, r, g) : N), g.abort(), g = null);
1359
1359
  }, s.cancelToken && s.cancelToken.subscribe(f), s.signal && (s.signal.aborted ? f() : s.signal.addEventListener("abort", f)));
1360
1360
  const M = $n(s.url);
1361
- if (M && V.protocols.indexOf(M) === -1) {
1362
- n(new P("Unsupported protocol " + M + ":", P.ERR_BAD_REQUEST, r));
1361
+ if (M && G.protocols.indexOf(M) === -1) {
1362
+ n(new w("Unsupported protocol " + M + ":", w.ERR_BAD_REQUEST, r));
1363
1363
  return;
1364
1364
  }
1365
1365
  g.send(o || null);
@@ -1372,11 +1372,11 @@ const yt = (r) => {
1372
1372
  if (!s) {
1373
1373
  s = !0, a();
1374
1374
  const f = m instanceof Error ? m : this.reason;
1375
- n.abort(f instanceof P ? f : new ke(f instanceof Error ? f.message : f));
1375
+ n.abort(f instanceof w ? f : new ke(f instanceof Error ? f.message : f));
1376
1376
  }
1377
1377
  };
1378
1378
  let i = e && setTimeout(() => {
1379
- i = null, o(new P(`timeout of ${e}ms exceeded`, P.ETIMEDOUT));
1379
+ i = null, o(new w(`timeout of ${e}ms exceeded`, w.ETIMEDOUT));
1380
1380
  }, e);
1381
1381
  const a = () => {
1382
1382
  r && (i && clearTimeout(i), i = null, r.forEach((m) => {
@@ -1465,7 +1465,7 @@ const yt = (r) => {
1465
1465
  return !1;
1466
1466
  const a = s && De(Or), b = s && (typeof _r == "function" ? /* @__PURE__ */ ((h) => (O) => h.encode(O))(new _r()) : async (h) => new Uint8Array(await new t(h).arrayBuffer())), m = o && a && Tr(() => {
1467
1467
  let h = !1;
1468
- const O = new t(V.origin, {
1468
+ const O = new t(G.origin, {
1469
1469
  body: new Or(),
1470
1470
  method: "POST",
1471
1471
  get duplex() {
@@ -1481,7 +1481,7 @@ const yt = (r) => {
1481
1481
  let I = O && O[h];
1482
1482
  if (I)
1483
1483
  return I.call(O);
1484
- throw new P(`Response type '${h}' is not supported`, P.ERR_NOT_SUPPORT, g);
1484
+ throw new w(`Response type '${h}' is not supported`, w.ERR_NOT_SUPPORT, g);
1485
1485
  });
1486
1486
  });
1487
1487
  const A = async (h) => {
@@ -1490,7 +1490,7 @@ const yt = (r) => {
1490
1490
  if (c.isBlob(h))
1491
1491
  return h.size;
1492
1492
  if (c.isSpecCompliantForm(h))
1493
- return (await new t(V.origin, {
1493
+ return (await new t(G.origin, {
1494
1494
  method: "POST",
1495
1495
  body: h
1496
1496
  }).arrayBuffer()).byteLength;
@@ -1581,11 +1581,11 @@ const yt = (r) => {
1581
1581
  });
1582
1582
  } catch (S) {
1583
1583
  throw l && l(), S && S.name === "TypeError" && /Load failed|fetch/i.test(S.message) ? Object.assign(
1584
- new P("Network Error", P.ERR_NETWORK, h, u, S && S.response),
1584
+ new w("Network Error", w.ERR_NETWORK, h, u, S && S.response),
1585
1585
  {
1586
1586
  cause: S.cause || S
1587
1587
  }
1588
- ) : P.from(S, S && S.code, h, u, S && S.response);
1588
+ ) : w.from(S, S && S.code, h, u, S && S.response);
1589
1589
  }
1590
1590
  };
1591
1591
  }, as = /* @__PURE__ */ new Map(), gt = (r) => {
@@ -1627,7 +1627,7 @@ function us(r, e) {
1627
1627
  n = r[i];
1628
1628
  let a;
1629
1629
  if (s = n, !cs(n) && (s = ur[(a = String(n)).toLowerCase()], s === void 0))
1630
- throw new P(`Unknown adapter '${a}'`);
1630
+ throw new w(`Unknown adapter '${a}'`);
1631
1631
  if (s && (c.isFunction(s) || (s = s.get(e))))
1632
1632
  break;
1633
1633
  o[a || "#" + i] = s;
@@ -1639,7 +1639,7 @@ function us(r, e) {
1639
1639
  let a = t ? i.length > 1 ? `since :
1640
1640
  ` + i.map(Pr).join(`
1641
1641
  `) : " " + Pr(i[0]) : "as no adapter specified";
1642
- throw new P(
1642
+ throw new w(
1643
1643
  "There is no suitable adapter to dispatch the request " + a,
1644
1644
  "ERR_NOT_SUPPORT"
1645
1645
  );
@@ -1658,22 +1658,22 @@ const Et = {
1658
1658
  */
1659
1659
  adapters: ur
1660
1660
  };
1661
- function Ge(r) {
1661
+ function Ve(r) {
1662
1662
  if (r.cancelToken && r.cancelToken.throwIfRequested(), r.signal && r.signal.aborted)
1663
1663
  throw new ke(null, r);
1664
1664
  }
1665
1665
  function wr(r) {
1666
- return Ge(r), r.headers = $.from(r.headers), r.data = Ve.call(
1666
+ return Ve(r), r.headers = $.from(r.headers), r.data = Ge.call(
1667
1667
  r,
1668
1668
  r.transformRequest
1669
1669
  ), ["post", "put", "patch"].indexOf(r.method) !== -1 && r.headers.setContentType("application/x-www-form-urlencoded", !1), Et.getAdapter(r.adapter || Re.adapter, r)(r).then(function(n) {
1670
- return Ge(r), n.data = Ve.call(
1670
+ return Ve(r), n.data = Ge.call(
1671
1671
  r,
1672
1672
  r.transformResponse,
1673
1673
  n
1674
1674
  ), n.headers = $.from(n.headers), n;
1675
1675
  }, function(n) {
1676
- return St(n) || (Ge(r), n && n.response && (n.response.data = Ve.call(
1676
+ return St(n) || (Ve(r), n && n.response && (n.response.data = Ge.call(
1677
1677
  r,
1678
1678
  r.transformResponse,
1679
1679
  n.response
@@ -1693,9 +1693,9 @@ He.transitional = function(e, t, n) {
1693
1693
  }
1694
1694
  return (o, i, a) => {
1695
1695
  if (e === !1)
1696
- throw new P(
1696
+ throw new w(
1697
1697
  s(i, " has been removed" + (t ? " in " + t : "")),
1698
- P.ERR_DEPRECATED
1698
+ w.ERR_DEPRECATED
1699
1699
  );
1700
1700
  return t && !Ar[i] && (Ar[i] = !0, console.warn(
1701
1701
  s(
@@ -1710,7 +1710,7 @@ He.spelling = function(e) {
1710
1710
  };
1711
1711
  function ls(r, e, t) {
1712
1712
  if (typeof r != "object")
1713
- throw new P("options must be an object", P.ERR_BAD_OPTION_VALUE);
1713
+ throw new w("options must be an object", w.ERR_BAD_OPTION_VALUE);
1714
1714
  const n = Object.keys(r);
1715
1715
  let s = n.length;
1716
1716
  for (; s-- > 0; ) {
@@ -1718,11 +1718,11 @@ function ls(r, e, t) {
1718
1718
  if (i) {
1719
1719
  const a = r[o], b = a === void 0 || i(a, o, r);
1720
1720
  if (b !== !0)
1721
- throw new P("option " + o + " must be " + b, P.ERR_BAD_OPTION_VALUE);
1721
+ throw new w("option " + o + " must be " + b, w.ERR_BAD_OPTION_VALUE);
1722
1722
  continue;
1723
1723
  }
1724
1724
  if (t !== !0)
1725
- throw new P("Unknown option " + o, P.ERR_BAD_OPTION);
1725
+ throw new w("Unknown option " + o, w.ERR_BAD_OPTION);
1726
1726
  }
1727
1727
  }
1728
1728
  const je = {
@@ -2026,7 +2026,7 @@ L.CancelToken = ds;
2026
2026
  L.isCancel = St;
2027
2027
  L.VERSION = Ot;
2028
2028
  L.toFormData = Me;
2029
- L.AxiosError = P;
2029
+ L.AxiosError = w;
2030
2030
  L.Cancel = L.CanceledError;
2031
2031
  L.all = function(e) {
2032
2032
  return Promise.all(e);
@@ -2057,7 +2057,7 @@ const {
2057
2057
  getAdapter: Eo,
2058
2058
  mergeConfig: Oo
2059
2059
  } = L;
2060
- async function w(r) {
2060
+ async function P(r) {
2061
2061
  var e, t, n;
2062
2062
  try {
2063
2063
  let s = r.endpoint;
@@ -2098,7 +2098,7 @@ class hs {
2098
2098
  this.parent = e;
2099
2099
  }
2100
2100
  async info() {
2101
- return await w({
2101
+ return await P({
2102
2102
  token: this.parent.string_token,
2103
2103
  endpoint: "/account/accountInformation",
2104
2104
  headers: [],
@@ -2113,13 +2113,32 @@ class vs {
2113
2113
  async list({ page: e = 1, limit: t = 10, type: n = "" }) {
2114
2114
  let s = "/events";
2115
2115
  const o = [];
2116
- return e && o.push(`page=${e}`), t && o.push(`per_page=${t}`), n && o.push(`eventType=${n}`), o.length > 0 && (s += `?${o.join("&")}`), await w({
2116
+ return e && o.push(`page=${e}`), t && o.push(`per_page=${t}`), n && o.push(`eventType=${n}`), o.length > 0 && (s += `?${o.join("&")}`), await P({
2117
2117
  token: this.parent.string_token,
2118
2118
  endpoint: s,
2119
2119
  headers: ["x-total-count"],
2120
2120
  method: "GET"
2121
2121
  });
2122
2122
  }
2123
+ async waitForEventToEnd(e) {
2124
+ for (; ; ) {
2125
+ const t = await P({
2126
+ endpoint: `/events?callbackId=${e}`,
2127
+ log: !1,
2128
+ method: "GET"
2129
+ });
2130
+ if (!t.success) {
2131
+ console.error(t.error);
2132
+ return;
2133
+ }
2134
+ if (t.success && t.response.body[0].status == "error") {
2135
+ console.error(t.response.body[0].message);
2136
+ return;
2137
+ }
2138
+ if (t.success && t.response.body[0].status == "finished")
2139
+ return t;
2140
+ }
2141
+ }
2123
2142
  }
2124
2143
  class Ss {
2125
2144
  constructor(e) {
@@ -2128,7 +2147,7 @@ class Ss {
2128
2147
  async getById({
2129
2148
  id: e
2130
2149
  }) {
2131
- return await w(
2150
+ return await P(
2132
2151
  {
2133
2152
  endpoint: `hooks/${e}`,
2134
2153
  method: "GET",
@@ -2141,7 +2160,7 @@ class Ss {
2141
2160
  eventType: t,
2142
2161
  callbackId: n
2143
2162
  }) {
2144
- return await w(
2163
+ return await P(
2145
2164
  {
2146
2165
  endpoint: "/hooks",
2147
2166
  method: "POST",
@@ -2155,7 +2174,7 @@ class Ss {
2155
2174
  );
2156
2175
  }
2157
2176
  async deleteById({ id: e }) {
2158
- return await w(
2177
+ return await P(
2159
2178
  {
2160
2179
  endpoint: `hooks/${e}`,
2161
2180
  method: "DELETE",
@@ -2164,7 +2183,7 @@ class Ss {
2164
2183
  );
2165
2184
  }
2166
2185
  async list() {
2167
- return await w(
2186
+ return await P(
2168
2187
  {
2169
2188
  token: this.parent.string_token,
2170
2189
  endpoint: "/hooks",
@@ -2178,7 +2197,7 @@ class ms {
2178
2197
  this.parent = e;
2179
2198
  }
2180
2199
  async list() {
2181
- return await w({
2200
+ return await P({
2182
2201
  token: this.parent.string_token,
2183
2202
  endpoint: "/images",
2184
2203
  headers: [],
@@ -2191,7 +2210,7 @@ class bs {
2191
2210
  this.parent = e;
2192
2211
  }
2193
2212
  async list() {
2194
- return await w({
2213
+ return await P({
2195
2214
  token: this.parent.string_token,
2196
2215
  endpoint: "/locations",
2197
2216
  method: "GET"
@@ -2206,7 +2225,7 @@ class ys {
2206
2225
  locationId: e = "dk",
2207
2226
  profileSlug: t = ""
2208
2227
  }) {
2209
- const n = await w({
2228
+ const n = await P({
2210
2229
  token: this.parent.string_token,
2211
2230
  endpoint: `/profiles?locationId=${e}&profileSlug=${t}`,
2212
2231
  method: "GET"
@@ -2219,7 +2238,7 @@ class gs {
2219
2238
  this.parent = e;
2220
2239
  }
2221
2240
  create({ content: e, filename: t, name: n }) {
2222
- return w(
2241
+ return P(
2223
2242
  {
2224
2243
  token: this.parent.string_token,
2225
2244
  endpoint: "/account/scripts",
@@ -2239,7 +2258,7 @@ class gs {
2239
2258
  executeImmediately: s,
2240
2259
  serverSlug: o
2241
2260
  }) {
2242
- return w(
2261
+ return P(
2243
2262
  {
2244
2263
  token: this.parent.string_token,
2245
2264
  endpoint: `/servers/${o}/scripts`,
@@ -2255,7 +2274,7 @@ class gs {
2255
2274
  );
2256
2275
  }
2257
2276
  delete({ id: e }) {
2258
- return w(
2277
+ return P(
2259
2278
  {
2260
2279
  token: this.parent.string_token,
2261
2280
  endpoint: `/account/scripts/${e}`,
@@ -2264,7 +2283,7 @@ class gs {
2264
2283
  );
2265
2284
  }
2266
2285
  deleteScriptFromServer({ serverSlug: e, scriptId: t }) {
2267
- return w(
2286
+ return P(
2268
2287
  {
2269
2288
  token: this.parent.string_token,
2270
2289
  endpoint: `/servers/${e}/scripts/${t}`,
@@ -2273,7 +2292,7 @@ class gs {
2273
2292
  );
2274
2293
  }
2275
2294
  executeOnServer({ serverSlug: e, scriptID: t }) {
2276
- return w(
2295
+ return P(
2277
2296
  {
2278
2297
  token: this.parent.string_token,
2279
2298
  endpoint: `/servers/${e}/scripts/${t}/execute`,
@@ -2283,7 +2302,7 @@ class gs {
2283
2302
  );
2284
2303
  }
2285
2304
  getById({ scriptId: e }) {
2286
- return w(
2305
+ return P(
2287
2306
  {
2288
2307
  token: this.parent.string_token,
2289
2308
  endpoint: `/account/scripts/${e}`,
@@ -2292,14 +2311,14 @@ class gs {
2292
2311
  );
2293
2312
  }
2294
2313
  list(e) {
2295
- return w({
2314
+ return P({
2296
2315
  token: this.parent.string_token,
2297
2316
  endpoint: "/account/scripts",
2298
2317
  method: "GET"
2299
2318
  });
2300
2319
  }
2301
2320
  listOnServer({ serverSlug: e }) {
2302
- return w(
2321
+ return P(
2303
2322
  {
2304
2323
  token: this.parent.string_token,
2305
2324
  endpoint: `/servers/${e}/scripts`,
@@ -2313,7 +2332,7 @@ class gs {
2313
2332
  filename: n,
2314
2333
  content: s
2315
2334
  }) {
2316
- return w(
2335
+ return P(
2317
2336
  {
2318
2337
  token: this.parent.string_token,
2319
2338
  endpoint: `/account/scripts/${e}`,
@@ -2341,7 +2360,7 @@ class Es {
2341
2360
  userScriptId: a,
2342
2361
  slug: b
2343
2362
  }) {
2344
- return w(
2363
+ return P(
2345
2364
  {
2346
2365
  token: this.parent.string_token,
2347
2366
  endpoint: "/servers",
@@ -2361,7 +2380,7 @@ class Es {
2361
2380
  );
2362
2381
  }
2363
2382
  delete({ serverSlug: e }) {
2364
- return w(
2383
+ return P(
2365
2384
  {
2366
2385
  token: this.parent.string_token,
2367
2386
  endpoint: `/servers/${e}`,
@@ -2370,11 +2389,27 @@ class Es {
2370
2389
  }
2371
2390
  );
2372
2391
  }
2392
+ async fetchFileAsync({
2393
+ path: e,
2394
+ slug: t
2395
+ }) {
2396
+ return P(
2397
+ {
2398
+ endpoint: `servers/${t}/fetchFile`,
2399
+ method: "POST",
2400
+ token: this.parent.string_token,
2401
+ body: {
2402
+ filePath: e
2403
+ },
2404
+ headers: ["x-callback-id"]
2405
+ }
2406
+ );
2407
+ }
2373
2408
  async fetchFile({
2374
2409
  path: e,
2375
2410
  slug: t
2376
2411
  }) {
2377
- const n = await w(
2412
+ const n = await P(
2378
2413
  {
2379
2414
  endpoint: `servers/${t}/fetchFile`,
2380
2415
  method: "POST",
@@ -2414,21 +2449,21 @@ class Es {
2414
2449
  }
2415
2450
  }
2416
2451
  getBySlug({ serverSlang: e }) {
2417
- return w({
2452
+ return P({
2418
2453
  token: this.parent.string_token,
2419
2454
  endpoint: `/servers/${e}`,
2420
2455
  method: "GET"
2421
2456
  });
2422
2457
  }
2423
2458
  list() {
2424
- return w({
2459
+ return P({
2425
2460
  token: this.parent.string_token,
2426
2461
  endpoint: "/servers",
2427
2462
  method: "GET"
2428
2463
  });
2429
2464
  }
2430
2465
  metrics({ now: e, serverSlug: t }) {
2431
- return w(
2466
+ return P(
2432
2467
  {
2433
2468
  endpoint: `servers/${t}/metrics${e ? "/now" : ""}`,
2434
2469
  method: "GET",
@@ -2439,7 +2474,7 @@ class Es {
2439
2474
  reboot({
2440
2475
  serverSlug: e
2441
2476
  }) {
2442
- return w(
2477
+ return P(
2443
2478
  {
2444
2479
  token: this.parent.string_token,
2445
2480
  endpoint: `/servers/${e}/actions/reboot`,
@@ -2449,7 +2484,7 @@ class Es {
2449
2484
  );
2450
2485
  }
2451
2486
  reinstall({ imageSlug: e, serverSlug: t, userScriptId: n, deleteSnapshots: s }) {
2452
- return w(
2487
+ return P(
2453
2488
  {
2454
2489
  token: this.parent.string_token,
2455
2490
  endpoint: `/servers/${t}/actions/reinstall`,
@@ -2465,7 +2500,7 @@ class Es {
2465
2500
  );
2466
2501
  }
2467
2502
  resize({ serverSlug: e, profileSlug: t }) {
2468
- return w({
2503
+ return P({
2469
2504
  token: this.parent.string_token,
2470
2505
  endpoint: `/servers/${e}/actions/resize`,
2471
2506
  method: "POST",
@@ -2474,7 +2509,7 @@ class Es {
2474
2509
  });
2475
2510
  }
2476
2511
  resizeDryRun({ serverSlug: e, profileSlug: t }) {
2477
- return w({
2512
+ return P({
2478
2513
  token: this.parent.string_token,
2479
2514
  endpoint: `/servers/${e}/actions/resize/dryrun`,
2480
2515
  method: "POST",
@@ -2482,7 +2517,7 @@ class Es {
2482
2517
  });
2483
2518
  }
2484
2519
  start({ serverSlug: e }) {
2485
- return w({
2520
+ return P({
2486
2521
  token: this.parent.string_token,
2487
2522
  endpoint: `/servers/${e}/actions/start`,
2488
2523
  method: "POST",
@@ -2490,7 +2525,7 @@ class Es {
2490
2525
  });
2491
2526
  }
2492
2527
  stop({ serverSlug: e }) {
2493
- return w({
2528
+ return P({
2494
2529
  token: this.parent.string_token,
2495
2530
  endpoint: `/servers/${e}/actions/stop`,
2496
2531
  method: "POST",
@@ -2498,7 +2533,7 @@ class Es {
2498
2533
  });
2499
2534
  }
2500
2535
  archive({ serverSlug: e }) {
2501
- return w({
2536
+ return P({
2502
2537
  token: this.parent.string_token,
2503
2538
  endpoint: `/servers/${e}/actions/suspend`,
2504
2539
  method: "POST",
@@ -2506,7 +2541,7 @@ class Es {
2506
2541
  });
2507
2542
  }
2508
2543
  update({ serverSlug: e, nextActionDate: t, name: n, description: s, notes: o }) {
2509
- return w({
2544
+ return P({
2510
2545
  token: this.parent.string_token,
2511
2546
  endpoint: `/servers/${e}`,
2512
2547
  method: "PATCH",
@@ -2519,7 +2554,7 @@ class Os {
2519
2554
  this.parent = e;
2520
2555
  }
2521
2556
  create({ serverSlug: e, username: t, password: n, group: s, shell: o, publicKeys: i }) {
2522
- return w({
2557
+ return P({
2523
2558
  token: this.parent.string_token,
2524
2559
  endpoint: `servers/${e}/shellUsers`,
2525
2560
  method: "POST",
@@ -2534,7 +2569,7 @@ class Os {
2534
2569
  });
2535
2570
  }
2536
2571
  delete({ serverSlug: e, userId: t }) {
2537
- return w({
2572
+ return P({
2538
2573
  token: this.parent.string_token,
2539
2574
  endpoint: `servers/${e}/shellUsers/${t}`,
2540
2575
  method: "DELETE",
@@ -2542,14 +2577,14 @@ class Os {
2542
2577
  });
2543
2578
  }
2544
2579
  list({ serverSlug: e }) {
2545
- return w({
2580
+ return P({
2546
2581
  token: this.parent.string_token,
2547
2582
  endpoint: `/servers/${e}/shellUsers`,
2548
2583
  method: "GET"
2549
2584
  });
2550
2585
  }
2551
2586
  edit({ slug: e, id: t, keys: n }) {
2552
- return w({
2587
+ return P({
2553
2588
  endpoint: `servers/${e}/shellUsers/${t}`,
2554
2589
  method: "PATCH",
2555
2590
  body: {
@@ -2560,7 +2595,7 @@ class Os {
2560
2595
  });
2561
2596
  }
2562
2597
  websshToken({ serverSlug: e, username: t }) {
2563
- return w(
2598
+ return P(
2564
2599
  {
2565
2600
  endpoint: `servers/${e}/shellUsers/WebsshToken`,
2566
2601
  method: "POST",
@@ -2577,7 +2612,7 @@ class _s {
2577
2612
  this.parent = e;
2578
2613
  }
2579
2614
  create({ name: e, publicKey: t }) {
2580
- return w({
2615
+ return P({
2581
2616
  token: this.parent.string_token,
2582
2617
  endpoint: "/account/publicKeys",
2583
2618
  method: "POST",
@@ -2588,21 +2623,21 @@ class _s {
2588
2623
  });
2589
2624
  }
2590
2625
  delete({ id: e }) {
2591
- return w({
2626
+ return P({
2592
2627
  token: this.parent.string_token,
2593
2628
  endpoint: `/account/publicKeys/${e}`,
2594
2629
  method: "DELETE"
2595
2630
  });
2596
2631
  }
2597
2632
  list() {
2598
- return w({
2633
+ return P({
2599
2634
  token: this.parent.string_token,
2600
2635
  endpoint: "/account/publicKeys",
2601
2636
  method: "GET"
2602
2637
  });
2603
2638
  }
2604
2639
  toggleSSHSettings(e) {
2605
- return w({
2640
+ return P({
2606
2641
  token: e.token || this.parent.string_token,
2607
2642
  endpoint: `/servers/${e.serverSlug}/sshSettings`,
2608
2643
  headers: ["x-callback-id"],
@@ -2623,7 +2658,7 @@ class Ts {
2623
2658
  serverSlug: e,
2624
2659
  name: t
2625
2660
  }) {
2626
- return w({
2661
+ return P({
2627
2662
  token: this.parent.string_token,
2628
2663
  endpoint: `/servers/${e}/snapshots`,
2629
2664
  method: "POST",
@@ -2636,7 +2671,7 @@ class Ts {
2636
2671
  list({
2637
2672
  serverSlug: e
2638
2673
  }) {
2639
- return w({
2674
+ return P({
2640
2675
  token: this.parent.string_token,
2641
2676
  endpoint: `/servers/${e}/snapshots`,
2642
2677
  method: "GET"
@@ -2646,7 +2681,7 @@ class Ts {
2646
2681
  serverSlug: e,
2647
2682
  snapshotId: t
2648
2683
  }) {
2649
- return w({
2684
+ return P({
2650
2685
  token: this.parent.string_token,
2651
2686
  endpoint: `/servers/${e}/snapshots/${t}`,
2652
2687
  method: "DELETE",
@@ -2657,7 +2692,7 @@ class Ts {
2657
2692
  serverSlug: e,
2658
2693
  snapshotId: t
2659
2694
  }) {
2660
- return w({
2695
+ return P({
2661
2696
  token: this.parent.string_token,
2662
2697
  endpoint: `/servers/${e}/actions/restore`,
2663
2698
  method: "POST",
@@ -2809,7 +2844,7 @@ function wt() {
2809
2844
  return ee.CancelablePromise = t, ee;
2810
2845
  }
2811
2846
  var le = {}, Ir;
2812
- function G() {
2847
+ function V() {
2813
2848
  return Ir || (Ir = 1, Object.defineProperty(le, "__esModule", { value: !0 }), le.OpenAPI = void 0, le.OpenAPI = {
2814
2849
  BASE: "https://api.webdock.io/v1",
2815
2850
  VERSION: "1.0.1",
@@ -3231,7 +3266,7 @@ var xr;
3231
3266
  function js() {
3232
3267
  if (xr) return de;
3233
3268
  xr = 1, Object.defineProperty(de, "__esModule", { value: !0 }), de.AccountInformationService = void 0;
3234
- var r = G(), e = z(), t = (
3269
+ var r = V(), e = z(), t = (
3235
3270
  /** @class */
3236
3271
  (function() {
3237
3272
  function n() {
@@ -3246,11 +3281,11 @@ function js() {
3246
3281
  );
3247
3282
  return de.AccountInformationService = t, de;
3248
3283
  }
3249
- var fe = {}, Vr;
3284
+ var fe = {}, Gr;
3250
3285
  function Us() {
3251
- if (Vr) return fe;
3252
- Vr = 1, Object.defineProperty(fe, "__esModule", { value: !0 }), fe.AccountScriptsFilesService = void 0;
3253
- var r = G(), e = z(), t = (
3286
+ if (Gr) return fe;
3287
+ Gr = 1, Object.defineProperty(fe, "__esModule", { value: !0 }), fe.AccountScriptsFilesService = void 0;
3288
+ var r = V(), e = z(), t = (
3254
3289
  /** @class */
3255
3290
  (function() {
3256
3291
  function n() {
@@ -3311,11 +3346,11 @@ function Us() {
3311
3346
  );
3312
3347
  return fe.AccountScriptsFilesService = t, fe;
3313
3348
  }
3314
- var pe = {}, Gr;
3349
+ var pe = {}, Vr;
3315
3350
  function Fs() {
3316
- if (Gr) return pe;
3317
- Gr = 1, Object.defineProperty(pe, "__esModule", { value: !0 }), pe.EventCallbacksHooksService = void 0;
3318
- var r = G(), e = z(), t = (
3351
+ if (Vr) return pe;
3352
+ Vr = 1, Object.defineProperty(pe, "__esModule", { value: !0 }), pe.EventCallbacksHooksService = void 0;
3353
+ var r = V(), e = z(), t = (
3319
3354
  /** @class */
3320
3355
  (function() {
3321
3356
  function n() {
@@ -3367,7 +3402,7 @@ var he = {}, Kr;
3367
3402
  function Ls() {
3368
3403
  if (Kr) return he;
3369
3404
  Kr = 1, Object.defineProperty(he, "__esModule", { value: !0 }), he.PingService = void 0;
3370
- var r = G(), e = z(), t = (
3405
+ var r = V(), e = z(), t = (
3371
3406
  /** @class */
3372
3407
  (function() {
3373
3408
  function n() {
@@ -3386,7 +3421,7 @@ var ve = {}, $r;
3386
3421
  function Bs() {
3387
3422
  if ($r) return ve;
3388
3423
  $r = 1, Object.defineProperty(ve, "__esModule", { value: !0 }), ve.PollForEventsService = void 0;
3389
- var r = G(), e = z(), t = (
3424
+ var r = V(), e = z(), t = (
3390
3425
  /** @class */
3391
3426
  (function() {
3392
3427
  function n() {
@@ -3414,7 +3449,7 @@ var Se = {}, zr;
3414
3449
  function Ms() {
3415
3450
  if (zr) return Se;
3416
3451
  zr = 1, Object.defineProperty(Se, "__esModule", { value: !0 }), Se.PublicKeysService = void 0;
3417
- var r = G(), e = z(), t = (
3452
+ var r = V(), e = z(), t = (
3418
3453
  /** @class */
3419
3454
  (function() {
3420
3455
  function n() {
@@ -3454,7 +3489,7 @@ var me = {}, Wr;
3454
3489
  function Hs() {
3455
3490
  if (Wr) return me;
3456
3491
  Wr = 1, Object.defineProperty(me, "__esModule", { value: !0 }), me.ScriptLibraryService = void 0;
3457
- var r = G(), e = z(), t = (
3492
+ var r = V(), e = z(), t = (
3458
3493
  /** @class */
3459
3494
  (function() {
3460
3495
  function n() {
@@ -3473,7 +3508,7 @@ var be = {}, Jr;
3473
3508
  function xs() {
3474
3509
  if (Jr) return be;
3475
3510
  Jr = 1, Object.defineProperty(be, "__esModule", { value: !0 }), be.ServerActionsService = void 0;
3476
- var r = G(), e = z(), t = (
3511
+ var r = V(), e = z(), t = (
3477
3512
  /** @class */
3478
3513
  (function() {
3479
3514
  function n() {
@@ -3609,10 +3644,10 @@ function xs() {
3609
3644
  return be.ServerActionsService = t, be;
3610
3645
  }
3611
3646
  var ye = {}, Xr;
3612
- function Vs() {
3647
+ function Gs() {
3613
3648
  if (Xr) return ye;
3614
3649
  Xr = 1, Object.defineProperty(ye, "__esModule", { value: !0 }), ye.ServerConfigurationsService = void 0;
3615
- var r = G(), e = z(), t = (
3650
+ var r = V(), e = z(), t = (
3616
3651
  /** @class */
3617
3652
  (function() {
3618
3653
  function n() {
@@ -3641,10 +3676,10 @@ function Vs() {
3641
3676
  return ye.ServerConfigurationsService = t, ye;
3642
3677
  }
3643
3678
  var ge = {}, Yr;
3644
- function Gs() {
3679
+ function Vs() {
3645
3680
  if (Yr) return ge;
3646
3681
  Yr = 1, Object.defineProperty(ge, "__esModule", { value: !0 }), ge.ServerMetricsService = void 0;
3647
- var r = G(), e = z(), t = (
3682
+ var r = V(), e = z(), t = (
3648
3683
  /** @class */
3649
3684
  (function() {
3650
3685
  function n() {
@@ -3680,7 +3715,7 @@ var Ee = {}, Qr;
3680
3715
  function Ks() {
3681
3716
  if (Qr) return Ee;
3682
3717
  Qr = 1, Object.defineProperty(Ee, "__esModule", { value: !0 }), Ee.ServersService = void 0;
3683
- var r = G(), e = z(), t = (
3718
+ var r = V(), e = z(), t = (
3684
3719
  /** @class */
3685
3720
  (function() {
3686
3721
  function n() {
@@ -3748,7 +3783,7 @@ var Oe = {}, Zr;
3748
3783
  function $s() {
3749
3784
  if (Zr) return Oe;
3750
3785
  Zr = 1, Object.defineProperty(Oe, "__esModule", { value: !0 }), Oe.ServerScriptsFilesService = void 0;
3751
- var r = G(), e = z(), t = (
3786
+ var r = V(), e = z(), t = (
3752
3787
  /** @class */
3753
3788
  (function() {
3754
3789
  function n() {
@@ -3839,7 +3874,7 @@ var _e = {}, et;
3839
3874
  function zs() {
3840
3875
  if (et) return _e;
3841
3876
  et = 1, Object.defineProperty(_e, "__esModule", { value: !0 }), _e.ServerSnapshotsService = void 0;
3842
- var r = G(), e = z(), t = (
3877
+ var r = V(), e = z(), t = (
3843
3878
  /** @class */
3844
3879
  (function() {
3845
3880
  function n() {
@@ -3902,7 +3937,7 @@ var Te = {}, rt;
3902
3937
  function Ws() {
3903
3938
  if (rt) return Te;
3904
3939
  rt = 1, Object.defineProperty(Te, "__esModule", { value: !0 }), Te.ShellUsersService = void 0;
3905
- var r = G(), e = z(), t = (
3940
+ var r = V(), e = z(), t = (
3906
3941
  /** @class */
3907
3942
  (function() {
3908
3943
  function n() {
@@ -3979,7 +4014,7 @@ function Js() {
3979
4014
  } }), Object.defineProperty(r, "CancelError", { enumerable: !0, get: function() {
3980
4015
  return t.CancelError;
3981
4016
  } });
3982
- var n = G();
4017
+ var n = V();
3983
4018
  Object.defineProperty(r, "OpenAPI", { enumerable: !0, get: function() {
3984
4019
  return n.OpenAPI;
3985
4020
  } });
@@ -4047,11 +4082,11 @@ function Js() {
4047
4082
  Object.defineProperty(r, "ServerActionsService", { enumerable: !0, get: function() {
4048
4083
  return N.ServerActionsService;
4049
4084
  } });
4050
- var F = Vs();
4085
+ var F = Gs();
4051
4086
  Object.defineProperty(r, "ServerConfigurationsService", { enumerable: !0, get: function() {
4052
4087
  return F.ServerConfigurationsService;
4053
4088
  } });
4054
- var B = Gs();
4089
+ var B = Vs();
4055
4090
  Object.defineProperty(r, "ServerMetricsService", { enumerable: !0, get: function() {
4056
4091
  return B.ServerMetricsService;
4057
4092
  } });
@@ -4083,7 +4118,7 @@ class Qs {
4083
4118
  this.parent = e;
4084
4119
  }
4085
4120
  async fetch(e) {
4086
- return await w({
4121
+ return await P({
4087
4122
  token: this.parent.string_token,
4088
4123
  endpoint: `/events?callbackId=${e}`,
4089
4124
  log: !1,