@assinafy/cli 2.9.1 → 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 +8 -7
- package/README.md +2 -4
- package/THIRD_PARTY_NOTICES.md +3 -30
- package/dist/api.cjs +10 -13
- package/dist/api.cjs.map +1 -1
- package/dist/api.js +10 -13
- package/dist/api.js.map +1 -1
- package/dist/cli.cjs +276 -126
- package/dist/types/api/resources/assignments.d.ts +1 -1
- package/dist/types/api/resources/assignments.d.ts.map +1 -1
- package/dist/types/api/resources/authentication.d.ts +1 -3
- package/dist/types/api/resources/authentication.d.ts.map +1 -1
- package/dist/types/api/resources/documents.d.ts +4 -2
- package/dist/types/api/resources/documents.d.ts.map +1 -1
- package/dist/types/api/resources/envelopes.d.ts +2 -2
- package/dist/types/api/resources/envelopes.d.ts.map +1 -1
- package/dist/types/api/resources/scheduled-sends.d.ts +1 -1
- package/dist/types/api/resources/scheduled-sends.d.ts.map +1 -1
- package/dist/types/api/types.d.ts +9 -8
- package/dist/types/api/types.d.ts.map +1 -1
- package/docs/api-operations.json +85 -85
- package/docs/api-reference.md +1353 -837
- package/docs/assignments.md +6 -6
- package/docs/auth.md +3 -16
- package/docs/documents.md +20 -4
- package/docs/envelopes.md +4 -4
- package/docs/scheduled-sends.md +1 -1
- package/docs/sdk-reference.md +24 -26
- package/package.json +2 -2
package/dist/cli.cjs
CHANGED
|
@@ -12024,7 +12024,7 @@ var require_follow_redirects = __commonJS({
|
|
|
12024
12024
|
return URL2 && value instanceof URL2;
|
|
12025
12025
|
}
|
|
12026
12026
|
function escapeRegex(regex) {
|
|
12027
|
-
return regex.replace(/[[\]
|
|
12027
|
+
return regex.replace(/[\^$\\.*+?()[\]{}|]/g, "\\$&");
|
|
12028
12028
|
}
|
|
12029
12029
|
module2.exports = wrap({ http: http3, https: https2 });
|
|
12030
12030
|
module2.exports.wrap = wrap;
|
|
@@ -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) {
|
|
@@ -20980,8 +21129,11 @@ function throwIfCancellationRequested(config) {
|
|
|
20980
21129
|
throw new CanceledError_default(null, config);
|
|
20981
21130
|
}
|
|
20982
21131
|
}
|
|
20983
|
-
function
|
|
20984
|
-
return
|
|
21132
|
+
function resolveClock() {
|
|
21133
|
+
return typeof performance !== "undefined" && utils_default.isFunction(performance.now) ? () => performance.now() : Date.now;
|
|
21134
|
+
}
|
|
21135
|
+
function elapsedSince(now, start) {
|
|
21136
|
+
return Math.max(0, Math.round(now() - start));
|
|
20985
21137
|
}
|
|
20986
21138
|
function dispatchRequest(_config) {
|
|
20987
21139
|
const config = utils_default.toSafeFlatObject(_config);
|
|
@@ -20992,11 +21144,13 @@ function dispatchRequest(_config) {
|
|
|
20992
21144
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
20993
21145
|
}
|
|
20994
21146
|
const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
|
|
20995
|
-
|
|
21147
|
+
assertValidRequestUrl(config, () => adapter2);
|
|
21148
|
+
const now = resolveClock();
|
|
21149
|
+
const start = now();
|
|
20996
21150
|
return adapter2(config).then(
|
|
20997
21151
|
function onAdapterResolution(response) {
|
|
20998
21152
|
throwIfCancellationRequested(config);
|
|
20999
|
-
response.duration = elapsedSince(start);
|
|
21153
|
+
response.duration = elapsedSince(now, start);
|
|
21000
21154
|
config.response = response;
|
|
21001
21155
|
try {
|
|
21002
21156
|
response.data = transformData.call(config, config.transformResponse, response);
|
|
@@ -21010,7 +21164,7 @@ function dispatchRequest(_config) {
|
|
|
21010
21164
|
if (!isCancel(reason)) {
|
|
21011
21165
|
throwIfCancellationRequested(config);
|
|
21012
21166
|
if (reason && reason.response) {
|
|
21013
|
-
reason.response.duration = elapsedSince(start);
|
|
21167
|
+
reason.response.duration = elapsedSince(now, start);
|
|
21014
21168
|
config.response = reason.response;
|
|
21015
21169
|
try {
|
|
21016
21170
|
reason.response.data = transformData.call(
|
|
@@ -21310,6 +21464,10 @@ var Axios = class {
|
|
|
21310
21464
|
}
|
|
21311
21465
|
getUri(config) {
|
|
21312
21466
|
config = mergeConfig(this.defaults, config);
|
|
21467
|
+
assertValidRequestUrl(
|
|
21468
|
+
config,
|
|
21469
|
+
() => adapters_default.getAdapter(config.adapter || defaults_default.adapter, config)
|
|
21470
|
+
);
|
|
21313
21471
|
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
|
|
21314
21472
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
21315
21473
|
}
|
|
@@ -22182,7 +22340,7 @@ function normaliseSignerRef(ref, options) {
|
|
|
22182
22340
|
throw new ValidationError("Invalid signer reference", { ref });
|
|
22183
22341
|
}
|
|
22184
22342
|
var AssignmentResource = class extends BaseResource {
|
|
22185
|
-
/** Keep a request for later; no invitation or charge until the server sends it
|
|
22343
|
+
/** Keep a request for later; no invitation or charge until the server sends it. */
|
|
22186
22344
|
async schedule(documentId, payload) {
|
|
22187
22345
|
const id = this.requireId(documentId, "Document ID");
|
|
22188
22346
|
requireScheduledTime(payload?.send_at);
|
|
@@ -22447,14 +22605,6 @@ var AuthenticationResource = class extends BaseResource {
|
|
|
22447
22605
|
() => this.http.post("/auth/link-social-login", payload)
|
|
22448
22606
|
);
|
|
22449
22607
|
}
|
|
22450
|
-
/** `POST /users/api-keys` — generate (and rotate) the current user's API key. */
|
|
22451
|
-
async createApiKey(password2) {
|
|
22452
|
-
if (!password2) throw new ValidationError("password is required");
|
|
22453
|
-
return this.call(
|
|
22454
|
-
"Failed to create API key",
|
|
22455
|
-
() => this.http.post("/users/api-keys", { password: password2 })
|
|
22456
|
-
);
|
|
22457
|
-
}
|
|
22458
22608
|
/**
|
|
22459
22609
|
* `GET /users/api-keys` — fetch a masked version of the current API key, or
|
|
22460
22610
|
* `null` if no key has been generated yet.
|
|
@@ -22669,7 +22819,7 @@ var FAILED_STATUSES = /* @__PURE__ */ new Set([
|
|
|
22669
22819
|
"expired"
|
|
22670
22820
|
]);
|
|
22671
22821
|
var DocumentResource = class extends BaseResource {
|
|
22672
|
-
/** Read contacts who receive a completion email without document access
|
|
22822
|
+
/** Read contacts who receive a completion email without document access. */
|
|
22673
22823
|
async listWatchers(documentId) {
|
|
22674
22824
|
const id = this.requireId(documentId, "Document ID");
|
|
22675
22825
|
return this.call(
|
|
@@ -22677,7 +22827,7 @@ var DocumentResource = class extends BaseResource {
|
|
|
22677
22827
|
() => this.http.get(`/documents/${id}/watchers`)
|
|
22678
22828
|
);
|
|
22679
22829
|
}
|
|
22680
|
-
/** Replace all watchers; an empty list clears them. Owner credentials required
|
|
22830
|
+
/** Replace all watchers; an empty list clears them. Owner credentials required. */
|
|
22681
22831
|
async setWatchers(documentId, watcherIds) {
|
|
22682
22832
|
const id = this.requireId(documentId, "Document ID");
|
|
22683
22833
|
if (!Array.isArray(watcherIds) || new Set(watcherIds).size > 10 || watcherIds.some((value) => typeof value !== "string" || !value.trim())) {
|
|
@@ -22892,6 +23042,11 @@ var DocumentResource = class extends BaseResource {
|
|
|
22892
23042
|
const id = this.requireId(documentId, "Document ID");
|
|
22893
23043
|
return this.call("Failed to delete document", () => this.http.delete(`/documents/${id}`));
|
|
22894
23044
|
}
|
|
23045
|
+
/** Cancel an open document while retaining its files and history. */
|
|
23046
|
+
async cancel(documentId) {
|
|
23047
|
+
const id = this.requireId(documentId, "Document ID");
|
|
23048
|
+
return this.call("Failed to cancel document", () => this.http.put(`/documents/${id}/cancel`));
|
|
23049
|
+
}
|
|
22895
23050
|
/** List the tags attached to a document. */
|
|
22896
23051
|
async listTags(documentId, accountId) {
|
|
22897
23052
|
const accId = this.accountId(accountId);
|
|
@@ -23218,7 +23373,7 @@ function validateOrigin(value) {
|
|
|
23218
23373
|
|
|
23219
23374
|
// src/api/resources/envelopes.ts
|
|
23220
23375
|
var EnvelopeResource = class extends BaseResource {
|
|
23221
|
-
/** Schedule one envelope request; idempotency headers are not supported here
|
|
23376
|
+
/** Schedule one envelope request; idempotency headers are not supported here. */
|
|
23222
23377
|
async schedule(payload, accountId) {
|
|
23223
23378
|
const id = this.accountId(accountId);
|
|
23224
23379
|
validateCreate(payload);
|
|
@@ -23228,7 +23383,7 @@ var EnvelopeResource = class extends BaseResource {
|
|
|
23228
23383
|
() => this.http.post(`/accounts/${id}/scheduled-sends`, payload)
|
|
23229
23384
|
);
|
|
23230
23385
|
}
|
|
23231
|
-
/** Estimate one reminder for the whole envelope without sending or charging
|
|
23386
|
+
/** Estimate one reminder for the whole envelope without sending or charging. */
|
|
23232
23387
|
async estimateResendCost(envelopeId, signerId, accountId) {
|
|
23233
23388
|
const id = this.accountId(accountId);
|
|
23234
23389
|
const eid = this.requireId(envelopeId, "Envelope ID");
|
|
@@ -26750,10 +26905,8 @@ function renderDocumentStats(rows) {
|
|
|
26750
26905
|
{ header: "REQUESTS", value: (row) => row.signature_requests },
|
|
26751
26906
|
{ header: "NOTIFY EMAIL", value: (row) => row.signature_requests_notification_email },
|
|
26752
26907
|
{ header: "NOTIFY WA", value: (row) => row.signature_requests_notification_whatsapp },
|
|
26753
|
-
{ header: "NOTIFY BYPASS", value: (row) => row.signature_requests_notification_bypass },
|
|
26754
26908
|
{ header: "VERIFY EMAIL", value: (row) => row.signature_requests_verification_email },
|
|
26755
26909
|
{ header: "VERIFY WA", value: (row) => row.signature_requests_verification_whatsapp },
|
|
26756
|
-
{ header: "VERIFY BYPASS", value: (row) => row.signature_requests_verification_bypass },
|
|
26757
26910
|
{
|
|
26758
26911
|
header: "VERIFY CERT",
|
|
26759
26912
|
value: (row) => row.signature_requests_verification_digital_certificate
|
|
@@ -26994,7 +27147,7 @@ var reviewIdentityCommand = new Command("review-identity").description("Approve
|
|
|
26994
27147
|
});
|
|
26995
27148
|
var assignmentsCommand = new Command("assignments").description("Create and manage signing assignments").addCommand(listCommand).addCommand(createCommand).addCommand(estimateCostCommand).addCommand(resetExpirationCommand).addCommand(resendCommand).addCommand(estimateResendCostCommand).addCommand(whatsappCommand).addCommand(identityVerificationCommand).addCommand(identityImageCommand).addCommand(reviewIdentityCommand);
|
|
26996
27149
|
assignmentsCommand.addCommand(
|
|
26997
|
-
new Command("schedule").description("Schedule an assignment without sending or charging now
|
|
27150
|
+
new Command("schedule").description("Schedule an assignment without sending or charging now").argument("<documentId>", "Document ID").requiredOption("--data <json>", "Assignment JSON with send_at (ISO 8601 or Unix seconds)").action(async (id, opts, command) => {
|
|
26998
27151
|
await runWithClient(command, async ({ client, config }) => {
|
|
26999
27152
|
const payload = parseJsonObject(
|
|
27000
27153
|
opts.data,
|
|
@@ -27010,7 +27163,7 @@ for (const [name, method] of [
|
|
|
27010
27163
|
]) {
|
|
27011
27164
|
assignmentsCommand.addCommand(
|
|
27012
27165
|
new Command(name).description(
|
|
27013
|
-
name === "signer-capacities" ? "Read the capacities signers were assigned
|
|
27166
|
+
name === "signer-capacities" ? "Read the capacities signers were assigned" : "Read notification delivery/open times"
|
|
27014
27167
|
).argument("<documentId>", "Document ID").action(async (id, _opts, command) => {
|
|
27015
27168
|
await runWithClient(command, async ({ client, config }) => {
|
|
27016
27169
|
printData(await client.assignments[method](id), config);
|
|
@@ -27262,22 +27415,6 @@ var resetPasswordCommand = new Command("reset-password").description(
|
|
|
27262
27415
|
printData(result, config);
|
|
27263
27416
|
});
|
|
27264
27417
|
});
|
|
27265
|
-
var apiKeyCreateCommand = new Command("create").description("Generate (and rotate) the current user API key").addOption(
|
|
27266
|
-
new Option("--password <password>", "Account password (prompted if omitted)").env(
|
|
27267
|
-
"ASSINAFY_PASSWORD"
|
|
27268
|
-
)
|
|
27269
|
-
).action(async (opts, command) => {
|
|
27270
|
-
await runWithClient(command, async ({ client, config }) => {
|
|
27271
|
-
const password2 = opts.password ?? await promptSecret("Password");
|
|
27272
|
-
const result = await withSpinner(
|
|
27273
|
-
"Creating API key",
|
|
27274
|
-
config,
|
|
27275
|
-
() => client.auth.createApiKey(password2)
|
|
27276
|
-
);
|
|
27277
|
-
printSuccess("API key generated", config);
|
|
27278
|
-
printData(result, config, (r2) => renderKeyValue({ api_key: r2.api_key }));
|
|
27279
|
-
});
|
|
27280
|
-
});
|
|
27281
27418
|
var apiKeyGetCommand = new Command("get").description("Show the masked current API key").action(async (_opts, command) => {
|
|
27282
27419
|
await runWithClient(command, async ({ client, config }) => {
|
|
27283
27420
|
const result = await withSpinner("Fetching API key", config, () => client.auth.getApiKey());
|
|
@@ -27296,7 +27433,7 @@ var apiKeyDeleteCommand = new Command("delete").alias("rm").description("Revoke
|
|
|
27296
27433
|
printData({ revoked: true }, config);
|
|
27297
27434
|
});
|
|
27298
27435
|
});
|
|
27299
|
-
var apiKeysCommand = new Command("api-keys").description("
|
|
27436
|
+
var apiKeysCommand = new Command("api-keys").description("Inspect or revoke the current user personal API key").addCommand(apiKeyGetCommand).addCommand(apiKeyDeleteCommand);
|
|
27300
27437
|
var authCommand = new Command("auth").description("Authentication, password management, and personal API keys").addCommand(loginCommand).addCommand(socialLoginCommand).addCommand(linkSocialLoginCommand).addCommand(changePasswordCommand).addCommand(requestResetCommand).addCommand(resetPasswordCommand).addCommand(apiKeysCommand).addCommand(mfaCommand);
|
|
27301
27438
|
|
|
27302
27439
|
// src/commands/config/index.ts
|
|
@@ -27929,6 +28066,19 @@ var deleteCommand = new Command("delete").alias("rm").description("Delete a docu
|
|
|
27929
28066
|
printData({ deleted: id }, config);
|
|
27930
28067
|
});
|
|
27931
28068
|
});
|
|
28069
|
+
var cancelCommand = new Command("cancel").description("Cancel an open document while retaining its files and history").argument("<id>", "Document ID").option("-y, --yes", "Skip the confirmation prompt").action(async (id, opts, command) => {
|
|
28070
|
+
await runWithClient(command, async ({ client, config }) => {
|
|
28071
|
+
const ok = await confirmDestructive(`Cancel document ${id}?`, Boolean(opts.yes));
|
|
28072
|
+
if (!ok) return;
|
|
28073
|
+
const document2 = await withSpinner(
|
|
28074
|
+
"Cancelling document",
|
|
28075
|
+
config,
|
|
28076
|
+
() => client.documents.cancel(id)
|
|
28077
|
+
);
|
|
28078
|
+
printSuccess(`Cancelled document ${id}`, config);
|
|
28079
|
+
printData(document2, config);
|
|
28080
|
+
});
|
|
28081
|
+
});
|
|
27932
28082
|
var tagsCommand = new Command("tags").description("List the tags attached to a document").argument("<id>", "Document ID").action(async (id, _opts, command) => {
|
|
27933
28083
|
await runWithClient(command, async ({ client, config }) => {
|
|
27934
28084
|
const accountId = requireAccountId(config);
|
|
@@ -28114,16 +28264,16 @@ var waitCommand = new Command("wait").description("Poll a document until it is r
|
|
|
28114
28264
|
printData(doc, config, (d) => renderKeyValue({ id: d.id, status: d.status }));
|
|
28115
28265
|
});
|
|
28116
28266
|
});
|
|
28117
|
-
var documentsCommand = new Command("documents").description("Upload, list, download, and manage documents").addCommand(uploadCommand).addCommand(listCommand4).addCommand(searchCommand).addCommand(getCommand3).addCommand(renameCommand).addCommand(downloadCommand).addCommand(thumbnailCommand).addCommand(downloadPageCommand).addCommand(activitiesCommand).addCommand(deleteCommand).addCommand(tagsCommand).addCommand(tagsSetCommand).addCommand(tagsAddCommand).addCommand(tagsRemoveCommand).addCommand(createFromTemplateCommand).addCommand(estimateTemplateCostCommand).addCommand(verifyCommand).addCommand(statusesCommand).addCommand(publicCommand).addCommand(sendTokenCommand).addCommand(progressCommand).addCommand(waitCommand);
|
|
28267
|
+
var documentsCommand = new Command("documents").description("Upload, list, download, and manage documents").addCommand(uploadCommand).addCommand(listCommand4).addCommand(searchCommand).addCommand(getCommand3).addCommand(renameCommand).addCommand(downloadCommand).addCommand(thumbnailCommand).addCommand(downloadPageCommand).addCommand(activitiesCommand).addCommand(cancelCommand).addCommand(deleteCommand).addCommand(tagsCommand).addCommand(tagsSetCommand).addCommand(tagsAddCommand).addCommand(tagsRemoveCommand).addCommand(createFromTemplateCommand).addCommand(estimateTemplateCostCommand).addCommand(verifyCommand).addCommand(statusesCommand).addCommand(publicCommand).addCommand(sendTokenCommand).addCommand(progressCommand).addCommand(waitCommand);
|
|
28118
28268
|
documentsCommand.addCommand(
|
|
28119
|
-
new Command("watchers").description("List document watchers (
|
|
28269
|
+
new Command("watchers").description("List document watchers (owner credentials required)").argument("<documentId>", "Document ID").action(async (id, _opts, command) => {
|
|
28120
28270
|
await runWithClient(command, async ({ client, config }) => {
|
|
28121
28271
|
printData(await client.documents.listWatchers(id), config);
|
|
28122
28272
|
});
|
|
28123
28273
|
})
|
|
28124
28274
|
);
|
|
28125
28275
|
documentsCommand.addCommand(
|
|
28126
|
-
new Command("set-watchers").description("Replace contacts notified when the document ends
|
|
28276
|
+
new Command("set-watchers").description("Replace contacts notified when the document ends").argument("<documentId>", "Document ID").requiredOption("--watcher-ids <json>", "JSON array of contact IDs; [] removes all watchers").action(async (id, opts, command) => {
|
|
28127
28277
|
await runWithClient(command, async ({ client, config }) => {
|
|
28128
28278
|
printData(
|
|
28129
28279
|
await client.documents.setWatchers(
|
|
@@ -28338,7 +28488,7 @@ envelopesCommand.addCommand(
|
|
|
28338
28488
|
})
|
|
28339
28489
|
);
|
|
28340
28490
|
envelopesCommand.addCommand(
|
|
28341
|
-
new Command("schedule").description("Schedule an envelope without sending or charging now
|
|
28491
|
+
new Command("schedule").description("Schedule an envelope without sending or charging now").requiredOption("--data <json>", "Envelope JSON with send_at (ISO 8601 or Unix seconds)").action(async (opts, command) => {
|
|
28342
28492
|
await runWithClient(command, async ({ client, config }) => {
|
|
28343
28493
|
const payload = parseJsonObject(
|
|
28344
28494
|
opts.data,
|
|
@@ -28349,7 +28499,7 @@ envelopesCommand.addCommand(
|
|
|
28349
28499
|
})
|
|
28350
28500
|
);
|
|
28351
28501
|
envelopesCommand.addCommand(
|
|
28352
|
-
new Command("estimate-resend-cost").description("Estimate one envelope reminder without sending or charging
|
|
28502
|
+
new Command("estimate-resend-cost").description("Estimate one envelope reminder without sending or charging").argument("<envelopeId>", "Envelope ID").argument("<signerId>", "Signer ID").action(async (id, signerId, _opts, command) => {
|
|
28353
28503
|
await runWithClient(command, async ({ client, config }) => {
|
|
28354
28504
|
printData(
|
|
28355
28505
|
await client.envelopes.estimateResendCost(id, signerId, requireAccountId(config)),
|
|
@@ -28678,7 +28828,7 @@ var oauthCommand = new Command("oauth").description("OAuth 2.1 authorization, PK
|
|
|
28678
28828
|
|
|
28679
28829
|
// src/commands/scheduled-sends.ts
|
|
28680
28830
|
var scheduledSendsCommand = new Command("scheduled-sends").description(
|
|
28681
|
-
"List, cancel or send queued requests
|
|
28831
|
+
"List, cancel or send queued requests"
|
|
28682
28832
|
);
|
|
28683
28833
|
scheduledSendsCommand.addCommand(
|
|
28684
28834
|
addPaginationOptions(new Command("list").description("List queued assignments and envelopes")).option("--document <id>", "Filter by document ID").action(async (opts, command) => {
|
|
@@ -29991,7 +30141,7 @@ function handleStreamError(err, fallback, exit = process.exit) {
|
|
|
29991
30141
|
// package.json
|
|
29992
30142
|
var package_default = {
|
|
29993
30143
|
name: "@assinafy/cli",
|
|
29994
|
-
version: "2.
|
|
30144
|
+
version: "2.10.1",
|
|
29995
30145
|
description: "The official command-line interface for the Assinafy digital-signature API",
|
|
29996
30146
|
license: "MIT",
|
|
29997
30147
|
type: "module",
|
|
@@ -30066,7 +30216,7 @@ var package_default = {
|
|
|
30066
30216
|
},
|
|
30067
30217
|
dependencies: {
|
|
30068
30218
|
"@types/node": "^26.6.6",
|
|
30069
|
-
axios: "^1.
|
|
30219
|
+
axios: "^1.22.0"
|
|
30070
30220
|
},
|
|
30071
30221
|
devDependencies: {
|
|
30072
30222
|
"@biomejs/biome": "^2.5.10",
|