@webdock/sdk 1.0.5961 → 1.0.5963
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.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +57 -56
- package/dist/index.mjs.map +1 -1
- package/dist/operation.d.ts.map +1 -1
- package/dist/servers.d.ts +1 -1
- package/dist/servers.d.ts.map +1 -1
- package/dist/utils/req.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -31,12 +31,12 @@ function Rt(r) {
|
|
|
31
31
|
let e;
|
|
32
32
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(r) : e = r && r.buffer && nt(r.buffer), e;
|
|
33
33
|
}
|
|
34
|
-
const kt = Le("string"), x = Le("function"), st = Le("number"), Pe = (r) => r !== null && typeof r == "object",
|
|
34
|
+
const kt = Le("string"), x = Le("function"), st = Le("number"), Pe = (r) => r !== null && typeof r == "object", Ct = (r) => r === !0 || r === !1, qe = (r) => {
|
|
35
35
|
if (Ue(r) !== "object")
|
|
36
36
|
return !1;
|
|
37
37
|
const e = sr(r);
|
|
38
38
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(tt in r) && !(Fe in r);
|
|
39
|
-
},
|
|
39
|
+
}, It = (r) => {
|
|
40
40
|
if (!Pe(r) || Ee(r))
|
|
41
41
|
return !1;
|
|
42
42
|
try {
|
|
@@ -227,10 +227,10 @@ const cn = (r) => {
|
|
|
227
227
|
isArrayBufferView: Rt,
|
|
228
228
|
isString: kt,
|
|
229
229
|
isNumber: st,
|
|
230
|
-
isBoolean:
|
|
230
|
+
isBoolean: Ct,
|
|
231
231
|
isObject: Pe,
|
|
232
232
|
isPlainObject: qe,
|
|
233
|
-
isEmptyObject:
|
|
233
|
+
isEmptyObject: It,
|
|
234
234
|
isReadableStream: Bt,
|
|
235
235
|
isRequest: Ht,
|
|
236
236
|
isResponse: Mt,
|
|
@@ -377,11 +377,11 @@ function Be(r, e, t) {
|
|
|
377
377
|
if (c.endsWith(O, "{}"))
|
|
378
378
|
O = n ? O : O.slice(0, -2), d = JSON.stringify(d);
|
|
379
379
|
else if (c.isArray(d) && hn(d) || (c.isFileList(d) || c.endsWith(O, "[]")) && (k = c.toArray(d)))
|
|
380
|
-
return O = lt(O), k.forEach(function(
|
|
381
|
-
!(c.isUndefined(
|
|
380
|
+
return O = lt(O), k.forEach(function(I, j) {
|
|
381
|
+
!(c.isUndefined(I) || I === null) && e.append(
|
|
382
382
|
// eslint-disable-next-line no-nested-ternary
|
|
383
383
|
i === !0 ? lr([O], j, o) : i === null ? O : O + "[]",
|
|
384
|
-
p(
|
|
384
|
+
p(I)
|
|
385
385
|
);
|
|
386
386
|
}), !1;
|
|
387
387
|
}
|
|
@@ -668,7 +668,7 @@ const kn = c.toObjectSet([
|
|
|
668
668
|
"referer",
|
|
669
669
|
"retry-after",
|
|
670
670
|
"user-agent"
|
|
671
|
-
]),
|
|
671
|
+
]), Cn = (r) => {
|
|
672
672
|
const e = {};
|
|
673
673
|
let t, n, s;
|
|
674
674
|
return r && r.split(`
|
|
@@ -682,7 +682,7 @@ function ie(r) {
|
|
|
682
682
|
function De(r) {
|
|
683
683
|
return r === !1 || r == null ? r : c.isArray(r) ? r.map(De) : String(r);
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function In(r) {
|
|
686
686
|
const e = /* @__PURE__ */ Object.create(null), t = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
687
687
|
let n;
|
|
688
688
|
for (; n = t.exec(r); )
|
|
@@ -731,7 +731,7 @@ let G = class {
|
|
|
731
731
|
if (c.isPlainObject(e) || e instanceof this.constructor)
|
|
732
732
|
i(e, t);
|
|
733
733
|
else if (c.isString(e) && (e = e.trim()) && !qn(e))
|
|
734
|
-
i(
|
|
734
|
+
i(Cn(e), t);
|
|
735
735
|
else if (c.isObject(e) && c.isIterable(e)) {
|
|
736
736
|
let a = {}, h, p;
|
|
737
737
|
for (const u of e) {
|
|
@@ -752,7 +752,7 @@ let G = class {
|
|
|
752
752
|
if (!t)
|
|
753
753
|
return s;
|
|
754
754
|
if (t === !0)
|
|
755
|
-
return
|
|
755
|
+
return In(s);
|
|
756
756
|
if (c.isFunction(t))
|
|
757
757
|
return t.call(this, s, n);
|
|
758
758
|
if (c.isRegExp(t))
|
|
@@ -1090,13 +1090,13 @@ const mt = (r) => {
|
|
|
1090
1090
|
function k() {
|
|
1091
1091
|
if (!S)
|
|
1092
1092
|
return;
|
|
1093
|
-
const
|
|
1093
|
+
const I = G.from(
|
|
1094
1094
|
"getAllResponseHeaders" in S && S.getAllResponseHeaders()
|
|
1095
1095
|
), N = {
|
|
1096
1096
|
data: !a || a === "text" || a === "json" ? S.responseText : S.response,
|
|
1097
1097
|
status: S.status,
|
|
1098
1098
|
statusText: S.statusText,
|
|
1099
|
-
headers:
|
|
1099
|
+
headers: I,
|
|
1100
1100
|
config: r,
|
|
1101
1101
|
request: S
|
|
1102
1102
|
};
|
|
@@ -1124,8 +1124,8 @@ const mt = (r) => {
|
|
|
1124
1124
|
)), S = null;
|
|
1125
1125
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in S && c.forEach(i.toJSON(), function(j, N) {
|
|
1126
1126
|
S.setRequestHeader(N, j);
|
|
1127
|
-
}), c.isUndefined(s.withCredentials) || (S.withCredentials = !!s.withCredentials), a && a !== "json" && (S.responseType = s.responseType), p && ([w, d] = Ne(p, !0), S.addEventListener("progress", w)), h && S.upload && ([y, R] = Ne(h), S.upload.addEventListener("progress", y), S.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (u = (
|
|
1128
|
-
S && (n(!
|
|
1127
|
+
}), c.isUndefined(s.withCredentials) || (S.withCredentials = !!s.withCredentials), a && a !== "json" && (S.responseType = s.responseType), p && ([w, d] = Ne(p, !0), S.addEventListener("progress", w)), h && S.upload && ([y, R] = Ne(h), S.upload.addEventListener("progress", y), S.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (u = (I) => {
|
|
1128
|
+
S && (n(!I || I.type ? new we(null, r, S) : I), S.abort(), S = null);
|
|
1129
1129
|
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
1130
1130
|
const L = Nn(s.url);
|
|
1131
1131
|
if (L && H.protocols.indexOf(L) === -1) {
|
|
@@ -1214,7 +1214,7 @@ const mt = (r) => {
|
|
|
1214
1214
|
}, {
|
|
1215
1215
|
highWaterMark: 2
|
|
1216
1216
|
});
|
|
1217
|
-
}, br = 64 * 1024, { isFunction:
|
|
1217
|
+
}, br = 64 * 1024, { isFunction: Ce } = c, $n = (({ Request: r, Response: e }) => ({
|
|
1218
1218
|
Request: r,
|
|
1219
1219
|
Response: e
|
|
1220
1220
|
}))(c.global), {
|
|
@@ -1230,10 +1230,10 @@ const mt = (r) => {
|
|
|
1230
1230
|
r = c.merge.call({
|
|
1231
1231
|
skipUndefined: !0
|
|
1232
1232
|
}, $n, r);
|
|
1233
|
-
const { fetch: e, Request: t, Response: n } = r, s = e ?
|
|
1233
|
+
const { fetch: e, Request: t, Response: n } = r, s = e ? Ce(e) : typeof fetch == "function", o = Ce(t), i = Ce(n);
|
|
1234
1234
|
if (!s)
|
|
1235
1235
|
return !1;
|
|
1236
|
-
const a = s &&
|
|
1236
|
+
const a = s && Ce(yr), h = s && (typeof gr == "function" ? /* @__PURE__ */ ((d) => (O) => d.encode(O))(new gr()) : async (d) => new Uint8Array(await new t(d).arrayBuffer())), p = o && a && Or(() => {
|
|
1237
1237
|
let d = !1;
|
|
1238
1238
|
const O = new t(H.origin, {
|
|
1239
1239
|
body: new yr(),
|
|
@@ -1278,7 +1278,7 @@ const mt = (r) => {
|
|
|
1278
1278
|
method: S,
|
|
1279
1279
|
data: k,
|
|
1280
1280
|
signal: L,
|
|
1281
|
-
cancelToken:
|
|
1281
|
+
cancelToken: I,
|
|
1282
1282
|
timeout: j,
|
|
1283
1283
|
onDownloadProgress: N,
|
|
1284
1284
|
onUploadProgress: W,
|
|
@@ -1288,7 +1288,7 @@ const mt = (r) => {
|
|
|
1288
1288
|
fetchOptions: Ae
|
|
1289
1289
|
} = mt(d), Re = e || fetch;
|
|
1290
1290
|
B = B ? (B + "").toLowerCase() : "text";
|
|
1291
|
-
let ne = Kn([L,
|
|
1291
|
+
let ne = Kn([L, I && I.toAbortSignal()], j), l = null;
|
|
1292
1292
|
const f = ne && ne.unsubscribe && (() => {
|
|
1293
1293
|
ne.unsubscribe();
|
|
1294
1294
|
});
|
|
@@ -1301,11 +1301,11 @@ const mt = (r) => {
|
|
|
1301
1301
|
duplex: "half"
|
|
1302
1302
|
}), E;
|
|
1303
1303
|
if (c.isFormData(k) && (E = A.headers.get("content-type")) && Y.setContentType(E), A.body) {
|
|
1304
|
-
const [
|
|
1304
|
+
const [C, F] = hr(
|
|
1305
1305
|
m,
|
|
1306
1306
|
Ne(vr(W))
|
|
1307
1307
|
);
|
|
1308
|
-
k = mr(A.body, br,
|
|
1308
|
+
k = mr(A.body, br, C, F);
|
|
1309
1309
|
}
|
|
1310
1310
|
}
|
|
1311
1311
|
c.isString(J) || (J = J ? "include" : "omit");
|
|
@@ -1326,12 +1326,12 @@ const mt = (r) => {
|
|
|
1326
1326
|
["status", "statusText", "headers"].forEach((X) => {
|
|
1327
1327
|
A[X] = v[X];
|
|
1328
1328
|
});
|
|
1329
|
-
const E = c.toFiniteNumber(v.headers.get("content-length")), [
|
|
1329
|
+
const E = c.toFiniteNumber(v.headers.get("content-length")), [C, F] = N && hr(
|
|
1330
1330
|
E,
|
|
1331
1331
|
Ne(vr(N), !0)
|
|
1332
1332
|
) || [];
|
|
1333
1333
|
v = new n(
|
|
1334
|
-
mr(v.body, br,
|
|
1334
|
+
mr(v.body, br, C, () => {
|
|
1335
1335
|
F && F(), f && f();
|
|
1336
1336
|
}),
|
|
1337
1337
|
A
|
|
@@ -1838,7 +1838,8 @@ async function P(r) {
|
|
|
1838
1838
|
headers: {
|
|
1839
1839
|
Authorization: `Bearer ${r.token}`,
|
|
1840
1840
|
"Content-Type": "application/json",
|
|
1841
|
-
"Cache-Control": "no-cache, no-store, must-revalidate"
|
|
1841
|
+
"Cache-Control": "no-cache, no-store, must-revalidate",
|
|
1842
|
+
"X-Client": "node-sdk"
|
|
1842
1843
|
},
|
|
1843
1844
|
data: r.body,
|
|
1844
1845
|
family: 4
|
|
@@ -2641,9 +2642,9 @@ function vs() {
|
|
|
2641
2642
|
})(r.CreateEventHookModelDTO || (r.CreateEventHookModelDTO = {}));
|
|
2642
2643
|
})(ze)), ze;
|
|
2643
2644
|
}
|
|
2644
|
-
var We = {},
|
|
2645
|
+
var We = {}, Cr;
|
|
2645
2646
|
function Ss() {
|
|
2646
|
-
return
|
|
2647
|
+
return Cr || (Cr = 1, (function(r) {
|
|
2647
2648
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.EventLogDTO = void 0, (function(e) {
|
|
2648
2649
|
(function(t) {
|
|
2649
2650
|
t.WAITING = "waiting", t.WORKING = "working", t.FINISHED = "finished", t.ERROR = "error";
|
|
@@ -2651,9 +2652,9 @@ function Ss() {
|
|
|
2651
2652
|
})(r.EventLogDTO || (r.EventLogDTO = {}));
|
|
2652
2653
|
})(We)), We;
|
|
2653
2654
|
}
|
|
2654
|
-
var Ve = {},
|
|
2655
|
+
var Ve = {}, Ir;
|
|
2655
2656
|
function ms() {
|
|
2656
|
-
return
|
|
2657
|
+
return Ir || (Ir = 1, (function(r) {
|
|
2657
2658
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.Ping = void 0, (function(e) {
|
|
2658
2659
|
(function(t) {
|
|
2659
2660
|
t.ROCKS = "rocks";
|
|
@@ -2721,7 +2722,7 @@ var ce = {}, U = {}, Ze, Ur;
|
|
|
2721
2722
|
function Ps() {
|
|
2722
2723
|
return Ur || (Ur = 1, Ze = typeof self == "object" ? self.FormData : window.FormData), Ze;
|
|
2723
2724
|
}
|
|
2724
|
-
var
|
|
2725
|
+
var Ie = { exports: {} }, Lr;
|
|
2725
2726
|
function _s() {
|
|
2726
2727
|
return Lr || (Lr = 1, (function(r, e) {
|
|
2727
2728
|
var t = function() {
|
|
@@ -2734,7 +2735,7 @@ function _s() {
|
|
|
2734
2735
|
throw new Error("unable to locate global object");
|
|
2735
2736
|
}, n = t();
|
|
2736
2737
|
r.exports = e = n.fetch, n.fetch && (e.default = n.fetch.bind(n)), e.Headers = n.Headers, e.Request = n.Request, e.Response = n.Response;
|
|
2737
|
-
})(
|
|
2738
|
+
})(Ie, Ie.exports)), Ie.exports;
|
|
2738
2739
|
}
|
|
2739
2740
|
var Br;
|
|
2740
2741
|
function K() {
|
|
@@ -2771,22 +2772,22 @@ function K() {
|
|
|
2771
2772
|
});
|
|
2772
2773
|
}
|
|
2773
2774
|
return new (m || (m = Promise))(function(v, T) {
|
|
2774
|
-
function q(
|
|
2775
|
+
function q(C) {
|
|
2775
2776
|
try {
|
|
2776
|
-
E(g.next(
|
|
2777
|
+
E(g.next(C));
|
|
2777
2778
|
} catch (F) {
|
|
2778
2779
|
T(F);
|
|
2779
2780
|
}
|
|
2780
2781
|
}
|
|
2781
|
-
function A(
|
|
2782
|
+
function A(C) {
|
|
2782
2783
|
try {
|
|
2783
|
-
E(g.throw(
|
|
2784
|
+
E(g.throw(C));
|
|
2784
2785
|
} catch (F) {
|
|
2785
2786
|
T(F);
|
|
2786
2787
|
}
|
|
2787
2788
|
}
|
|
2788
|
-
function E(
|
|
2789
|
-
|
|
2789
|
+
function E(C) {
|
|
2790
|
+
C.done ? v(C.value) : b(C.value).then(q, A);
|
|
2790
2791
|
}
|
|
2791
2792
|
E((g = g.apply(l, f || [])).next());
|
|
2792
2793
|
});
|
|
@@ -2799,8 +2800,8 @@ function K() {
|
|
|
2799
2800
|
return this;
|
|
2800
2801
|
}), T;
|
|
2801
2802
|
function q(E) {
|
|
2802
|
-
return function(
|
|
2803
|
-
return A([E,
|
|
2803
|
+
return function(C) {
|
|
2804
|
+
return A([E, C]);
|
|
2804
2805
|
};
|
|
2805
2806
|
}
|
|
2806
2807
|
function A(E) {
|
|
@@ -2841,8 +2842,8 @@ function K() {
|
|
|
2841
2842
|
continue;
|
|
2842
2843
|
}
|
|
2843
2844
|
E = f.call(l, m);
|
|
2844
|
-
} catch (
|
|
2845
|
-
E = [6,
|
|
2845
|
+
} catch (C) {
|
|
2846
|
+
E = [6, C], b = 0;
|
|
2846
2847
|
} finally {
|
|
2847
2848
|
g = v = 0;
|
|
2848
2849
|
}
|
|
@@ -2884,7 +2885,7 @@ function K() {
|
|
|
2884
2885
|
var v = b[0], T = b[1];
|
|
2885
2886
|
g(v, T);
|
|
2886
2887
|
}), f.length > 0 ? "?".concat(f.join("&")) : "";
|
|
2887
|
-
},
|
|
2888
|
+
}, I = function(l, f) {
|
|
2888
2889
|
var m = l.ENCODE_PATH || encodeURI, g = f.url.replace("{api-version}", l.VERSION).replace(/{(.*?)}/g, function(v, T) {
|
|
2889
2890
|
var q;
|
|
2890
2891
|
return !((q = f.path) === null || q === void 0) && q.hasOwnProperty(T) ? m(String(f.path[T])) : v;
|
|
@@ -2928,10 +2929,10 @@ function K() {
|
|
|
2928
2929
|
case 4:
|
|
2929
2930
|
return v = A.sent(), T = Object.entries(e(e({ Accept: "application/json" }, v), f.headers)).filter(function(E) {
|
|
2930
2931
|
E[0];
|
|
2931
|
-
var
|
|
2932
|
-
return w(
|
|
2933
|
-
}).reduce(function(E,
|
|
2934
|
-
var F, X =
|
|
2932
|
+
var C = E[1];
|
|
2933
|
+
return w(C);
|
|
2934
|
+
}).reduce(function(E, C) {
|
|
2935
|
+
var F, X = C[0], ke = C[1];
|
|
2935
2936
|
return e(e({}, E), (F = {}, F[X] = String(ke), F));
|
|
2936
2937
|
}, {}), d(m) && (T.Authorization = "Bearer ".concat(m)), d(g) && d(b) && (q = k("".concat(g, ":").concat(b)), T.Authorization = "Basic ".concat(q)), f.body && (f.mediaType ? T["Content-Type"] = f.mediaType : O(f.body) ? T["Content-Type"] = "application/octet-stream" : R(f.body) ? T["Content-Type"] = "text/plain" : S(f.body) || (T["Content-Type"] = "application/json")), [2, new p.Headers(T)];
|
|
2937
2938
|
}
|
|
@@ -3002,22 +3003,22 @@ function K() {
|
|
|
3002
3003
|
}, ne = function(l, f) {
|
|
3003
3004
|
return new y.CancelablePromise(function(m, g, b) {
|
|
3004
3005
|
return o(void 0, void 0, void 0, function() {
|
|
3005
|
-
var v, T, q, A, E,
|
|
3006
|
+
var v, T, q, A, E, C, F, X, ke;
|
|
3006
3007
|
return i(this, function(Q) {
|
|
3007
3008
|
switch (Q.label) {
|
|
3008
3009
|
case 0:
|
|
3009
|
-
return Q.trys.push([0, 5, , 6]), v =
|
|
3010
|
+
return Q.trys.push([0, 5, , 6]), v = I(l, f), T = j(f), q = B(f), [4, W(l, f)];
|
|
3010
3011
|
case 1:
|
|
3011
3012
|
return A = Q.sent(), b.isCancelled ? [3, 4] : [4, (0, r.sendRequest)(f, v, q, T, A, b)];
|
|
3012
3013
|
case 2:
|
|
3013
3014
|
return E = Q.sent(), [4, Ae(E)];
|
|
3014
3015
|
case 3:
|
|
3015
|
-
|
|
3016
|
+
C = Q.sent(), F = J(E, f.responseHeader), X = {
|
|
3016
3017
|
url: v,
|
|
3017
3018
|
ok: E.ok,
|
|
3018
3019
|
status: E.status,
|
|
3019
3020
|
statusText: E.statusText,
|
|
3020
|
-
body: F ??
|
|
3021
|
+
body: F ?? C
|
|
3021
3022
|
}, Re(f, X), m(X.body), Q.label = 4;
|
|
3022
3023
|
case 4:
|
|
3023
3024
|
return [3, 6];
|
|
@@ -3220,7 +3221,7 @@ function ks() {
|
|
|
3220
3221
|
return fe.PollForEventsService = t, fe;
|
|
3221
3222
|
}
|
|
3222
3223
|
var pe = {}, zr;
|
|
3223
|
-
function
|
|
3224
|
+
function Cs() {
|
|
3224
3225
|
if (zr) return pe;
|
|
3225
3226
|
zr = 1, Object.defineProperty(pe, "__esModule", { value: !0 }), pe.PublicKeysService = void 0;
|
|
3226
3227
|
var r = M(), e = K(), t = (
|
|
@@ -3260,7 +3261,7 @@ function Is() {
|
|
|
3260
3261
|
return pe.PublicKeysService = t, pe;
|
|
3261
3262
|
}
|
|
3262
3263
|
var he = {}, Wr;
|
|
3263
|
-
function
|
|
3264
|
+
function Is() {
|
|
3264
3265
|
if (Wr) return he;
|
|
3265
3266
|
Wr = 1, Object.defineProperty(he, "__esModule", { value: !0 }), he.ScriptLibraryService = void 0;
|
|
3266
3267
|
var r = M(), e = K(), t = (
|
|
@@ -3844,17 +3845,17 @@ function Bs() {
|
|
|
3844
3845
|
Object.defineProperty(r, "PollForEventsService", { enumerable: !0, get: function() {
|
|
3845
3846
|
return S.PollForEventsService;
|
|
3846
3847
|
} });
|
|
3847
|
-
var k =
|
|
3848
|
+
var k = Cs();
|
|
3848
3849
|
Object.defineProperty(r, "PublicKeysService", { enumerable: !0, get: function() {
|
|
3849
3850
|
return k.PublicKeysService;
|
|
3850
3851
|
} });
|
|
3851
|
-
var L =
|
|
3852
|
+
var L = Is();
|
|
3852
3853
|
Object.defineProperty(r, "ScriptLibraryService", { enumerable: !0, get: function() {
|
|
3853
3854
|
return L.ScriptLibraryService;
|
|
3854
3855
|
} });
|
|
3855
|
-
var
|
|
3856
|
+
var I = qs();
|
|
3856
3857
|
Object.defineProperty(r, "ServerActionsService", { enumerable: !0, get: function() {
|
|
3857
|
-
return
|
|
3858
|
+
return I.ServerActionsService;
|
|
3858
3859
|
} });
|
|
3859
3860
|
var j = Ds();
|
|
3860
3861
|
Object.defineProperty(r, "ServerConfigurationsService", { enumerable: !0, get: function() {
|