@supacloud/admin 0.17.0 → 0.18.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/dist/index.js +261 -222
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -20,12 +20,14 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
20
20
|
}
|
|
21
21
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
22
22
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
24
|
+
for (let key of __getOwnPropNames(mod))
|
|
25
|
+
if (!__hasOwnProp.call(to, key))
|
|
26
|
+
__defProp(to, key, {
|
|
27
|
+
get: __accessProp.bind(mod, key),
|
|
28
|
+
enumerable: true
|
|
29
|
+
});
|
|
30
|
+
}
|
|
29
31
|
if (canCache)
|
|
30
32
|
cache.set(mod, to);
|
|
31
33
|
return to;
|
|
@@ -47,7 +49,7 @@ var __export = (target, all) => {
|
|
|
47
49
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
48
50
|
|
|
49
51
|
// node_modules/asn1/lib/ber/errors.js
|
|
50
|
-
var require_errors = __commonJS((exports, module)
|
|
52
|
+
var require_errors = __commonJS(function(exports, module) {
|
|
51
53
|
module.exports = {
|
|
52
54
|
newInvalidAsn1Error: function(msg) {
|
|
53
55
|
var e = new Error;
|
|
@@ -59,7 +61,7 @@ var require_errors = __commonJS((exports, module) => {
|
|
|
59
61
|
});
|
|
60
62
|
|
|
61
63
|
// node_modules/asn1/lib/ber/types.js
|
|
62
|
-
var require_types = __commonJS((exports, module)
|
|
64
|
+
var require_types = __commonJS(function(exports, module) {
|
|
63
65
|
module.exports = {
|
|
64
66
|
EOC: 0,
|
|
65
67
|
Boolean: 1,
|
|
@@ -96,7 +98,7 @@ var require_types = __commonJS((exports, module) => {
|
|
|
96
98
|
});
|
|
97
99
|
|
|
98
100
|
// node_modules/safer-buffer/safer.js
|
|
99
|
-
var require_safer = __commonJS((exports, module)
|
|
101
|
+
var require_safer = __commonJS(function(exports, module) {
|
|
100
102
|
var buffer = __require("buffer");
|
|
101
103
|
var Buffer2 = buffer.Buffer;
|
|
102
104
|
var safer = {};
|
|
@@ -164,7 +166,7 @@ var require_safer = __commonJS((exports, module) => {
|
|
|
164
166
|
});
|
|
165
167
|
|
|
166
168
|
// node_modules/asn1/lib/ber/reader.js
|
|
167
|
-
var require_reader = __commonJS((exports, module)
|
|
169
|
+
var require_reader = __commonJS(function(exports, module) {
|
|
168
170
|
var assert2 = __require("assert");
|
|
169
171
|
var Buffer2 = require_safer().Buffer;
|
|
170
172
|
var ASN1 = require_types();
|
|
@@ -327,7 +329,7 @@ var require_reader = __commonJS((exports, module) => {
|
|
|
327
329
|
});
|
|
328
330
|
|
|
329
331
|
// node_modules/asn1/lib/ber/writer.js
|
|
330
|
-
var require_writer = __commonJS((exports, module)
|
|
332
|
+
var require_writer = __commonJS(function(exports, module) {
|
|
331
333
|
var assert2 = __require("assert");
|
|
332
334
|
var Buffer2 = require_safer().Buffer;
|
|
333
335
|
var ASN1 = require_types();
|
|
@@ -568,7 +570,7 @@ var require_writer = __commonJS((exports, module) => {
|
|
|
568
570
|
});
|
|
569
571
|
|
|
570
572
|
// node_modules/asn1/lib/ber/index.js
|
|
571
|
-
var require_ber = __commonJS((exports, module)
|
|
573
|
+
var require_ber = __commonJS(function(exports, module) {
|
|
572
574
|
var errors = require_errors();
|
|
573
575
|
var types = require_types();
|
|
574
576
|
var Reader = require_reader();
|
|
@@ -590,7 +592,7 @@ var require_ber = __commonJS((exports, module) => {
|
|
|
590
592
|
});
|
|
591
593
|
|
|
592
594
|
// node_modules/asn1/lib/index.js
|
|
593
|
-
var require_lib = __commonJS((exports, module)
|
|
595
|
+
var require_lib = __commonJS(function(exports, module) {
|
|
594
596
|
var Ber = require_ber();
|
|
595
597
|
module.exports = {
|
|
596
598
|
Ber,
|
|
@@ -600,7 +602,7 @@ var require_lib = __commonJS((exports, module) => {
|
|
|
600
602
|
});
|
|
601
603
|
|
|
602
604
|
// node_modules/tweetnacl/nacl-fast.js
|
|
603
|
-
var require_nacl_fast = __commonJS((exports, module)
|
|
605
|
+
var require_nacl_fast = __commonJS(function(exports, module) {
|
|
604
606
|
(function(nacl) {
|
|
605
607
|
var gf = function(init) {
|
|
606
608
|
var i, r = new Float64Array(16);
|
|
@@ -2894,7 +2896,7 @@ var require_nacl_fast = __commonJS((exports, module) => {
|
|
|
2894
2896
|
});
|
|
2895
2897
|
|
|
2896
2898
|
// node_modules/bcrypt-pbkdf/index.js
|
|
2897
|
-
var require_bcrypt_pbkdf = __commonJS((exports, module)
|
|
2899
|
+
var require_bcrypt_pbkdf = __commonJS(function(exports, module) {
|
|
2898
2900
|
var crypto_hash_sha512 = require_nacl_fast().lowlevel.crypto_hash;
|
|
2899
2901
|
var BLF_J = 0;
|
|
2900
2902
|
var Blowfish = function() {
|
|
@@ -4145,18 +4147,18 @@ var require_bcrypt_pbkdf = __commonJS((exports, module) => {
|
|
|
4145
4147
|
});
|
|
4146
4148
|
|
|
4147
4149
|
// node_modules/cpu-features/build/Release/cpufeatures.node
|
|
4148
|
-
var require_cpufeatures = __commonJS((exports, module)
|
|
4150
|
+
var require_cpufeatures = __commonJS(function(exports, module) {
|
|
4149
4151
|
module.exports = __require("./cpufeatures-1yrn0vtw.node");
|
|
4150
4152
|
});
|
|
4151
4153
|
|
|
4152
4154
|
// node_modules/cpu-features/lib/index.js
|
|
4153
|
-
var require_lib2 = __commonJS((exports, module)
|
|
4155
|
+
var require_lib2 = __commonJS(function(exports, module) {
|
|
4154
4156
|
var binding = require_cpufeatures();
|
|
4155
4157
|
module.exports = binding.getCPUInfo;
|
|
4156
4158
|
});
|
|
4157
4159
|
|
|
4158
4160
|
// node_modules/ssh2/lib/protocol/constants.js
|
|
4159
|
-
var require_constants = __commonJS((exports, module)
|
|
4161
|
+
var require_constants = __commonJS(function(exports, module) {
|
|
4160
4162
|
var crypto = __require("crypto");
|
|
4161
4163
|
var cpuInfo;
|
|
4162
4164
|
try {
|
|
@@ -4448,7 +4450,7 @@ MC4CAQAwBQYDK2VwBCIEIHKj+sVa9WcD` + `/q2DJUJaf43Kptc8xYuUQA4bOFj9vC8T\r
|
|
|
4448
4450
|
});
|
|
4449
4451
|
|
|
4450
4452
|
// node_modules/ssh2/lib/protocol/utils.js
|
|
4451
|
-
var require_utils = __commonJS((exports, module)
|
|
4453
|
+
var require_utils = __commonJS(function(exports, module) {
|
|
4452
4454
|
var Ber = require_lib().Ber;
|
|
4453
4455
|
var DISCONNECT_REASON;
|
|
4454
4456
|
var FastBuffer = Buffer[Symbol.species];
|
|
@@ -4758,12 +4760,12 @@ var require_utils = __commonJS((exports, module) => {
|
|
|
4758
4760
|
});
|
|
4759
4761
|
|
|
4760
4762
|
// node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node
|
|
4761
|
-
var require_sshcrypto = __commonJS((exports, module)
|
|
4763
|
+
var require_sshcrypto = __commonJS(function(exports, module) {
|
|
4762
4764
|
module.exports = __require("./sshcrypto-vd2k5hq9.node");
|
|
4763
4765
|
});
|
|
4764
4766
|
|
|
4765
4767
|
// node_modules/ssh2/lib/protocol/crypto/poly1305.js
|
|
4766
|
-
var require_poly1305 = __commonJS((exports, module)
|
|
4768
|
+
var require_poly1305 = __commonJS(function(exports, module) {
|
|
4767
4769
|
var __dirname = "/home/runner/work/supacloud/supacloud/packages/admin/node_modules/ssh2/lib/protocol/crypto", __filename = "/home/runner/work/supacloud/supacloud/packages/admin/node_modules/ssh2/lib/protocol/crypto/poly1305.js";
|
|
4768
4770
|
var createPoly1305 = function() {
|
|
4769
4771
|
var _scriptDir = typeof document !== "undefined" && document.currentScript ? document.currentScript.src : undefined;
|
|
@@ -5225,7 +5227,7 @@ var require_poly1305 = __commonJS((exports, module) => {
|
|
|
5225
5227
|
});
|
|
5226
5228
|
|
|
5227
5229
|
// node_modules/ssh2/lib/protocol/crypto.js
|
|
5228
|
-
var require_crypto = __commonJS((exports, module)
|
|
5230
|
+
var require_crypto = __commonJS(function(exports, module) {
|
|
5229
5231
|
var {
|
|
5230
5232
|
createCipheriv,
|
|
5231
5233
|
createDecipheriv,
|
|
@@ -6379,7 +6381,7 @@ var require_crypto = __commonJS((exports, module) => {
|
|
|
6379
6381
|
});
|
|
6380
6382
|
|
|
6381
6383
|
// node_modules/ssh2/lib/protocol/keyParser.js
|
|
6382
|
-
var require_keyParser = __commonJS((exports, module)
|
|
6384
|
+
var require_keyParser = __commonJS(function(exports, module) {
|
|
6383
6385
|
var {
|
|
6384
6386
|
createDecipheriv,
|
|
6385
6387
|
createECDH,
|
|
@@ -7536,7 +7538,7 @@ ${formatted}-----END ${type} KEY-----`;
|
|
|
7536
7538
|
});
|
|
7537
7539
|
|
|
7538
7540
|
// node_modules/ssh2/lib/agent.js
|
|
7539
|
-
var require_agent = __commonJS((exports, module)
|
|
7541
|
+
var require_agent = __commonJS(function(exports, module) {
|
|
7540
7542
|
var __dirname = "/home/runner/work/supacloud/supacloud/packages/admin/node_modules/ssh2/lib";
|
|
7541
7543
|
var { Socket } = __require("net");
|
|
7542
7544
|
var { Duplex } = __require("stream");
|
|
@@ -8333,7 +8335,7 @@ var require_agent = __commonJS((exports, module) => {
|
|
|
8333
8335
|
});
|
|
8334
8336
|
|
|
8335
8337
|
// node_modules/ssh2/lib/protocol/zlib.js
|
|
8336
|
-
var require_zlib = __commonJS((exports, module)
|
|
8338
|
+
var require_zlib = __commonJS(function(exports, module) {
|
|
8337
8339
|
var { kMaxLength } = __require("buffer");
|
|
8338
8340
|
var {
|
|
8339
8341
|
createInflate,
|
|
@@ -8534,7 +8536,7 @@ var require_zlib = __commonJS((exports, module) => {
|
|
|
8534
8536
|
});
|
|
8535
8537
|
|
|
8536
8538
|
// node_modules/ssh2/lib/protocol/handlers.misc.js
|
|
8537
|
-
var require_handlers_misc = __commonJS((exports, module)
|
|
8539
|
+
var require_handlers_misc = __commonJS(function(exports, module) {
|
|
8538
8540
|
var {
|
|
8539
8541
|
bufferSlice,
|
|
8540
8542
|
bufferParser,
|
|
@@ -9311,7 +9313,7 @@ var require_handlers_misc = __commonJS((exports, module) => {
|
|
|
9311
9313
|
});
|
|
9312
9314
|
|
|
9313
9315
|
// node_modules/ssh2/lib/protocol/handlers.js
|
|
9314
|
-
var require_handlers = __commonJS((exports, module)
|
|
9316
|
+
var require_handlers = __commonJS(function(exports, module) {
|
|
9315
9317
|
var MESSAGE_HANDLERS = new Array(256);
|
|
9316
9318
|
[
|
|
9317
9319
|
require_kex().HANDLERS,
|
|
@@ -9327,7 +9329,7 @@ var require_handlers = __commonJS((exports, module) => {
|
|
|
9327
9329
|
});
|
|
9328
9330
|
|
|
9329
9331
|
// node_modules/ssh2/lib/protocol/kex.js
|
|
9330
|
-
var require_kex = __commonJS((exports, module)
|
|
9332
|
+
var require_kex = __commonJS(function(exports, module) {
|
|
9331
9333
|
var {
|
|
9332
9334
|
createDiffieHellman,
|
|
9333
9335
|
createDiffieHellmanGroup,
|
|
@@ -10611,7 +10613,7 @@ var require_kex = __commonJS((exports, module) => {
|
|
|
10611
10613
|
});
|
|
10612
10614
|
|
|
10613
10615
|
// node_modules/ssh2/package.json
|
|
10614
|
-
var require_package = __commonJS((exports, module)
|
|
10616
|
+
var require_package = __commonJS(function(exports, module) {
|
|
10615
10617
|
module.exports = {
|
|
10616
10618
|
name: "ssh2",
|
|
10617
10619
|
version: "1.17.0",
|
|
@@ -10664,7 +10666,7 @@ var require_package = __commonJS((exports, module) => {
|
|
|
10664
10666
|
});
|
|
10665
10667
|
|
|
10666
10668
|
// node_modules/ssh2/lib/protocol/Protocol.js
|
|
10667
|
-
var require_Protocol = __commonJS((exports, module)
|
|
10669
|
+
var require_Protocol = __commonJS(function(exports, module) {
|
|
10668
10670
|
var { inspect } = __require("util");
|
|
10669
10671
|
var { bindingAvailable, NullCipher, NullDecipher } = require_crypto();
|
|
10670
10672
|
var {
|
|
@@ -12095,7 +12097,7 @@ var require_Protocol = __commonJS((exports, module) => {
|
|
|
12095
12097
|
});
|
|
12096
12098
|
|
|
12097
12099
|
// node_modules/ssh2/lib/protocol/node-fs-compat.js
|
|
12098
|
-
var require_node_fs_compat = __commonJS((exports)
|
|
12100
|
+
var require_node_fs_compat = __commonJS(function(exports) {
|
|
12099
12101
|
var assert2 = __require("assert");
|
|
12100
12102
|
var { inspect } = __require("util");
|
|
12101
12103
|
function addNumericalSeparator(val) {
|
|
@@ -12191,7 +12193,7 @@ ${suffix}`;
|
|
|
12191
12193
|
});
|
|
12192
12194
|
|
|
12193
12195
|
// node_modules/ssh2/lib/protocol/SFTP.js
|
|
12194
|
-
var require_SFTP = __commonJS((exports, module)
|
|
12196
|
+
var require_SFTP = __commonJS(function(exports, module) {
|
|
12195
12197
|
var EventEmitter = __require("events");
|
|
12196
12198
|
var fs = __require("fs");
|
|
12197
12199
|
var { constants } = fs;
|
|
@@ -15094,7 +15096,7 @@ var require_SFTP = __commonJS((exports, module) => {
|
|
|
15094
15096
|
});
|
|
15095
15097
|
|
|
15096
15098
|
// node_modules/ssh2/lib/Channel.js
|
|
15097
|
-
var require_Channel = __commonJS((exports, module)
|
|
15099
|
+
var require_Channel = __commonJS(function(exports, module) {
|
|
15098
15100
|
var {
|
|
15099
15101
|
Duplex: DuplexStream,
|
|
15100
15102
|
Readable: ReadableStream2,
|
|
@@ -15318,7 +15320,7 @@ var require_Channel = __commonJS((exports, module) => {
|
|
|
15318
15320
|
});
|
|
15319
15321
|
|
|
15320
15322
|
// node_modules/ssh2/lib/utils.js
|
|
15321
|
-
var require_utils2 = __commonJS((exports, module)
|
|
15323
|
+
var require_utils2 = __commonJS(function(exports, module) {
|
|
15322
15324
|
var { SFTP } = require_SFTP();
|
|
15323
15325
|
var MAX_CHANNEL = 2 ** 32 - 1;
|
|
15324
15326
|
function onChannelOpenFailure(self2, recipient, info, cb) {
|
|
@@ -15594,7 +15596,7 @@ var require_utils2 = __commonJS((exports, module) => {
|
|
|
15594
15596
|
});
|
|
15595
15597
|
|
|
15596
15598
|
// node_modules/ssh2/lib/client.js
|
|
15597
|
-
var require_client = __commonJS((exports, module)
|
|
15599
|
+
var require_client = __commonJS(function(exports, module) {
|
|
15598
15600
|
var {
|
|
15599
15601
|
createHash,
|
|
15600
15602
|
getHashes,
|
|
@@ -17261,7 +17263,7 @@ var require_client = __commonJS((exports, module) => {
|
|
|
17261
17263
|
});
|
|
17262
17264
|
|
|
17263
17265
|
// node_modules/ssh2/lib/http-agents.js
|
|
17264
|
-
var require_http_agents = __commonJS((exports)
|
|
17266
|
+
var require_http_agents = __commonJS(function(exports) {
|
|
17265
17267
|
var { Agent: HttpAgent } = __require("http");
|
|
17266
17268
|
var { Agent: HttpsAgent } = __require("https");
|
|
17267
17269
|
var { connect: tlsConnect } = __require("tls");
|
|
@@ -17330,7 +17332,7 @@ var require_http_agents = __commonJS((exports) => {
|
|
|
17330
17332
|
});
|
|
17331
17333
|
|
|
17332
17334
|
// node_modules/ssh2/lib/server.js
|
|
17333
|
-
var require_server = __commonJS((exports, module)
|
|
17335
|
+
var require_server = __commonJS(function(exports, module) {
|
|
17334
17336
|
var { Server: netServer } = __require("net");
|
|
17335
17337
|
var EventEmitter = __require("events");
|
|
17336
17338
|
var { listenerCount } = EventEmitter;
|
|
@@ -18411,7 +18413,7 @@ var require_server = __commonJS((exports, module) => {
|
|
|
18411
18413
|
});
|
|
18412
18414
|
|
|
18413
18415
|
// node_modules/ssh2/lib/keygen.js
|
|
18414
|
-
var require_keygen = __commonJS((exports, module)
|
|
18416
|
+
var require_keygen = __commonJS(function(exports, module) {
|
|
18415
18417
|
var {
|
|
18416
18418
|
createCipheriv,
|
|
18417
18419
|
generateKeyPair: generateKeyPair_,
|
|
@@ -18803,7 +18805,7 @@ var require_keygen = __commonJS((exports, module) => {
|
|
|
18803
18805
|
});
|
|
18804
18806
|
|
|
18805
18807
|
// node_modules/ssh2/lib/index.js
|
|
18806
|
-
var require_lib3 = __commonJS((exports, module)
|
|
18808
|
+
var require_lib3 = __commonJS(function(exports, module) {
|
|
18807
18809
|
var {
|
|
18808
18810
|
AgentProtocol,
|
|
18809
18811
|
BaseAgent,
|
|
@@ -18855,22 +18857,22 @@ import { realpathSync } from "node:fs";
|
|
|
18855
18857
|
// node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs
|
|
18856
18858
|
var exports_value = {};
|
|
18857
18859
|
__export(exports_value, {
|
|
18858
|
-
|
|
18859
|
-
IsUint8Array: () => IsUint8Array,
|
|
18860
|
-
IsSymbol: () => IsSymbol,
|
|
18861
|
-
IsString: () => IsString,
|
|
18862
|
-
IsRegExp: () => IsRegExp,
|
|
18863
|
-
IsObject: () => IsObject,
|
|
18864
|
-
IsNumber: () => IsNumber,
|
|
18865
|
-
IsNull: () => IsNull,
|
|
18866
|
-
IsIterator: () => IsIterator,
|
|
18867
|
-
IsFunction: () => IsFunction,
|
|
18868
|
-
IsDate: () => IsDate,
|
|
18869
|
-
IsBoolean: () => IsBoolean,
|
|
18870
|
-
IsBigInt: () => IsBigInt,
|
|
18871
|
-
IsAsyncIterator: () => IsAsyncIterator,
|
|
18860
|
+
HasPropertyKey: () => HasPropertyKey,
|
|
18872
18861
|
IsArray: () => IsArray,
|
|
18873
|
-
|
|
18862
|
+
IsAsyncIterator: () => IsAsyncIterator,
|
|
18863
|
+
IsBigInt: () => IsBigInt,
|
|
18864
|
+
IsBoolean: () => IsBoolean,
|
|
18865
|
+
IsDate: () => IsDate,
|
|
18866
|
+
IsFunction: () => IsFunction,
|
|
18867
|
+
IsIterator: () => IsIterator,
|
|
18868
|
+
IsNull: () => IsNull,
|
|
18869
|
+
IsNumber: () => IsNumber,
|
|
18870
|
+
IsObject: () => IsObject,
|
|
18871
|
+
IsRegExp: () => IsRegExp,
|
|
18872
|
+
IsString: () => IsString,
|
|
18873
|
+
IsSymbol: () => IsSymbol,
|
|
18874
|
+
IsUint8Array: () => IsUint8Array,
|
|
18875
|
+
IsUndefined: () => IsUndefined
|
|
18874
18876
|
});
|
|
18875
18877
|
function HasPropertyKey(value, key) {
|
|
18876
18878
|
return key in value;
|
|
@@ -19243,57 +19245,57 @@ function IsSchema(value) {
|
|
|
19243
19245
|
// node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs
|
|
19244
19246
|
var exports_type = {};
|
|
19245
19247
|
__export(exports_type, {
|
|
19246
|
-
|
|
19247
|
-
IsVoid: () => IsVoid2,
|
|
19248
|
-
IsUnsafe: () => IsUnsafe2,
|
|
19249
|
-
IsUnknown: () => IsUnknown2,
|
|
19250
|
-
IsUnionLiteral: () => IsUnionLiteral,
|
|
19251
|
-
IsUnion: () => IsUnion2,
|
|
19252
|
-
IsUndefined: () => IsUndefined4,
|
|
19253
|
-
IsUint8Array: () => IsUint8Array4,
|
|
19254
|
-
IsTuple: () => IsTuple2,
|
|
19255
|
-
IsTransform: () => IsTransform2,
|
|
19256
|
-
IsThis: () => IsThis2,
|
|
19257
|
-
IsTemplateLiteral: () => IsTemplateLiteral2,
|
|
19258
|
-
IsSymbol: () => IsSymbol4,
|
|
19259
|
-
IsString: () => IsString4,
|
|
19260
|
-
IsSchema: () => IsSchema2,
|
|
19261
|
-
IsRegExp: () => IsRegExp3,
|
|
19262
|
-
IsRef: () => IsRef2,
|
|
19263
|
-
IsRecursive: () => IsRecursive,
|
|
19264
|
-
IsRecord: () => IsRecord2,
|
|
19265
|
-
IsReadonly: () => IsReadonly2,
|
|
19266
|
-
IsProperties: () => IsProperties,
|
|
19267
|
-
IsPromise: () => IsPromise3,
|
|
19268
|
-
IsOptional: () => IsOptional2,
|
|
19269
|
-
IsObject: () => IsObject4,
|
|
19270
|
-
IsNumber: () => IsNumber4,
|
|
19271
|
-
IsNull: () => IsNull4,
|
|
19272
|
-
IsNot: () => IsNot2,
|
|
19273
|
-
IsNever: () => IsNever2,
|
|
19274
|
-
IsMappedResult: () => IsMappedResult2,
|
|
19275
|
-
IsMappedKey: () => IsMappedKey2,
|
|
19276
|
-
IsLiteralValue: () => IsLiteralValue2,
|
|
19277
|
-
IsLiteralString: () => IsLiteralString,
|
|
19278
|
-
IsLiteralNumber: () => IsLiteralNumber,
|
|
19279
|
-
IsLiteralBoolean: () => IsLiteralBoolean,
|
|
19280
|
-
IsLiteral: () => IsLiteral2,
|
|
19281
|
-
IsKindOf: () => IsKindOf2,
|
|
19282
|
-
IsKind: () => IsKind2,
|
|
19283
|
-
IsIterator: () => IsIterator4,
|
|
19284
|
-
IsIntersect: () => IsIntersect2,
|
|
19285
|
-
IsInteger: () => IsInteger3,
|
|
19286
|
-
IsImport: () => IsImport,
|
|
19287
|
-
IsFunction: () => IsFunction4,
|
|
19288
|
-
IsDate: () => IsDate4,
|
|
19289
|
-
IsConstructor: () => IsConstructor2,
|
|
19290
|
-
IsComputed: () => IsComputed2,
|
|
19291
|
-
IsBoolean: () => IsBoolean4,
|
|
19292
|
-
IsBigInt: () => IsBigInt4,
|
|
19293
|
-
IsAsyncIterator: () => IsAsyncIterator4,
|
|
19294
|
-
IsArray: () => IsArray4,
|
|
19248
|
+
IsAny: () => IsAny2,
|
|
19295
19249
|
IsArgument: () => IsArgument2,
|
|
19296
|
-
|
|
19250
|
+
IsArray: () => IsArray4,
|
|
19251
|
+
IsAsyncIterator: () => IsAsyncIterator4,
|
|
19252
|
+
IsBigInt: () => IsBigInt4,
|
|
19253
|
+
IsBoolean: () => IsBoolean4,
|
|
19254
|
+
IsComputed: () => IsComputed2,
|
|
19255
|
+
IsConstructor: () => IsConstructor2,
|
|
19256
|
+
IsDate: () => IsDate4,
|
|
19257
|
+
IsFunction: () => IsFunction4,
|
|
19258
|
+
IsImport: () => IsImport,
|
|
19259
|
+
IsInteger: () => IsInteger3,
|
|
19260
|
+
IsIntersect: () => IsIntersect2,
|
|
19261
|
+
IsIterator: () => IsIterator4,
|
|
19262
|
+
IsKind: () => IsKind2,
|
|
19263
|
+
IsKindOf: () => IsKindOf2,
|
|
19264
|
+
IsLiteral: () => IsLiteral2,
|
|
19265
|
+
IsLiteralBoolean: () => IsLiteralBoolean,
|
|
19266
|
+
IsLiteralNumber: () => IsLiteralNumber,
|
|
19267
|
+
IsLiteralString: () => IsLiteralString,
|
|
19268
|
+
IsLiteralValue: () => IsLiteralValue2,
|
|
19269
|
+
IsMappedKey: () => IsMappedKey2,
|
|
19270
|
+
IsMappedResult: () => IsMappedResult2,
|
|
19271
|
+
IsNever: () => IsNever2,
|
|
19272
|
+
IsNot: () => IsNot2,
|
|
19273
|
+
IsNull: () => IsNull4,
|
|
19274
|
+
IsNumber: () => IsNumber4,
|
|
19275
|
+
IsObject: () => IsObject4,
|
|
19276
|
+
IsOptional: () => IsOptional2,
|
|
19277
|
+
IsPromise: () => IsPromise3,
|
|
19278
|
+
IsProperties: () => IsProperties,
|
|
19279
|
+
IsReadonly: () => IsReadonly2,
|
|
19280
|
+
IsRecord: () => IsRecord2,
|
|
19281
|
+
IsRecursive: () => IsRecursive,
|
|
19282
|
+
IsRef: () => IsRef2,
|
|
19283
|
+
IsRegExp: () => IsRegExp3,
|
|
19284
|
+
IsSchema: () => IsSchema2,
|
|
19285
|
+
IsString: () => IsString4,
|
|
19286
|
+
IsSymbol: () => IsSymbol4,
|
|
19287
|
+
IsTemplateLiteral: () => IsTemplateLiteral2,
|
|
19288
|
+
IsThis: () => IsThis2,
|
|
19289
|
+
IsTransform: () => IsTransform2,
|
|
19290
|
+
IsTuple: () => IsTuple2,
|
|
19291
|
+
IsUint8Array: () => IsUint8Array4,
|
|
19292
|
+
IsUndefined: () => IsUndefined4,
|
|
19293
|
+
IsUnion: () => IsUnion2,
|
|
19294
|
+
IsUnionLiteral: () => IsUnionLiteral,
|
|
19295
|
+
IsUnknown: () => IsUnknown2,
|
|
19296
|
+
IsUnsafe: () => IsUnsafe2,
|
|
19297
|
+
IsVoid: () => IsVoid2,
|
|
19298
|
+
TypeGuardUnknownTypeError: () => TypeGuardUnknownTypeError
|
|
19297
19299
|
});
|
|
19298
19300
|
class TypeGuardUnknownTypeError extends TypeBoxError {
|
|
19299
19301
|
}
|
|
@@ -19543,12 +19545,12 @@ var PatternNeverExact = `^${PatternNever}$`;
|
|
|
19543
19545
|
// node_modules/@sinclair/typebox/build/esm/type/registry/format.mjs
|
|
19544
19546
|
var exports_format = {};
|
|
19545
19547
|
__export(exports_format, {
|
|
19546
|
-
|
|
19547
|
-
Has: () => Has,
|
|
19548
|
-
Get: () => Get,
|
|
19549
|
-
Entries: () => Entries,
|
|
19548
|
+
Clear: () => Clear,
|
|
19550
19549
|
Delete: () => Delete,
|
|
19551
|
-
|
|
19550
|
+
Entries: () => Entries,
|
|
19551
|
+
Get: () => Get,
|
|
19552
|
+
Has: () => Has,
|
|
19553
|
+
Set: () => Set2
|
|
19552
19554
|
});
|
|
19553
19555
|
var map = new Map;
|
|
19554
19556
|
function Entries() {
|
|
@@ -19572,12 +19574,12 @@ function Get(format) {
|
|
|
19572
19574
|
// node_modules/@sinclair/typebox/build/esm/type/registry/type.mjs
|
|
19573
19575
|
var exports_type2 = {};
|
|
19574
19576
|
__export(exports_type2, {
|
|
19575
|
-
|
|
19576
|
-
Has: () => Has2,
|
|
19577
|
-
Get: () => Get2,
|
|
19578
|
-
Entries: () => Entries2,
|
|
19577
|
+
Clear: () => Clear2,
|
|
19579
19578
|
Delete: () => Delete2,
|
|
19580
|
-
|
|
19579
|
+
Entries: () => Entries2,
|
|
19580
|
+
Get: () => Get2,
|
|
19581
|
+
Has: () => Has2,
|
|
19582
|
+
Set: () => Set3
|
|
19581
19583
|
});
|
|
19582
19584
|
var map2 = new Map;
|
|
19583
19585
|
function Entries2() {
|
|
@@ -21476,68 +21478,68 @@ function Void(options) {
|
|
|
21476
21478
|
// node_modules/@sinclair/typebox/build/esm/type/type/type.mjs
|
|
21477
21479
|
var exports_type3 = {};
|
|
21478
21480
|
__export(exports_type3, {
|
|
21479
|
-
|
|
21480
|
-
Uppercase: () => Uppercase,
|
|
21481
|
-
Unsafe: () => Unsafe,
|
|
21482
|
-
Unknown: () => Unknown,
|
|
21483
|
-
Union: () => Union,
|
|
21484
|
-
Undefined: () => Undefined,
|
|
21485
|
-
Uncapitalize: () => Uncapitalize,
|
|
21486
|
-
Uint8Array: () => Uint8Array2,
|
|
21487
|
-
Tuple: () => Tuple,
|
|
21488
|
-
Transform: () => Transform,
|
|
21489
|
-
TemplateLiteral: () => TemplateLiteral,
|
|
21490
|
-
Symbol: () => Symbol2,
|
|
21491
|
-
String: () => String2,
|
|
21492
|
-
ReturnType: () => ReturnType,
|
|
21493
|
-
Rest: () => Rest,
|
|
21494
|
-
Required: () => Required,
|
|
21495
|
-
RegExp: () => RegExp2,
|
|
21496
|
-
Ref: () => Ref,
|
|
21497
|
-
Recursive: () => Recursive,
|
|
21498
|
-
Record: () => Record,
|
|
21499
|
-
ReadonlyOptional: () => ReadonlyOptional,
|
|
21500
|
-
Readonly: () => Readonly,
|
|
21501
|
-
Promise: () => Promise2,
|
|
21502
|
-
Pick: () => Pick,
|
|
21503
|
-
Partial: () => Partial,
|
|
21504
|
-
Parameters: () => Parameters,
|
|
21505
|
-
Optional: () => Optional,
|
|
21506
|
-
Omit: () => Omit,
|
|
21507
|
-
Object: () => Object2,
|
|
21508
|
-
Number: () => Number2,
|
|
21509
|
-
Null: () => Null,
|
|
21510
|
-
Not: () => Not2,
|
|
21511
|
-
Never: () => Never,
|
|
21512
|
-
Module: () => Module,
|
|
21513
|
-
Mapped: () => Mapped,
|
|
21514
|
-
Lowercase: () => Lowercase,
|
|
21515
|
-
Literal: () => Literal,
|
|
21516
|
-
KeyOf: () => KeyOf,
|
|
21517
|
-
Iterator: () => Iterator,
|
|
21518
|
-
Intersect: () => Intersect,
|
|
21519
|
-
Integer: () => Integer,
|
|
21520
|
-
Instantiate: () => Instantiate,
|
|
21521
|
-
InstanceType: () => InstanceType,
|
|
21522
|
-
Index: () => Index,
|
|
21523
|
-
Function: () => Function2,
|
|
21524
|
-
Extract: () => Extract,
|
|
21525
|
-
Extends: () => Extends,
|
|
21526
|
-
Exclude: () => Exclude,
|
|
21527
|
-
Enum: () => Enum,
|
|
21528
|
-
Date: () => Date2,
|
|
21529
|
-
ConstructorParameters: () => ConstructorParameters,
|
|
21530
|
-
Constructor: () => Constructor,
|
|
21531
|
-
Const: () => Const,
|
|
21532
|
-
Composite: () => Composite,
|
|
21533
|
-
Capitalize: () => Capitalize,
|
|
21534
|
-
Boolean: () => Boolean2,
|
|
21535
|
-
BigInt: () => BigInt2,
|
|
21536
|
-
Awaited: () => Awaited,
|
|
21537
|
-
AsyncIterator: () => AsyncIterator,
|
|
21538
|
-
Array: () => Array2,
|
|
21481
|
+
Any: () => Any,
|
|
21539
21482
|
Argument: () => Argument,
|
|
21540
|
-
|
|
21483
|
+
Array: () => Array2,
|
|
21484
|
+
AsyncIterator: () => AsyncIterator,
|
|
21485
|
+
Awaited: () => Awaited,
|
|
21486
|
+
BigInt: () => BigInt2,
|
|
21487
|
+
Boolean: () => Boolean2,
|
|
21488
|
+
Capitalize: () => Capitalize,
|
|
21489
|
+
Composite: () => Composite,
|
|
21490
|
+
Const: () => Const,
|
|
21491
|
+
Constructor: () => Constructor,
|
|
21492
|
+
ConstructorParameters: () => ConstructorParameters,
|
|
21493
|
+
Date: () => Date2,
|
|
21494
|
+
Enum: () => Enum,
|
|
21495
|
+
Exclude: () => Exclude,
|
|
21496
|
+
Extends: () => Extends,
|
|
21497
|
+
Extract: () => Extract,
|
|
21498
|
+
Function: () => Function2,
|
|
21499
|
+
Index: () => Index,
|
|
21500
|
+
InstanceType: () => InstanceType,
|
|
21501
|
+
Instantiate: () => Instantiate,
|
|
21502
|
+
Integer: () => Integer,
|
|
21503
|
+
Intersect: () => Intersect,
|
|
21504
|
+
Iterator: () => Iterator,
|
|
21505
|
+
KeyOf: () => KeyOf,
|
|
21506
|
+
Literal: () => Literal,
|
|
21507
|
+
Lowercase: () => Lowercase,
|
|
21508
|
+
Mapped: () => Mapped,
|
|
21509
|
+
Module: () => Module,
|
|
21510
|
+
Never: () => Never,
|
|
21511
|
+
Not: () => Not2,
|
|
21512
|
+
Null: () => Null,
|
|
21513
|
+
Number: () => Number2,
|
|
21514
|
+
Object: () => Object2,
|
|
21515
|
+
Omit: () => Omit,
|
|
21516
|
+
Optional: () => Optional,
|
|
21517
|
+
Parameters: () => Parameters,
|
|
21518
|
+
Partial: () => Partial,
|
|
21519
|
+
Pick: () => Pick,
|
|
21520
|
+
Promise: () => Promise2,
|
|
21521
|
+
Readonly: () => Readonly,
|
|
21522
|
+
ReadonlyOptional: () => ReadonlyOptional,
|
|
21523
|
+
Record: () => Record,
|
|
21524
|
+
Recursive: () => Recursive,
|
|
21525
|
+
Ref: () => Ref,
|
|
21526
|
+
RegExp: () => RegExp2,
|
|
21527
|
+
Required: () => Required,
|
|
21528
|
+
Rest: () => Rest,
|
|
21529
|
+
ReturnType: () => ReturnType,
|
|
21530
|
+
String: () => String2,
|
|
21531
|
+
Symbol: () => Symbol2,
|
|
21532
|
+
TemplateLiteral: () => TemplateLiteral,
|
|
21533
|
+
Transform: () => Transform,
|
|
21534
|
+
Tuple: () => Tuple,
|
|
21535
|
+
Uint8Array: () => Uint8Array2,
|
|
21536
|
+
Uncapitalize: () => Uncapitalize,
|
|
21537
|
+
Undefined: () => Undefined,
|
|
21538
|
+
Union: () => Union,
|
|
21539
|
+
Unknown: () => Unknown,
|
|
21540
|
+
Unsafe: () => Unsafe,
|
|
21541
|
+
Uppercase: () => Uppercase,
|
|
21542
|
+
Void: () => Void
|
|
21541
21543
|
});
|
|
21542
21544
|
|
|
21543
21545
|
// node_modules/@sinclair/typebox/build/esm/type/type/index.mjs
|
|
@@ -24414,13 +24416,13 @@ function Default5(...args) {
|
|
|
24414
24416
|
// node_modules/@sinclair/typebox/build/esm/value/pointer/pointer.mjs
|
|
24415
24417
|
var exports_pointer = {};
|
|
24416
24418
|
__export(exports_pointer, {
|
|
24417
|
-
|
|
24418
|
-
ValuePointerRootDeleteError: () => ValuePointerRootDeleteError,
|
|
24419
|
-
Set: () => Set4,
|
|
24420
|
-
Has: () => Has3,
|
|
24421
|
-
Get: () => Get3,
|
|
24419
|
+
Delete: () => Delete3,
|
|
24422
24420
|
Format: () => Format,
|
|
24423
|
-
|
|
24421
|
+
Get: () => Get3,
|
|
24422
|
+
Has: () => Has3,
|
|
24423
|
+
Set: () => Set4,
|
|
24424
|
+
ValuePointerRootDeleteError: () => ValuePointerRootDeleteError,
|
|
24425
|
+
ValuePointerRootSetError: () => ValuePointerRootSetError
|
|
24424
24426
|
});
|
|
24425
24427
|
class ValuePointerRootSetError extends TypeBoxError {
|
|
24426
24428
|
constructor(value, path, update) {
|
|
@@ -24837,25 +24839,25 @@ function Parse(...args) {
|
|
|
24837
24839
|
// node_modules/@sinclair/typebox/build/esm/value/value/value.mjs
|
|
24838
24840
|
var exports_value2 = {};
|
|
24839
24841
|
__export(exports_value2, {
|
|
24840
|
-
|
|
24841
|
-
Patch: () => Patch,
|
|
24842
|
-
Parse: () => Parse,
|
|
24843
|
-
Mutate: () => Mutate,
|
|
24844
|
-
Hash: () => Hash,
|
|
24845
|
-
Errors: () => Errors,
|
|
24846
|
-
Equal: () => Equal,
|
|
24847
|
-
Encode: () => Encode,
|
|
24848
|
-
Edit: () => Edit,
|
|
24849
|
-
Diff: () => Diff,
|
|
24850
|
-
Default: () => Default5,
|
|
24851
|
-
Decode: () => Decode,
|
|
24852
|
-
Create: () => Create2,
|
|
24853
|
-
Convert: () => Convert,
|
|
24854
|
-
Clone: () => Clone2,
|
|
24855
|
-
Clean: () => Clean,
|
|
24856
|
-
Check: () => Check,
|
|
24842
|
+
Assert: () => Assert,
|
|
24857
24843
|
Cast: () => Cast,
|
|
24858
|
-
|
|
24844
|
+
Check: () => Check,
|
|
24845
|
+
Clean: () => Clean,
|
|
24846
|
+
Clone: () => Clone2,
|
|
24847
|
+
Convert: () => Convert,
|
|
24848
|
+
Create: () => Create2,
|
|
24849
|
+
Decode: () => Decode,
|
|
24850
|
+
Default: () => Default5,
|
|
24851
|
+
Diff: () => Diff,
|
|
24852
|
+
Edit: () => Edit,
|
|
24853
|
+
Encode: () => Encode,
|
|
24854
|
+
Equal: () => Equal,
|
|
24855
|
+
Errors: () => Errors,
|
|
24856
|
+
Hash: () => Hash,
|
|
24857
|
+
Mutate: () => Mutate,
|
|
24858
|
+
Parse: () => Parse,
|
|
24859
|
+
Patch: () => Patch,
|
|
24860
|
+
ValueErrorIterator: () => ValueErrorIterator
|
|
24859
24861
|
});
|
|
24860
24862
|
// src/shared/schema.ts
|
|
24861
24863
|
function schemaErrorPath(path) {
|
|
@@ -26123,6 +26125,14 @@ function validatedPostTimeout(options) {
|
|
|
26123
26125
|
}
|
|
26124
26126
|
return timeoutMs;
|
|
26125
26127
|
}
|
|
26128
|
+
function validatedResponseTimeout(timeoutMs) {
|
|
26129
|
+
if (timeoutMs === undefined)
|
|
26130
|
+
return;
|
|
26131
|
+
if (!Number.isSafeInteger(timeoutMs) || timeoutMs <= 0 || timeoutMs > MAX_POST_TIMEOUT_MS) {
|
|
26132
|
+
throw new RangeError(`HTTP response timeout must be between 1 and ${MAX_POST_TIMEOUT_MS} ms`);
|
|
26133
|
+
}
|
|
26134
|
+
return timeoutMs;
|
|
26135
|
+
}
|
|
26126
26136
|
function validatedGetResponseLimit(options) {
|
|
26127
26137
|
const maxBytes = options.maxResponseBytes;
|
|
26128
26138
|
if (maxBytes === undefined)
|
|
@@ -26154,16 +26164,12 @@ function joinedResponseBytes(chunks, totalBytes) {
|
|
|
26154
26164
|
}
|
|
26155
26165
|
return responseBytes;
|
|
26156
26166
|
}
|
|
26157
|
-
|
|
26158
|
-
|
|
26159
|
-
|
|
26160
|
-
|
|
26161
|
-
|
|
26162
|
-
|
|
26163
|
-
}
|
|
26164
|
-
if (!response.body)
|
|
26165
|
-
return new Uint8Array;
|
|
26166
|
-
const reader = response.body.getReader();
|
|
26167
|
+
function cancelResponseReader(reader) {
|
|
26168
|
+
reader.cancel().catch(() => {
|
|
26169
|
+
return;
|
|
26170
|
+
});
|
|
26171
|
+
}
|
|
26172
|
+
async function responseBytesFromReader(reader, maxBytes) {
|
|
26167
26173
|
const chunks = [];
|
|
26168
26174
|
let totalBytes = 0;
|
|
26169
26175
|
while (true) {
|
|
@@ -26172,14 +26178,41 @@ async function boundedResponseBytes(response, maxBytes) {
|
|
|
26172
26178
|
return joinedResponseBytes(chunks, totalBytes);
|
|
26173
26179
|
totalBytes += value.byteLength;
|
|
26174
26180
|
if (totalBytes > maxBytes) {
|
|
26175
|
-
reader
|
|
26176
|
-
return;
|
|
26177
|
-
});
|
|
26181
|
+
cancelResponseReader(reader);
|
|
26178
26182
|
return null;
|
|
26179
26183
|
}
|
|
26180
26184
|
chunks.push(value);
|
|
26181
26185
|
}
|
|
26182
26186
|
}
|
|
26187
|
+
async function responseBytesBeforeDeadline(reader, maxBytes, responseTimeoutMs) {
|
|
26188
|
+
let deadlineTimer;
|
|
26189
|
+
const deadline = new Promise((resolve2) => {
|
|
26190
|
+
deadlineTimer = setTimeout(() => {
|
|
26191
|
+
cancelResponseReader(reader);
|
|
26192
|
+
resolve2(null);
|
|
26193
|
+
}, responseTimeoutMs);
|
|
26194
|
+
});
|
|
26195
|
+
try {
|
|
26196
|
+
return await Promise.race([responseBytesFromReader(reader, maxBytes), deadline]);
|
|
26197
|
+
} catch {
|
|
26198
|
+
cancelResponseReader(reader);
|
|
26199
|
+
return null;
|
|
26200
|
+
} finally {
|
|
26201
|
+
clearTimeout(deadlineTimer);
|
|
26202
|
+
}
|
|
26203
|
+
}
|
|
26204
|
+
async function boundedResponseBytes(response, maxBytes, responseTimeoutMs) {
|
|
26205
|
+
if (responseExceedsDeclaredLimit(response, maxBytes)) {
|
|
26206
|
+
response.body?.cancel().catch(() => {
|
|
26207
|
+
return;
|
|
26208
|
+
});
|
|
26209
|
+
return null;
|
|
26210
|
+
}
|
|
26211
|
+
if (!response.body)
|
|
26212
|
+
return new Uint8Array;
|
|
26213
|
+
const reader = response.body.getReader();
|
|
26214
|
+
return responseTimeoutMs === undefined ? responseBytesFromReader(reader, maxBytes) : responseBytesBeforeDeadline(reader, maxBytes, responseTimeoutMs);
|
|
26215
|
+
}
|
|
26183
26216
|
async function boundedResponseJson(response, maxBytes) {
|
|
26184
26217
|
const responseBytes = await boundedResponseBytes(response, maxBytes);
|
|
26185
26218
|
if (responseBytes === null)
|
|
@@ -26193,8 +26226,8 @@ async function boundedResponseJson(response, maxBytes) {
|
|
|
26193
26226
|
throw error;
|
|
26194
26227
|
}
|
|
26195
26228
|
}
|
|
26196
|
-
async function strictBoundedResponseJson(response, maxBytes) {
|
|
26197
|
-
const responseBytes = await boundedResponseBytes(response, maxBytes);
|
|
26229
|
+
async function strictBoundedResponseJson(response, maxBytes, responseTimeoutMs) {
|
|
26230
|
+
const responseBytes = await boundedResponseBytes(response, maxBytes, responseTimeoutMs);
|
|
26198
26231
|
if (responseBytes === null)
|
|
26199
26232
|
throw new Error("HTTP JSON response exceeded its byte limit");
|
|
26200
26233
|
const responseText = new TextDecoder("utf-8", { fatal: true }).decode(responseBytes);
|
|
@@ -26282,6 +26315,7 @@ class HttpTransport {
|
|
|
26282
26315
|
async post(path, body, options) {
|
|
26283
26316
|
const timeoutMs = validatedPostTimeout(options);
|
|
26284
26317
|
const maxJsonBytes = validatedStrictJsonLimit({ maxJsonBytes: options?.maxJsonBytes });
|
|
26318
|
+
const responseTimeoutMs = validatedResponseTimeout(options?.responseTimeoutMs);
|
|
26285
26319
|
let response;
|
|
26286
26320
|
try {
|
|
26287
26321
|
response = await fetchWithRetry(`${this.baseUrl}${path}`, {
|
|
@@ -26294,7 +26328,7 @@ class HttpTransport {
|
|
|
26294
26328
|
}
|
|
26295
26329
|
if (maxJsonBytes !== undefined) {
|
|
26296
26330
|
try {
|
|
26297
|
-
const data2 = await strictBoundedResponseJson(response, maxJsonBytes);
|
|
26331
|
+
const data2 = await strictBoundedResponseJson(response, maxJsonBytes, responseTimeoutMs);
|
|
26298
26332
|
return { ok: response.ok, status: response.status, data: data2 };
|
|
26299
26333
|
} catch {
|
|
26300
26334
|
return responseBodyFailure(response.status);
|
|
@@ -26315,6 +26349,7 @@ class HttpTransport {
|
|
|
26315
26349
|
}
|
|
26316
26350
|
const maxJsonBytes = validatedStrictJsonLimit({ maxJsonBytes: options.maxJsonBytes });
|
|
26317
26351
|
const timeoutMs = validatedPostTimeout(options.timeoutMs === undefined ? undefined : { timeoutMs: options.timeoutMs });
|
|
26352
|
+
const responseTimeoutMs = validatedResponseTimeout(options.responseTimeoutMs);
|
|
26318
26353
|
try {
|
|
26319
26354
|
const request = {
|
|
26320
26355
|
method: "POST",
|
|
@@ -26329,7 +26364,7 @@ class HttpTransport {
|
|
|
26329
26364
|
};
|
|
26330
26365
|
const response = await fetchWithRetry(`${this.baseUrl}${path}`, request, timeoutMs);
|
|
26331
26366
|
try {
|
|
26332
|
-
const data = await strictBoundedResponseJson(response, maxJsonBytes);
|
|
26367
|
+
const data = await strictBoundedResponseJson(response, maxJsonBytes, responseTimeoutMs);
|
|
26333
26368
|
return { ok: response.ok, status: response.status, data };
|
|
26334
26369
|
} catch {
|
|
26335
26370
|
return responseBodyFailure(response.status);
|
|
@@ -32072,7 +32107,7 @@ Actions: routes, upsert_route, update_route, delete_route, config, get_certifica
|
|
|
32072
32107
|
});
|
|
32073
32108
|
}
|
|
32074
32109
|
|
|
32075
|
-
// src/shared/tools/frontend-release-control.ts
|
|
32110
|
+
// ../cli/src/shared/tools/frontend-release-control.ts
|
|
32076
32111
|
import { createHash as createHash3 } from "node:crypto";
|
|
32077
32112
|
import { constants as fsConstants2 } from "node:fs";
|
|
32078
32113
|
import { open as open2 } from "node:fs/promises";
|
|
@@ -32086,6 +32121,7 @@ var ARCHIVE_MAX_BYTES = 100 * 1024 * 1024;
|
|
|
32086
32121
|
var ARCHIVE_CHUNK_BYTES = 64 * 1024;
|
|
32087
32122
|
var RESPONSE_MAX_BYTES = 1024 * 1024;
|
|
32088
32123
|
var UPLOAD_REQUEST_TIMEOUT_MS = 10 * 60000;
|
|
32124
|
+
var MUTATION_RESPONSE_TIMEOUT_MS = 5000;
|
|
32089
32125
|
var RELEASE_LIST_LIMIT_MAX = 100;
|
|
32090
32126
|
function toolResponse(payload) {
|
|
32091
32127
|
return { content: [{ type: "text", text: JSON.stringify(payload, null, 2) }] };
|
|
@@ -32296,7 +32332,8 @@ async function uploadFrontendRelease(http, projectRef, deploymentId, archivePath
|
|
|
32296
32332
|
contentLength: archive.sizeBytes,
|
|
32297
32333
|
contentSha256: archive.sha256,
|
|
32298
32334
|
maxJsonBytes: RESPONSE_MAX_BYTES,
|
|
32299
|
-
timeoutMs: UPLOAD_REQUEST_TIMEOUT_MS
|
|
32335
|
+
timeoutMs: UPLOAD_REQUEST_TIMEOUT_MS,
|
|
32336
|
+
responseTimeoutMs: MUTATION_RESPONSE_TIMEOUT_MS
|
|
32300
32337
|
});
|
|
32301
32338
|
} finally {
|
|
32302
32339
|
await archive.handle.close();
|
|
@@ -32429,7 +32466,10 @@ async function activateFrontendRelease(http, input) {
|
|
|
32429
32466
|
expected_active_release_id: input.expectedActiveReleaseId,
|
|
32430
32467
|
expected_activation_id: input.expectedActivationId,
|
|
32431
32468
|
mutation_id: mutationId
|
|
32432
|
-
}, {
|
|
32469
|
+
}, {
|
|
32470
|
+
maxJsonBytes: RESPONSE_MAX_BYTES,
|
|
32471
|
+
responseTimeoutMs: MUTATION_RESPONSE_TIMEOUT_MS
|
|
32472
|
+
});
|
|
32433
32473
|
const release = activationReceipt(response.data, { ...input, mutationId });
|
|
32434
32474
|
if (!response.ok || !release) {
|
|
32435
32475
|
if (response.status >= 400 && response.status < 500 && response.status !== 408 && !response.transportError) {
|
|
@@ -32473,7 +32513,6 @@ async function activationReadback(http, input, mutationId, activationStatus) {
|
|
|
32473
32513
|
release: readback.release
|
|
32474
32514
|
});
|
|
32475
32515
|
}
|
|
32476
|
-
|
|
32477
32516
|
// src/shared/tools/frontend-tools.ts
|
|
32478
32517
|
function registerFrontendTools(server, http) {
|
|
32479
32518
|
server.tool("frontend", `Immutable prebuilt frontend release control.
|
|
@@ -32548,7 +32587,7 @@ Actions: list_releases, get_release, upload_release, activate_release`, {
|
|
|
32548
32587
|
// package.json
|
|
32549
32588
|
var package_default = {
|
|
32550
32589
|
name: "@supacloud/admin",
|
|
32551
|
-
version: "0.
|
|
32590
|
+
version: "0.18.1",
|
|
32552
32591
|
description: "Platform administration CLI for SupaCloud operators",
|
|
32553
32592
|
type: "module",
|
|
32554
32593
|
main: "./dist/index.js",
|
|
@@ -32582,7 +32621,7 @@ var package_default = {
|
|
|
32582
32621
|
ssh2: "^1.17.0"
|
|
32583
32622
|
},
|
|
32584
32623
|
devDependencies: {
|
|
32585
|
-
"@types/bun": "^1.
|
|
32624
|
+
"@types/bun": "^1.4.0",
|
|
32586
32625
|
"@types/ssh2": "^1.15.5",
|
|
32587
32626
|
typescript: "^7.0.2"
|
|
32588
32627
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supacloud/admin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"description": "Platform administration CLI for SupaCloud operators",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"ssh2": "^1.17.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@types/bun": "^1.
|
|
37
|
+
"@types/bun": "^1.4.0",
|
|
38
38
|
"@types/ssh2": "^1.15.5",
|
|
39
39
|
"typescript": "^7.0.2"
|
|
40
40
|
}
|