@sisense/mcp-server 0.2.2 → 0.2.3
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/{ai-hspmgr2c.js → ai-qt2rw4p0.js} +999 -959
- package/dist/{index-29n08mw7.js → index-0rmh0qta.js} +5 -5
- package/dist/{index-er0yspcy.js → index-6vz3bc2n.js} +552 -385
- package/dist/{index-vx54d05h.js → index-7ztxzw1b.js} +9 -9
- package/dist/{index-tqba2rwh.js → index-86j7fyp7.js} +406 -245
- package/dist/{index-p1pxtmwn.js → index-bgbnagw5.js} +18 -20
- package/dist/{index-d6843g0v.js → index-jatbeegy.js} +9 -7
- package/dist/{index-dxfb3krz.js → index-jgdfekw7.js} +375 -539
- package/dist/{index-qdth51hx.js → index-k71wsmah.js} +8 -1
- package/dist/{index-atgbxy7h.js → index-mxkgxy04.js} +28981 -27209
- package/dist/{index-vrapm0b4.js → index-p5hr1cfd.js} +458 -331
- package/dist/{index-dcrjg3fk.js → index-z44fq2x1.js} +3 -2
- package/dist/sse-server-0d83pnkk.js +54 -0
- package/dist/{sse-server-brx9qtyd.js → sse-server-22mq7fhc.js} +880 -757
- package/dist/{sse-server-3e0efmg2.js → sse-server-d3yx2z0r.js} +1845 -1825
- package/dist/{sse-server-4jjec4fz.js → sse-server-gcjj2741.js} +2081 -1695
- package/dist/{sse-server-rr3dp62e.js → sse-server-kpkj0hbc.js} +22749 -22399
- package/dist/{sse-server-36t17nga.js → sse-server-qhqncg7f.js} +3555 -3657
- package/dist/{sse-server-txz5g5t0.js → sse-server-rrtgkg21.js} +414 -177
- package/dist/{sse-server-nwjjjz6x.js → sse-server-wb2h6nz7.js} +3 -52
- package/dist/{sse-server-qj4zxq0f.js → sse-server-zmcz2c17.js} +12 -24
- package/dist/sse-server.js +69 -35
- package/dist/view.html +609 -544
- package/dist/{widget-renderer-66ws3xtk.js → widget-renderer-wjrpnwpy.js} +12 -12
- package/package.json +3 -3
- package/dist/sse-server-4b60tg0c.js +0 -136
|
@@ -5,6 +5,9 @@ import {
|
|
|
5
5
|
require_dist_cjs1 as require_dist_cjs3,
|
|
6
6
|
require_dist_cjs2 as require_dist_cjs4
|
|
7
7
|
} from "./sse-server-5tmgacdx.js";
|
|
8
|
+
import {
|
|
9
|
+
require_dist_cjs as require_dist_cjs5
|
|
10
|
+
} from "./sse-server-0d83pnkk.js";
|
|
8
11
|
import {
|
|
9
12
|
require_dist_cjs
|
|
10
13
|
} from "./sse-server-4g9za0qq.js";
|
|
@@ -14,7 +17,7 @@ import {
|
|
|
14
17
|
} from "./sse-server-7wcvyxyj.js";
|
|
15
18
|
|
|
16
19
|
// node_modules/@smithy/util-middleware/dist-cjs/index.js
|
|
17
|
-
var
|
|
20
|
+
var require_dist_cjs6 = __commonJS((exports) => {
|
|
18
21
|
var types = require_dist_cjs();
|
|
19
22
|
var getSmithyContext = (context) => context[types.SMITHY_CONTEXT_KEY] || (context[types.SMITHY_CONTEXT_KEY] = {});
|
|
20
23
|
var normalizeProvider = (input) => {
|
|
@@ -27,10 +30,33 @@ var require_dist_cjs5 = __commonJS((exports) => {
|
|
|
27
30
|
exports.normalizeProvider = normalizeProvider;
|
|
28
31
|
});
|
|
29
32
|
|
|
33
|
+
// node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js
|
|
34
|
+
var require_endpoints = __commonJS((exports) => {
|
|
35
|
+
var urlParser = require_dist_cjs5();
|
|
36
|
+
var toEndpointV1 = (endpoint) => {
|
|
37
|
+
if (typeof endpoint === "object") {
|
|
38
|
+
if ("url" in endpoint) {
|
|
39
|
+
const v1Endpoint = urlParser.parseUrl(endpoint.url);
|
|
40
|
+
if (endpoint.headers) {
|
|
41
|
+
v1Endpoint.headers = {};
|
|
42
|
+
for (const [name, values] of Object.entries(endpoint.headers)) {
|
|
43
|
+
v1Endpoint.headers[name.toLowerCase()] = values.join(", ");
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return v1Endpoint;
|
|
47
|
+
}
|
|
48
|
+
return endpoint;
|
|
49
|
+
}
|
|
50
|
+
return urlParser.parseUrl(endpoint);
|
|
51
|
+
};
|
|
52
|
+
exports.toEndpointV1 = toEndpointV1;
|
|
53
|
+
});
|
|
54
|
+
|
|
30
55
|
// node_modules/@smithy/core/dist-cjs/submodules/schema/index.js
|
|
31
56
|
var require_schema = __commonJS((exports) => {
|
|
32
57
|
var protocolHttp = require_dist_cjs2();
|
|
33
|
-
var utilMiddleware =
|
|
58
|
+
var utilMiddleware = require_dist_cjs6();
|
|
59
|
+
var endpoints = require_endpoints();
|
|
34
60
|
var deref = (schemaRef) => {
|
|
35
61
|
if (typeof schemaRef === "function") {
|
|
36
62
|
return schemaRef();
|
|
@@ -105,7 +131,7 @@ var require_schema = __commonJS((exports) => {
|
|
|
105
131
|
var schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
|
|
106
132
|
const { operationSchema } = utilMiddleware.getSmithyContext(context);
|
|
107
133
|
const [, ns, n, t, i, o] = operationSchema ?? [];
|
|
108
|
-
const endpoint = context.endpointV2
|
|
134
|
+
const endpoint = context.endpointV2 ? async () => endpoints.toEndpointV1(context.endpointV2) : config.endpoint;
|
|
109
135
|
const request = await config.protocol.serializeRequest(operation(ns, n, t, i, o), args.input, {
|
|
110
136
|
...config,
|
|
111
137
|
...context,
|
|
@@ -234,11 +260,15 @@ var require_schema = __commonJS((exports) => {
|
|
|
234
260
|
memberList,
|
|
235
261
|
ctor: null
|
|
236
262
|
});
|
|
263
|
+
var traitsCache = [];
|
|
237
264
|
function translateTraits(indicator) {
|
|
238
265
|
if (typeof indicator === "object") {
|
|
239
266
|
return indicator;
|
|
240
267
|
}
|
|
241
268
|
indicator = indicator | 0;
|
|
269
|
+
if (traitsCache[indicator]) {
|
|
270
|
+
return traitsCache[indicator];
|
|
271
|
+
}
|
|
242
272
|
const traits = {};
|
|
243
273
|
let i = 0;
|
|
244
274
|
for (const trait of [
|
|
@@ -254,8 +284,14 @@ var require_schema = __commonJS((exports) => {
|
|
|
254
284
|
traits[trait] = 1;
|
|
255
285
|
}
|
|
256
286
|
}
|
|
257
|
-
return traits;
|
|
287
|
+
return traitsCache[indicator] = traits;
|
|
258
288
|
}
|
|
289
|
+
var anno = {
|
|
290
|
+
it: Symbol.for("@smithy/nor-struct-it"),
|
|
291
|
+
ns: Symbol.for("@smithy/ns")
|
|
292
|
+
};
|
|
293
|
+
var simpleSchemaCacheN = [];
|
|
294
|
+
var simpleSchemaCacheS = {};
|
|
259
295
|
|
|
260
296
|
class NormalizedSchema {
|
|
261
297
|
ref;
|
|
@@ -319,23 +355,47 @@ var require_schema = __commonJS((exports) => {
|
|
|
319
355
|
return isPrototype;
|
|
320
356
|
}
|
|
321
357
|
static of(ref) {
|
|
358
|
+
const keyAble = typeof ref === "function" || typeof ref === "object" && ref !== null;
|
|
359
|
+
if (typeof ref === "number") {
|
|
360
|
+
if (simpleSchemaCacheN[ref]) {
|
|
361
|
+
return simpleSchemaCacheN[ref];
|
|
362
|
+
}
|
|
363
|
+
} else if (typeof ref === "string") {
|
|
364
|
+
if (simpleSchemaCacheS[ref]) {
|
|
365
|
+
return simpleSchemaCacheS[ref];
|
|
366
|
+
}
|
|
367
|
+
} else if (keyAble) {
|
|
368
|
+
if (ref[anno.ns]) {
|
|
369
|
+
return ref[anno.ns];
|
|
370
|
+
}
|
|
371
|
+
}
|
|
322
372
|
const sc = deref(ref);
|
|
323
373
|
if (sc instanceof NormalizedSchema) {
|
|
324
374
|
return sc;
|
|
325
375
|
}
|
|
326
376
|
if (isMemberSchema(sc)) {
|
|
327
|
-
const [
|
|
328
|
-
if (
|
|
329
|
-
Object.assign(
|
|
330
|
-
return
|
|
377
|
+
const [ns2, traits] = sc;
|
|
378
|
+
if (ns2 instanceof NormalizedSchema) {
|
|
379
|
+
Object.assign(ns2.getMergedTraits(), translateTraits(traits));
|
|
380
|
+
return ns2;
|
|
331
381
|
}
|
|
332
382
|
throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(ref, null, 2)}.`);
|
|
333
383
|
}
|
|
334
|
-
|
|
384
|
+
const ns = new NormalizedSchema(sc);
|
|
385
|
+
if (keyAble) {
|
|
386
|
+
return ref[anno.ns] = ns;
|
|
387
|
+
}
|
|
388
|
+
if (typeof sc === "string") {
|
|
389
|
+
return simpleSchemaCacheS[sc] = ns;
|
|
390
|
+
}
|
|
391
|
+
if (typeof sc === "number") {
|
|
392
|
+
return simpleSchemaCacheN[sc] = ns;
|
|
393
|
+
}
|
|
394
|
+
return ns;
|
|
335
395
|
}
|
|
336
396
|
getSchema() {
|
|
337
397
|
const sc = this.schema;
|
|
338
|
-
if (sc[0] === 0) {
|
|
398
|
+
if (Array.isArray(sc) && sc[0] === 0) {
|
|
339
399
|
return sc[4];
|
|
340
400
|
}
|
|
341
401
|
return sc;
|
|
@@ -361,11 +421,17 @@ var require_schema = __commonJS((exports) => {
|
|
|
361
421
|
}
|
|
362
422
|
isStructSchema() {
|
|
363
423
|
const sc = this.getSchema();
|
|
424
|
+
if (typeof sc !== "object") {
|
|
425
|
+
return false;
|
|
426
|
+
}
|
|
364
427
|
const id = sc[0];
|
|
365
428
|
return id === 3 || id === -3 || id === 4;
|
|
366
429
|
}
|
|
367
430
|
isUnionSchema() {
|
|
368
431
|
const sc = this.getSchema();
|
|
432
|
+
if (typeof sc !== "object") {
|
|
433
|
+
return false;
|
|
434
|
+
}
|
|
369
435
|
return sc[0] === 4;
|
|
370
436
|
}
|
|
371
437
|
isBlobSchema() {
|
|
@@ -402,9 +468,7 @@ var require_schema = __commonJS((exports) => {
|
|
|
402
468
|
return !!streaming || this.getSchema() === 42;
|
|
403
469
|
}
|
|
404
470
|
isIdempotencyToken() {
|
|
405
|
-
|
|
406
|
-
const { normalizedTraits, traits, memberTraits } = this;
|
|
407
|
-
return match(normalizedTraits) || match(traits) || match(memberTraits);
|
|
471
|
+
return !!this.getMergedTraits().idempotencyToken;
|
|
408
472
|
}
|
|
409
473
|
getMergedTraits() {
|
|
410
474
|
return this.normalizedTraits ?? (this.normalizedTraits = {
|
|
@@ -446,7 +510,7 @@ var require_schema = __commonJS((exports) => {
|
|
|
446
510
|
if (this.isDocumentSchema()) {
|
|
447
511
|
return member([15, 0], memberName);
|
|
448
512
|
}
|
|
449
|
-
throw new Error(`@smithy/core/schema - ${this.getName(true)} has no
|
|
513
|
+
throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${memberName}.`);
|
|
450
514
|
}
|
|
451
515
|
getMemberSchemas() {
|
|
452
516
|
const buffer = {};
|
|
@@ -475,9 +539,19 @@ var require_schema = __commonJS((exports) => {
|
|
|
475
539
|
throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
|
|
476
540
|
}
|
|
477
541
|
const struct2 = this.getSchema();
|
|
478
|
-
|
|
479
|
-
|
|
542
|
+
const z = struct2[4].length;
|
|
543
|
+
let it = struct2[anno.it];
|
|
544
|
+
if (it && z === it.length) {
|
|
545
|
+
yield* it;
|
|
546
|
+
return;
|
|
547
|
+
}
|
|
548
|
+
it = Array(z);
|
|
549
|
+
for (let i = 0;i < z; ++i) {
|
|
550
|
+
const k = struct2[4][i];
|
|
551
|
+
const v = member([struct2[5][i], 0], k);
|
|
552
|
+
yield it[i] = [k, v];
|
|
480
553
|
}
|
|
554
|
+
struct2[anno.it] = it;
|
|
481
555
|
}
|
|
482
556
|
}
|
|
483
557
|
function member(memberSchema, memberName) {
|
|
@@ -545,10 +619,24 @@ var require_schema = __commonJS((exports) => {
|
|
|
545
619
|
}
|
|
546
620
|
return TypeRegistry.registries.get(namespace);
|
|
547
621
|
}
|
|
622
|
+
copyFrom(other) {
|
|
623
|
+
const { schemas, exceptions } = this;
|
|
624
|
+
for (const [k, v] of other.schemas) {
|
|
625
|
+
if (!schemas.has(k)) {
|
|
626
|
+
schemas.set(k, v);
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
for (const [k, v] of other.exceptions) {
|
|
630
|
+
if (!exceptions.has(k)) {
|
|
631
|
+
exceptions.set(k, v);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
}
|
|
548
635
|
register(shapeId, schema) {
|
|
549
636
|
const qualifiedName = this.normalizeShapeId(shapeId);
|
|
550
|
-
const
|
|
551
|
-
|
|
637
|
+
for (const r of [this, TypeRegistry.for(qualifiedName.split("#")[0])]) {
|
|
638
|
+
r.schemas.set(qualifiedName, schema);
|
|
639
|
+
}
|
|
552
640
|
}
|
|
553
641
|
getSchema(shapeId) {
|
|
554
642
|
const id = this.normalizeShapeId(shapeId);
|
|
@@ -559,12 +647,17 @@ var require_schema = __commonJS((exports) => {
|
|
|
559
647
|
}
|
|
560
648
|
registerError(es, ctor) {
|
|
561
649
|
const $error2 = es;
|
|
562
|
-
const
|
|
563
|
-
|
|
564
|
-
|
|
650
|
+
const ns = $error2[1];
|
|
651
|
+
for (const r of [this, TypeRegistry.for(ns)]) {
|
|
652
|
+
r.schemas.set(ns + "#" + $error2[2], $error2);
|
|
653
|
+
r.exceptions.set($error2, ctor);
|
|
654
|
+
}
|
|
565
655
|
}
|
|
566
656
|
getErrorCtor(es) {
|
|
567
657
|
const $error2 = es;
|
|
658
|
+
if (this.exceptions.has($error2)) {
|
|
659
|
+
return this.exceptions.get($error2);
|
|
660
|
+
}
|
|
568
661
|
const registry = TypeRegistry.for($error2[1]);
|
|
569
662
|
return registry.exceptions.get($error2);
|
|
570
663
|
}
|
|
@@ -616,12 +709,15 @@ var require_schema = __commonJS((exports) => {
|
|
|
616
709
|
exports.serializerMiddlewareOption = serializerMiddlewareOption;
|
|
617
710
|
exports.sim = sim;
|
|
618
711
|
exports.simAdapter = simAdapter;
|
|
712
|
+
exports.simpleSchemaCacheN = simpleSchemaCacheN;
|
|
713
|
+
exports.simpleSchemaCacheS = simpleSchemaCacheS;
|
|
619
714
|
exports.struct = struct;
|
|
715
|
+
exports.traitsCache = traitsCache;
|
|
620
716
|
exports.translateTraits = translateTraits;
|
|
621
717
|
});
|
|
622
718
|
|
|
623
719
|
// node_modules/@smithy/middleware-stack/dist-cjs/index.js
|
|
624
|
-
var
|
|
720
|
+
var require_dist_cjs7 = __commonJS((exports) => {
|
|
625
721
|
var getAllAliases = (name, aliases) => {
|
|
626
722
|
const _aliases = [];
|
|
627
723
|
if (name) {
|
|
@@ -929,26 +1025,24 @@ var require_toBase64 = __commonJS((exports) => {
|
|
|
929
1025
|
});
|
|
930
1026
|
|
|
931
1027
|
// node_modules/@smithy/util-base64/dist-cjs/index.js
|
|
932
|
-
var
|
|
1028
|
+
var require_dist_cjs8 = __commonJS((exports) => {
|
|
933
1029
|
var fromBase64 = require_fromBase64();
|
|
934
1030
|
var toBase64 = require_toBase64();
|
|
1031
|
+
Object.prototype.hasOwnProperty.call(fromBase64, "__proto__") && !Object.prototype.hasOwnProperty.call(exports, "__proto__") && Object.defineProperty(exports, "__proto__", {
|
|
1032
|
+
enumerable: true,
|
|
1033
|
+
value: fromBase64["__proto__"]
|
|
1034
|
+
});
|
|
935
1035
|
Object.keys(fromBase64).forEach(function(k) {
|
|
936
1036
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
});
|
|
1037
|
+
exports[k] = fromBase64[k];
|
|
1038
|
+
});
|
|
1039
|
+
Object.prototype.hasOwnProperty.call(toBase64, "__proto__") && !Object.prototype.hasOwnProperty.call(exports, "__proto__") && Object.defineProperty(exports, "__proto__", {
|
|
1040
|
+
enumerable: true,
|
|
1041
|
+
value: toBase64["__proto__"]
|
|
943
1042
|
});
|
|
944
1043
|
Object.keys(toBase64).forEach(function(k) {
|
|
945
1044
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
946
|
-
|
|
947
|
-
enumerable: true,
|
|
948
|
-
get: function() {
|
|
949
|
-
return toBase64[k];
|
|
950
|
-
}
|
|
951
|
-
});
|
|
1045
|
+
exports[k] = toBase64[k];
|
|
952
1046
|
});
|
|
953
1047
|
});
|
|
954
1048
|
|
|
@@ -956,7 +1050,7 @@ var require_dist_cjs7 = __commonJS((exports) => {
|
|
|
956
1050
|
var require_ChecksumStream = __commonJS((exports) => {
|
|
957
1051
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
958
1052
|
exports.ChecksumStream = undefined;
|
|
959
|
-
var util_base64_1 =
|
|
1053
|
+
var util_base64_1 = require_dist_cjs8();
|
|
960
1054
|
var stream_1 = __require("stream");
|
|
961
1055
|
|
|
962
1056
|
class ChecksumStream extends stream_1.Duplex {
|
|
@@ -965,6 +1059,7 @@ var require_ChecksumStream = __commonJS((exports) => {
|
|
|
965
1059
|
checksum;
|
|
966
1060
|
source;
|
|
967
1061
|
base64Encoder;
|
|
1062
|
+
pendingCallback = null;
|
|
968
1063
|
constructor({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder }) {
|
|
969
1064
|
super();
|
|
970
1065
|
if (typeof source.pipe === "function") {
|
|
@@ -978,11 +1073,21 @@ var require_ChecksumStream = __commonJS((exports) => {
|
|
|
978
1073
|
this.checksumSourceLocation = checksumSourceLocation;
|
|
979
1074
|
this.source.pipe(this);
|
|
980
1075
|
}
|
|
981
|
-
_read(size) {
|
|
1076
|
+
_read(size) {
|
|
1077
|
+
if (this.pendingCallback) {
|
|
1078
|
+
const callback = this.pendingCallback;
|
|
1079
|
+
this.pendingCallback = null;
|
|
1080
|
+
callback();
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
982
1083
|
_write(chunk, encoding, callback) {
|
|
983
1084
|
try {
|
|
984
1085
|
this.checksum.update(chunk);
|
|
985
|
-
this.push(chunk);
|
|
1086
|
+
const canPushMore = this.push(chunk);
|
|
1087
|
+
if (!canPushMore) {
|
|
1088
|
+
this.pendingCallback = callback;
|
|
1089
|
+
return;
|
|
1090
|
+
}
|
|
986
1091
|
} catch (e) {
|
|
987
1092
|
return callback(e);
|
|
988
1093
|
}
|
|
@@ -1032,7 +1137,7 @@ var require_ChecksumStream_browser = __commonJS((exports) => {
|
|
|
1032
1137
|
var require_createChecksumStream_browser = __commonJS((exports) => {
|
|
1033
1138
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1034
1139
|
exports.createChecksumStream = undefined;
|
|
1035
|
-
var util_base64_1 =
|
|
1140
|
+
var util_base64_1 = require_dist_cjs8();
|
|
1036
1141
|
var stream_type_check_1 = require_stream_type_check();
|
|
1037
1142
|
var ChecksumStream_browser_1 = require_ChecksumStream_browser();
|
|
1038
1143
|
var createChecksumStream = ({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder }) => {
|
|
@@ -1288,25 +1393,71 @@ var require_createBufferedReadable = __commonJS((exports) => {
|
|
|
1288
1393
|
}
|
|
1289
1394
|
});
|
|
1290
1395
|
|
|
1291
|
-
// node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js
|
|
1292
|
-
var
|
|
1396
|
+
// node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.browser.js
|
|
1397
|
+
var require_getAwsChunkedEncodingStream_browser = __commonJS((exports) => {
|
|
1293
1398
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1294
1399
|
exports.getAwsChunkedEncodingStream = undefined;
|
|
1295
|
-
var stream_1 = __require("stream");
|
|
1296
1400
|
var getAwsChunkedEncodingStream = (readableStream, options) => {
|
|
1297
1401
|
const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options;
|
|
1298
|
-
const checksumRequired = base64Encoder !== undefined && checksumAlgorithmFn !== undefined && checksumLocationName !== undefined && streamHasher !== undefined;
|
|
1402
|
+
const checksumRequired = base64Encoder !== undefined && bodyLengthChecker !== undefined && checksumAlgorithmFn !== undefined && checksumLocationName !== undefined && streamHasher !== undefined;
|
|
1299
1403
|
const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : undefined;
|
|
1300
|
-
const
|
|
1301
|
-
|
|
1404
|
+
const reader = readableStream.getReader();
|
|
1405
|
+
return new ReadableStream({
|
|
1406
|
+
async pull(controller) {
|
|
1407
|
+
const { value, done } = await reader.read();
|
|
1408
|
+
if (done) {
|
|
1409
|
+
controller.enqueue(`0\r
|
|
1410
|
+
`);
|
|
1411
|
+
if (checksumRequired) {
|
|
1412
|
+
const checksum = base64Encoder(await digest);
|
|
1413
|
+
controller.enqueue(`${checksumLocationName}:${checksum}\r
|
|
1414
|
+
`);
|
|
1415
|
+
controller.enqueue(`\r
|
|
1416
|
+
`);
|
|
1417
|
+
}
|
|
1418
|
+
controller.close();
|
|
1419
|
+
} else {
|
|
1420
|
+
controller.enqueue(`${(bodyLengthChecker(value) || 0).toString(16)}\r
|
|
1421
|
+
${value}\r
|
|
1422
|
+
`);
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
});
|
|
1426
|
+
};
|
|
1427
|
+
exports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
|
|
1428
|
+
});
|
|
1429
|
+
|
|
1430
|
+
// node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js
|
|
1431
|
+
var require_getAwsChunkedEncodingStream = __commonJS((exports) => {
|
|
1432
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1433
|
+
exports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
|
|
1434
|
+
var node_stream_1 = __require("node:stream");
|
|
1435
|
+
var getAwsChunkedEncodingStream_browser_1 = require_getAwsChunkedEncodingStream_browser();
|
|
1436
|
+
var stream_type_check_1 = require_stream_type_check();
|
|
1437
|
+
function getAwsChunkedEncodingStream(stream, options) {
|
|
1438
|
+
const readable = stream;
|
|
1439
|
+
const readableStream = stream;
|
|
1440
|
+
if ((0, stream_type_check_1.isReadableStream)(readableStream)) {
|
|
1441
|
+
return (0, getAwsChunkedEncodingStream_browser_1.getAwsChunkedEncodingStream)(readableStream, options);
|
|
1442
|
+
}
|
|
1443
|
+
const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options;
|
|
1444
|
+
const checksumRequired = base64Encoder !== undefined && checksumAlgorithmFn !== undefined && checksumLocationName !== undefined && streamHasher !== undefined;
|
|
1445
|
+
const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readable) : undefined;
|
|
1446
|
+
const awsChunkedEncodingStream = new node_stream_1.Readable({
|
|
1447
|
+
read: () => {}
|
|
1448
|
+
});
|
|
1449
|
+
readable.on("data", (data) => {
|
|
1302
1450
|
const length = bodyLengthChecker(data) || 0;
|
|
1451
|
+
if (length === 0) {
|
|
1452
|
+
return;
|
|
1453
|
+
}
|
|
1303
1454
|
awsChunkedEncodingStream.push(`${length.toString(16)}\r
|
|
1304
1455
|
`);
|
|
1305
1456
|
awsChunkedEncodingStream.push(data);
|
|
1306
1457
|
awsChunkedEncodingStream.push(`\r
|
|
1307
1458
|
`);
|
|
1308
1459
|
});
|
|
1309
|
-
|
|
1460
|
+
readable.on("end", async () => {
|
|
1310
1461
|
awsChunkedEncodingStream.push(`0\r
|
|
1311
1462
|
`);
|
|
1312
1463
|
if (checksumRequired) {
|
|
@@ -1319,8 +1470,7 @@ var require_getAwsChunkedEncodingStream = __commonJS((exports) => {
|
|
|
1319
1470
|
awsChunkedEncodingStream.push(null);
|
|
1320
1471
|
});
|
|
1321
1472
|
return awsChunkedEncodingStream;
|
|
1322
|
-
}
|
|
1323
|
-
exports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
|
|
1473
|
+
}
|
|
1324
1474
|
});
|
|
1325
1475
|
|
|
1326
1476
|
// node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js
|
|
@@ -1406,7 +1556,7 @@ var require_headStream = __commonJS((exports) => {
|
|
|
1406
1556
|
});
|
|
1407
1557
|
|
|
1408
1558
|
// node_modules/@smithy/util-uri-escape/dist-cjs/index.js
|
|
1409
|
-
var
|
|
1559
|
+
var require_dist_cjs9 = __commonJS((exports) => {
|
|
1410
1560
|
var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);
|
|
1411
1561
|
var hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`;
|
|
1412
1562
|
var escapeUriPath = (uri) => uri.split("/").map(escapeUri).join("/");
|
|
@@ -1415,8 +1565,8 @@ var require_dist_cjs8 = __commonJS((exports) => {
|
|
|
1415
1565
|
});
|
|
1416
1566
|
|
|
1417
1567
|
// node_modules/@smithy/querystring-builder/dist-cjs/index.js
|
|
1418
|
-
var
|
|
1419
|
-
var utilUriEscape =
|
|
1568
|
+
var require_dist_cjs10 = __commonJS((exports) => {
|
|
1569
|
+
var utilUriEscape = require_dist_cjs9();
|
|
1420
1570
|
function buildQueryString(query) {
|
|
1421
1571
|
const parts = [];
|
|
1422
1572
|
for (let key of Object.keys(query).sort()) {
|
|
@@ -1440,13 +1590,30 @@ var require_dist_cjs9 = __commonJS((exports) => {
|
|
|
1440
1590
|
});
|
|
1441
1591
|
|
|
1442
1592
|
// node_modules/@smithy/node-http-handler/dist-cjs/index.js
|
|
1443
|
-
var
|
|
1593
|
+
var require_dist_cjs11 = __commonJS((exports) => {
|
|
1444
1594
|
var protocolHttp = require_dist_cjs2();
|
|
1445
|
-
var querystringBuilder =
|
|
1595
|
+
var querystringBuilder = require_dist_cjs10();
|
|
1446
1596
|
var http = __require("http");
|
|
1447
1597
|
var https = __require("https");
|
|
1448
1598
|
var stream = __require("stream");
|
|
1449
1599
|
var http2 = __require("http2");
|
|
1600
|
+
function buildAbortError(abortSignal) {
|
|
1601
|
+
const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal ? abortSignal.reason : undefined;
|
|
1602
|
+
if (reason) {
|
|
1603
|
+
if (reason instanceof Error) {
|
|
1604
|
+
const abortError3 = new Error("Request aborted");
|
|
1605
|
+
abortError3.name = "AbortError";
|
|
1606
|
+
abortError3.cause = reason;
|
|
1607
|
+
return abortError3;
|
|
1608
|
+
}
|
|
1609
|
+
const abortError2 = new Error(String(reason));
|
|
1610
|
+
abortError2.name = "AbortError";
|
|
1611
|
+
return abortError2;
|
|
1612
|
+
}
|
|
1613
|
+
const abortError = new Error("Request aborted");
|
|
1614
|
+
abortError.name = "AbortError";
|
|
1615
|
+
return abortError;
|
|
1616
|
+
}
|
|
1450
1617
|
var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"];
|
|
1451
1618
|
var getTransformedHeaders = (headers) => {
|
|
1452
1619
|
const transformedHeaders = {};
|
|
@@ -1590,8 +1757,14 @@ var require_dist_cjs10 = __commonJS((exports) => {
|
|
|
1590
1757
|
return;
|
|
1591
1758
|
}
|
|
1592
1759
|
if (body) {
|
|
1593
|
-
|
|
1594
|
-
|
|
1760
|
+
const isBuffer = Buffer.isBuffer(body);
|
|
1761
|
+
const isString = typeof body === "string";
|
|
1762
|
+
if (isBuffer || isString) {
|
|
1763
|
+
if (isBuffer && body.byteLength === 0) {
|
|
1764
|
+
httpRequest.end();
|
|
1765
|
+
} else {
|
|
1766
|
+
httpRequest.end(body);
|
|
1767
|
+
}
|
|
1595
1768
|
return;
|
|
1596
1769
|
}
|
|
1597
1770
|
const uint8 = body;
|
|
@@ -1653,7 +1826,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
1653
1826
|
});
|
|
1654
1827
|
}
|
|
1655
1828
|
resolveDefaultConfig(options) {
|
|
1656
|
-
const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout } = options || {};
|
|
1829
|
+
const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, logger } = options || {};
|
|
1657
1830
|
const keepAlive = true;
|
|
1658
1831
|
const maxSockets = 50;
|
|
1659
1832
|
return {
|
|
@@ -1676,7 +1849,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
1676
1849
|
}
|
|
1677
1850
|
return new https.Agent({ keepAlive, maxSockets, ...httpsAgent });
|
|
1678
1851
|
})(),
|
|
1679
|
-
logger
|
|
1852
|
+
logger
|
|
1680
1853
|
};
|
|
1681
1854
|
}
|
|
1682
1855
|
destroy() {
|
|
@@ -1702,8 +1875,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
1702
1875
|
_reject(arg);
|
|
1703
1876
|
};
|
|
1704
1877
|
if (abortSignal?.aborted) {
|
|
1705
|
-
const abortError =
|
|
1706
|
-
abortError.name = "AbortError";
|
|
1878
|
+
const abortError = buildAbortError(abortSignal);
|
|
1707
1879
|
reject(abortError);
|
|
1708
1880
|
return;
|
|
1709
1881
|
}
|
|
@@ -1769,8 +1941,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
1769
1941
|
if (abortSignal) {
|
|
1770
1942
|
const onAbort = () => {
|
|
1771
1943
|
req.destroy();
|
|
1772
|
-
const abortError =
|
|
1773
|
-
abortError.name = "AbortError";
|
|
1944
|
+
const abortError = buildAbortError(abortSignal);
|
|
1774
1945
|
reject(abortError);
|
|
1775
1946
|
};
|
|
1776
1947
|
if (typeof abortSignal.addEventListener === "function") {
|
|
@@ -1976,8 +2147,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
1976
2147
|
};
|
|
1977
2148
|
if (abortSignal?.aborted) {
|
|
1978
2149
|
fulfilled = true;
|
|
1979
|
-
const abortError =
|
|
1980
|
-
abortError.name = "AbortError";
|
|
2150
|
+
const abortError = buildAbortError(abortSignal);
|
|
1981
2151
|
reject(abortError);
|
|
1982
2152
|
return;
|
|
1983
2153
|
}
|
|
@@ -2039,8 +2209,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
2039
2209
|
if (abortSignal) {
|
|
2040
2210
|
const onAbort = () => {
|
|
2041
2211
|
req.close();
|
|
2042
|
-
const abortError =
|
|
2043
|
-
abortError.name = "AbortError";
|
|
2212
|
+
const abortError = buildAbortError(abortSignal);
|
|
2044
2213
|
rejectWithDestroy(abortError);
|
|
2045
2214
|
};
|
|
2046
2215
|
if (typeof abortSignal.addEventListener === "function") {
|
|
@@ -2143,10 +2312,10 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
2143
2312
|
});
|
|
2144
2313
|
|
|
2145
2314
|
// node_modules/@smithy/fetch-http-handler/dist-cjs/index.js
|
|
2146
|
-
var
|
|
2315
|
+
var require_dist_cjs12 = __commonJS((exports) => {
|
|
2147
2316
|
var protocolHttp = require_dist_cjs2();
|
|
2148
|
-
var querystringBuilder =
|
|
2149
|
-
var utilBase64 =
|
|
2317
|
+
var querystringBuilder = require_dist_cjs10();
|
|
2318
|
+
var utilBase64 = require_dist_cjs8();
|
|
2150
2319
|
function createRequest(url, requestOptions) {
|
|
2151
2320
|
return new Request(url, requestOptions);
|
|
2152
2321
|
}
|
|
@@ -2194,8 +2363,7 @@ var require_dist_cjs11 = __commonJS((exports) => {
|
|
|
2194
2363
|
const keepAlive = this.config.keepAlive === true;
|
|
2195
2364
|
const credentials = this.config.credentials;
|
|
2196
2365
|
if (abortSignal?.aborted) {
|
|
2197
|
-
const abortError =
|
|
2198
|
-
abortError.name = "AbortError";
|
|
2366
|
+
const abortError = buildAbortError(abortSignal);
|
|
2199
2367
|
return Promise.reject(abortError);
|
|
2200
2368
|
}
|
|
2201
2369
|
let path = request.path;
|
|
@@ -2270,8 +2438,7 @@ var require_dist_cjs11 = __commonJS((exports) => {
|
|
|
2270
2438
|
if (abortSignal) {
|
|
2271
2439
|
raceOfPromises.push(new Promise((resolve, reject) => {
|
|
2272
2440
|
const onAbort = () => {
|
|
2273
|
-
const abortError =
|
|
2274
|
-
abortError.name = "AbortError";
|
|
2441
|
+
const abortError = buildAbortError(abortSignal);
|
|
2275
2442
|
reject(abortError);
|
|
2276
2443
|
};
|
|
2277
2444
|
if (typeof abortSignal.addEventListener === "function") {
|
|
@@ -2296,6 +2463,23 @@ var require_dist_cjs11 = __commonJS((exports) => {
|
|
|
2296
2463
|
return this.config ?? {};
|
|
2297
2464
|
}
|
|
2298
2465
|
}
|
|
2466
|
+
function buildAbortError(abortSignal) {
|
|
2467
|
+
const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal ? abortSignal.reason : undefined;
|
|
2468
|
+
if (reason) {
|
|
2469
|
+
if (reason instanceof Error) {
|
|
2470
|
+
const abortError3 = new Error("Request aborted");
|
|
2471
|
+
abortError3.name = "AbortError";
|
|
2472
|
+
abortError3.cause = reason;
|
|
2473
|
+
return abortError3;
|
|
2474
|
+
}
|
|
2475
|
+
const abortError2 = new Error(String(reason));
|
|
2476
|
+
abortError2.name = "AbortError";
|
|
2477
|
+
return abortError2;
|
|
2478
|
+
}
|
|
2479
|
+
const abortError = new Error("Request aborted");
|
|
2480
|
+
abortError.name = "AbortError";
|
|
2481
|
+
return abortError;
|
|
2482
|
+
}
|
|
2299
2483
|
var streamCollector = async (stream) => {
|
|
2300
2484
|
if (typeof Blob === "function" && stream instanceof Blob || stream.constructor?.name === "Blob") {
|
|
2301
2485
|
if (Blob.prototype.arrayBuffer !== undefined) {
|
|
@@ -2354,7 +2538,7 @@ var require_dist_cjs11 = __commonJS((exports) => {
|
|
|
2354
2538
|
});
|
|
2355
2539
|
|
|
2356
2540
|
// node_modules/@smithy/util-hex-encoding/dist-cjs/index.js
|
|
2357
|
-
var
|
|
2541
|
+
var require_dist_cjs13 = __commonJS((exports) => {
|
|
2358
2542
|
var SHORT_TO_HEX = {};
|
|
2359
2543
|
var HEX_TO_SHORT = {};
|
|
2360
2544
|
for (let i = 0;i < 256; i++) {
|
|
@@ -2395,9 +2579,9 @@ var require_dist_cjs12 = __commonJS((exports) => {
|
|
|
2395
2579
|
var require_sdk_stream_mixin_browser = __commonJS((exports) => {
|
|
2396
2580
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2397
2581
|
exports.sdkStreamMixin = undefined;
|
|
2398
|
-
var fetch_http_handler_1 =
|
|
2399
|
-
var util_base64_1 =
|
|
2400
|
-
var util_hex_encoding_1 =
|
|
2582
|
+
var fetch_http_handler_1 = require_dist_cjs12();
|
|
2583
|
+
var util_base64_1 = require_dist_cjs8();
|
|
2584
|
+
var util_hex_encoding_1 = require_dist_cjs13();
|
|
2401
2585
|
var util_utf8_1 = require_dist_cjs4();
|
|
2402
2586
|
var stream_type_check_1 = require_stream_type_check();
|
|
2403
2587
|
var ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed.";
|
|
@@ -2460,7 +2644,7 @@ var require_sdk_stream_mixin_browser = __commonJS((exports) => {
|
|
|
2460
2644
|
var require_sdk_stream_mixin = __commonJS((exports) => {
|
|
2461
2645
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2462
2646
|
exports.sdkStreamMixin = undefined;
|
|
2463
|
-
var node_http_handler_1 =
|
|
2647
|
+
var node_http_handler_1 = require_dist_cjs11();
|
|
2464
2648
|
var util_buffer_from_1 = require_dist_cjs3();
|
|
2465
2649
|
var stream_1 = __require("stream");
|
|
2466
2650
|
var sdk_stream_mixin_browser_1 = require_sdk_stream_mixin_browser();
|
|
@@ -2544,8 +2728,8 @@ var require_splitStream = __commonJS((exports) => {
|
|
|
2544
2728
|
});
|
|
2545
2729
|
|
|
2546
2730
|
// node_modules/@smithy/util-stream/dist-cjs/index.js
|
|
2547
|
-
var
|
|
2548
|
-
var utilBase64 =
|
|
2731
|
+
var require_dist_cjs14 = __commonJS((exports) => {
|
|
2732
|
+
var utilBase64 = require_dist_cjs8();
|
|
2549
2733
|
var utilUtf8 = require_dist_cjs4();
|
|
2550
2734
|
var ChecksumStream = require_ChecksumStream();
|
|
2551
2735
|
var createChecksumStream = require_createChecksumStream();
|
|
@@ -2577,78 +2761,64 @@ var require_dist_cjs13 = __commonJS((exports) => {
|
|
|
2577
2761
|
return utilUtf8.toUtf8(this);
|
|
2578
2762
|
}
|
|
2579
2763
|
}
|
|
2764
|
+
exports.isBlob = streamTypeCheck.isBlob;
|
|
2765
|
+
exports.isReadableStream = streamTypeCheck.isReadableStream;
|
|
2580
2766
|
exports.Uint8ArrayBlobAdapter = Uint8ArrayBlobAdapter;
|
|
2767
|
+
Object.prototype.hasOwnProperty.call(ChecksumStream, "__proto__") && !Object.prototype.hasOwnProperty.call(exports, "__proto__") && Object.defineProperty(exports, "__proto__", {
|
|
2768
|
+
enumerable: true,
|
|
2769
|
+
value: ChecksumStream["__proto__"]
|
|
2770
|
+
});
|
|
2581
2771
|
Object.keys(ChecksumStream).forEach(function(k) {
|
|
2582
2772
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
});
|
|
2773
|
+
exports[k] = ChecksumStream[k];
|
|
2774
|
+
});
|
|
2775
|
+
Object.prototype.hasOwnProperty.call(createChecksumStream, "__proto__") && !Object.prototype.hasOwnProperty.call(exports, "__proto__") && Object.defineProperty(exports, "__proto__", {
|
|
2776
|
+
enumerable: true,
|
|
2777
|
+
value: createChecksumStream["__proto__"]
|
|
2589
2778
|
});
|
|
2590
2779
|
Object.keys(createChecksumStream).forEach(function(k) {
|
|
2591
2780
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
});
|
|
2781
|
+
exports[k] = createChecksumStream[k];
|
|
2782
|
+
});
|
|
2783
|
+
Object.prototype.hasOwnProperty.call(createBufferedReadable, "__proto__") && !Object.prototype.hasOwnProperty.call(exports, "__proto__") && Object.defineProperty(exports, "__proto__", {
|
|
2784
|
+
enumerable: true,
|
|
2785
|
+
value: createBufferedReadable["__proto__"]
|
|
2598
2786
|
});
|
|
2599
2787
|
Object.keys(createBufferedReadable).forEach(function(k) {
|
|
2600
2788
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
});
|
|
2789
|
+
exports[k] = createBufferedReadable[k];
|
|
2790
|
+
});
|
|
2791
|
+
Object.prototype.hasOwnProperty.call(getAwsChunkedEncodingStream, "__proto__") && !Object.prototype.hasOwnProperty.call(exports, "__proto__") && Object.defineProperty(exports, "__proto__", {
|
|
2792
|
+
enumerable: true,
|
|
2793
|
+
value: getAwsChunkedEncodingStream["__proto__"]
|
|
2607
2794
|
});
|
|
2608
2795
|
Object.keys(getAwsChunkedEncodingStream).forEach(function(k) {
|
|
2609
2796
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
});
|
|
2797
|
+
exports[k] = getAwsChunkedEncodingStream[k];
|
|
2798
|
+
});
|
|
2799
|
+
Object.prototype.hasOwnProperty.call(headStream, "__proto__") && !Object.prototype.hasOwnProperty.call(exports, "__proto__") && Object.defineProperty(exports, "__proto__", {
|
|
2800
|
+
enumerable: true,
|
|
2801
|
+
value: headStream["__proto__"]
|
|
2616
2802
|
});
|
|
2617
2803
|
Object.keys(headStream).forEach(function(k) {
|
|
2618
2804
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
});
|
|
2805
|
+
exports[k] = headStream[k];
|
|
2806
|
+
});
|
|
2807
|
+
Object.prototype.hasOwnProperty.call(sdkStreamMixin, "__proto__") && !Object.prototype.hasOwnProperty.call(exports, "__proto__") && Object.defineProperty(exports, "__proto__", {
|
|
2808
|
+
enumerable: true,
|
|
2809
|
+
value: sdkStreamMixin["__proto__"]
|
|
2625
2810
|
});
|
|
2626
2811
|
Object.keys(sdkStreamMixin).forEach(function(k) {
|
|
2627
2812
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
});
|
|
2813
|
+
exports[k] = sdkStreamMixin[k];
|
|
2814
|
+
});
|
|
2815
|
+
Object.prototype.hasOwnProperty.call(splitStream, "__proto__") && !Object.prototype.hasOwnProperty.call(exports, "__proto__") && Object.defineProperty(exports, "__proto__", {
|
|
2816
|
+
enumerable: true,
|
|
2817
|
+
value: splitStream["__proto__"]
|
|
2634
2818
|
});
|
|
2635
2819
|
Object.keys(splitStream).forEach(function(k) {
|
|
2636
2820
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
2637
|
-
|
|
2638
|
-
enumerable: true,
|
|
2639
|
-
get: function() {
|
|
2640
|
-
return splitStream[k];
|
|
2641
|
-
}
|
|
2642
|
-
});
|
|
2643
|
-
});
|
|
2644
|
-
Object.keys(streamTypeCheck).forEach(function(k) {
|
|
2645
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
2646
|
-
Object.defineProperty(exports, k, {
|
|
2647
|
-
enumerable: true,
|
|
2648
|
-
get: function() {
|
|
2649
|
-
return streamTypeCheck[k];
|
|
2650
|
-
}
|
|
2651
|
-
});
|
|
2821
|
+
exports[k] = splitStream[k];
|
|
2652
2822
|
});
|
|
2653
2823
|
});
|
|
2654
2824
|
|
|
@@ -3267,7 +3437,7 @@ var require_randomUUID = __commonJS((exports) => {
|
|
|
3267
3437
|
});
|
|
3268
3438
|
|
|
3269
3439
|
// node_modules/@smithy/uuid/dist-cjs/index.js
|
|
3270
|
-
var
|
|
3440
|
+
var require_dist_cjs15 = __commonJS((exports) => {
|
|
3271
3441
|
var randomUUID = require_randomUUID();
|
|
3272
3442
|
var decimalToHex = Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0"));
|
|
3273
3443
|
var v4 = () => {
|
|
@@ -3285,7 +3455,7 @@ var require_dist_cjs14 = __commonJS((exports) => {
|
|
|
3285
3455
|
|
|
3286
3456
|
// node_modules/@smithy/core/dist-cjs/submodules/serde/index.js
|
|
3287
3457
|
var require_serde = __commonJS((exports) => {
|
|
3288
|
-
var uuid =
|
|
3458
|
+
var uuid = require_dist_cjs15();
|
|
3289
3459
|
var copyDocumentWithTransform = (source, schemaRef, transform = (_) => _) => source;
|
|
3290
3460
|
var parseBoolean = (value) => {
|
|
3291
3461
|
switch (value) {
|
|
@@ -3911,12 +4081,7 @@ var require_serde = __commonJS((exports) => {
|
|
|
3911
4081
|
function nv(input) {
|
|
3912
4082
|
return new NumericValue(String(input), "bigDecimal");
|
|
3913
4083
|
}
|
|
3914
|
-
|
|
3915
|
-
enumerable: true,
|
|
3916
|
-
get: function() {
|
|
3917
|
-
return uuid.v4;
|
|
3918
|
-
}
|
|
3919
|
-
});
|
|
4084
|
+
exports.generateIdempotencyToken = uuid.v4;
|
|
3920
4085
|
exports.LazyJsonString = LazyJsonString;
|
|
3921
4086
|
exports.NumericValue = NumericValue;
|
|
3922
4087
|
exports._parseEpochTimestamp = _parseEpochTimestamp;
|
|
@@ -3962,11 +4127,11 @@ var require_serde = __commonJS((exports) => {
|
|
|
3962
4127
|
|
|
3963
4128
|
// node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js
|
|
3964
4129
|
var require_protocols = __commonJS((exports) => {
|
|
3965
|
-
var utilStream =
|
|
4130
|
+
var utilStream = require_dist_cjs14();
|
|
3966
4131
|
var schema = require_schema();
|
|
3967
4132
|
var serde = require_serde();
|
|
3968
4133
|
var protocolHttp = require_dist_cjs2();
|
|
3969
|
-
var utilBase64 =
|
|
4134
|
+
var utilBase64 = require_dist_cjs8();
|
|
3970
4135
|
var utilUtf8 = require_dist_cjs4();
|
|
3971
4136
|
var collectBody = async (streamBody = new Uint8Array, context) => {
|
|
3972
4137
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -3993,9 +4158,14 @@ var require_protocols = __commonJS((exports) => {
|
|
|
3993
4158
|
|
|
3994
4159
|
class HttpProtocol extends SerdeContext {
|
|
3995
4160
|
options;
|
|
4161
|
+
compositeErrorRegistry;
|
|
3996
4162
|
constructor(options) {
|
|
3997
4163
|
super();
|
|
3998
4164
|
this.options = options;
|
|
4165
|
+
this.compositeErrorRegistry = schema.TypeRegistry.for(options.defaultNamespace);
|
|
4166
|
+
for (const etr of options.errorTypeRegistries ?? []) {
|
|
4167
|
+
this.compositeErrorRegistry.copyFrom(etr);
|
|
4168
|
+
}
|
|
3999
4169
|
}
|
|
4000
4170
|
getRequestType() {
|
|
4001
4171
|
return protocolHttp.HttpRequest;
|
|
@@ -4026,6 +4196,11 @@ var require_protocols = __commonJS((exports) => {
|
|
|
4026
4196
|
for (const [k, v] of endpoint.url.searchParams.entries()) {
|
|
4027
4197
|
request.query[k] = v;
|
|
4028
4198
|
}
|
|
4199
|
+
if (endpoint.headers) {
|
|
4200
|
+
for (const [name, values] of Object.entries(endpoint.headers)) {
|
|
4201
|
+
request.headers[name] = values.join(", ");
|
|
4202
|
+
}
|
|
4203
|
+
}
|
|
4029
4204
|
return request;
|
|
4030
4205
|
} else {
|
|
4031
4206
|
request.protocol = endpoint.protocol;
|
|
@@ -4035,10 +4210,18 @@ var require_protocols = __commonJS((exports) => {
|
|
|
4035
4210
|
request.query = {
|
|
4036
4211
|
...endpoint.query
|
|
4037
4212
|
};
|
|
4213
|
+
if (endpoint.headers) {
|
|
4214
|
+
for (const [name, value] of Object.entries(endpoint.headers)) {
|
|
4215
|
+
request.headers[name] = value;
|
|
4216
|
+
}
|
|
4217
|
+
}
|
|
4038
4218
|
return request;
|
|
4039
4219
|
}
|
|
4040
4220
|
}
|
|
4041
4221
|
setHostPrefix(request, operationSchema, input) {
|
|
4222
|
+
if (this.serdeContext?.disableHostPrefix) {
|
|
4223
|
+
return;
|
|
4224
|
+
}
|
|
4042
4225
|
const inputNs = schema.NormalizedSchema.of(operationSchema.input);
|
|
4043
4226
|
const opTraits = schema.translateTraits(operationSchema.traits ?? {});
|
|
4044
4227
|
if (opTraits.endpoint) {
|
|
@@ -4081,7 +4264,7 @@ var require_protocols = __commonJS((exports) => {
|
|
|
4081
4264
|
});
|
|
4082
4265
|
}
|
|
4083
4266
|
async loadEventStreamCapability() {
|
|
4084
|
-
const { EventStreamSerde } = await import("./index-
|
|
4267
|
+
const { EventStreamSerde } = await import("./index-k71wsmah.js");
|
|
4085
4268
|
return new EventStreamSerde({
|
|
4086
4269
|
marshaller: this.getEventStreamMarshaller(),
|
|
4087
4270
|
serializer: this.serializer,
|
|
@@ -4115,7 +4298,8 @@ var require_protocols = __commonJS((exports) => {
|
|
|
4115
4298
|
const headers = {};
|
|
4116
4299
|
const endpoint = await context.endpoint();
|
|
4117
4300
|
const ns = schema.NormalizedSchema.of(operationSchema?.input);
|
|
4118
|
-
const
|
|
4301
|
+
const payloadMemberNames = [];
|
|
4302
|
+
const payloadMemberSchemas = [];
|
|
4119
4303
|
let hasNonHttpBindingMember = false;
|
|
4120
4304
|
let payload;
|
|
4121
4305
|
const request = new protocolHttp.HttpRequest({
|
|
@@ -4148,6 +4332,11 @@ var require_protocols = __commonJS((exports) => {
|
|
|
4148
4332
|
const memberTraits = memberNs.getMergedTraits() ?? {};
|
|
4149
4333
|
const inputMemberValue = input[memberName];
|
|
4150
4334
|
if (inputMemberValue == null && !memberNs.isIdempotencyToken()) {
|
|
4335
|
+
if (memberTraits.httpLabel) {
|
|
4336
|
+
if (request.path.includes(`{${memberName}+}`) || request.path.includes(`{${memberName}}`)) {
|
|
4337
|
+
throw new Error(`No value provided for input HTTP label: ${memberName}.`);
|
|
4338
|
+
}
|
|
4339
|
+
}
|
|
4151
4340
|
continue;
|
|
4152
4341
|
}
|
|
4153
4342
|
if (memberTraits.httpPayload) {
|
|
@@ -4194,10 +4383,28 @@ var require_protocols = __commonJS((exports) => {
|
|
|
4194
4383
|
delete input[memberName];
|
|
4195
4384
|
} else {
|
|
4196
4385
|
hasNonHttpBindingMember = true;
|
|
4386
|
+
payloadMemberNames.push(memberName);
|
|
4387
|
+
payloadMemberSchemas.push(memberNs);
|
|
4197
4388
|
}
|
|
4198
4389
|
}
|
|
4199
4390
|
if (hasNonHttpBindingMember && input) {
|
|
4200
|
-
|
|
4391
|
+
const [namespace, name] = (ns.getName(true) ?? "#Unknown").split("#");
|
|
4392
|
+
const requiredMembers = ns.getSchema()[6];
|
|
4393
|
+
const payloadSchema = [
|
|
4394
|
+
3,
|
|
4395
|
+
namespace,
|
|
4396
|
+
name,
|
|
4397
|
+
ns.getMergedTraits(),
|
|
4398
|
+
payloadMemberNames,
|
|
4399
|
+
payloadMemberSchemas,
|
|
4400
|
+
undefined
|
|
4401
|
+
];
|
|
4402
|
+
if (requiredMembers) {
|
|
4403
|
+
payloadSchema[6] = requiredMembers;
|
|
4404
|
+
} else {
|
|
4405
|
+
payloadSchema.pop();
|
|
4406
|
+
}
|
|
4407
|
+
serializer.write(payloadSchema, input);
|
|
4201
4408
|
payload = serializer.flush();
|
|
4202
4409
|
}
|
|
4203
4410
|
request.headers = headers;
|
|
@@ -4261,7 +4468,9 @@ var require_protocols = __commonJS((exports) => {
|
|
|
4261
4468
|
if (bytes.byteLength > 0) {
|
|
4262
4469
|
const dataFromBody = await deserializer.read(ns, bytes);
|
|
4263
4470
|
for (const member of nonHttpBindingMembers) {
|
|
4264
|
-
|
|
4471
|
+
if (dataFromBody[member] != null) {
|
|
4472
|
+
dataObject[member] = dataFromBody[member];
|
|
4473
|
+
}
|
|
4265
4474
|
}
|
|
4266
4475
|
}
|
|
4267
4476
|
} else if (nonHttpBindingMembers.discardResponseBody) {
|
|
@@ -4392,7 +4601,7 @@ var require_protocols = __commonJS((exports) => {
|
|
|
4392
4601
|
payload = serializer.flush();
|
|
4393
4602
|
}
|
|
4394
4603
|
}
|
|
4395
|
-
request.headers = headers;
|
|
4604
|
+
request.headers = Object.assign(request.headers, headers);
|
|
4396
4605
|
request.query = query;
|
|
4397
4606
|
request.body = payload;
|
|
4398
4607
|
request.method = "POST";
|
|
@@ -4435,7 +4644,7 @@ var require_protocols = __commonJS((exports) => {
|
|
|
4435
4644
|
var resolvedPath = (resolvedPath2, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => {
|
|
4436
4645
|
if (input != null && input[memberName] !== undefined) {
|
|
4437
4646
|
const labelValue = labelValueProvider();
|
|
4438
|
-
if (labelValue.length <= 0) {
|
|
4647
|
+
if (labelValue == null || labelValue.length <= 0) {
|
|
4439
4648
|
throw new Error("Empty value provided for input HTTP label: " + memberName + ".");
|
|
4440
4649
|
}
|
|
4441
4650
|
resolvedPath2 = resolvedPath2.replace(uriLabel, isGreedyLabel ? labelValue.split("/").map((segment) => extendedEncodeURIComponent(segment)).join("/") : extendedEncodeURIComponent(labelValue));
|
|
@@ -4756,8 +4965,8 @@ var require_protocols = __commonJS((exports) => {
|
|
|
4756
4965
|
});
|
|
4757
4966
|
|
|
4758
4967
|
// node_modules/@smithy/smithy-client/dist-cjs/index.js
|
|
4759
|
-
var
|
|
4760
|
-
var middlewareStack =
|
|
4968
|
+
var require_dist_cjs16 = __commonJS((exports) => {
|
|
4969
|
+
var middlewareStack = require_dist_cjs7();
|
|
4761
4970
|
var protocols = require_protocols();
|
|
4762
4971
|
var types = require_dist_cjs();
|
|
4763
4972
|
var schema = require_schema();
|
|
@@ -4963,9 +5172,8 @@ var require_dist_cjs15 = __commonJS((exports) => {
|
|
|
4963
5172
|
}
|
|
4964
5173
|
}
|
|
4965
5174
|
var SENSITIVE_STRING = "***SensitiveInformation***";
|
|
4966
|
-
var createAggregatedClient = (commands, Client2) => {
|
|
4967
|
-
for (const command of Object.
|
|
4968
|
-
const CommandCtor = commands[command];
|
|
5175
|
+
var createAggregatedClient = (commands, Client2, options) => {
|
|
5176
|
+
for (const [command, CommandCtor] of Object.entries(commands)) {
|
|
4969
5177
|
const methodImpl = async function(args, optionsOrCb, cb) {
|
|
4970
5178
|
const command2 = new CommandCtor(args);
|
|
4971
5179
|
if (typeof optionsOrCb === "function") {
|
|
@@ -4981,6 +5189,33 @@ var require_dist_cjs15 = __commonJS((exports) => {
|
|
|
4981
5189
|
const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
|
|
4982
5190
|
Client2.prototype[methodName] = methodImpl;
|
|
4983
5191
|
}
|
|
5192
|
+
const { paginators = {}, waiters = {} } = options ?? {};
|
|
5193
|
+
for (const [paginatorName, paginatorFn] of Object.entries(paginators)) {
|
|
5194
|
+
if (Client2.prototype[paginatorName] === undefined) {
|
|
5195
|
+
Client2.prototype[paginatorName] = function(commandInput = {}, paginationConfiguration, ...rest) {
|
|
5196
|
+
return paginatorFn({
|
|
5197
|
+
...paginationConfiguration,
|
|
5198
|
+
client: this
|
|
5199
|
+
}, commandInput, ...rest);
|
|
5200
|
+
};
|
|
5201
|
+
}
|
|
5202
|
+
}
|
|
5203
|
+
for (const [waiterName, waiterFn] of Object.entries(waiters)) {
|
|
5204
|
+
if (Client2.prototype[waiterName] === undefined) {
|
|
5205
|
+
Client2.prototype[waiterName] = async function(commandInput = {}, waiterConfiguration, ...rest) {
|
|
5206
|
+
let config = waiterConfiguration;
|
|
5207
|
+
if (typeof waiterConfiguration === "number") {
|
|
5208
|
+
config = {
|
|
5209
|
+
maxWaitTime: waiterConfiguration
|
|
5210
|
+
};
|
|
5211
|
+
}
|
|
5212
|
+
return waiterFn({
|
|
5213
|
+
...config,
|
|
5214
|
+
client: this
|
|
5215
|
+
}, commandInput, ...rest);
|
|
5216
|
+
};
|
|
5217
|
+
}
|
|
5218
|
+
}
|
|
4984
5219
|
};
|
|
4985
5220
|
|
|
4986
5221
|
class ServiceException extends Error {
|
|
@@ -5081,6 +5316,7 @@ var require_dist_cjs15 = __commonJS((exports) => {
|
|
|
5081
5316
|
warningEmitted = true;
|
|
5082
5317
|
}
|
|
5083
5318
|
};
|
|
5319
|
+
var knownAlgorithms = Object.values(types.AlgorithmId);
|
|
5084
5320
|
var getChecksumConfiguration = (runtimeConfig) => {
|
|
5085
5321
|
const checksumAlgorithms = [];
|
|
5086
5322
|
for (const id in types.AlgorithmId) {
|
|
@@ -5093,8 +5329,22 @@ var require_dist_cjs15 = __commonJS((exports) => {
|
|
|
5093
5329
|
checksumConstructor: () => runtimeConfig[algorithmId]
|
|
5094
5330
|
});
|
|
5095
5331
|
}
|
|
5332
|
+
for (const [id, ChecksumCtor] of Object.entries(runtimeConfig.checksumAlgorithms ?? {})) {
|
|
5333
|
+
checksumAlgorithms.push({
|
|
5334
|
+
algorithmId: () => id,
|
|
5335
|
+
checksumConstructor: () => ChecksumCtor
|
|
5336
|
+
});
|
|
5337
|
+
}
|
|
5096
5338
|
return {
|
|
5097
5339
|
addChecksumAlgorithm(algo) {
|
|
5340
|
+
runtimeConfig.checksumAlgorithms = runtimeConfig.checksumAlgorithms ?? {};
|
|
5341
|
+
const id = algo.algorithmId();
|
|
5342
|
+
const ctor = algo.checksumConstructor();
|
|
5343
|
+
if (knownAlgorithms.includes(id)) {
|
|
5344
|
+
runtimeConfig.checksumAlgorithms[id.toUpperCase()] = ctor;
|
|
5345
|
+
} else {
|
|
5346
|
+
runtimeConfig.checksumAlgorithms[id] = ctor;
|
|
5347
|
+
}
|
|
5098
5348
|
checksumAlgorithms.push(algo);
|
|
5099
5349
|
},
|
|
5100
5350
|
checksumAlgorithms() {
|
|
@@ -5105,7 +5355,10 @@ var require_dist_cjs15 = __commonJS((exports) => {
|
|
|
5105
5355
|
var resolveChecksumRuntimeConfig = (clientConfig) => {
|
|
5106
5356
|
const runtimeConfig = {};
|
|
5107
5357
|
clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
|
|
5108
|
-
|
|
5358
|
+
const id = checksumAlgorithm.algorithmId();
|
|
5359
|
+
if (knownAlgorithms.includes(id)) {
|
|
5360
|
+
runtimeConfig[id] = checksumAlgorithm.checksumConstructor();
|
|
5361
|
+
}
|
|
5109
5362
|
});
|
|
5110
5363
|
return runtimeConfig;
|
|
5111
5364
|
};
|
|
@@ -5273,24 +5526,9 @@ var require_dist_cjs15 = __commonJS((exports) => {
|
|
|
5273
5526
|
}
|
|
5274
5527
|
return obj;
|
|
5275
5528
|
};
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
return protocols.collectBody;
|
|
5280
|
-
}
|
|
5281
|
-
});
|
|
5282
|
-
Object.defineProperty(exports, "extendedEncodeURIComponent", {
|
|
5283
|
-
enumerable: true,
|
|
5284
|
-
get: function() {
|
|
5285
|
-
return protocols.extendedEncodeURIComponent;
|
|
5286
|
-
}
|
|
5287
|
-
});
|
|
5288
|
-
Object.defineProperty(exports, "resolvedPath", {
|
|
5289
|
-
enumerable: true,
|
|
5290
|
-
get: function() {
|
|
5291
|
-
return protocols.resolvedPath;
|
|
5292
|
-
}
|
|
5293
|
-
});
|
|
5529
|
+
exports.collectBody = protocols.collectBody;
|
|
5530
|
+
exports.extendedEncodeURIComponent = protocols.extendedEncodeURIComponent;
|
|
5531
|
+
exports.resolvedPath = protocols.resolvedPath;
|
|
5294
5532
|
exports.Client = Client;
|
|
5295
5533
|
exports.Command = Command;
|
|
5296
5534
|
exports.NoOpLogger = NoOpLogger;
|
|
@@ -5314,15 +5552,14 @@ var require_dist_cjs15 = __commonJS((exports) => {
|
|
|
5314
5552
|
exports.take = take;
|
|
5315
5553
|
exports.throwDefaultError = throwDefaultError;
|
|
5316
5554
|
exports.withBaseException = withBaseException;
|
|
5555
|
+
Object.prototype.hasOwnProperty.call(serde, "__proto__") && !Object.prototype.hasOwnProperty.call(exports, "__proto__") && Object.defineProperty(exports, "__proto__", {
|
|
5556
|
+
enumerable: true,
|
|
5557
|
+
value: serde["__proto__"]
|
|
5558
|
+
});
|
|
5317
5559
|
Object.keys(serde).forEach(function(k) {
|
|
5318
5560
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
5319
|
-
|
|
5320
|
-
enumerable: true,
|
|
5321
|
-
get: function() {
|
|
5322
|
-
return serde[k];
|
|
5323
|
-
}
|
|
5324
|
-
});
|
|
5561
|
+
exports[k] = serde[k];
|
|
5325
5562
|
});
|
|
5326
5563
|
});
|
|
5327
5564
|
|
|
5328
|
-
export {
|
|
5565
|
+
export { require_dist_cjs6 as require_dist_cjs, require_dist_cjs8 as require_dist_cjs1, require_dist_cjs9 as require_dist_cjs2, require_dist_cjs11 as require_dist_cjs3, require_dist_cjs13 as require_dist_cjs4, require_dist_cjs14 as require_dist_cjs5, require_endpoints, require_schema, require_tslib, require_dist_cjs15 as require_dist_cjs6, require_serde, require_protocols, require_dist_cjs16 as require_dist_cjs7 };
|