@webdock/sdk 1.0.53 → 1.0.54
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/events.d.ts +8 -0
- package/dist/events.d.ts.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +71 -52
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
-
},
|
|
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:
|
|
470
|
-
isFile:
|
|
469
|
+
isDate: Gt,
|
|
470
|
+
isFile: Vt,
|
|
471
471
|
isBlob: Kt,
|
|
472
472
|
isRegExp: pn,
|
|
473
473
|
isFunction: K,
|
|
@@ -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" })),
|
|
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
|
|
770
|
+
return Me(r, new G.classes.URLSearchParams(), {
|
|
771
771
|
visitor: function(t, n, s, o) {
|
|
772
|
-
return
|
|
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
|
});
|
|
@@ -864,8 +864,8 @@ const Re = {
|
|
|
864
864
|
maxContentLength: -1,
|
|
865
865
|
maxBodyLength: -1,
|
|
866
866
|
env: {
|
|
867
|
-
FormData:
|
|
868
|
-
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
|
|
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
|
|
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()) && !
|
|
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 ?
|
|
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
|
|
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) {
|
|
@@ -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 =
|
|
1177
|
-
new URL(
|
|
1178
|
-
|
|
1179
|
-
) : () => !0, Xn =
|
|
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 (
|
|
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 (
|
|
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
|
}
|
|
@@ -1358,7 +1358,7 @@ 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 &&
|
|
1361
|
+
if (M && G.protocols.indexOf(M) === -1) {
|
|
1362
1362
|
n(new P("Unsupported protocol " + M + ":", P.ERR_BAD_REQUEST, r));
|
|
1363
1363
|
return;
|
|
1364
1364
|
}
|
|
@@ -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(
|
|
1468
|
+
const O = new t(G.origin, {
|
|
1469
1469
|
body: new Or(),
|
|
1470
1470
|
method: "POST",
|
|
1471
1471
|
get duplex() {
|
|
@@ -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(
|
|
1493
|
+
return (await new t(G.origin, {
|
|
1494
1494
|
method: "POST",
|
|
1495
1495
|
body: h
|
|
1496
1496
|
}).arrayBuffer()).byteLength;
|
|
@@ -1658,22 +1658,22 @@ const Et = {
|
|
|
1658
1658
|
*/
|
|
1659
1659
|
adapters: ur
|
|
1660
1660
|
};
|
|
1661
|
-
function
|
|
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
|
|
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
|
|
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) || (
|
|
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
|
|
@@ -2120,6 +2120,25 @@ class vs {
|
|
|
2120
2120
|
method: "GET"
|
|
2121
2121
|
});
|
|
2122
2122
|
}
|
|
2123
|
+
async waitForEventToEnd(e) {
|
|
2124
|
+
for (; ; ) {
|
|
2125
|
+
const t = await w({
|
|
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) {
|
|
@@ -2809,7 +2828,7 @@ function wt() {
|
|
|
2809
2828
|
return ee.CancelablePromise = t, ee;
|
|
2810
2829
|
}
|
|
2811
2830
|
var le = {}, Ir;
|
|
2812
|
-
function
|
|
2831
|
+
function V() {
|
|
2813
2832
|
return Ir || (Ir = 1, Object.defineProperty(le, "__esModule", { value: !0 }), le.OpenAPI = void 0, le.OpenAPI = {
|
|
2814
2833
|
BASE: "https://api.webdock.io/v1",
|
|
2815
2834
|
VERSION: "1.0.1",
|
|
@@ -3231,7 +3250,7 @@ var xr;
|
|
|
3231
3250
|
function js() {
|
|
3232
3251
|
if (xr) return de;
|
|
3233
3252
|
xr = 1, Object.defineProperty(de, "__esModule", { value: !0 }), de.AccountInformationService = void 0;
|
|
3234
|
-
var r =
|
|
3253
|
+
var r = V(), e = z(), t = (
|
|
3235
3254
|
/** @class */
|
|
3236
3255
|
(function() {
|
|
3237
3256
|
function n() {
|
|
@@ -3246,11 +3265,11 @@ function js() {
|
|
|
3246
3265
|
);
|
|
3247
3266
|
return de.AccountInformationService = t, de;
|
|
3248
3267
|
}
|
|
3249
|
-
var fe = {},
|
|
3268
|
+
var fe = {}, Gr;
|
|
3250
3269
|
function Us() {
|
|
3251
|
-
if (
|
|
3252
|
-
|
|
3253
|
-
var r =
|
|
3270
|
+
if (Gr) return fe;
|
|
3271
|
+
Gr = 1, Object.defineProperty(fe, "__esModule", { value: !0 }), fe.AccountScriptsFilesService = void 0;
|
|
3272
|
+
var r = V(), e = z(), t = (
|
|
3254
3273
|
/** @class */
|
|
3255
3274
|
(function() {
|
|
3256
3275
|
function n() {
|
|
@@ -3311,11 +3330,11 @@ function Us() {
|
|
|
3311
3330
|
);
|
|
3312
3331
|
return fe.AccountScriptsFilesService = t, fe;
|
|
3313
3332
|
}
|
|
3314
|
-
var pe = {},
|
|
3333
|
+
var pe = {}, Vr;
|
|
3315
3334
|
function Fs() {
|
|
3316
|
-
if (
|
|
3317
|
-
|
|
3318
|
-
var r =
|
|
3335
|
+
if (Vr) return pe;
|
|
3336
|
+
Vr = 1, Object.defineProperty(pe, "__esModule", { value: !0 }), pe.EventCallbacksHooksService = void 0;
|
|
3337
|
+
var r = V(), e = z(), t = (
|
|
3319
3338
|
/** @class */
|
|
3320
3339
|
(function() {
|
|
3321
3340
|
function n() {
|
|
@@ -3367,7 +3386,7 @@ var he = {}, Kr;
|
|
|
3367
3386
|
function Ls() {
|
|
3368
3387
|
if (Kr) return he;
|
|
3369
3388
|
Kr = 1, Object.defineProperty(he, "__esModule", { value: !0 }), he.PingService = void 0;
|
|
3370
|
-
var r =
|
|
3389
|
+
var r = V(), e = z(), t = (
|
|
3371
3390
|
/** @class */
|
|
3372
3391
|
(function() {
|
|
3373
3392
|
function n() {
|
|
@@ -3386,7 +3405,7 @@ var ve = {}, $r;
|
|
|
3386
3405
|
function Bs() {
|
|
3387
3406
|
if ($r) return ve;
|
|
3388
3407
|
$r = 1, Object.defineProperty(ve, "__esModule", { value: !0 }), ve.PollForEventsService = void 0;
|
|
3389
|
-
var r =
|
|
3408
|
+
var r = V(), e = z(), t = (
|
|
3390
3409
|
/** @class */
|
|
3391
3410
|
(function() {
|
|
3392
3411
|
function n() {
|
|
@@ -3414,7 +3433,7 @@ var Se = {}, zr;
|
|
|
3414
3433
|
function Ms() {
|
|
3415
3434
|
if (zr) return Se;
|
|
3416
3435
|
zr = 1, Object.defineProperty(Se, "__esModule", { value: !0 }), Se.PublicKeysService = void 0;
|
|
3417
|
-
var r =
|
|
3436
|
+
var r = V(), e = z(), t = (
|
|
3418
3437
|
/** @class */
|
|
3419
3438
|
(function() {
|
|
3420
3439
|
function n() {
|
|
@@ -3454,7 +3473,7 @@ var me = {}, Wr;
|
|
|
3454
3473
|
function Hs() {
|
|
3455
3474
|
if (Wr) return me;
|
|
3456
3475
|
Wr = 1, Object.defineProperty(me, "__esModule", { value: !0 }), me.ScriptLibraryService = void 0;
|
|
3457
|
-
var r =
|
|
3476
|
+
var r = V(), e = z(), t = (
|
|
3458
3477
|
/** @class */
|
|
3459
3478
|
(function() {
|
|
3460
3479
|
function n() {
|
|
@@ -3473,7 +3492,7 @@ var be = {}, Jr;
|
|
|
3473
3492
|
function xs() {
|
|
3474
3493
|
if (Jr) return be;
|
|
3475
3494
|
Jr = 1, Object.defineProperty(be, "__esModule", { value: !0 }), be.ServerActionsService = void 0;
|
|
3476
|
-
var r =
|
|
3495
|
+
var r = V(), e = z(), t = (
|
|
3477
3496
|
/** @class */
|
|
3478
3497
|
(function() {
|
|
3479
3498
|
function n() {
|
|
@@ -3609,10 +3628,10 @@ function xs() {
|
|
|
3609
3628
|
return be.ServerActionsService = t, be;
|
|
3610
3629
|
}
|
|
3611
3630
|
var ye = {}, Xr;
|
|
3612
|
-
function
|
|
3631
|
+
function Gs() {
|
|
3613
3632
|
if (Xr) return ye;
|
|
3614
3633
|
Xr = 1, Object.defineProperty(ye, "__esModule", { value: !0 }), ye.ServerConfigurationsService = void 0;
|
|
3615
|
-
var r =
|
|
3634
|
+
var r = V(), e = z(), t = (
|
|
3616
3635
|
/** @class */
|
|
3617
3636
|
(function() {
|
|
3618
3637
|
function n() {
|
|
@@ -3641,10 +3660,10 @@ function Vs() {
|
|
|
3641
3660
|
return ye.ServerConfigurationsService = t, ye;
|
|
3642
3661
|
}
|
|
3643
3662
|
var ge = {}, Yr;
|
|
3644
|
-
function
|
|
3663
|
+
function Vs() {
|
|
3645
3664
|
if (Yr) return ge;
|
|
3646
3665
|
Yr = 1, Object.defineProperty(ge, "__esModule", { value: !0 }), ge.ServerMetricsService = void 0;
|
|
3647
|
-
var r =
|
|
3666
|
+
var r = V(), e = z(), t = (
|
|
3648
3667
|
/** @class */
|
|
3649
3668
|
(function() {
|
|
3650
3669
|
function n() {
|
|
@@ -3680,7 +3699,7 @@ var Ee = {}, Qr;
|
|
|
3680
3699
|
function Ks() {
|
|
3681
3700
|
if (Qr) return Ee;
|
|
3682
3701
|
Qr = 1, Object.defineProperty(Ee, "__esModule", { value: !0 }), Ee.ServersService = void 0;
|
|
3683
|
-
var r =
|
|
3702
|
+
var r = V(), e = z(), t = (
|
|
3684
3703
|
/** @class */
|
|
3685
3704
|
(function() {
|
|
3686
3705
|
function n() {
|
|
@@ -3748,7 +3767,7 @@ var Oe = {}, Zr;
|
|
|
3748
3767
|
function $s() {
|
|
3749
3768
|
if (Zr) return Oe;
|
|
3750
3769
|
Zr = 1, Object.defineProperty(Oe, "__esModule", { value: !0 }), Oe.ServerScriptsFilesService = void 0;
|
|
3751
|
-
var r =
|
|
3770
|
+
var r = V(), e = z(), t = (
|
|
3752
3771
|
/** @class */
|
|
3753
3772
|
(function() {
|
|
3754
3773
|
function n() {
|
|
@@ -3839,7 +3858,7 @@ var _e = {}, et;
|
|
|
3839
3858
|
function zs() {
|
|
3840
3859
|
if (et) return _e;
|
|
3841
3860
|
et = 1, Object.defineProperty(_e, "__esModule", { value: !0 }), _e.ServerSnapshotsService = void 0;
|
|
3842
|
-
var r =
|
|
3861
|
+
var r = V(), e = z(), t = (
|
|
3843
3862
|
/** @class */
|
|
3844
3863
|
(function() {
|
|
3845
3864
|
function n() {
|
|
@@ -3902,7 +3921,7 @@ var Te = {}, rt;
|
|
|
3902
3921
|
function Ws() {
|
|
3903
3922
|
if (rt) return Te;
|
|
3904
3923
|
rt = 1, Object.defineProperty(Te, "__esModule", { value: !0 }), Te.ShellUsersService = void 0;
|
|
3905
|
-
var r =
|
|
3924
|
+
var r = V(), e = z(), t = (
|
|
3906
3925
|
/** @class */
|
|
3907
3926
|
(function() {
|
|
3908
3927
|
function n() {
|
|
@@ -3979,7 +3998,7 @@ function Js() {
|
|
|
3979
3998
|
} }), Object.defineProperty(r, "CancelError", { enumerable: !0, get: function() {
|
|
3980
3999
|
return t.CancelError;
|
|
3981
4000
|
} });
|
|
3982
|
-
var n =
|
|
4001
|
+
var n = V();
|
|
3983
4002
|
Object.defineProperty(r, "OpenAPI", { enumerable: !0, get: function() {
|
|
3984
4003
|
return n.OpenAPI;
|
|
3985
4004
|
} });
|
|
@@ -4047,11 +4066,11 @@ function Js() {
|
|
|
4047
4066
|
Object.defineProperty(r, "ServerActionsService", { enumerable: !0, get: function() {
|
|
4048
4067
|
return N.ServerActionsService;
|
|
4049
4068
|
} });
|
|
4050
|
-
var F =
|
|
4069
|
+
var F = Gs();
|
|
4051
4070
|
Object.defineProperty(r, "ServerConfigurationsService", { enumerable: !0, get: function() {
|
|
4052
4071
|
return F.ServerConfigurationsService;
|
|
4053
4072
|
} });
|
|
4054
|
-
var B =
|
|
4073
|
+
var B = Vs();
|
|
4055
4074
|
Object.defineProperty(r, "ServerMetricsService", { enumerable: !0, get: function() {
|
|
4056
4075
|
return B.ServerMetricsService;
|
|
4057
4076
|
} });
|