@botpress/api 0.15.12 → 0.16.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.
- package/dist/index.js +443 -132
- package/dist/src/gen/state.d.ts +261 -1
- package/package.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +279 -8
package/dist/index.js
CHANGED
|
@@ -36095,9 +36095,9 @@ var require_src2 = __commonJS({
|
|
|
36095
36095
|
}
|
|
36096
36096
|
});
|
|
36097
36097
|
|
|
36098
|
-
// ../../node_modules/.pnpm/follow-redirects@1.15.
|
|
36098
|
+
// ../../node_modules/.pnpm/follow-redirects@1.15.4/node_modules/follow-redirects/debug.js
|
|
36099
36099
|
var require_debug = __commonJS({
|
|
36100
|
-
"../../node_modules/.pnpm/follow-redirects@1.15.
|
|
36100
|
+
"../../node_modules/.pnpm/follow-redirects@1.15.4/node_modules/follow-redirects/debug.js"(exports, module2) {
|
|
36101
36101
|
var debug;
|
|
36102
36102
|
module2.exports = function() {
|
|
36103
36103
|
if (!debug) {
|
|
@@ -36115,9 +36115,9 @@ var require_debug = __commonJS({
|
|
|
36115
36115
|
}
|
|
36116
36116
|
});
|
|
36117
36117
|
|
|
36118
|
-
// ../../node_modules/.pnpm/follow-redirects@1.15.
|
|
36118
|
+
// ../../node_modules/.pnpm/follow-redirects@1.15.4/node_modules/follow-redirects/index.js
|
|
36119
36119
|
var require_follow_redirects = __commonJS({
|
|
36120
|
-
"../../node_modules/.pnpm/follow-redirects@1.15.
|
|
36120
|
+
"../../node_modules/.pnpm/follow-redirects@1.15.4/node_modules/follow-redirects/index.js"(exports, module2) {
|
|
36121
36121
|
var url2 = require("url");
|
|
36122
36122
|
var URL4 = url2.URL;
|
|
36123
36123
|
var http2 = require("http");
|
|
@@ -36125,6 +36125,24 @@ var require_follow_redirects = __commonJS({
|
|
|
36125
36125
|
var Writable = require("stream").Writable;
|
|
36126
36126
|
var assert = require("assert");
|
|
36127
36127
|
var debug = require_debug();
|
|
36128
|
+
var useNativeURL = false;
|
|
36129
|
+
try {
|
|
36130
|
+
assert(new URL4());
|
|
36131
|
+
} catch (error2) {
|
|
36132
|
+
useNativeURL = error2.code === "ERR_INVALID_URL";
|
|
36133
|
+
}
|
|
36134
|
+
var preservedUrlFields = [
|
|
36135
|
+
"auth",
|
|
36136
|
+
"host",
|
|
36137
|
+
"hostname",
|
|
36138
|
+
"href",
|
|
36139
|
+
"path",
|
|
36140
|
+
"pathname",
|
|
36141
|
+
"port",
|
|
36142
|
+
"protocol",
|
|
36143
|
+
"query",
|
|
36144
|
+
"search"
|
|
36145
|
+
];
|
|
36128
36146
|
var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
|
|
36129
36147
|
var eventHandlers = /* @__PURE__ */ Object.create(null);
|
|
36130
36148
|
events.forEach(function(event) {
|
|
@@ -36143,7 +36161,8 @@ var require_follow_redirects = __commonJS({
|
|
|
36143
36161
|
);
|
|
36144
36162
|
var TooManyRedirectsError = createErrorType(
|
|
36145
36163
|
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
36146
|
-
"Maximum number of redirects exceeded"
|
|
36164
|
+
"Maximum number of redirects exceeded",
|
|
36165
|
+
RedirectionError
|
|
36147
36166
|
);
|
|
36148
36167
|
var MaxBodyLengthExceededError = createErrorType(
|
|
36149
36168
|
"ERR_FR_MAX_BODY_LENGTH_EXCEEDED",
|
|
@@ -36153,6 +36172,7 @@ var require_follow_redirects = __commonJS({
|
|
|
36153
36172
|
"ERR_STREAM_WRITE_AFTER_END",
|
|
36154
36173
|
"write after end"
|
|
36155
36174
|
);
|
|
36175
|
+
var destroy = Writable.prototype.destroy || noop2;
|
|
36156
36176
|
function RedirectableRequest(options, responseCallback) {
|
|
36157
36177
|
Writable.call(this);
|
|
36158
36178
|
this._sanitizeOptions(options);
|
|
@@ -36168,15 +36188,25 @@ var require_follow_redirects = __commonJS({
|
|
|
36168
36188
|
}
|
|
36169
36189
|
var self2 = this;
|
|
36170
36190
|
this._onNativeResponse = function(response) {
|
|
36171
|
-
|
|
36191
|
+
try {
|
|
36192
|
+
self2._processResponse(response);
|
|
36193
|
+
} catch (cause) {
|
|
36194
|
+
self2.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
|
|
36195
|
+
}
|
|
36172
36196
|
};
|
|
36173
36197
|
this._performRequest();
|
|
36174
36198
|
}
|
|
36175
36199
|
RedirectableRequest.prototype = Object.create(Writable.prototype);
|
|
36176
36200
|
RedirectableRequest.prototype.abort = function() {
|
|
36177
|
-
|
|
36201
|
+
destroyRequest(this._currentRequest);
|
|
36202
|
+
this._currentRequest.abort();
|
|
36178
36203
|
this.emit("abort");
|
|
36179
36204
|
};
|
|
36205
|
+
RedirectableRequest.prototype.destroy = function(error2) {
|
|
36206
|
+
destroyRequest(this._currentRequest, error2);
|
|
36207
|
+
destroy.call(this, error2);
|
|
36208
|
+
return this;
|
|
36209
|
+
};
|
|
36180
36210
|
RedirectableRequest.prototype.write = function(data, encoding, callback) {
|
|
36181
36211
|
if (this._ending) {
|
|
36182
36212
|
throw new WriteAfterEndError();
|
|
@@ -36257,6 +36287,7 @@ var require_follow_redirects = __commonJS({
|
|
|
36257
36287
|
self2.removeListener("abort", clearTimer);
|
|
36258
36288
|
self2.removeListener("error", clearTimer);
|
|
36259
36289
|
self2.removeListener("response", clearTimer);
|
|
36290
|
+
self2.removeListener("close", clearTimer);
|
|
36260
36291
|
if (callback) {
|
|
36261
36292
|
self2.removeListener("timeout", callback);
|
|
36262
36293
|
}
|
|
@@ -36276,6 +36307,7 @@ var require_follow_redirects = __commonJS({
|
|
|
36276
36307
|
this.on("abort", clearTimer);
|
|
36277
36308
|
this.on("error", clearTimer);
|
|
36278
36309
|
this.on("response", clearTimer);
|
|
36310
|
+
this.on("close", clearTimer);
|
|
36279
36311
|
return this;
|
|
36280
36312
|
};
|
|
36281
36313
|
[
|
|
@@ -36319,8 +36351,7 @@ var require_follow_redirects = __commonJS({
|
|
|
36319
36351
|
var protocol = this._options.protocol;
|
|
36320
36352
|
var nativeProtocol = this._options.nativeProtocols[protocol];
|
|
36321
36353
|
if (!nativeProtocol) {
|
|
36322
|
-
|
|
36323
|
-
return;
|
|
36354
|
+
throw new TypeError("Unsupported protocol " + protocol);
|
|
36324
36355
|
}
|
|
36325
36356
|
if (this._options.agents) {
|
|
36326
36357
|
var scheme = protocol.slice(0, -1);
|
|
@@ -36369,11 +36400,10 @@ var require_follow_redirects = __commonJS({
|
|
|
36369
36400
|
this._requestBodyBuffers = [];
|
|
36370
36401
|
return;
|
|
36371
36402
|
}
|
|
36372
|
-
|
|
36403
|
+
destroyRequest(this._currentRequest);
|
|
36373
36404
|
response.destroy();
|
|
36374
36405
|
if (++this._redirectCount > this._options.maxRedirects) {
|
|
36375
|
-
|
|
36376
|
-
return;
|
|
36406
|
+
throw new TooManyRedirectsError();
|
|
36377
36407
|
}
|
|
36378
36408
|
var requestHeaders;
|
|
36379
36409
|
var beforeRedirect = this._options.beforeRedirect;
|
|
@@ -36389,21 +36419,14 @@ var require_follow_redirects = __commonJS({
|
|
|
36389
36419
|
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
36390
36420
|
}
|
|
36391
36421
|
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
36392
|
-
var currentUrlParts =
|
|
36422
|
+
var currentUrlParts = parseUrl(this._currentUrl);
|
|
36393
36423
|
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
36394
36424
|
var currentUrl = /^\w+:/.test(location2) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
36395
|
-
var redirectUrl;
|
|
36396
|
-
|
|
36397
|
-
redirectUrl = url2.resolve(currentUrl, location2);
|
|
36398
|
-
} catch (cause) {
|
|
36399
|
-
this.emit("error", new RedirectionError({ cause }));
|
|
36400
|
-
return;
|
|
36401
|
-
}
|
|
36402
|
-
debug("redirecting to", redirectUrl);
|
|
36425
|
+
var redirectUrl = resolveUrl(location2, currentUrl);
|
|
36426
|
+
debug("redirecting to", redirectUrl.href);
|
|
36403
36427
|
this._isRedirect = true;
|
|
36404
|
-
|
|
36405
|
-
|
|
36406
|
-
if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) {
|
|
36428
|
+
spreadUrlObject(redirectUrl, this._options);
|
|
36429
|
+
if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
|
|
36407
36430
|
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
36408
36431
|
}
|
|
36409
36432
|
if (isFunction2(beforeRedirect)) {
|
|
@@ -36416,19 +36439,10 @@ var require_follow_redirects = __commonJS({
|
|
|
36416
36439
|
method,
|
|
36417
36440
|
headers: requestHeaders
|
|
36418
36441
|
};
|
|
36419
|
-
|
|
36420
|
-
beforeRedirect(this._options, responseDetails, requestDetails);
|
|
36421
|
-
} catch (err) {
|
|
36422
|
-
this.emit("error", err);
|
|
36423
|
-
return;
|
|
36424
|
-
}
|
|
36442
|
+
beforeRedirect(this._options, responseDetails, requestDetails);
|
|
36425
36443
|
this._sanitizeOptions(this._options);
|
|
36426
36444
|
}
|
|
36427
|
-
|
|
36428
|
-
this._performRequest();
|
|
36429
|
-
} catch (cause) {
|
|
36430
|
-
this.emit("error", new RedirectionError({ cause }));
|
|
36431
|
-
}
|
|
36445
|
+
this._performRequest();
|
|
36432
36446
|
};
|
|
36433
36447
|
function wrap(protocols) {
|
|
36434
36448
|
var exports2 = {
|
|
@@ -36441,22 +36455,13 @@ var require_follow_redirects = __commonJS({
|
|
|
36441
36455
|
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
|
36442
36456
|
var wrappedProtocol = exports2[scheme] = Object.create(nativeProtocol);
|
|
36443
36457
|
function request(input, options, callback) {
|
|
36444
|
-
if (
|
|
36445
|
-
|
|
36446
|
-
|
|
36447
|
-
|
|
36448
|
-
} catch (err) {
|
|
36449
|
-
parsed = url2.parse(input);
|
|
36450
|
-
}
|
|
36451
|
-
if (!isString2(parsed.protocol)) {
|
|
36452
|
-
throw new InvalidUrlError({ input });
|
|
36453
|
-
}
|
|
36454
|
-
input = parsed;
|
|
36455
|
-
} else if (URL4 && input instanceof URL4) {
|
|
36456
|
-
input = urlToOptions(input);
|
|
36458
|
+
if (isURL(input)) {
|
|
36459
|
+
input = spreadUrlObject(input);
|
|
36460
|
+
} else if (isString2(input)) {
|
|
36461
|
+
input = spreadUrlObject(parseUrl(input));
|
|
36457
36462
|
} else {
|
|
36458
36463
|
callback = options;
|
|
36459
|
-
options = input;
|
|
36464
|
+
options = validateUrl(input);
|
|
36460
36465
|
input = { protocol };
|
|
36461
36466
|
}
|
|
36462
36467
|
if (isFunction2(options)) {
|
|
@@ -36489,20 +36494,43 @@ var require_follow_redirects = __commonJS({
|
|
|
36489
36494
|
}
|
|
36490
36495
|
function noop2() {
|
|
36491
36496
|
}
|
|
36492
|
-
function
|
|
36493
|
-
var
|
|
36494
|
-
|
|
36495
|
-
|
|
36496
|
-
|
|
36497
|
-
|
|
36498
|
-
|
|
36499
|
-
|
|
36500
|
-
|
|
36501
|
-
};
|
|
36502
|
-
if (urlObject.port !== "") {
|
|
36503
|
-
options.port = Number(urlObject.port);
|
|
36497
|
+
function parseUrl(input) {
|
|
36498
|
+
var parsed;
|
|
36499
|
+
if (useNativeURL) {
|
|
36500
|
+
parsed = new URL4(input);
|
|
36501
|
+
} else {
|
|
36502
|
+
parsed = validateUrl(url2.parse(input));
|
|
36503
|
+
if (!isString2(parsed.protocol)) {
|
|
36504
|
+
throw new InvalidUrlError({ input });
|
|
36505
|
+
}
|
|
36504
36506
|
}
|
|
36505
|
-
return
|
|
36507
|
+
return parsed;
|
|
36508
|
+
}
|
|
36509
|
+
function resolveUrl(relative, base) {
|
|
36510
|
+
return useNativeURL ? new URL4(relative, base) : parseUrl(url2.resolve(base, relative));
|
|
36511
|
+
}
|
|
36512
|
+
function validateUrl(input) {
|
|
36513
|
+
if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
|
|
36514
|
+
throw new InvalidUrlError({ input: input.href || input });
|
|
36515
|
+
}
|
|
36516
|
+
if (/^\[/.test(input.host) && !/^\[[:0-9a-f]+\](:\d+)?$/i.test(input.host)) {
|
|
36517
|
+
throw new InvalidUrlError({ input: input.href || input });
|
|
36518
|
+
}
|
|
36519
|
+
return input;
|
|
36520
|
+
}
|
|
36521
|
+
function spreadUrlObject(urlObject, target) {
|
|
36522
|
+
var spread3 = target || {};
|
|
36523
|
+
for (var key of preservedUrlFields) {
|
|
36524
|
+
spread3[key] = urlObject[key];
|
|
36525
|
+
}
|
|
36526
|
+
if (spread3.hostname.startsWith("[")) {
|
|
36527
|
+
spread3.hostname = spread3.hostname.slice(1, -1);
|
|
36528
|
+
}
|
|
36529
|
+
if (spread3.port !== "") {
|
|
36530
|
+
spread3.port = Number(spread3.port);
|
|
36531
|
+
}
|
|
36532
|
+
spread3.path = spread3.search ? spread3.pathname + spread3.search : spread3.pathname;
|
|
36533
|
+
return spread3;
|
|
36506
36534
|
}
|
|
36507
36535
|
function removeMatchingHeaders(regex, headers) {
|
|
36508
36536
|
var lastValue;
|
|
@@ -36522,16 +36550,24 @@ var require_follow_redirects = __commonJS({
|
|
|
36522
36550
|
this.message = this.cause ? message + ": " + this.cause.message : message;
|
|
36523
36551
|
}
|
|
36524
36552
|
CustomError.prototype = new (baseClass || Error)();
|
|
36525
|
-
CustomError.prototype
|
|
36526
|
-
|
|
36553
|
+
Object.defineProperties(CustomError.prototype, {
|
|
36554
|
+
constructor: {
|
|
36555
|
+
value: CustomError,
|
|
36556
|
+
enumerable: false
|
|
36557
|
+
},
|
|
36558
|
+
name: {
|
|
36559
|
+
value: "Error [" + code + "]",
|
|
36560
|
+
enumerable: false
|
|
36561
|
+
}
|
|
36562
|
+
});
|
|
36527
36563
|
return CustomError;
|
|
36528
36564
|
}
|
|
36529
|
-
function
|
|
36565
|
+
function destroyRequest(request, error2) {
|
|
36530
36566
|
for (var event of events) {
|
|
36531
36567
|
request.removeListener(event, eventHandlers[event]);
|
|
36532
36568
|
}
|
|
36533
36569
|
request.on("error", noop2);
|
|
36534
|
-
request.
|
|
36570
|
+
request.destroy(error2);
|
|
36535
36571
|
}
|
|
36536
36572
|
function isSubdomain(subdomain, domain) {
|
|
36537
36573
|
assert(isString2(subdomain) && isString2(domain));
|
|
@@ -36547,6 +36583,9 @@ var require_follow_redirects = __commonJS({
|
|
|
36547
36583
|
function isBuffer2(value) {
|
|
36548
36584
|
return typeof value === "object" && "length" in value;
|
|
36549
36585
|
}
|
|
36586
|
+
function isURL(value) {
|
|
36587
|
+
return URL4 && value instanceof URL4;
|
|
36588
|
+
}
|
|
36550
36589
|
module2.exports = wrap({ http: http2, https: https2 });
|
|
36551
36590
|
module2.exports.wrap = wrap;
|
|
36552
36591
|
}
|
|
@@ -259778,14 +259817,14 @@ var import_decompress = __toESM(require_decompress(), 1);
|
|
|
259778
259817
|
var import_fs2 = __toESM(require("fs"), 1);
|
|
259779
259818
|
var import_promises = __toESM(require("fs/promises"), 1);
|
|
259780
259819
|
|
|
259781
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
259820
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/bind.js
|
|
259782
259821
|
function bind(fn, thisArg) {
|
|
259783
259822
|
return function wrap() {
|
|
259784
259823
|
return fn.apply(thisArg, arguments);
|
|
259785
259824
|
};
|
|
259786
259825
|
}
|
|
259787
259826
|
|
|
259788
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
259827
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/utils.js
|
|
259789
259828
|
var { toString } = Object.prototype;
|
|
259790
259829
|
var { getPrototypeOf } = Object;
|
|
259791
259830
|
var kindOf = ((cache) => (thing) => {
|
|
@@ -260142,7 +260181,7 @@ var utils_default = {
|
|
|
260142
260181
|
isThenable
|
|
260143
260182
|
};
|
|
260144
260183
|
|
|
260145
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260184
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/core/AxiosError.js
|
|
260146
260185
|
function AxiosError(message, code, config, request, response) {
|
|
260147
260186
|
Error.call(this);
|
|
260148
260187
|
if (Error.captureStackTrace) {
|
|
@@ -260209,11 +260248,11 @@ AxiosError.from = (error2, code, config, request, response, customProps) => {
|
|
|
260209
260248
|
};
|
|
260210
260249
|
var AxiosError_default = AxiosError;
|
|
260211
260250
|
|
|
260212
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260251
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
260213
260252
|
var import_form_data = __toESM(require_form_data(), 1);
|
|
260214
260253
|
var FormData_default = import_form_data.default;
|
|
260215
260254
|
|
|
260216
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260255
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/toFormData.js
|
|
260217
260256
|
function isVisitable(thing) {
|
|
260218
260257
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
260219
260258
|
}
|
|
@@ -260327,7 +260366,7 @@ function toFormData(obj, formData, options) {
|
|
|
260327
260366
|
}
|
|
260328
260367
|
var toFormData_default = toFormData;
|
|
260329
260368
|
|
|
260330
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260369
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
260331
260370
|
function encode(str2) {
|
|
260332
260371
|
const charMap = {
|
|
260333
260372
|
"!": "%21",
|
|
@@ -260360,7 +260399,7 @@ prototype2.toString = function toString2(encoder) {
|
|
|
260360
260399
|
};
|
|
260361
260400
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
260362
260401
|
|
|
260363
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260402
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/buildURL.js
|
|
260364
260403
|
function encode2(val) {
|
|
260365
260404
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
260366
260405
|
}
|
|
@@ -260386,7 +260425,7 @@ function buildURL(url2, params, options) {
|
|
|
260386
260425
|
return url2;
|
|
260387
260426
|
}
|
|
260388
260427
|
|
|
260389
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260428
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/core/InterceptorManager.js
|
|
260390
260429
|
var InterceptorManager = class {
|
|
260391
260430
|
constructor() {
|
|
260392
260431
|
this.handlers = [];
|
|
@@ -260420,18 +260459,18 @@ var InterceptorManager = class {
|
|
|
260420
260459
|
};
|
|
260421
260460
|
var InterceptorManager_default = InterceptorManager;
|
|
260422
260461
|
|
|
260423
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260462
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/defaults/transitional.js
|
|
260424
260463
|
var transitional_default = {
|
|
260425
260464
|
silentJSONParsing: true,
|
|
260426
260465
|
forcedJSONParsing: true,
|
|
260427
260466
|
clarifyTimeoutError: false
|
|
260428
260467
|
};
|
|
260429
260468
|
|
|
260430
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260469
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
260431
260470
|
var import_url = __toESM(require("url"), 1);
|
|
260432
260471
|
var URLSearchParams_default = import_url.default.URLSearchParams;
|
|
260433
260472
|
|
|
260434
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260473
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/platform/node/index.js
|
|
260435
260474
|
var node_default = {
|
|
260436
260475
|
isNode: true,
|
|
260437
260476
|
classes: {
|
|
@@ -260442,7 +260481,7 @@ var node_default = {
|
|
|
260442
260481
|
protocols: ["http", "https", "file", "data"]
|
|
260443
260482
|
};
|
|
260444
260483
|
|
|
260445
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260484
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/platform/common/utils.js
|
|
260446
260485
|
var utils_exports = {};
|
|
260447
260486
|
__export(utils_exports, {
|
|
260448
260487
|
hasBrowserEnv: () => hasBrowserEnv,
|
|
@@ -260457,13 +260496,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
|
|
|
260457
260496
|
return typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
260458
260497
|
})();
|
|
260459
260498
|
|
|
260460
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260499
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/platform/index.js
|
|
260461
260500
|
var platform_default = {
|
|
260462
260501
|
...utils_exports,
|
|
260463
260502
|
...node_default
|
|
260464
260503
|
};
|
|
260465
260504
|
|
|
260466
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260505
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
260467
260506
|
function toURLEncodedForm(data, options) {
|
|
260468
260507
|
return toFormData_default(data, new platform_default.classes.URLSearchParams(), Object.assign({
|
|
260469
260508
|
visitor: function(value, key, path2, helpers) {
|
|
@@ -260476,7 +260515,7 @@ function toURLEncodedForm(data, options) {
|
|
|
260476
260515
|
}, options));
|
|
260477
260516
|
}
|
|
260478
260517
|
|
|
260479
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260518
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
260480
260519
|
function parsePropPath(name) {
|
|
260481
260520
|
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
260482
260521
|
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
@@ -260497,6 +260536,8 @@ function arrayToObject(arr) {
|
|
|
260497
260536
|
function formDataToJSON(formData) {
|
|
260498
260537
|
function buildPath(path2, value, target, index) {
|
|
260499
260538
|
let name = path2[index++];
|
|
260539
|
+
if (name === "__proto__")
|
|
260540
|
+
return true;
|
|
260500
260541
|
const isNumericKey = Number.isFinite(+name);
|
|
260501
260542
|
const isLast = index >= path2.length;
|
|
260502
260543
|
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
@@ -260528,7 +260569,7 @@ function formDataToJSON(formData) {
|
|
|
260528
260569
|
}
|
|
260529
260570
|
var formDataToJSON_default = formDataToJSON;
|
|
260530
260571
|
|
|
260531
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260572
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/defaults/index.js
|
|
260532
260573
|
function stringifySafely(rawValue, parser, encoder) {
|
|
260533
260574
|
if (utils_default.isString(rawValue)) {
|
|
260534
260575
|
try {
|
|
@@ -260633,7 +260674,7 @@ utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method
|
|
|
260633
260674
|
});
|
|
260634
260675
|
var defaults_default = defaults;
|
|
260635
260676
|
|
|
260636
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260677
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/parseHeaders.js
|
|
260637
260678
|
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
260638
260679
|
"age",
|
|
260639
260680
|
"authorization",
|
|
@@ -260678,7 +260719,7 @@ var parseHeaders_default = (rawHeaders) => {
|
|
|
260678
260719
|
return parsed;
|
|
260679
260720
|
};
|
|
260680
260721
|
|
|
260681
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260722
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/core/AxiosHeaders.js
|
|
260682
260723
|
var $internals = Symbol("internals");
|
|
260683
260724
|
function normalizeHeader(header) {
|
|
260684
260725
|
return header && String(header).trim().toLowerCase();
|
|
@@ -260896,7 +260937,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
|
260896
260937
|
utils_default.freezeMethods(AxiosHeaders);
|
|
260897
260938
|
var AxiosHeaders_default = AxiosHeaders;
|
|
260898
260939
|
|
|
260899
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260940
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/core/transformData.js
|
|
260900
260941
|
function transformData(fns, response) {
|
|
260901
260942
|
const config = this || defaults_default;
|
|
260902
260943
|
const context = response || config;
|
|
@@ -260909,12 +260950,12 @@ function transformData(fns, response) {
|
|
|
260909
260950
|
return data;
|
|
260910
260951
|
}
|
|
260911
260952
|
|
|
260912
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260953
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/cancel/isCancel.js
|
|
260913
260954
|
function isCancel(value) {
|
|
260914
260955
|
return !!(value && value.__CANCEL__);
|
|
260915
260956
|
}
|
|
260916
260957
|
|
|
260917
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260958
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/cancel/CanceledError.js
|
|
260918
260959
|
function CanceledError(message, config, request) {
|
|
260919
260960
|
AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
|
|
260920
260961
|
this.name = "CanceledError";
|
|
@@ -260924,7 +260965,7 @@ utils_default.inherits(CanceledError, AxiosError_default, {
|
|
|
260924
260965
|
});
|
|
260925
260966
|
var CanceledError_default = CanceledError;
|
|
260926
260967
|
|
|
260927
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260968
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/core/settle.js
|
|
260928
260969
|
function settle(resolve, reject, response) {
|
|
260929
260970
|
const validateStatus2 = response.config.validateStatus;
|
|
260930
260971
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -260940,17 +260981,17 @@ function settle(resolve, reject, response) {
|
|
|
260940
260981
|
}
|
|
260941
260982
|
}
|
|
260942
260983
|
|
|
260943
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260984
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
260944
260985
|
function isAbsoluteURL(url2) {
|
|
260945
260986
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
260946
260987
|
}
|
|
260947
260988
|
|
|
260948
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260989
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/combineURLs.js
|
|
260949
260990
|
function combineURLs(baseURL, relativeURL) {
|
|
260950
|
-
return relativeURL ? baseURL.replace(
|
|
260991
|
+
return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
260951
260992
|
}
|
|
260952
260993
|
|
|
260953
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260994
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/core/buildFullPath.js
|
|
260954
260995
|
function buildFullPath(baseURL, requestedURL) {
|
|
260955
260996
|
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
|
260956
260997
|
return combineURLs(baseURL, requestedURL);
|
|
@@ -260958,7 +260999,7 @@ function buildFullPath(baseURL, requestedURL) {
|
|
|
260958
260999
|
return requestedURL;
|
|
260959
261000
|
}
|
|
260960
261001
|
|
|
260961
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261002
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/adapters/http.js
|
|
260962
261003
|
var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
|
|
260963
261004
|
var import_http = __toESM(require("http"), 1);
|
|
260964
261005
|
var import_https = __toESM(require("https"), 1);
|
|
@@ -260966,16 +261007,16 @@ var import_util2 = __toESM(require("util"), 1);
|
|
|
260966
261007
|
var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
260967
261008
|
var import_zlib = __toESM(require("zlib"), 1);
|
|
260968
261009
|
|
|
260969
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260970
|
-
var VERSION = "1.6.
|
|
261010
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/env/data.js
|
|
261011
|
+
var VERSION = "1.6.5";
|
|
260971
261012
|
|
|
260972
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261013
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/parseProtocol.js
|
|
260973
261014
|
function parseProtocol(url2) {
|
|
260974
261015
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
260975
261016
|
return match && match[1] || "";
|
|
260976
261017
|
}
|
|
260977
261018
|
|
|
260978
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261019
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/fromDataURI.js
|
|
260979
261020
|
var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
|
|
260980
261021
|
function fromDataURI(uri, asBlob, options) {
|
|
260981
261022
|
const _Blob = options && options.Blob || platform_default.classes.Blob;
|
|
@@ -261004,13 +261045,13 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
261004
261045
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
261005
261046
|
}
|
|
261006
261047
|
|
|
261007
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261048
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/adapters/http.js
|
|
261008
261049
|
var import_stream4 = __toESM(require("stream"), 1);
|
|
261009
261050
|
|
|
261010
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261051
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
261011
261052
|
var import_stream = __toESM(require("stream"), 1);
|
|
261012
261053
|
|
|
261013
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261054
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/throttle.js
|
|
261014
261055
|
function throttle(fn, freq) {
|
|
261015
261056
|
let timestamp2 = 0;
|
|
261016
261057
|
const threshold = 1e3 / freq;
|
|
@@ -261036,7 +261077,7 @@ function throttle(fn, freq) {
|
|
|
261036
261077
|
}
|
|
261037
261078
|
var throttle_default = throttle;
|
|
261038
261079
|
|
|
261039
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261080
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/speedometer.js
|
|
261040
261081
|
function speedometer(samplesCount, min2) {
|
|
261041
261082
|
samplesCount = samplesCount || 10;
|
|
261042
261083
|
const bytes = new Array(samplesCount);
|
|
@@ -261072,7 +261113,7 @@ function speedometer(samplesCount, min2) {
|
|
|
261072
261113
|
}
|
|
261073
261114
|
var speedometer_default = speedometer;
|
|
261074
261115
|
|
|
261075
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261116
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
261076
261117
|
var kInternals = Symbol("internals");
|
|
261077
261118
|
var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
261078
261119
|
constructor(options) {
|
|
@@ -261222,14 +261263,14 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
261222
261263
|
};
|
|
261223
261264
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
261224
261265
|
|
|
261225
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261266
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/adapters/http.js
|
|
261226
261267
|
var import_events = __toESM(require("events"), 1);
|
|
261227
261268
|
|
|
261228
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261269
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/formDataToStream.js
|
|
261229
261270
|
var import_util = require("util");
|
|
261230
261271
|
var import_stream2 = require("stream");
|
|
261231
261272
|
|
|
261232
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261273
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/readBlob.js
|
|
261233
261274
|
var { asyncIterator } = Symbol;
|
|
261234
261275
|
var readBlob = async function* (blob) {
|
|
261235
261276
|
if (blob.stream) {
|
|
@@ -261244,7 +261285,7 @@ var readBlob = async function* (blob) {
|
|
|
261244
261285
|
};
|
|
261245
261286
|
var readBlob_default = readBlob;
|
|
261246
261287
|
|
|
261247
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261288
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/formDataToStream.js
|
|
261248
261289
|
var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
261249
261290
|
var textEncoder = new import_util.TextEncoder();
|
|
261250
261291
|
var CRLF = "\r\n";
|
|
@@ -261323,7 +261364,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
261323
261364
|
};
|
|
261324
261365
|
var formDataToStream_default = formDataToStream;
|
|
261325
261366
|
|
|
261326
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261367
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
261327
261368
|
var import_stream3 = __toESM(require("stream"), 1);
|
|
261328
261369
|
var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
261329
261370
|
__transform(chunk, encoding, callback) {
|
|
@@ -261345,7 +261386,7 @@ var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
|
261345
261386
|
};
|
|
261346
261387
|
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
261347
261388
|
|
|
261348
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261389
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/callbackify.js
|
|
261349
261390
|
var callbackify = (fn, reducer) => {
|
|
261350
261391
|
return utils_default.isAsyncFn(fn) ? function(...args) {
|
|
261351
261392
|
const cb = args.pop();
|
|
@@ -261360,7 +261401,7 @@ var callbackify = (fn, reducer) => {
|
|
|
261360
261401
|
};
|
|
261361
261402
|
var callbackify_default = callbackify;
|
|
261362
261403
|
|
|
261363
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261404
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/adapters/http.js
|
|
261364
261405
|
var zlibOptions = {
|
|
261365
261406
|
flush: import_zlib.default.constants.Z_SYNC_FLUSH,
|
|
261366
261407
|
finishFlush: import_zlib.default.constants.Z_SYNC_FLUSH
|
|
@@ -261460,6 +261501,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
261460
261501
|
const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
|
|
261461
261502
|
lookup = (hostname, opt, cb) => {
|
|
261462
261503
|
_lookup(hostname, opt, (err, arg0, arg1) => {
|
|
261504
|
+
if (err) {
|
|
261505
|
+
return cb(err);
|
|
261506
|
+
}
|
|
261463
261507
|
const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
|
|
261464
261508
|
opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
|
|
261465
261509
|
});
|
|
@@ -261856,7 +261900,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
261856
261900
|
});
|
|
261857
261901
|
};
|
|
261858
261902
|
|
|
261859
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261903
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/cookies.js
|
|
261860
261904
|
var cookies_default = platform_default.hasStandardBrowserEnv ? {
|
|
261861
261905
|
write(name, value, expires, path2, domain, secure) {
|
|
261862
261906
|
const cookie = [name + "=" + encodeURIComponent(value)];
|
|
@@ -261883,7 +261927,7 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? {
|
|
|
261883
261927
|
}
|
|
261884
261928
|
};
|
|
261885
261929
|
|
|
261886
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261930
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
261887
261931
|
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? function standardBrowserEnv() {
|
|
261888
261932
|
const msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
261889
261933
|
const urlParsingNode = document.createElement("a");
|
|
@@ -261917,7 +261961,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? function
|
|
|
261917
261961
|
};
|
|
261918
261962
|
}();
|
|
261919
261963
|
|
|
261920
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261964
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/adapters/xhr.js
|
|
261921
261965
|
function progressEventReducer(listener, isDownloadStream) {
|
|
261922
261966
|
let bytesNotified = 0;
|
|
261923
261967
|
const _speedometer = speedometer_default(50, 250);
|
|
@@ -262087,7 +262131,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
262087
262131
|
});
|
|
262088
262132
|
};
|
|
262089
262133
|
|
|
262090
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
262134
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/adapters/adapters.js
|
|
262091
262135
|
var knownAdapters = {
|
|
262092
262136
|
http: http_default,
|
|
262093
262137
|
xhr: xhr_default
|
|
@@ -262140,7 +262184,7 @@ var adapters_default = {
|
|
|
262140
262184
|
adapters: knownAdapters
|
|
262141
262185
|
};
|
|
262142
262186
|
|
|
262143
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
262187
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/core/dispatchRequest.js
|
|
262144
262188
|
function throwIfCancellationRequested(config) {
|
|
262145
262189
|
if (config.cancelToken) {
|
|
262146
262190
|
config.cancelToken.throwIfRequested();
|
|
@@ -262185,7 +262229,7 @@ function dispatchRequest(config) {
|
|
|
262185
262229
|
});
|
|
262186
262230
|
}
|
|
262187
262231
|
|
|
262188
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
262232
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/core/mergeConfig.js
|
|
262189
262233
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? thing.toJSON() : thing;
|
|
262190
262234
|
function mergeConfig(config1, config2) {
|
|
262191
262235
|
config2 = config2 || {};
|
|
@@ -262265,7 +262309,7 @@ function mergeConfig(config1, config2) {
|
|
|
262265
262309
|
return config;
|
|
262266
262310
|
}
|
|
262267
262311
|
|
|
262268
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
262312
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/validator.js
|
|
262269
262313
|
var validators = {};
|
|
262270
262314
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type2, i) => {
|
|
262271
262315
|
validators[type2] = function validator(thing) {
|
|
@@ -262323,7 +262367,7 @@ var validator_default = {
|
|
|
262323
262367
|
validators
|
|
262324
262368
|
};
|
|
262325
262369
|
|
|
262326
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
262370
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/core/Axios.js
|
|
262327
262371
|
var validators2 = validator_default.validators;
|
|
262328
262372
|
var Axios = class {
|
|
262329
262373
|
constructor(instanceConfig) {
|
|
@@ -262458,7 +262502,7 @@ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(m
|
|
|
262458
262502
|
});
|
|
262459
262503
|
var Axios_default = Axios;
|
|
262460
262504
|
|
|
262461
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
262505
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/cancel/CancelToken.js
|
|
262462
262506
|
var CancelToken = class {
|
|
262463
262507
|
constructor(executor) {
|
|
262464
262508
|
if (typeof executor !== "function") {
|
|
@@ -262535,19 +262579,19 @@ var CancelToken = class {
|
|
|
262535
262579
|
};
|
|
262536
262580
|
var CancelToken_default = CancelToken;
|
|
262537
262581
|
|
|
262538
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
262582
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/spread.js
|
|
262539
262583
|
function spread(callback) {
|
|
262540
262584
|
return function wrap(arr) {
|
|
262541
262585
|
return callback.apply(null, arr);
|
|
262542
262586
|
};
|
|
262543
262587
|
}
|
|
262544
262588
|
|
|
262545
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
262589
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/isAxiosError.js
|
|
262546
262590
|
function isAxiosError(payload) {
|
|
262547
262591
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
262548
262592
|
}
|
|
262549
262593
|
|
|
262550
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
262594
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
262551
262595
|
var HttpStatusCode = {
|
|
262552
262596
|
Continue: 100,
|
|
262553
262597
|
SwitchingProtocols: 101,
|
|
@@ -262618,7 +262662,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
|
262618
262662
|
});
|
|
262619
262663
|
var HttpStatusCode_default = HttpStatusCode;
|
|
262620
262664
|
|
|
262621
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
262665
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/lib/axios.js
|
|
262622
262666
|
function createInstance(defaultConfig) {
|
|
262623
262667
|
const context = new Axios_default(defaultConfig);
|
|
262624
262668
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -262651,7 +262695,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
|
|
|
262651
262695
|
axios.default = axios;
|
|
262652
262696
|
var axios_default = axios;
|
|
262653
262697
|
|
|
262654
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
262698
|
+
// ../../node_modules/.pnpm/axios@1.6.5/node_modules/axios/index.js
|
|
262655
262699
|
var {
|
|
262656
262700
|
Axios: Axios2,
|
|
262657
262701
|
AxiosError: AxiosError2,
|
|
@@ -428798,6 +428842,25 @@ var state = {
|
|
|
428798
428842
|
additionalProperties: false
|
|
428799
428843
|
}
|
|
428800
428844
|
},
|
|
428845
|
+
subscriptions: {
|
|
428846
|
+
type: "object",
|
|
428847
|
+
properties: {
|
|
428848
|
+
events: {
|
|
428849
|
+
type: "object",
|
|
428850
|
+
additionalProperties: {
|
|
428851
|
+
type: "object",
|
|
428852
|
+
additionalProperties: {
|
|
428853
|
+
readOnly: true
|
|
428854
|
+
}
|
|
428855
|
+
},
|
|
428856
|
+
nullable: true,
|
|
428857
|
+
description: 'Events that the bot is currently subscribed on (ex: "slack:reactionAdded"). If null, the bot is subscribed to all events.'
|
|
428858
|
+
}
|
|
428859
|
+
},
|
|
428860
|
+
required: ["events"],
|
|
428861
|
+
description: "Subscriptions of the bot",
|
|
428862
|
+
additionalProperties: false
|
|
428863
|
+
},
|
|
428801
428864
|
configuration: {
|
|
428802
428865
|
type: "object",
|
|
428803
428866
|
properties: {
|
|
@@ -429178,6 +429241,24 @@ var state = {
|
|
|
429178
429241
|
additionalProperties: false
|
|
429179
429242
|
}
|
|
429180
429243
|
},
|
|
429244
|
+
subscriptions: {
|
|
429245
|
+
type: "object",
|
|
429246
|
+
properties: {
|
|
429247
|
+
events: {
|
|
429248
|
+
type: "object",
|
|
429249
|
+
additionalProperties: {
|
|
429250
|
+
type: "object",
|
|
429251
|
+
additionalProperties: {
|
|
429252
|
+
readOnly: true
|
|
429253
|
+
},
|
|
429254
|
+
nullable: true
|
|
429255
|
+
},
|
|
429256
|
+
nullable: true
|
|
429257
|
+
}
|
|
429258
|
+
},
|
|
429259
|
+
required: ["events"],
|
|
429260
|
+
additionalProperties: false
|
|
429261
|
+
},
|
|
429181
429262
|
code: {
|
|
429182
429263
|
type: "string",
|
|
429183
429264
|
description: "JavaScript code of the bot"
|
|
@@ -430183,6 +430264,32 @@ var state = {
|
|
|
430183
430264
|
},
|
|
430184
430265
|
spendingLimit: {
|
|
430185
430266
|
type: "number"
|
|
430267
|
+
},
|
|
430268
|
+
about: {
|
|
430269
|
+
default: "",
|
|
430270
|
+
type: "string"
|
|
430271
|
+
},
|
|
430272
|
+
profilePicture: {
|
|
430273
|
+
default: "",
|
|
430274
|
+
type: "string"
|
|
430275
|
+
},
|
|
430276
|
+
contactEmail: {
|
|
430277
|
+
default: "",
|
|
430278
|
+
type: "string"
|
|
430279
|
+
},
|
|
430280
|
+
website: {
|
|
430281
|
+
default: "",
|
|
430282
|
+
type: "string"
|
|
430283
|
+
},
|
|
430284
|
+
socialAccounts: {
|
|
430285
|
+
default: [],
|
|
430286
|
+
type: "array",
|
|
430287
|
+
items: {
|
|
430288
|
+
type: "string"
|
|
430289
|
+
}
|
|
430290
|
+
},
|
|
430291
|
+
isPublic: {
|
|
430292
|
+
type: "boolean"
|
|
430186
430293
|
}
|
|
430187
430294
|
},
|
|
430188
430295
|
required: [
|
|
@@ -430260,6 +430367,32 @@ var state = {
|
|
|
430260
430367
|
},
|
|
430261
430368
|
spendingLimit: {
|
|
430262
430369
|
type: "number"
|
|
430370
|
+
},
|
|
430371
|
+
about: {
|
|
430372
|
+
default: "",
|
|
430373
|
+
type: "string"
|
|
430374
|
+
},
|
|
430375
|
+
profilePicture: {
|
|
430376
|
+
default: "",
|
|
430377
|
+
type: "string"
|
|
430378
|
+
},
|
|
430379
|
+
contactEmail: {
|
|
430380
|
+
default: "",
|
|
430381
|
+
type: "string"
|
|
430382
|
+
},
|
|
430383
|
+
website: {
|
|
430384
|
+
default: "",
|
|
430385
|
+
type: "string"
|
|
430386
|
+
},
|
|
430387
|
+
socialAccounts: {
|
|
430388
|
+
default: [],
|
|
430389
|
+
type: "array",
|
|
430390
|
+
items: {
|
|
430391
|
+
type: "string"
|
|
430392
|
+
}
|
|
430393
|
+
},
|
|
430394
|
+
isPublic: {
|
|
430395
|
+
type: "boolean"
|
|
430263
430396
|
}
|
|
430264
430397
|
},
|
|
430265
430398
|
required: [
|
|
@@ -430646,10 +430779,32 @@ var state = {
|
|
|
430646
430779
|
type: "number",
|
|
430647
430780
|
minimum: 5,
|
|
430648
430781
|
maximum: 1e3
|
|
430782
|
+
},
|
|
430783
|
+
about: {
|
|
430784
|
+
type: "string"
|
|
430785
|
+
},
|
|
430786
|
+
profilePicture: {
|
|
430787
|
+
type: "string"
|
|
430788
|
+
},
|
|
430789
|
+
contactEmail: {
|
|
430790
|
+
type: "string"
|
|
430791
|
+
},
|
|
430792
|
+
website: {
|
|
430793
|
+
type: "string"
|
|
430794
|
+
},
|
|
430795
|
+
socialAccounts: {
|
|
430796
|
+
type: "array",
|
|
430797
|
+
items: {
|
|
430798
|
+
type: "string"
|
|
430799
|
+
},
|
|
430800
|
+
maxItems: 5
|
|
430801
|
+
},
|
|
430802
|
+
isPublic: {
|
|
430803
|
+
type: "boolean"
|
|
430649
430804
|
}
|
|
430650
430805
|
},
|
|
430651
|
-
|
|
430652
|
-
|
|
430806
|
+
additionalProperties: false,
|
|
430807
|
+
title: "updateWorkspaceBody"
|
|
430653
430808
|
}
|
|
430654
430809
|
},
|
|
430655
430810
|
response: {
|
|
@@ -430692,6 +430847,32 @@ var state = {
|
|
|
430692
430847
|
},
|
|
430693
430848
|
spendingLimit: {
|
|
430694
430849
|
type: "number"
|
|
430850
|
+
},
|
|
430851
|
+
about: {
|
|
430852
|
+
default: "",
|
|
430853
|
+
type: "string"
|
|
430854
|
+
},
|
|
430855
|
+
profilePicture: {
|
|
430856
|
+
default: "",
|
|
430857
|
+
type: "string"
|
|
430858
|
+
},
|
|
430859
|
+
contactEmail: {
|
|
430860
|
+
default: "",
|
|
430861
|
+
type: "string"
|
|
430862
|
+
},
|
|
430863
|
+
website: {
|
|
430864
|
+
default: "",
|
|
430865
|
+
type: "string"
|
|
430866
|
+
},
|
|
430867
|
+
socialAccounts: {
|
|
430868
|
+
default: [],
|
|
430869
|
+
type: "array",
|
|
430870
|
+
items: {
|
|
430871
|
+
type: "string"
|
|
430872
|
+
}
|
|
430873
|
+
},
|
|
430874
|
+
isPublic: {
|
|
430875
|
+
type: "boolean"
|
|
430695
430876
|
}
|
|
430696
430877
|
},
|
|
430697
430878
|
required: [
|
|
@@ -430773,6 +430954,32 @@ var state = {
|
|
|
430773
430954
|
},
|
|
430774
430955
|
spendingLimit: {
|
|
430775
430956
|
type: "number"
|
|
430957
|
+
},
|
|
430958
|
+
about: {
|
|
430959
|
+
default: "",
|
|
430960
|
+
type: "string"
|
|
430961
|
+
},
|
|
430962
|
+
profilePicture: {
|
|
430963
|
+
default: "",
|
|
430964
|
+
type: "string"
|
|
430965
|
+
},
|
|
430966
|
+
contactEmail: {
|
|
430967
|
+
default: "",
|
|
430968
|
+
type: "string"
|
|
430969
|
+
},
|
|
430970
|
+
website: {
|
|
430971
|
+
default: "",
|
|
430972
|
+
type: "string"
|
|
430973
|
+
},
|
|
430974
|
+
socialAccounts: {
|
|
430975
|
+
default: [],
|
|
430976
|
+
type: "array",
|
|
430977
|
+
items: {
|
|
430978
|
+
type: "string"
|
|
430979
|
+
}
|
|
430980
|
+
},
|
|
430981
|
+
isPublic: {
|
|
430982
|
+
type: "boolean"
|
|
430776
430983
|
}
|
|
430777
430984
|
},
|
|
430778
430985
|
required: [
|
|
@@ -430879,6 +431086,32 @@ var state = {
|
|
|
430879
431086
|
},
|
|
430880
431087
|
spendingLimit: {
|
|
430881
431088
|
type: "number"
|
|
431089
|
+
},
|
|
431090
|
+
about: {
|
|
431091
|
+
default: "",
|
|
431092
|
+
type: "string"
|
|
431093
|
+
},
|
|
431094
|
+
profilePicture: {
|
|
431095
|
+
default: "",
|
|
431096
|
+
type: "string"
|
|
431097
|
+
},
|
|
431098
|
+
contactEmail: {
|
|
431099
|
+
default: "",
|
|
431100
|
+
type: "string"
|
|
431101
|
+
},
|
|
431102
|
+
website: {
|
|
431103
|
+
default: "",
|
|
431104
|
+
type: "string"
|
|
431105
|
+
},
|
|
431106
|
+
socialAccounts: {
|
|
431107
|
+
default: [],
|
|
431108
|
+
type: "array",
|
|
431109
|
+
items: {
|
|
431110
|
+
type: "string"
|
|
431111
|
+
}
|
|
431112
|
+
},
|
|
431113
|
+
isPublic: {
|
|
431114
|
+
type: "boolean"
|
|
430882
431115
|
}
|
|
430883
431116
|
},
|
|
430884
431117
|
required: [
|
|
@@ -431063,6 +431296,9 @@ var state = {
|
|
|
431063
431296
|
email: {
|
|
431064
431297
|
type: "string"
|
|
431065
431298
|
},
|
|
431299
|
+
createdAt: {
|
|
431300
|
+
type: "string"
|
|
431301
|
+
},
|
|
431066
431302
|
role: {
|
|
431067
431303
|
type: "string",
|
|
431068
431304
|
enum: [
|
|
@@ -431075,7 +431311,7 @@ var state = {
|
|
|
431075
431311
|
]
|
|
431076
431312
|
}
|
|
431077
431313
|
},
|
|
431078
|
-
required: ["id", "email", "role"]
|
|
431314
|
+
required: ["id", "email", "createdAt", "role"]
|
|
431079
431315
|
}
|
|
431080
431316
|
},
|
|
431081
431317
|
meta: {
|
|
@@ -431164,6 +431400,9 @@ var state = {
|
|
|
431164
431400
|
email: {
|
|
431165
431401
|
type: "string"
|
|
431166
431402
|
},
|
|
431403
|
+
createdAt: {
|
|
431404
|
+
type: "string"
|
|
431405
|
+
},
|
|
431167
431406
|
role: {
|
|
431168
431407
|
type: "string",
|
|
431169
431408
|
enum: [
|
|
@@ -431176,7 +431415,7 @@ var state = {
|
|
|
431176
431415
|
]
|
|
431177
431416
|
}
|
|
431178
431417
|
},
|
|
431179
|
-
required: ["id", "email", "role"],
|
|
431418
|
+
required: ["id", "email", "createdAt", "role"],
|
|
431180
431419
|
title: "createWorkspaceMemberResponse",
|
|
431181
431420
|
additionalProperties: false
|
|
431182
431421
|
}
|
|
@@ -431232,6 +431471,9 @@ var state = {
|
|
|
431232
431471
|
email: {
|
|
431233
431472
|
type: "string"
|
|
431234
431473
|
},
|
|
431474
|
+
createdAt: {
|
|
431475
|
+
type: "string"
|
|
431476
|
+
},
|
|
431235
431477
|
role: {
|
|
431236
431478
|
type: "string",
|
|
431237
431479
|
enum: [
|
|
@@ -431244,7 +431486,7 @@ var state = {
|
|
|
431244
431486
|
]
|
|
431245
431487
|
}
|
|
431246
431488
|
},
|
|
431247
|
-
required: ["id", "email", "role"],
|
|
431489
|
+
required: ["id", "email", "createdAt", "role"],
|
|
431248
431490
|
title: "updateWorkspaceMemberResponse",
|
|
431249
431491
|
additionalProperties: false
|
|
431250
431492
|
}
|
|
@@ -432587,7 +432829,7 @@ var state = {
|
|
|
432587
432829
|
title: "Botpress API",
|
|
432588
432830
|
description: "API for Botpress Cloud",
|
|
432589
432831
|
server: "https://api.botpress.cloud",
|
|
432590
|
-
version: "0.
|
|
432832
|
+
version: "0.16.0",
|
|
432591
432833
|
prefix: "v1"
|
|
432592
432834
|
},
|
|
432593
432835
|
errors: [
|
|
@@ -433156,13 +433398,48 @@ var state = {
|
|
|
433156
433398
|
payload: {
|
|
433157
433399
|
type: "object",
|
|
433158
433400
|
additionalProperties: true
|
|
433401
|
+
},
|
|
433402
|
+
failedAttempts: {
|
|
433403
|
+
type: "number",
|
|
433404
|
+
description: "The number of times the recurring event failed to run. This counter resets once the recurring event runs successfully."
|
|
433405
|
+
},
|
|
433406
|
+
lastFailureReason: {
|
|
433407
|
+
type: "string",
|
|
433408
|
+
maxLength: 2e3,
|
|
433409
|
+
description: "The reason why the recurring event failed to run in the last attempt.",
|
|
433410
|
+
nullable: true
|
|
433159
433411
|
}
|
|
433160
433412
|
},
|
|
433161
|
-
required: [
|
|
433413
|
+
required: [
|
|
433414
|
+
"schedule",
|
|
433415
|
+
"type",
|
|
433416
|
+
"payload",
|
|
433417
|
+
"failedAttempts",
|
|
433418
|
+
"lastFailureReason"
|
|
433419
|
+
],
|
|
433162
433420
|
additionalProperties: false
|
|
433163
433421
|
},
|
|
433164
433422
|
description: "Recurring events"
|
|
433165
433423
|
},
|
|
433424
|
+
subscriptions: {
|
|
433425
|
+
type: "object",
|
|
433426
|
+
properties: {
|
|
433427
|
+
events: {
|
|
433428
|
+
type: "object",
|
|
433429
|
+
additionalProperties: {
|
|
433430
|
+
type: "object",
|
|
433431
|
+
additionalProperties: {
|
|
433432
|
+
readOnly: true
|
|
433433
|
+
}
|
|
433434
|
+
},
|
|
433435
|
+
nullable: true,
|
|
433436
|
+
description: 'Events that the bot is currently subscribed on (ex: "slack:reactionAdded"). If null, the bot is subscribed to all events.'
|
|
433437
|
+
}
|
|
433438
|
+
},
|
|
433439
|
+
required: ["events"],
|
|
433440
|
+
description: "Subscriptions of the bot",
|
|
433441
|
+
additionalProperties: false
|
|
433442
|
+
},
|
|
433166
433443
|
name: {
|
|
433167
433444
|
type: "string",
|
|
433168
433445
|
description: "Name of the [Bot](#schema_bot)"
|
|
@@ -433221,6 +433498,7 @@ var state = {
|
|
|
433221
433498
|
"configuration",
|
|
433222
433499
|
"events",
|
|
433223
433500
|
"recurringEvents",
|
|
433501
|
+
"subscriptions",
|
|
433224
433502
|
"name",
|
|
433225
433503
|
"dev",
|
|
433226
433504
|
"alwaysAlive",
|
|
@@ -433648,6 +433926,32 @@ var state = {
|
|
|
433648
433926
|
},
|
|
433649
433927
|
spendingLimit: {
|
|
433650
433928
|
type: "number"
|
|
433929
|
+
},
|
|
433930
|
+
about: {
|
|
433931
|
+
default: "",
|
|
433932
|
+
type: "string"
|
|
433933
|
+
},
|
|
433934
|
+
profilePicture: {
|
|
433935
|
+
default: "",
|
|
433936
|
+
type: "string"
|
|
433937
|
+
},
|
|
433938
|
+
contactEmail: {
|
|
433939
|
+
default: "",
|
|
433940
|
+
type: "string"
|
|
433941
|
+
},
|
|
433942
|
+
website: {
|
|
433943
|
+
default: "",
|
|
433944
|
+
type: "string"
|
|
433945
|
+
},
|
|
433946
|
+
socialAccounts: {
|
|
433947
|
+
default: [],
|
|
433948
|
+
type: "array",
|
|
433949
|
+
items: {
|
|
433950
|
+
type: "string"
|
|
433951
|
+
}
|
|
433952
|
+
},
|
|
433953
|
+
isPublic: {
|
|
433954
|
+
type: "boolean"
|
|
433651
433955
|
}
|
|
433652
433956
|
},
|
|
433653
433957
|
required: [
|
|
@@ -433681,6 +433985,9 @@ var state = {
|
|
|
433681
433985
|
email: {
|
|
433682
433986
|
type: "string"
|
|
433683
433987
|
},
|
|
433988
|
+
createdAt: {
|
|
433989
|
+
type: "string"
|
|
433990
|
+
},
|
|
433684
433991
|
role: {
|
|
433685
433992
|
type: "string",
|
|
433686
433993
|
enum: [
|
|
@@ -433693,7 +434000,7 @@ var state = {
|
|
|
433693
434000
|
]
|
|
433694
434001
|
}
|
|
433695
434002
|
},
|
|
433696
|
-
required: ["id", "email", "role"],
|
|
434003
|
+
required: ["id", "email", "createdAt", "role"],
|
|
433697
434004
|
additionalProperties: false
|
|
433698
434005
|
}
|
|
433699
434006
|
},
|
|
@@ -434000,9 +434307,13 @@ var state = {
|
|
|
434000
434307
|
minLength: 28,
|
|
434001
434308
|
maxLength: 36,
|
|
434002
434309
|
description: "ID of the [Message](#schema_message) to link the event to."
|
|
434310
|
+
},
|
|
434311
|
+
status: {
|
|
434312
|
+
type: "string",
|
|
434313
|
+
description: "Status of the event (e.g. `ignored`, `processed`)"
|
|
434003
434314
|
}
|
|
434004
434315
|
},
|
|
434005
|
-
required: ["id", "createdAt", "type", "payload"],
|
|
434316
|
+
required: ["id", "createdAt", "type", "payload", "status"],
|
|
434006
434317
|
description: "The event object represents an action or an occurrence.",
|
|
434007
434318
|
additionalProperties: false
|
|
434008
434319
|
}
|