@assinafy/cli 2.10.0 → 2.10.1
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/README.en.md +4 -4
- package/THIRD_PARTY_NOTICES.md +1 -28
- package/dist/api.cjs.map +1 -1
- package/dist/api.js.map +1 -1
- package/dist/cli.cjs +234 -82
- package/dist/types/api/types.d.ts +6 -5
- package/dist/types/api/types.d.ts.map +1 -1
- package/docs/README.md +1 -1
- package/docs/api-operations.json +1 -89
- package/docs/api-reference.md +132 -1096
- package/docs/sdk-reference.md +13 -15
- package/package.json +2 -2
package/dist/cli.cjs
CHANGED
|
@@ -15417,7 +15417,7 @@ function bind(fn, thisArg) {
|
|
|
15417
15417
|
var { toString } = Object.prototype;
|
|
15418
15418
|
var { getPrototypeOf } = Object;
|
|
15419
15419
|
var { iterator, toStringTag } = Symbol;
|
|
15420
|
-
var hasOwnProperty = (({ hasOwnProperty:
|
|
15420
|
+
var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty3 }) => (obj, prop) => hasOwnProperty3.call(obj, prop))(Object.prototype);
|
|
15421
15421
|
var isUnsafeObjectKey = (prop) => typeof prop === "string" && (prop === "__proto__" || prop === "constructor" || prop === "prototype");
|
|
15422
15422
|
var isPrototypeBoundary = (obj, prototype2, source) => obj === Object.prototype || !source && prototype2 === null;
|
|
15423
15423
|
var isSafeAndFullyMutable = (obj) => {
|
|
@@ -16396,6 +16396,7 @@ var AxiosHeaders = class {
|
|
|
16396
16396
|
AxiosHeaders.accessor([
|
|
16397
16397
|
"Content-Type",
|
|
16398
16398
|
"Content-Length",
|
|
16399
|
+
"Content-Encoding",
|
|
16399
16400
|
"Accept",
|
|
16400
16401
|
"Accept-Encoding",
|
|
16401
16402
|
"User-Agent",
|
|
@@ -16881,8 +16882,10 @@ var InterceptorManager = class {
|
|
|
16881
16882
|
const handler = {
|
|
16882
16883
|
fulfilled,
|
|
16883
16884
|
rejected,
|
|
16884
|
-
|
|
16885
|
-
|
|
16885
|
+
// Options from a class or template object are read as usual; a value
|
|
16886
|
+
// only inherited from Object.prototype is ignored.
|
|
16887
|
+
synchronous: options && utils_default.hasOwnInPrototypeChain(options, "synchronous") ? options.synchronous : false,
|
|
16888
|
+
runWhen: options && utils_default.hasOwnInPrototypeChain(options, "runWhen") ? options.runWhen : null
|
|
16886
16889
|
};
|
|
16887
16890
|
const internals = this[$internals2];
|
|
16888
16891
|
if (this.handlers == null) {
|
|
@@ -17340,6 +17343,9 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
17340
17343
|
while (end > 0 && baseURL.charCodeAt(end - 1) === 47) {
|
|
17341
17344
|
end--;
|
|
17342
17345
|
}
|
|
17346
|
+
if (end === 0) {
|
|
17347
|
+
return "/" + relativeURL.replace(/^[/\\\t\n\r]+/, "");
|
|
17348
|
+
}
|
|
17343
17349
|
return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
|
|
17344
17350
|
}
|
|
17345
17351
|
|
|
@@ -17401,7 +17407,8 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
|
|
|
17401
17407
|
return requestedURL;
|
|
17402
17408
|
}
|
|
17403
17409
|
|
|
17404
|
-
// node_modules/
|
|
17410
|
+
// node_modules/axios/lib/helpers/proxyFromEnv.js
|
|
17411
|
+
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
17405
17412
|
var DEFAULT_PORTS = {
|
|
17406
17413
|
ftp: 21,
|
|
17407
17414
|
gopher: 70,
|
|
@@ -17413,59 +17420,66 @@ var DEFAULT_PORTS = {
|
|
|
17413
17420
|
function parseUrl(urlString) {
|
|
17414
17421
|
try {
|
|
17415
17422
|
return new URL(urlString);
|
|
17416
|
-
} catch {
|
|
17423
|
+
} catch (err) {
|
|
17417
17424
|
return null;
|
|
17418
17425
|
}
|
|
17419
17426
|
}
|
|
17420
|
-
function
|
|
17421
|
-
|
|
17422
|
-
|
|
17423
|
-
|
|
17424
|
-
var port = parsedUrl.port;
|
|
17425
|
-
if (typeof hostname !== "string" || !hostname || typeof proto !== "string") {
|
|
17426
|
-
return "";
|
|
17427
|
-
}
|
|
17428
|
-
proto = proto.split(":", 1)[0];
|
|
17429
|
-
hostname = hostname.replace(/:\d*$/, "");
|
|
17430
|
-
port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
|
|
17431
|
-
if (!shouldProxy(hostname, port)) {
|
|
17432
|
-
return "";
|
|
17433
|
-
}
|
|
17434
|
-
var proxy = getEnv(proto + "_proxy") || getEnv("all_proxy");
|
|
17435
|
-
if (proxy && proxy.indexOf("://") === -1) {
|
|
17436
|
-
proxy = proto + "://" + proxy;
|
|
17427
|
+
function readEnv(name) {
|
|
17428
|
+
const env = process.env;
|
|
17429
|
+
if (name in Object.prototype && !hasOwnProperty2.call(env, name)) {
|
|
17430
|
+
return void 0;
|
|
17437
17431
|
}
|
|
17438
|
-
return
|
|
17432
|
+
return env[name];
|
|
17433
|
+
}
|
|
17434
|
+
function getEnv(key) {
|
|
17435
|
+
return readEnv(key.toLowerCase()) || readEnv(key.toUpperCase()) || "";
|
|
17439
17436
|
}
|
|
17440
17437
|
function shouldProxy(hostname, port) {
|
|
17441
|
-
|
|
17442
|
-
if (!
|
|
17438
|
+
const noProxy = getEnv("no_proxy").toLowerCase();
|
|
17439
|
+
if (!noProxy) {
|
|
17443
17440
|
return true;
|
|
17444
17441
|
}
|
|
17445
|
-
if (
|
|
17442
|
+
if (noProxy === "*") {
|
|
17446
17443
|
return false;
|
|
17447
17444
|
}
|
|
17448
|
-
return
|
|
17449
|
-
if (!
|
|
17445
|
+
return noProxy.split(/[,\s]/).every((entry) => {
|
|
17446
|
+
if (!entry) {
|
|
17450
17447
|
return true;
|
|
17451
17448
|
}
|
|
17452
|
-
|
|
17453
|
-
|
|
17454
|
-
|
|
17455
|
-
if (
|
|
17449
|
+
const parsedEntry = entry.match(/^(.+):(\d+)$/);
|
|
17450
|
+
let entryHostname = parsedEntry ? parsedEntry[1] : entry;
|
|
17451
|
+
const entryPort = parsedEntry ? parseInt(parsedEntry[2], 10) : 0;
|
|
17452
|
+
if (entryPort && entryPort !== port) {
|
|
17456
17453
|
return true;
|
|
17457
17454
|
}
|
|
17458
|
-
if (!/^[.*]/.test(
|
|
17459
|
-
return hostname !==
|
|
17455
|
+
if (!/^[.*]/.test(entryHostname)) {
|
|
17456
|
+
return hostname !== entryHostname;
|
|
17460
17457
|
}
|
|
17461
|
-
if (
|
|
17462
|
-
|
|
17458
|
+
if (entryHostname.charAt(0) === "*") {
|
|
17459
|
+
entryHostname = entryHostname.slice(1);
|
|
17463
17460
|
}
|
|
17464
|
-
return !hostname.endsWith(
|
|
17461
|
+
return !hostname.endsWith(entryHostname);
|
|
17465
17462
|
});
|
|
17466
17463
|
}
|
|
17467
|
-
function
|
|
17468
|
-
|
|
17464
|
+
function getProxyForUrl(url2) {
|
|
17465
|
+
const parsedUrl = (typeof url2 === "string" ? parseUrl(url2) : url2) || {};
|
|
17466
|
+
let proto = parsedUrl.protocol;
|
|
17467
|
+
let hostname = parsedUrl.host;
|
|
17468
|
+
let port = parsedUrl.port;
|
|
17469
|
+
if (typeof hostname !== "string" || !hostname || typeof proto !== "string") {
|
|
17470
|
+
return "";
|
|
17471
|
+
}
|
|
17472
|
+
proto = proto.split(":", 1)[0];
|
|
17473
|
+
hostname = hostname.replace(/:\d*$/, "");
|
|
17474
|
+
port = parseInt(port, 10) || DEFAULT_PORTS[proto] || 0;
|
|
17475
|
+
if (!shouldProxy(hostname, port)) {
|
|
17476
|
+
return "";
|
|
17477
|
+
}
|
|
17478
|
+
let proxy = getEnv(proto + "_proxy") || getEnv("all_proxy");
|
|
17479
|
+
if (proxy && proxy.indexOf("://") === -1) {
|
|
17480
|
+
proxy = proto + "://" + proxy;
|
|
17481
|
+
}
|
|
17482
|
+
return proxy;
|
|
17469
17483
|
}
|
|
17470
17484
|
|
|
17471
17485
|
// node_modules/axios/lib/adapters/http.js
|
|
@@ -17479,7 +17493,7 @@ var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
|
17479
17493
|
var import_zlib = __toESM(require("zlib"), 1);
|
|
17480
17494
|
|
|
17481
17495
|
// node_modules/axios/lib/env/data.js
|
|
17482
|
-
var VERSION = "1.
|
|
17496
|
+
var VERSION = "1.22.0";
|
|
17483
17497
|
|
|
17484
17498
|
// node_modules/axios/lib/helpers/parseProtocol.js
|
|
17485
17499
|
function parseProtocol(url2) {
|
|
@@ -18199,7 +18213,7 @@ function shouldBypassProxy(location) {
|
|
|
18199
18213
|
} catch (_err) {
|
|
18200
18214
|
return false;
|
|
18201
18215
|
}
|
|
18202
|
-
const noProxy = (
|
|
18216
|
+
const noProxy = getEnv("no_proxy").toLowerCase();
|
|
18203
18217
|
if (!noProxy) {
|
|
18204
18218
|
return false;
|
|
18205
18219
|
}
|
|
@@ -18582,6 +18596,24 @@ function getDirectAgent(configuredAgent, transport) {
|
|
|
18582
18596
|
}
|
|
18583
18597
|
return direct;
|
|
18584
18598
|
}
|
|
18599
|
+
function isNonFileSocketPath(socketPath) {
|
|
18600
|
+
return /^\\\\[.?]\\pipe\\/i.test(socketPath) || socketPath.charAt(0) === "\0";
|
|
18601
|
+
}
|
|
18602
|
+
function normalizeSocketPath(socketPath) {
|
|
18603
|
+
return isNonFileSocketPath(socketPath) ? socketPath : (0, import_path.resolve)(socketPath);
|
|
18604
|
+
}
|
|
18605
|
+
var MAX_SOCKET_PATH_BYTES = 103;
|
|
18606
|
+
function getConnectSocketPath(socketPath) {
|
|
18607
|
+
if (isNonFileSocketPath(socketPath)) {
|
|
18608
|
+
return socketPath;
|
|
18609
|
+
}
|
|
18610
|
+
const resolved = (0, import_path.resolve)(socketPath);
|
|
18611
|
+
if ((0, import_path.isAbsolute)(socketPath) || Buffer.byteLength(resolved) <= MAX_SOCKET_PATH_BYTES) {
|
|
18612
|
+
return resolved;
|
|
18613
|
+
}
|
|
18614
|
+
const relative = (0, import_path.relative)(process.cwd(), resolved) || ".";
|
|
18615
|
+
return Buffer.byteLength(relative) < Buffer.byteLength(resolved) ? relative : resolved;
|
|
18616
|
+
}
|
|
18585
18617
|
function setDirectAgent(options, configHttpAgent, configHttpsAgent) {
|
|
18586
18618
|
const secure = isHttps.test(options.protocol);
|
|
18587
18619
|
const agent = getDirectAgent(secure ? configHttpsAgent : configHttpAgent, secure ? import_https.default : import_http.default);
|
|
@@ -18625,10 +18657,35 @@ var flushOnFinish = (stream4, [throttled, flush]) => {
|
|
|
18625
18657
|
return throttled;
|
|
18626
18658
|
};
|
|
18627
18659
|
var http2Sessions = new Http2Sessions_default();
|
|
18660
|
+
var REDIRECT_OPTION_KEYS = [
|
|
18661
|
+
"host",
|
|
18662
|
+
"hostname",
|
|
18663
|
+
"port",
|
|
18664
|
+
"pathname",
|
|
18665
|
+
"search",
|
|
18666
|
+
"hash",
|
|
18667
|
+
"query",
|
|
18668
|
+
"slashes",
|
|
18669
|
+
"followRedirects",
|
|
18670
|
+
"trackRedirects",
|
|
18671
|
+
"sensitiveHeaders"
|
|
18672
|
+
];
|
|
18673
|
+
var RESPONSE_OPTION_KEYS = /* @__PURE__ */ new Set(["followRedirects", "trackRedirects"]);
|
|
18674
|
+
function setRedirectDefaults(options) {
|
|
18675
|
+
REDIRECT_OPTION_KEYS.forEach((key) => {
|
|
18676
|
+
if (utils_default.hasOwnProp(options, key)) {
|
|
18677
|
+
return;
|
|
18678
|
+
}
|
|
18679
|
+
if (key in Object.prototype || RESPONSE_OPTION_KEYS.has(key)) {
|
|
18680
|
+
options[key] = void 0;
|
|
18681
|
+
}
|
|
18682
|
+
});
|
|
18683
|
+
}
|
|
18628
18684
|
function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
18685
|
+
options.auth = void 0;
|
|
18686
|
+
options.query = void 0;
|
|
18629
18687
|
if (!isSameOriginRedirect(options, requestDetails)) {
|
|
18630
18688
|
stripMatchingHeaders(options.headers, /* @__PURE__ */ new Set(["authorization", "cookie"]));
|
|
18631
|
-
delete options.auth;
|
|
18632
18689
|
}
|
|
18633
18690
|
if (options.beforeRedirects.proxy) {
|
|
18634
18691
|
options.beforeRedirects.proxy(options);
|
|
@@ -18645,6 +18702,11 @@ function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
|
18645
18702
|
if (options.beforeRedirects.config) {
|
|
18646
18703
|
options.beforeRedirects.config(options, responseDetails, requestDetails);
|
|
18647
18704
|
}
|
|
18705
|
+
if (options.host && !options.hostname) {
|
|
18706
|
+
options.hostname = options.host;
|
|
18707
|
+
}
|
|
18708
|
+
options.host = void 0;
|
|
18709
|
+
setRedirectDefaults(options);
|
|
18648
18710
|
}
|
|
18649
18711
|
function stripMatchingHeaders(headers, sensitiveSet) {
|
|
18650
18712
|
if (!headers) {
|
|
@@ -18928,8 +18990,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
18928
18990
|
connectPhaseTimer = null;
|
|
18929
18991
|
}
|
|
18930
18992
|
}
|
|
18931
|
-
function createTimeoutError() {
|
|
18932
|
-
const configTimeout = own2("timeout");
|
|
18993
|
+
function createTimeoutError(configTimeout = own2("timeout")) {
|
|
18933
18994
|
let timeoutErrorMessage = configTimeout ? "timeout of " + configTimeout + "ms exceeded" : "timeout exceeded";
|
|
18934
18995
|
const configTimeoutErrorMessage = own2("timeoutErrorMessage");
|
|
18935
18996
|
if (configTimeoutErrorMessage) {
|
|
@@ -19105,30 +19166,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
19105
19166
|
} else {
|
|
19106
19167
|
maxUploadRate = maxDownloadRate = maxRate;
|
|
19107
19168
|
}
|
|
19108
|
-
if (data && (onUploadProgress || maxUploadRate)) {
|
|
19109
|
-
if (!utils_default.isStream(data)) {
|
|
19110
|
-
data = import_stream4.default.Readable.from(data, { objectMode: false });
|
|
19111
|
-
}
|
|
19112
|
-
data = import_stream4.default.pipeline(
|
|
19113
|
-
[
|
|
19114
|
-
data,
|
|
19115
|
-
new AxiosTransformStream_default({
|
|
19116
|
-
maxRate: utils_default.toFiniteNumber(maxUploadRate)
|
|
19117
|
-
})
|
|
19118
|
-
],
|
|
19119
|
-
utils_default.noop
|
|
19120
|
-
);
|
|
19121
|
-
onUploadProgress && data.on(
|
|
19122
|
-
"progress",
|
|
19123
|
-
flushOnFinish(
|
|
19124
|
-
data,
|
|
19125
|
-
progressEventDecorator(
|
|
19126
|
-
contentLength,
|
|
19127
|
-
progressEventReducer(asyncDecorator(onUploadProgress, scheduleProgress), false, 3)
|
|
19128
|
-
)
|
|
19129
|
-
)
|
|
19130
|
-
);
|
|
19131
|
-
}
|
|
19132
19169
|
let auth = void 0;
|
|
19133
19170
|
const configAuth = own2("auth");
|
|
19134
19171
|
if (configAuth) {
|
|
@@ -19186,12 +19223,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
19186
19223
|
new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
|
|
19187
19224
|
);
|
|
19188
19225
|
}
|
|
19226
|
+
let connectSocketPath = socketPath;
|
|
19189
19227
|
const allowedSocketPaths = own2("allowedSocketPaths");
|
|
19190
19228
|
if (allowedSocketPaths != null) {
|
|
19191
19229
|
const allowed = Array.isArray(allowedSocketPaths) ? allowedSocketPaths : [allowedSocketPaths];
|
|
19192
|
-
|
|
19230
|
+
connectSocketPath = getConnectSocketPath(socketPath);
|
|
19231
|
+
const normalizedSocket = normalizeSocketPath(connectSocketPath);
|
|
19193
19232
|
const isAllowed = allowed.some(
|
|
19194
|
-
(entry) => typeof entry === "string" && (
|
|
19233
|
+
(entry) => typeof entry === "string" && normalizeSocketPath(entry) === normalizedSocket
|
|
19195
19234
|
);
|
|
19196
19235
|
if (!isAllowed) {
|
|
19197
19236
|
return reject(
|
|
@@ -19203,8 +19242,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
19203
19242
|
);
|
|
19204
19243
|
}
|
|
19205
19244
|
}
|
|
19206
|
-
options.socketPath =
|
|
19245
|
+
options.socketPath = connectSocketPath;
|
|
19207
19246
|
} else {
|
|
19247
|
+
if ("socketPath" in Object.prototype) {
|
|
19248
|
+
options.socketPath = void 0;
|
|
19249
|
+
}
|
|
19208
19250
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
19209
19251
|
options.port = parsed.port;
|
|
19210
19252
|
proxyApplied = setProxy(
|
|
@@ -19245,6 +19287,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
19245
19287
|
} else {
|
|
19246
19288
|
const configTransport = own2("transport");
|
|
19247
19289
|
if (configTransport) {
|
|
19290
|
+
setRedirectDefaults(options);
|
|
19248
19291
|
transport = configTransport;
|
|
19249
19292
|
} else if (maxRedirects === 0) {
|
|
19250
19293
|
transport = isHttpsRequest ? import_https.default : import_http.default;
|
|
@@ -19303,6 +19346,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
19303
19346
|
};
|
|
19304
19347
|
}
|
|
19305
19348
|
}
|
|
19349
|
+
setRedirectDefaults(options);
|
|
19306
19350
|
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
19307
19351
|
}
|
|
19308
19352
|
}
|
|
@@ -19312,6 +19356,40 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
19312
19356
|
options.maxBodyLength = Infinity;
|
|
19313
19357
|
}
|
|
19314
19358
|
options.insecureHTTPParser = Boolean(own2("insecureHTTPParser"));
|
|
19359
|
+
const rawTimeout = own2("timeout");
|
|
19360
|
+
let timeoutString;
|
|
19361
|
+
let parsedTimeout;
|
|
19362
|
+
if (rawTimeout) {
|
|
19363
|
+
timeoutString = `${rawTimeout}`;
|
|
19364
|
+
parsedTimeout = parseInt(timeoutString, 10);
|
|
19365
|
+
if (parseFloat(timeoutString) < 0 || parsedTimeout < 0) {
|
|
19366
|
+
return reject(createTimeoutError(timeoutString));
|
|
19367
|
+
}
|
|
19368
|
+
}
|
|
19369
|
+
if (data && (onUploadProgress || maxUploadRate)) {
|
|
19370
|
+
if (!utils_default.isStream(data)) {
|
|
19371
|
+
data = import_stream4.default.Readable.from(data, { objectMode: false });
|
|
19372
|
+
}
|
|
19373
|
+
data = import_stream4.default.pipeline(
|
|
19374
|
+
[
|
|
19375
|
+
data,
|
|
19376
|
+
new AxiosTransformStream_default({
|
|
19377
|
+
maxRate: utils_default.toFiniteNumber(maxUploadRate)
|
|
19378
|
+
})
|
|
19379
|
+
],
|
|
19380
|
+
utils_default.noop
|
|
19381
|
+
);
|
|
19382
|
+
onUploadProgress && data.on(
|
|
19383
|
+
"progress",
|
|
19384
|
+
flushOnFinish(
|
|
19385
|
+
data,
|
|
19386
|
+
progressEventDecorator(
|
|
19387
|
+
contentLength,
|
|
19388
|
+
progressEventReducer(asyncDecorator(onUploadProgress, scheduleProgress), false, 3)
|
|
19389
|
+
)
|
|
19390
|
+
)
|
|
19391
|
+
);
|
|
19392
|
+
}
|
|
19315
19393
|
req = transport.request(options, function handleResponse(res) {
|
|
19316
19394
|
clearConnectPhaseTimer();
|
|
19317
19395
|
if (req.destroyed) return;
|
|
@@ -19495,9 +19573,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
19495
19573
|
}
|
|
19496
19574
|
boundSockets.clear();
|
|
19497
19575
|
});
|
|
19498
|
-
if (
|
|
19499
|
-
const timeout =
|
|
19500
|
-
if (Number.
|
|
19576
|
+
if (rawTimeout) {
|
|
19577
|
+
const timeout = parsedTimeout;
|
|
19578
|
+
if (!Number.isFinite(timeout)) {
|
|
19501
19579
|
abort(
|
|
19502
19580
|
new AxiosError_default(
|
|
19503
19581
|
"error trying to parse `config.timeout` to int",
|
|
@@ -19510,7 +19588,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
19510
19588
|
}
|
|
19511
19589
|
const handleTimeout = function handleTimeout2() {
|
|
19512
19590
|
if (isDone) return;
|
|
19513
|
-
abort(createTimeoutError());
|
|
19591
|
+
abort(createTimeoutError(timeoutString));
|
|
19514
19592
|
};
|
|
19515
19593
|
if (isNativeTransport && timeout > 0) {
|
|
19516
19594
|
connectPhaseTimer = setTimeout(handleTimeout, timeout);
|
|
@@ -20301,6 +20379,8 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
|
20301
20379
|
}
|
|
20302
20380
|
controller.enqueue(new Uint8Array(value));
|
|
20303
20381
|
} catch (err) {
|
|
20382
|
+
iterator2.return().catch(() => {
|
|
20383
|
+
});
|
|
20304
20384
|
_onFinish(err);
|
|
20305
20385
|
throw err;
|
|
20306
20386
|
}
|
|
@@ -20455,6 +20535,29 @@ var test = (fn, ...args) => {
|
|
|
20455
20535
|
return false;
|
|
20456
20536
|
}
|
|
20457
20537
|
};
|
|
20538
|
+
var ignoreRejection = (result) => {
|
|
20539
|
+
try {
|
|
20540
|
+
if (result !== null && (typeof result === "object" || typeof result === "function")) {
|
|
20541
|
+
const then = result.then;
|
|
20542
|
+
if (isFunction2(then)) {
|
|
20543
|
+
then.call(result, void 0, utils_default.noop);
|
|
20544
|
+
}
|
|
20545
|
+
}
|
|
20546
|
+
} catch (e) {
|
|
20547
|
+
}
|
|
20548
|
+
};
|
|
20549
|
+
var cancelProbeBody = (body) => {
|
|
20550
|
+
if (body == null) {
|
|
20551
|
+
return;
|
|
20552
|
+
}
|
|
20553
|
+
try {
|
|
20554
|
+
const cancel2 = body.cancel;
|
|
20555
|
+
if (isFunction2(cancel2)) {
|
|
20556
|
+
ignoreRejection(cancel2.call(body));
|
|
20557
|
+
}
|
|
20558
|
+
} catch (e) {
|
|
20559
|
+
}
|
|
20560
|
+
};
|
|
20458
20561
|
var maybeWithAuthCredentials = (url2) => {
|
|
20459
20562
|
const protocolIndex = url2.indexOf("://");
|
|
20460
20563
|
let urlToCheck = url2;
|
|
@@ -20499,11 +20602,18 @@ var factory = (env) => {
|
|
|
20499
20602
|
});
|
|
20500
20603
|
const hasContentType = request.headers.has("Content-Type");
|
|
20501
20604
|
if (request.body != null) {
|
|
20502
|
-
request.body.cancel();
|
|
20605
|
+
ignoreRejection(request.body.cancel());
|
|
20503
20606
|
}
|
|
20504
20607
|
return duplexAccessed && !hasContentType;
|
|
20505
20608
|
});
|
|
20506
|
-
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() =>
|
|
20609
|
+
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => {
|
|
20610
|
+
const probeBody = new Response("").body;
|
|
20611
|
+
try {
|
|
20612
|
+
return utils_default.isReadableStream(probeBody);
|
|
20613
|
+
} finally {
|
|
20614
|
+
cancelProbeBody(probeBody);
|
|
20615
|
+
}
|
|
20616
|
+
});
|
|
20507
20617
|
const requestDefaults = Object.assign(/* @__PURE__ */ Object.create(null), DEFAULT_REQUEST_OPTIONS);
|
|
20508
20618
|
if (isRequestSupported && !test(() => new Request(platform_default.origin, requestDefaults))) {
|
|
20509
20619
|
delete requestDefaults.cache;
|
|
@@ -20885,6 +20995,13 @@ var factory = (env) => {
|
|
|
20885
20995
|
};
|
|
20886
20996
|
};
|
|
20887
20997
|
var seedCache = /* @__PURE__ */ new Map();
|
|
20998
|
+
var createdAdapters = /* @__PURE__ */ new WeakSet();
|
|
20999
|
+
var createAdapter = (env) => {
|
|
21000
|
+
const adapter2 = factory(env);
|
|
21001
|
+
adapter2 && createdAdapters.add(adapter2);
|
|
21002
|
+
return adapter2;
|
|
21003
|
+
};
|
|
21004
|
+
var isFetchAdapter = (adapter2) => createdAdapters.has(adapter2);
|
|
20888
21005
|
var getFetch = (config) => {
|
|
20889
21006
|
const env = /* @__PURE__ */ Object.create(null);
|
|
20890
21007
|
const configuredEnv = config && utils_default.hasOwnProp(config, "env") && config.env;
|
|
@@ -20899,7 +21016,7 @@ var getFetch = (config) => {
|
|
|
20899
21016
|
while (i2--) {
|
|
20900
21017
|
seed = seeds[i2];
|
|
20901
21018
|
target = map.get(seed);
|
|
20902
|
-
target === void 0 && map.set(seed, target = i2 ? /* @__PURE__ */ new Map() :
|
|
21019
|
+
target === void 0 && map.set(seed, target = i2 ? /* @__PURE__ */ new Map() : createAdapter(env));
|
|
20903
21020
|
map = target;
|
|
20904
21021
|
}
|
|
20905
21022
|
return target;
|
|
@@ -20958,12 +21075,20 @@ function getAdapter(adapters, config) {
|
|
|
20958
21075
|
}
|
|
20959
21076
|
return adapter2;
|
|
20960
21077
|
}
|
|
21078
|
+
function isBuiltinAdapter(adapter2) {
|
|
21079
|
+
return !!adapter2 && (adapter2 === knownAdapters.xhr || adapter2 === knownAdapters.http || isFetchAdapter(adapter2));
|
|
21080
|
+
}
|
|
20961
21081
|
var adapters_default = {
|
|
20962
21082
|
/**
|
|
20963
21083
|
* Resolve an adapter from a list of adapter names or functions.
|
|
20964
21084
|
* @type {Function}
|
|
20965
21085
|
*/
|
|
20966
21086
|
getAdapter,
|
|
21087
|
+
/**
|
|
21088
|
+
* Check whether a resolved adapter is a built-in one.
|
|
21089
|
+
* @type {Function}
|
|
21090
|
+
*/
|
|
21091
|
+
isBuiltinAdapter,
|
|
20967
21092
|
/**
|
|
20968
21093
|
* Exposes all known adapters
|
|
20969
21094
|
* @type {Object<string, Function|Object>}
|
|
@@ -20971,6 +21096,30 @@ var adapters_default = {
|
|
|
20971
21096
|
adapters: knownAdapters
|
|
20972
21097
|
};
|
|
20973
21098
|
|
|
21099
|
+
// node_modules/axios/lib/core/assertValidRequestUrl.js
|
|
21100
|
+
function assertValidRequestUrl(config, resolveAdapter) {
|
|
21101
|
+
const url2 = utils_default.getSafeProp(config, "url");
|
|
21102
|
+
if (url2 !== null && url2 !== void 0) {
|
|
21103
|
+
return;
|
|
21104
|
+
}
|
|
21105
|
+
if (utils_default.getSafeProp(config, "baseURL")) {
|
|
21106
|
+
return;
|
|
21107
|
+
}
|
|
21108
|
+
const adapter2 = resolveAdapter();
|
|
21109
|
+
const httpAdapter2 = adapters_default.adapters.http;
|
|
21110
|
+
if (httpAdapter2 && adapter2 === httpAdapter2 && utils_default.getSafeProp(config, "socketPath")) {
|
|
21111
|
+
return;
|
|
21112
|
+
}
|
|
21113
|
+
if (!adapters_default.isBuiltinAdapter(adapter2)) {
|
|
21114
|
+
return;
|
|
21115
|
+
}
|
|
21116
|
+
throw new AxiosError_default(
|
|
21117
|
+
`Invalid URL: url cannot be ${url2 === null ? "null" : "undefined"} when baseURL is not set`,
|
|
21118
|
+
AxiosError_default.ERR_INVALID_URL,
|
|
21119
|
+
config
|
|
21120
|
+
);
|
|
21121
|
+
}
|
|
21122
|
+
|
|
20974
21123
|
// node_modules/axios/lib/core/dispatchRequest.js
|
|
20975
21124
|
function throwIfCancellationRequested(config) {
|
|
20976
21125
|
if (config.cancelToken) {
|
|
@@ -20995,6 +21144,7 @@ function dispatchRequest(_config) {
|
|
|
20995
21144
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
20996
21145
|
}
|
|
20997
21146
|
const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
|
|
21147
|
+
assertValidRequestUrl(config, () => adapter2);
|
|
20998
21148
|
const now = resolveClock();
|
|
20999
21149
|
const start = now();
|
|
21000
21150
|
return adapter2(config).then(
|
|
@@ -21314,6 +21464,10 @@ var Axios = class {
|
|
|
21314
21464
|
}
|
|
21315
21465
|
getUri(config) {
|
|
21316
21466
|
config = mergeConfig(this.defaults, config);
|
|
21467
|
+
assertValidRequestUrl(
|
|
21468
|
+
config,
|
|
21469
|
+
() => adapters_default.getAdapter(config.adapter || defaults_default.adapter, config)
|
|
21470
|
+
);
|
|
21317
21471
|
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
|
|
21318
21472
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
21319
21473
|
}
|
|
@@ -26751,10 +26905,8 @@ function renderDocumentStats(rows) {
|
|
|
26751
26905
|
{ header: "REQUESTS", value: (row) => row.signature_requests },
|
|
26752
26906
|
{ header: "NOTIFY EMAIL", value: (row) => row.signature_requests_notification_email },
|
|
26753
26907
|
{ header: "NOTIFY WA", value: (row) => row.signature_requests_notification_whatsapp },
|
|
26754
|
-
{ header: "NOTIFY BYPASS", value: (row) => row.signature_requests_notification_bypass },
|
|
26755
26908
|
{ header: "VERIFY EMAIL", value: (row) => row.signature_requests_verification_email },
|
|
26756
26909
|
{ header: "VERIFY WA", value: (row) => row.signature_requests_verification_whatsapp },
|
|
26757
|
-
{ header: "VERIFY BYPASS", value: (row) => row.signature_requests_verification_bypass },
|
|
26758
26910
|
{
|
|
26759
26911
|
header: "VERIFY CERT",
|
|
26760
26912
|
value: (row) => row.signature_requests_verification_digital_certificate
|
|
@@ -29989,7 +30141,7 @@ function handleStreamError(err, fallback, exit = process.exit) {
|
|
|
29989
30141
|
// package.json
|
|
29990
30142
|
var package_default = {
|
|
29991
30143
|
name: "@assinafy/cli",
|
|
29992
|
-
version: "2.10.
|
|
30144
|
+
version: "2.10.1",
|
|
29993
30145
|
description: "The official command-line interface for the Assinafy digital-signature API",
|
|
29994
30146
|
license: "MIT",
|
|
29995
30147
|
type: "module",
|
|
@@ -30064,7 +30216,7 @@ var package_default = {
|
|
|
30064
30216
|
},
|
|
30065
30217
|
dependencies: {
|
|
30066
30218
|
"@types/node": "^26.6.6",
|
|
30067
|
-
axios: "^1.
|
|
30219
|
+
axios: "^1.22.0"
|
|
30068
30220
|
},
|
|
30069
30221
|
devDependencies: {
|
|
30070
30222
|
"@biomejs/biome": "^2.5.10",
|
|
@@ -647,7 +647,8 @@ export interface IWorkspaceResponse {
|
|
|
647
647
|
DigitalCertificate: boolean;
|
|
648
648
|
VerificationIdDocumentFaceMatchBasic: boolean;
|
|
649
649
|
WhatsappNotification: boolean;
|
|
650
|
-
|
|
650
|
+
/** @deprecated Retained for older responses; current responses omit this feature. */
|
|
651
|
+
VerificationBypass?: boolean;
|
|
651
652
|
Embed: boolean;
|
|
652
653
|
};
|
|
653
654
|
created_at: string;
|
|
@@ -751,14 +752,14 @@ export interface IDocumentStatsRow {
|
|
|
751
752
|
signature_requests_notification_email: number;
|
|
752
753
|
/** Requests notified by WhatsApp; multi-channel requests count in each notification channel. */
|
|
753
754
|
signature_requests_notification_whatsapp: number;
|
|
754
|
-
/**
|
|
755
|
-
signature_requests_notification_bypass
|
|
755
|
+
/** @deprecated Retained for older responses; current statistics omit this counter. */
|
|
756
|
+
signature_requests_notification_bypass?: number;
|
|
756
757
|
/** Requests verified with an email token. */
|
|
757
758
|
signature_requests_verification_email: number;
|
|
758
759
|
/** Requests verified with a WhatsApp token. */
|
|
759
760
|
signature_requests_verification_whatsapp: number;
|
|
760
|
-
/**
|
|
761
|
-
signature_requests_verification_bypass
|
|
761
|
+
/** @deprecated Retained for older responses; current statistics omit this counter. */
|
|
762
|
+
signature_requests_verification_bypass?: number;
|
|
762
763
|
/** Requests signed with the signer's ICP-Brasil digital certificate. */
|
|
763
764
|
signature_requests_verification_digital_certificate: number;
|
|
764
765
|
signature_requests_viewed: number;
|