@etainabl/nodejs-sdk 1.3.167 → 1.3.174
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/esm/{chunk-IMDTX6W5.js → chunk-3G3VXGQN.js} +4 -4
- package/dist/esm/{chunk-YFU6P2WU.js → chunk-4G647IUM.js} +2 -2
- package/dist/esm/{chunk-STQV3LF2.js → chunk-4JDZJVKZ.js} +2 -2
- package/dist/esm/{chunk-ZW5YT27C.js → chunk-CRX53WMM.js} +100 -47
- package/dist/esm/chunk-CRX53WMM.js.map +1 -0
- package/dist/esm/{chunk-JI6PVVK3.js → chunk-D74LA2XQ.js} +73 -39
- package/dist/esm/chunk-D74LA2XQ.js.map +1 -0
- package/dist/esm/{chunk-COGWOFTA.js → chunk-HR3W7R4B.js} +393 -542
- package/dist/esm/chunk-HR3W7R4B.js.map +1 -0
- package/dist/esm/{chunk-R2ZTENKB.js → chunk-IX2LY325.js} +4 -3
- package/dist/esm/chunk-IX2LY325.js.map +1 -0
- package/dist/esm/{chunk-72KZNKH6.js → chunk-KWPO3OOT.js} +6 -6
- package/dist/esm/{chunk-3J7VUCCC.js → chunk-UR6FJOYI.js} +12 -10
- package/dist/esm/chunk-UR6FJOYI.js.map +1 -0
- package/dist/esm/{chunk-LARQKHST.js → chunk-XARQOPCZ.js} +2 -2
- package/dist/esm/{chunk-STDLTQUB.js → chunk-YLT3BSXS.js} +2 -2
- package/dist/esm/{chunk-KH6HADHN.js → chunk-Z63CAAFL.js} +14 -2
- package/dist/esm/chunk-Z63CAAFL.js.map +1 -0
- package/dist/esm/{dist-es-LSJVIQHH.js → dist-es-5JWI4CRR.js} +6 -6
- package/dist/esm/{dist-es-RLY6WB4O.js → dist-es-JA6GH4HX.js} +3 -3
- package/dist/esm/{dist-es-DNTTNOP2.js → dist-es-JPDE6SED.js} +7 -6
- package/dist/esm/dist-es-JPDE6SED.js.map +1 -0
- package/dist/esm/{dist-es-4M6QLI3Z.js → dist-es-LLOEQMJI.js} +4 -6
- package/dist/esm/{dist-es-4M6QLI3Z.js.map → dist-es-LLOEQMJI.js.map} +1 -1
- package/dist/esm/{dist-es-QLMS2EJQ.js → dist-es-MHVHZTM3.js} +3 -3
- package/dist/esm/{dist-es-VW2LACDX.js → dist-es-QWNQVMYC.js} +13 -43
- package/dist/esm/dist-es-QWNQVMYC.js.map +1 -0
- package/dist/esm/{dist-es-OELE3ZU6.js → dist-es-XOZGODLE.js} +13 -15
- package/dist/esm/{dist-es-OELE3ZU6.js.map → dist-es-XOZGODLE.js.map} +1 -1
- package/dist/esm/{event-streams-JLZWM2TX.js → event-streams-XQKMMN5Z.js} +52 -12
- package/dist/esm/event-streams-XQKMMN5Z.js.map +1 -0
- package/dist/esm/index.js +2768 -2795
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/{loadSso-OCDZAUKH.js → loadSso-66ZTLICD.js} +30 -31
- package/dist/esm/loadSso-66ZTLICD.js.map +1 -0
- package/dist/esm/{sso-oidc-M2EXZ76U.js → sso-oidc-Z2X56STB.js} +14 -15
- package/dist/esm/{sso-oidc-M2EXZ76U.js.map → sso-oidc-Z2X56STB.js.map} +1 -1
- package/dist/esm/{sts-KKJVSQNR.js → sts-XINKL27T.js} +15 -16
- package/dist/esm/{sts-KKJVSQNR.js.map → sts-XINKL27T.js.map} +1 -1
- package/dist/index.d.cts +168 -242
- package/dist/index.d.ts +168 -242
- package/dist/index.js +62437 -62510
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
- package/dist/esm/chunk-3J7VUCCC.js.map +0 -1
- package/dist/esm/chunk-5UJEKK4C.js +0 -22
- package/dist/esm/chunk-5UJEKK4C.js.map +0 -1
- package/dist/esm/chunk-COGWOFTA.js.map +0 -1
- package/dist/esm/chunk-GA2PLVMV.js +0 -29
- package/dist/esm/chunk-GA2PLVMV.js.map +0 -1
- package/dist/esm/chunk-JI6PVVK3.js.map +0 -1
- package/dist/esm/chunk-KH6HADHN.js.map +0 -1
- package/dist/esm/chunk-R2ZTENKB.js.map +0 -1
- package/dist/esm/chunk-ZW5YT27C.js.map +0 -1
- package/dist/esm/dist-es-DNTTNOP2.js.map +0 -1
- package/dist/esm/dist-es-VW2LACDX.js.map +0 -1
- package/dist/esm/event-streams-JLZWM2TX.js.map +0 -1
- package/dist/esm/loadSso-OCDZAUKH.js.map +0 -1
- /package/dist/esm/{chunk-IMDTX6W5.js.map → chunk-3G3VXGQN.js.map} +0 -0
- /package/dist/esm/{chunk-YFU6P2WU.js.map → chunk-4G647IUM.js.map} +0 -0
- /package/dist/esm/{chunk-STQV3LF2.js.map → chunk-4JDZJVKZ.js.map} +0 -0
- /package/dist/esm/{chunk-72KZNKH6.js.map → chunk-KWPO3OOT.js.map} +0 -0
- /package/dist/esm/{chunk-LARQKHST.js.map → chunk-XARQOPCZ.js.map} +0 -0
- /package/dist/esm/{chunk-STDLTQUB.js.map → chunk-YLT3BSXS.js.map} +0 -0
- /package/dist/esm/{dist-es-LSJVIQHH.js.map → dist-es-5JWI4CRR.js.map} +0 -0
- /package/dist/esm/{dist-es-RLY6WB4O.js.map → dist-es-JA6GH4HX.js.map} +0 -0
- /package/dist/esm/{dist-es-QLMS2EJQ.js.map → dist-es-MHVHZTM3.js.map} +0 -0
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SCHEMA
|
|
3
|
-
} from "./chunk-5UJEKK4C.js";
|
|
4
1
|
import {
|
|
5
2
|
loadConfig,
|
|
6
3
|
memoize,
|
|
7
4
|
parseUrl
|
|
8
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3G3VXGQN.js";
|
|
9
6
|
import {
|
|
10
7
|
HttpRequest,
|
|
11
8
|
HttpResponse,
|
|
@@ -13,24 +10,24 @@ import {
|
|
|
13
10
|
fromBase64,
|
|
14
11
|
fromHex,
|
|
15
12
|
toBase64,
|
|
16
|
-
toHex
|
|
17
|
-
|
|
18
|
-
} from "./chunk-JI6PVVK3.js";
|
|
13
|
+
toHex
|
|
14
|
+
} from "./chunk-D74LA2XQ.js";
|
|
19
15
|
import {
|
|
20
16
|
fromArrayBuffer,
|
|
21
17
|
fromString,
|
|
22
18
|
fromUtf8,
|
|
23
|
-
isArrayBuffer
|
|
24
|
-
|
|
19
|
+
isArrayBuffer,
|
|
20
|
+
toUtf8
|
|
21
|
+
} from "./chunk-Z63CAAFL.js";
|
|
25
22
|
import {
|
|
26
23
|
CONFIG_PREFIX_SEPARATOR
|
|
27
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CRX53WMM.js";
|
|
28
25
|
import {
|
|
29
26
|
setCredentialFeature
|
|
30
27
|
} from "./chunk-UZGMBQZB.js";
|
|
31
28
|
import {
|
|
32
29
|
ProviderError
|
|
33
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-IX2LY325.js";
|
|
34
31
|
|
|
35
32
|
// node_modules/@smithy/middleware-stack/dist-es/MiddlewareStack.js
|
|
36
33
|
var getAllAliases = (name, aliases) => {
|
|
@@ -299,9 +296,12 @@ var priorityWeights = {
|
|
|
299
296
|
|
|
300
297
|
// node_modules/@smithy/smithy-client/dist-es/client.js
|
|
301
298
|
var Client = class {
|
|
299
|
+
config;
|
|
300
|
+
middlewareStack = constructStack();
|
|
301
|
+
initConfig;
|
|
302
|
+
handlers;
|
|
302
303
|
constructor(config) {
|
|
303
304
|
this.config = config;
|
|
304
|
-
this.middlewareStack = constructStack();
|
|
305
305
|
}
|
|
306
306
|
send(command, optionsOrCb, cb) {
|
|
307
307
|
const options = typeof optionsOrCb !== "function" ? optionsOrCb : void 0;
|
|
@@ -398,111 +398,50 @@ var normalizeProvider = (input) => {
|
|
|
398
398
|
return () => promisified;
|
|
399
399
|
};
|
|
400
400
|
|
|
401
|
-
// node_modules/@smithy/core/dist-es/submodules/schema/schemas/
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
return isPrototype;
|
|
425
|
-
}
|
|
426
|
-
};
|
|
427
|
-
ListSchema.symbol = Symbol.for("@smithy/core/schema::ListSchema");
|
|
428
|
-
|
|
429
|
-
// node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js
|
|
430
|
-
var MapSchema = class _MapSchema extends Schema {
|
|
431
|
-
constructor(name, traits, keySchema, valueSchema) {
|
|
432
|
-
super(name, traits);
|
|
433
|
-
this.name = name;
|
|
434
|
-
this.traits = traits;
|
|
435
|
-
this.keySchema = keySchema;
|
|
436
|
-
this.valueSchema = valueSchema;
|
|
437
|
-
this.symbol = _MapSchema.symbol;
|
|
438
|
-
}
|
|
439
|
-
static [Symbol.hasInstance](lhs) {
|
|
440
|
-
const isPrototype = _MapSchema.prototype.isPrototypeOf(lhs);
|
|
441
|
-
if (!isPrototype && typeof lhs === "object" && lhs !== null) {
|
|
442
|
-
const map = lhs;
|
|
443
|
-
return map.symbol === _MapSchema.symbol;
|
|
444
|
-
}
|
|
445
|
-
return isPrototype;
|
|
446
|
-
}
|
|
447
|
-
};
|
|
448
|
-
MapSchema.symbol = Symbol.for("@smithy/core/schema::MapSchema");
|
|
449
|
-
|
|
450
|
-
// node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js
|
|
451
|
-
var StructureSchema = class _StructureSchema extends Schema {
|
|
452
|
-
constructor(name, traits, memberNames, memberList) {
|
|
453
|
-
super(name, traits);
|
|
454
|
-
this.name = name;
|
|
455
|
-
this.traits = traits;
|
|
456
|
-
this.memberNames = memberNames;
|
|
457
|
-
this.memberList = memberList;
|
|
458
|
-
this.symbol = _StructureSchema.symbol;
|
|
459
|
-
this.members = {};
|
|
460
|
-
for (let i = 0; i < memberNames.length; ++i) {
|
|
461
|
-
this.members[memberNames[i]] = Array.isArray(memberList[i]) ? memberList[i] : [memberList[i], 0];
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
static [Symbol.hasInstance](lhs) {
|
|
465
|
-
const isPrototype = _StructureSchema.prototype.isPrototypeOf(lhs);
|
|
466
|
-
if (!isPrototype && typeof lhs === "object" && lhs !== null) {
|
|
467
|
-
const struct = lhs;
|
|
468
|
-
return struct.symbol === _StructureSchema.symbol;
|
|
469
|
-
}
|
|
470
|
-
return isPrototype;
|
|
471
|
-
}
|
|
472
|
-
};
|
|
473
|
-
StructureSchema.symbol = Symbol.for("@smithy/core/schema::StructureSchema");
|
|
474
|
-
|
|
475
|
-
// node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js
|
|
476
|
-
var SimpleSchema = class _SimpleSchema extends Schema {
|
|
477
|
-
constructor(name, schemaRef, traits) {
|
|
478
|
-
super(name, traits);
|
|
479
|
-
this.name = name;
|
|
480
|
-
this.schemaRef = schemaRef;
|
|
481
|
-
this.traits = traits;
|
|
482
|
-
this.symbol = _SimpleSchema.symbol;
|
|
483
|
-
}
|
|
484
|
-
static [Symbol.hasInstance](lhs) {
|
|
485
|
-
const isPrototype = _SimpleSchema.prototype.isPrototypeOf(lhs);
|
|
486
|
-
if (!isPrototype && typeof lhs === "object" && lhs !== null) {
|
|
487
|
-
const sim = lhs;
|
|
488
|
-
return sim.symbol === _SimpleSchema.symbol;
|
|
489
|
-
}
|
|
490
|
-
return isPrototype;
|
|
491
|
-
}
|
|
492
|
-
};
|
|
493
|
-
SimpleSchema.symbol = Symbol.for("@smithy/core/schema::SimpleSchema");
|
|
401
|
+
// node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js
|
|
402
|
+
function translateTraits(indicator) {
|
|
403
|
+
if (typeof indicator === "object") {
|
|
404
|
+
return indicator;
|
|
405
|
+
}
|
|
406
|
+
indicator = indicator | 0;
|
|
407
|
+
const traits = {};
|
|
408
|
+
let i = 0;
|
|
409
|
+
for (const trait of [
|
|
410
|
+
"httpLabel",
|
|
411
|
+
"idempotent",
|
|
412
|
+
"idempotencyToken",
|
|
413
|
+
"sensitive",
|
|
414
|
+
"httpPayload",
|
|
415
|
+
"httpResponseCode",
|
|
416
|
+
"httpQueryParams"
|
|
417
|
+
]) {
|
|
418
|
+
if ((indicator >> i++ & 1) === 1) {
|
|
419
|
+
traits[trait] = 1;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
return traits;
|
|
423
|
+
}
|
|
494
424
|
|
|
495
425
|
// node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js
|
|
496
426
|
var NormalizedSchema = class _NormalizedSchema {
|
|
427
|
+
ref;
|
|
428
|
+
memberName;
|
|
429
|
+
static symbol = Symbol.for("@smithy/nor");
|
|
430
|
+
symbol = _NormalizedSchema.symbol;
|
|
431
|
+
name;
|
|
432
|
+
schema;
|
|
433
|
+
_isMemberSchema;
|
|
434
|
+
traits;
|
|
435
|
+
memberTraits;
|
|
436
|
+
normalizedTraits;
|
|
497
437
|
constructor(ref, memberName) {
|
|
498
438
|
this.ref = ref;
|
|
499
439
|
this.memberName = memberName;
|
|
500
|
-
this.symbol = _NormalizedSchema.symbol;
|
|
501
440
|
const traitStack = [];
|
|
502
441
|
let _ref = ref;
|
|
503
442
|
let schema = ref;
|
|
504
443
|
this._isMemberSchema = false;
|
|
505
|
-
while (
|
|
444
|
+
while (isMemberSchema(_ref)) {
|
|
506
445
|
traitStack.push(_ref[1]);
|
|
507
446
|
_ref = _ref[0];
|
|
508
447
|
schema = deref(_ref);
|
|
@@ -512,261 +451,173 @@ var NormalizedSchema = class _NormalizedSchema {
|
|
|
512
451
|
this.memberTraits = {};
|
|
513
452
|
for (let i = traitStack.length - 1; i >= 0; --i) {
|
|
514
453
|
const traitSet = traitStack[i];
|
|
515
|
-
Object.assign(this.memberTraits,
|
|
454
|
+
Object.assign(this.memberTraits, translateTraits(traitSet));
|
|
516
455
|
}
|
|
517
456
|
} else {
|
|
518
457
|
this.memberTraits = 0;
|
|
519
458
|
}
|
|
520
459
|
if (schema instanceof _NormalizedSchema) {
|
|
521
|
-
|
|
522
|
-
this
|
|
523
|
-
this.
|
|
524
|
-
this.schema = schema.schema;
|
|
525
|
-
this.memberTraits = Object.assign({}, schema.getMemberTraits(), this.getMemberTraits());
|
|
460
|
+
const computedMemberTraits = this.memberTraits;
|
|
461
|
+
Object.assign(this, schema);
|
|
462
|
+
this.memberTraits = Object.assign({}, computedMemberTraits, schema.getMemberTraits(), this.getMemberTraits());
|
|
526
463
|
this.normalizedTraits = void 0;
|
|
527
|
-
this.ref = schema.ref;
|
|
528
464
|
this.memberName = memberName ?? schema.memberName;
|
|
529
465
|
return;
|
|
530
466
|
}
|
|
531
467
|
this.schema = deref(schema);
|
|
532
|
-
if (this.schema
|
|
533
|
-
this.
|
|
468
|
+
if (isStaticSchema(this.schema)) {
|
|
469
|
+
this.name = `${this.schema[1]}#${this.schema[2]}`;
|
|
470
|
+
this.traits = this.schema[3];
|
|
534
471
|
} else {
|
|
472
|
+
this.name = this.memberName ?? String(schema);
|
|
535
473
|
this.traits = 0;
|
|
536
474
|
}
|
|
537
|
-
this.name = (typeof this.schema === "object" ? this.schema?.name : void 0) ?? this.memberName ?? this.getSchemaName();
|
|
538
475
|
if (this._isMemberSchema && !memberName) {
|
|
539
|
-
throw new Error(`@smithy/core/schema - NormalizedSchema member
|
|
476
|
+
throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`);
|
|
540
477
|
}
|
|
541
478
|
}
|
|
542
479
|
static [Symbol.hasInstance](lhs) {
|
|
543
|
-
const isPrototype =
|
|
480
|
+
const isPrototype = this.prototype.isPrototypeOf(lhs);
|
|
544
481
|
if (!isPrototype && typeof lhs === "object" && lhs !== null) {
|
|
545
482
|
const ns = lhs;
|
|
546
|
-
return ns.symbol ===
|
|
483
|
+
return ns.symbol === this.symbol;
|
|
547
484
|
}
|
|
548
485
|
return isPrototype;
|
|
549
486
|
}
|
|
550
|
-
static of(ref
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
return new _NormalizedSchema(ref, memberName);
|
|
555
|
-
}
|
|
556
|
-
static translateTraits(indicator) {
|
|
557
|
-
if (typeof indicator === "object") {
|
|
558
|
-
return indicator;
|
|
559
|
-
}
|
|
560
|
-
indicator = indicator | 0;
|
|
561
|
-
const traits = {};
|
|
562
|
-
if ((indicator & 1) === 1) {
|
|
563
|
-
traits.httpLabel = 1;
|
|
487
|
+
static of(ref) {
|
|
488
|
+
const sc = deref(ref);
|
|
489
|
+
if (sc instanceof _NormalizedSchema) {
|
|
490
|
+
return sc;
|
|
564
491
|
}
|
|
565
|
-
if ((
|
|
566
|
-
traits
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
traits.sensitive = 1;
|
|
573
|
-
}
|
|
574
|
-
if ((indicator >> 4 & 1) === 1) {
|
|
575
|
-
traits.httpPayload = 1;
|
|
576
|
-
}
|
|
577
|
-
if ((indicator >> 5 & 1) === 1) {
|
|
578
|
-
traits.httpResponseCode = 1;
|
|
579
|
-
}
|
|
580
|
-
if ((indicator >> 6 & 1) === 1) {
|
|
581
|
-
traits.httpQueryParams = 1;
|
|
582
|
-
}
|
|
583
|
-
return traits;
|
|
584
|
-
}
|
|
585
|
-
static memberFrom(memberSchema, memberName) {
|
|
586
|
-
if (memberSchema instanceof _NormalizedSchema) {
|
|
587
|
-
memberSchema.memberName = memberName;
|
|
588
|
-
memberSchema._isMemberSchema = true;
|
|
589
|
-
return memberSchema;
|
|
492
|
+
if (isMemberSchema(sc)) {
|
|
493
|
+
const [ns, traits] = sc;
|
|
494
|
+
if (ns instanceof _NormalizedSchema) {
|
|
495
|
+
Object.assign(ns.getMergedTraits(), translateTraits(traits));
|
|
496
|
+
return ns;
|
|
497
|
+
}
|
|
498
|
+
throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(ref, null, 2)}.`);
|
|
590
499
|
}
|
|
591
|
-
return new _NormalizedSchema(
|
|
500
|
+
return new _NormalizedSchema(sc);
|
|
592
501
|
}
|
|
593
502
|
getSchema() {
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
if (this.schema instanceof SimpleSchema) {
|
|
598
|
-
return deref(this.schema.schemaRef);
|
|
503
|
+
const sc = this.schema;
|
|
504
|
+
if (sc[0] === 0) {
|
|
505
|
+
return sc[4];
|
|
599
506
|
}
|
|
600
|
-
return
|
|
507
|
+
return sc;
|
|
601
508
|
}
|
|
602
509
|
getName(withNamespace = false) {
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
return this.name || void 0;
|
|
510
|
+
const { name } = this;
|
|
511
|
+
const short = !withNamespace && name && name.includes("#");
|
|
512
|
+
return short ? name.split("#")[1] : name || void 0;
|
|
609
513
|
}
|
|
610
514
|
getMemberName() {
|
|
611
|
-
if (!this.isMemberSchema()) {
|
|
612
|
-
throw new Error(`@smithy/core/schema - cannot get member name on non-member schema: ${this.getName(true)}`);
|
|
613
|
-
}
|
|
614
515
|
return this.memberName;
|
|
615
516
|
}
|
|
616
517
|
isMemberSchema() {
|
|
617
518
|
return this._isMemberSchema;
|
|
618
519
|
}
|
|
619
|
-
isUnitSchema() {
|
|
620
|
-
return this.getSchema() === "unit";
|
|
621
|
-
}
|
|
622
520
|
isListSchema() {
|
|
623
|
-
const
|
|
624
|
-
|
|
625
|
-
return inner >= SCHEMA.LIST_MODIFIER && inner < SCHEMA.MAP_MODIFIER;
|
|
626
|
-
}
|
|
627
|
-
return inner instanceof ListSchema;
|
|
521
|
+
const sc = this.getSchema();
|
|
522
|
+
return typeof sc === "number" ? sc >= 64 && sc < 128 : sc[0] === 1;
|
|
628
523
|
}
|
|
629
524
|
isMapSchema() {
|
|
630
|
-
const
|
|
631
|
-
|
|
632
|
-
return inner >= SCHEMA.MAP_MODIFIER && inner <= 255;
|
|
633
|
-
}
|
|
634
|
-
return inner instanceof MapSchema;
|
|
635
|
-
}
|
|
636
|
-
isDocumentSchema() {
|
|
637
|
-
return this.getSchema() === SCHEMA.DOCUMENT;
|
|
525
|
+
const sc = this.getSchema();
|
|
526
|
+
return typeof sc === "number" ? sc >= 128 && sc <= 255 : sc[0] === 2;
|
|
638
527
|
}
|
|
639
528
|
isStructSchema() {
|
|
640
|
-
const
|
|
641
|
-
return
|
|
529
|
+
const sc = this.getSchema();
|
|
530
|
+
return sc[0] === 3 || sc[0] === -3;
|
|
642
531
|
}
|
|
643
532
|
isBlobSchema() {
|
|
644
|
-
|
|
533
|
+
const sc = this.getSchema();
|
|
534
|
+
return sc === 21 || sc === 42;
|
|
645
535
|
}
|
|
646
536
|
isTimestampSchema() {
|
|
647
|
-
const
|
|
648
|
-
return typeof
|
|
537
|
+
const sc = this.getSchema();
|
|
538
|
+
return typeof sc === "number" && sc >= 4 && sc <= 7;
|
|
539
|
+
}
|
|
540
|
+
isUnitSchema() {
|
|
541
|
+
return this.getSchema() === "unit";
|
|
542
|
+
}
|
|
543
|
+
isDocumentSchema() {
|
|
544
|
+
return this.getSchema() === 15;
|
|
649
545
|
}
|
|
650
546
|
isStringSchema() {
|
|
651
|
-
return this.getSchema() ===
|
|
547
|
+
return this.getSchema() === 0;
|
|
652
548
|
}
|
|
653
549
|
isBooleanSchema() {
|
|
654
|
-
return this.getSchema() ===
|
|
550
|
+
return this.getSchema() === 2;
|
|
655
551
|
}
|
|
656
552
|
isNumericSchema() {
|
|
657
|
-
return this.getSchema() ===
|
|
553
|
+
return this.getSchema() === 1;
|
|
658
554
|
}
|
|
659
555
|
isBigIntegerSchema() {
|
|
660
|
-
return this.getSchema() ===
|
|
556
|
+
return this.getSchema() === 17;
|
|
661
557
|
}
|
|
662
558
|
isBigDecimalSchema() {
|
|
663
|
-
return this.getSchema() ===
|
|
559
|
+
return this.getSchema() === 19;
|
|
664
560
|
}
|
|
665
561
|
isStreaming() {
|
|
666
|
-
const streaming =
|
|
667
|
-
|
|
668
|
-
return true;
|
|
669
|
-
}
|
|
670
|
-
return this.getSchema() === SCHEMA.STREAMING_BLOB;
|
|
562
|
+
const { streaming } = this.getMergedTraits();
|
|
563
|
+
return !!streaming || this.getSchema() === 42;
|
|
671
564
|
}
|
|
672
565
|
isIdempotencyToken() {
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
return !!this.traits.idempotencyToken;
|
|
677
|
-
}
|
|
678
|
-
return false;
|
|
566
|
+
const match = (traits2) => (traits2 & 4) === 4 || !!traits2?.idempotencyToken;
|
|
567
|
+
const { normalizedTraits, traits, memberTraits } = this;
|
|
568
|
+
return match(normalizedTraits) || match(traits) || match(memberTraits);
|
|
679
569
|
}
|
|
680
570
|
getMergedTraits() {
|
|
681
|
-
|
|
682
|
-
return this.normalizedTraits;
|
|
683
|
-
}
|
|
684
|
-
this.normalizedTraits = {
|
|
571
|
+
return this.normalizedTraits ?? (this.normalizedTraits = {
|
|
685
572
|
...this.getOwnTraits(),
|
|
686
573
|
...this.getMemberTraits()
|
|
687
|
-
};
|
|
688
|
-
return this.normalizedTraits;
|
|
574
|
+
});
|
|
689
575
|
}
|
|
690
576
|
getMemberTraits() {
|
|
691
|
-
return
|
|
577
|
+
return translateTraits(this.memberTraits);
|
|
692
578
|
}
|
|
693
579
|
getOwnTraits() {
|
|
694
|
-
return
|
|
580
|
+
return translateTraits(this.traits);
|
|
695
581
|
}
|
|
696
582
|
getKeySchema() {
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
if (!this.isMapSchema()) {
|
|
701
|
-
throw new Error(`@smithy/core/schema - cannot get key schema for non-map schema: ${this.getName(true)}`);
|
|
583
|
+
const [isDoc, isMap] = [this.isDocumentSchema(), this.isMapSchema()];
|
|
584
|
+
if (!isDoc && !isMap) {
|
|
585
|
+
throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`);
|
|
702
586
|
}
|
|
703
587
|
const schema = this.getSchema();
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
}
|
|
707
|
-
return _NormalizedSchema.memberFrom([schema.keySchema, 0], "key");
|
|
588
|
+
const memberSchema = isDoc ? 15 : schema[4] ?? 0;
|
|
589
|
+
return member([memberSchema, 0], "key");
|
|
708
590
|
}
|
|
709
591
|
getValueSchema() {
|
|
710
|
-
const
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
return _NormalizedSchema.memberFrom([63 & schema, 0], "member");
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
if (schema && typeof schema === "object") {
|
|
719
|
-
if (this.isStructSchema()) {
|
|
720
|
-
throw new Error(`cannot call getValueSchema() with StructureSchema ${this.getName(true)}`);
|
|
721
|
-
}
|
|
722
|
-
const collection = schema;
|
|
723
|
-
if ("valueSchema" in collection) {
|
|
724
|
-
if (this.isMapSchema()) {
|
|
725
|
-
return _NormalizedSchema.memberFrom([collection.valueSchema, 0], "value");
|
|
726
|
-
} else if (this.isListSchema()) {
|
|
727
|
-
return _NormalizedSchema.memberFrom([collection.valueSchema, 0], "member");
|
|
728
|
-
}
|
|
729
|
-
}
|
|
592
|
+
const sc = this.getSchema();
|
|
593
|
+
const [isDoc, isMap, isList] = [this.isDocumentSchema(), this.isMapSchema(), this.isListSchema()];
|
|
594
|
+
const memberSchema = typeof sc === "number" ? 63 & sc : sc && typeof sc === "object" && (isMap || isList) ? sc[3 + sc[0]] : isDoc ? 15 : void 0;
|
|
595
|
+
if (memberSchema != null) {
|
|
596
|
+
return member([memberSchema, 0], isMap ? "value" : "member");
|
|
730
597
|
}
|
|
731
|
-
|
|
732
|
-
return _NormalizedSchema.memberFrom([SCHEMA.DOCUMENT, 0], "value");
|
|
733
|
-
}
|
|
734
|
-
throw new Error(`@smithy/core/schema - the schema ${this.getName(true)} does not have a value member.`);
|
|
735
|
-
}
|
|
736
|
-
hasMemberSchema(member) {
|
|
737
|
-
if (this.isStructSchema()) {
|
|
738
|
-
const struct = this.getSchema();
|
|
739
|
-
return member in struct.members;
|
|
740
|
-
}
|
|
741
|
-
return false;
|
|
598
|
+
throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`);
|
|
742
599
|
}
|
|
743
|
-
getMemberSchema(
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
return _NormalizedSchema.memberFrom(struct.members[member], member);
|
|
600
|
+
getMemberSchema(memberName) {
|
|
601
|
+
const struct = this.getSchema();
|
|
602
|
+
if (this.isStructSchema() && struct[4].includes(memberName)) {
|
|
603
|
+
const i = struct[4].indexOf(memberName);
|
|
604
|
+
const memberSchema = struct[5][i];
|
|
605
|
+
return member(isMemberSchema(memberSchema) ? memberSchema : [memberSchema, 0], memberName);
|
|
750
606
|
}
|
|
751
607
|
if (this.isDocumentSchema()) {
|
|
752
|
-
return
|
|
608
|
+
return member([15, 0], memberName);
|
|
753
609
|
}
|
|
754
|
-
throw new Error(`@smithy/core/schema -
|
|
610
|
+
throw new Error(`@smithy/core/schema - ${this.getName(true)} has no no member=${memberName}.`);
|
|
755
611
|
}
|
|
756
612
|
getMemberSchemas() {
|
|
757
|
-
const
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
}
|
|
762
|
-
if ("members" in struct) {
|
|
763
|
-
const buffer = {};
|
|
764
|
-
for (const member of struct.memberNames) {
|
|
765
|
-
buffer[member] = this.getMemberSchema(member);
|
|
613
|
+
const buffer = {};
|
|
614
|
+
try {
|
|
615
|
+
for (const [k, v] of this.structIterator()) {
|
|
616
|
+
buffer[k] = v;
|
|
766
617
|
}
|
|
767
|
-
|
|
618
|
+
} catch (ignored) {
|
|
768
619
|
}
|
|
769
|
-
return
|
|
620
|
+
return buffer;
|
|
770
621
|
}
|
|
771
622
|
getEventStreamMember() {
|
|
772
623
|
if (this.isStructSchema()) {
|
|
@@ -783,34 +634,26 @@ var NormalizedSchema = class _NormalizedSchema {
|
|
|
783
634
|
return;
|
|
784
635
|
}
|
|
785
636
|
if (!this.isStructSchema()) {
|
|
786
|
-
throw new Error("@smithy/core/schema - cannot
|
|
637
|
+
throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
|
|
787
638
|
}
|
|
788
639
|
const struct = this.getSchema();
|
|
789
|
-
for (let i = 0; i < struct.
|
|
790
|
-
yield [struct
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
getSchemaName() {
|
|
794
|
-
const schema = this.getSchema();
|
|
795
|
-
if (typeof schema === "number") {
|
|
796
|
-
const _schema = 63 & schema;
|
|
797
|
-
const container = 192 & schema;
|
|
798
|
-
const type = Object.entries(SCHEMA).find(([, value]) => {
|
|
799
|
-
return value === _schema;
|
|
800
|
-
})?.[0] ?? "Unknown";
|
|
801
|
-
switch (container) {
|
|
802
|
-
case SCHEMA.MAP_MODIFIER:
|
|
803
|
-
return `${type}Map`;
|
|
804
|
-
case SCHEMA.LIST_MODIFIER:
|
|
805
|
-
return `${type}List`;
|
|
806
|
-
case 0:
|
|
807
|
-
return type;
|
|
808
|
-
}
|
|
640
|
+
for (let i = 0; i < struct[4].length; ++i) {
|
|
641
|
+
yield [struct[4][i], member([struct[5][i], 0], struct[4][i])];
|
|
809
642
|
}
|
|
810
|
-
return "Unknown";
|
|
811
643
|
}
|
|
812
644
|
};
|
|
813
|
-
|
|
645
|
+
function member(memberSchema, memberName) {
|
|
646
|
+
if (memberSchema instanceof NormalizedSchema) {
|
|
647
|
+
return Object.assign(memberSchema, {
|
|
648
|
+
memberName,
|
|
649
|
+
_isMemberSchema: true
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
const internalCtorAccess = NormalizedSchema;
|
|
653
|
+
return new internalCtorAccess(memberSchema, memberName);
|
|
654
|
+
}
|
|
655
|
+
var isMemberSchema = (sc) => Array.isArray(sc) && sc.length === 2;
|
|
656
|
+
var isStaticSchema = (sc) => Array.isArray(sc) && sc.length >= 5;
|
|
814
657
|
|
|
815
658
|
// node_modules/@smithy/smithy-client/dist-es/schemaLogFilter.js
|
|
816
659
|
var SENSITIVE_STRING = "***SensitiveInformation***";
|
|
@@ -835,9 +678,9 @@ function schemaLogFilter(schema, data) {
|
|
|
835
678
|
} else if (ns.isStructSchema() && typeof data === "object") {
|
|
836
679
|
const object = data;
|
|
837
680
|
const newObject = {};
|
|
838
|
-
for (const [
|
|
839
|
-
if (object[
|
|
840
|
-
newObject[
|
|
681
|
+
for (const [member2, memberNs] of ns.structIterator()) {
|
|
682
|
+
if (object[member2] != null) {
|
|
683
|
+
newObject[member2] = schemaLogFilter(memberNs, object[member2]);
|
|
841
684
|
}
|
|
842
685
|
}
|
|
843
686
|
return newObject;
|
|
@@ -847,9 +690,8 @@ function schemaLogFilter(schema, data) {
|
|
|
847
690
|
|
|
848
691
|
// node_modules/@smithy/smithy-client/dist-es/command.js
|
|
849
692
|
var Command = class {
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
}
|
|
693
|
+
middlewareStack = constructStack();
|
|
694
|
+
schema;
|
|
853
695
|
static classBuilder() {
|
|
854
696
|
return new ClassBuilder();
|
|
855
697
|
}
|
|
@@ -876,20 +718,19 @@ var Command = class {
|
|
|
876
718
|
}
|
|
877
719
|
};
|
|
878
720
|
var ClassBuilder = class {
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
}
|
|
721
|
+
_init = () => {
|
|
722
|
+
};
|
|
723
|
+
_ep = {};
|
|
724
|
+
_middlewareFn = () => [];
|
|
725
|
+
_commandName = "";
|
|
726
|
+
_clientName = "";
|
|
727
|
+
_additionalContext = {};
|
|
728
|
+
_smithyContext = {};
|
|
729
|
+
_inputFilterSensitiveLog = void 0;
|
|
730
|
+
_outputFilterSensitiveLog = void 0;
|
|
731
|
+
_serializer = null;
|
|
732
|
+
_deserializer = null;
|
|
733
|
+
_operationSchema;
|
|
893
734
|
init(cb) {
|
|
894
735
|
this._init = cb;
|
|
895
736
|
}
|
|
@@ -940,29 +781,33 @@ var ClassBuilder = class {
|
|
|
940
781
|
const closure = this;
|
|
941
782
|
let CommandRef;
|
|
942
783
|
return CommandRef = class extends Command {
|
|
784
|
+
input;
|
|
943
785
|
static getEndpointParameterInstructions() {
|
|
944
786
|
return closure._ep;
|
|
945
787
|
}
|
|
946
788
|
constructor(...[input]) {
|
|
947
789
|
super();
|
|
948
|
-
this.serialize = closure._serializer;
|
|
949
|
-
this.deserialize = closure._deserializer;
|
|
950
790
|
this.input = input ?? {};
|
|
951
791
|
closure._init(this);
|
|
952
792
|
this.schema = closure._operationSchema;
|
|
953
793
|
}
|
|
954
794
|
resolveMiddleware(stack, configuration, options) {
|
|
795
|
+
const op = closure._operationSchema;
|
|
796
|
+
const input = op?.[4] ?? op?.input;
|
|
797
|
+
const output = op?.[5] ?? op?.output;
|
|
955
798
|
return this.resolveMiddlewareWithContext(stack, configuration, options, {
|
|
956
799
|
CommandCtor: CommandRef,
|
|
957
800
|
middlewareFn: closure._middlewareFn,
|
|
958
801
|
clientName: closure._clientName,
|
|
959
802
|
commandName: closure._commandName,
|
|
960
|
-
inputFilterSensitiveLog: closure._inputFilterSensitiveLog ?? (
|
|
961
|
-
outputFilterSensitiveLog: closure._outputFilterSensitiveLog ?? (
|
|
803
|
+
inputFilterSensitiveLog: closure._inputFilterSensitiveLog ?? (op ? schemaLogFilter.bind(null, input) : (_) => _),
|
|
804
|
+
outputFilterSensitiveLog: closure._outputFilterSensitiveLog ?? (op ? schemaLogFilter.bind(null, output) : (_) => _),
|
|
962
805
|
smithyContext: closure._smithyContext,
|
|
963
806
|
additionalContext: closure._additionalContext
|
|
964
807
|
});
|
|
965
808
|
}
|
|
809
|
+
serialize = closure._serializer;
|
|
810
|
+
deserialize = closure._deserializer;
|
|
966
811
|
};
|
|
967
812
|
}
|
|
968
813
|
};
|
|
@@ -1080,6 +925,56 @@ var getRecursionDetectionPlugin = (options) => ({
|
|
|
1080
925
|
}
|
|
1081
926
|
});
|
|
1082
927
|
|
|
928
|
+
// node_modules/@smithy/smithy-client/dist-es/constants.js
|
|
929
|
+
var SENSITIVE_STRING2 = "***SensitiveInformation***";
|
|
930
|
+
|
|
931
|
+
// node_modules/@smithy/smithy-client/dist-es/exceptions.js
|
|
932
|
+
var ServiceException = class _ServiceException extends Error {
|
|
933
|
+
$fault;
|
|
934
|
+
$response;
|
|
935
|
+
$retryable;
|
|
936
|
+
$metadata;
|
|
937
|
+
constructor(options) {
|
|
938
|
+
super(options.message);
|
|
939
|
+
Object.setPrototypeOf(this, Object.getPrototypeOf(this).constructor.prototype);
|
|
940
|
+
this.name = options.name;
|
|
941
|
+
this.$fault = options.$fault;
|
|
942
|
+
this.$metadata = options.$metadata;
|
|
943
|
+
}
|
|
944
|
+
static isInstance(value) {
|
|
945
|
+
if (!value)
|
|
946
|
+
return false;
|
|
947
|
+
const candidate = value;
|
|
948
|
+
return _ServiceException.prototype.isPrototypeOf(candidate) || Boolean(candidate.$fault) && Boolean(candidate.$metadata) && (candidate.$fault === "client" || candidate.$fault === "server");
|
|
949
|
+
}
|
|
950
|
+
static [Symbol.hasInstance](instance) {
|
|
951
|
+
if (!instance)
|
|
952
|
+
return false;
|
|
953
|
+
const candidate = instance;
|
|
954
|
+
if (this === _ServiceException) {
|
|
955
|
+
return _ServiceException.isInstance(instance);
|
|
956
|
+
}
|
|
957
|
+
if (_ServiceException.isInstance(instance)) {
|
|
958
|
+
if (candidate.name && this.name) {
|
|
959
|
+
return this.prototype.isPrototypeOf(instance) || candidate.name === this.name;
|
|
960
|
+
}
|
|
961
|
+
return this.prototype.isPrototypeOf(instance);
|
|
962
|
+
}
|
|
963
|
+
return false;
|
|
964
|
+
}
|
|
965
|
+
};
|
|
966
|
+
var decorateServiceException = (exception, additions = {}) => {
|
|
967
|
+
Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => {
|
|
968
|
+
if (exception[k] == void 0 || exception[k] === "") {
|
|
969
|
+
exception[k] = v;
|
|
970
|
+
}
|
|
971
|
+
});
|
|
972
|
+
const message = exception.message || exception.Message || "UnknownError";
|
|
973
|
+
exception.message = message;
|
|
974
|
+
delete exception.Message;
|
|
975
|
+
return exception;
|
|
976
|
+
};
|
|
977
|
+
|
|
1083
978
|
// node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/resolveAuthOptions.js
|
|
1084
979
|
var resolveAuthOptions = (candidateAuthOptions, authSchemePreference) => {
|
|
1085
980
|
if (!authSchemePreference || authSchemePreference.length === 0) {
|
|
@@ -1173,7 +1068,10 @@ var deserializerMiddleware = (options, deserializer) => (next, context) => async
|
|
|
1173
1068
|
};
|
|
1174
1069
|
} catch (error) {
|
|
1175
1070
|
Object.defineProperty(error, "$response", {
|
|
1176
|
-
value: response
|
|
1071
|
+
value: response,
|
|
1072
|
+
enumerable: false,
|
|
1073
|
+
writable: false,
|
|
1074
|
+
configurable: false
|
|
1177
1075
|
});
|
|
1178
1076
|
if (!("$metadata" in error)) {
|
|
1179
1077
|
const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
|
|
@@ -1292,8 +1190,8 @@ var getHttpSigningPlugin = (config) => ({
|
|
|
1292
1190
|
|
|
1293
1191
|
// node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js
|
|
1294
1192
|
var DefaultIdentityProviderConfig = class {
|
|
1193
|
+
authSchemes = /* @__PURE__ */ new Map();
|
|
1295
1194
|
constructor(config) {
|
|
1296
|
-
this.authSchemes = /* @__PURE__ */ new Map();
|
|
1297
1195
|
for (const [key, value] of Object.entries(config)) {
|
|
1298
1196
|
if (value !== void 0) {
|
|
1299
1197
|
this.authSchemes.set(key, value);
|
|
@@ -1324,36 +1222,26 @@ var toUint8Array = (data) => {
|
|
|
1324
1222
|
return new Uint8Array(data);
|
|
1325
1223
|
};
|
|
1326
1224
|
|
|
1327
|
-
// node_modules/@smithy/util-stream/dist-es/blob/transforms.js
|
|
1328
|
-
function transformToString(payload, encoding = "utf-8") {
|
|
1329
|
-
if (encoding === "base64") {
|
|
1330
|
-
return toBase64(payload);
|
|
1331
|
-
}
|
|
1332
|
-
return toUtf8(payload);
|
|
1333
|
-
}
|
|
1334
|
-
function transformFromString(str, encoding) {
|
|
1335
|
-
if (encoding === "base64") {
|
|
1336
|
-
return Uint8ArrayBlobAdapter.mutate(fromBase64(str));
|
|
1337
|
-
}
|
|
1338
|
-
return Uint8ArrayBlobAdapter.mutate(fromUtf8(str));
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
1225
|
// node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js
|
|
1342
1226
|
var Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter extends Uint8Array {
|
|
1343
1227
|
static fromString(source, encoding = "utf-8") {
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
return
|
|
1347
|
-
|
|
1348
|
-
|
|
1228
|
+
if (typeof source === "string") {
|
|
1229
|
+
if (encoding === "base64") {
|
|
1230
|
+
return _Uint8ArrayBlobAdapter.mutate(fromBase64(source));
|
|
1231
|
+
}
|
|
1232
|
+
return _Uint8ArrayBlobAdapter.mutate(fromUtf8(source));
|
|
1349
1233
|
}
|
|
1234
|
+
throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
|
|
1350
1235
|
}
|
|
1351
1236
|
static mutate(source) {
|
|
1352
1237
|
Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter.prototype);
|
|
1353
1238
|
return source;
|
|
1354
1239
|
}
|
|
1355
1240
|
transformToString(encoding = "utf-8") {
|
|
1356
|
-
|
|
1241
|
+
if (encoding === "base64") {
|
|
1242
|
+
return toBase64(this);
|
|
1243
|
+
}
|
|
1244
|
+
return toUtf8(this);
|
|
1357
1245
|
}
|
|
1358
1246
|
};
|
|
1359
1247
|
|
|
@@ -1376,52 +1264,22 @@ function extendedEncodeURIComponent(str) {
|
|
|
1376
1264
|
});
|
|
1377
1265
|
}
|
|
1378
1266
|
|
|
1379
|
-
// node_modules/uuid/dist
|
|
1380
|
-
import crypto from "crypto";
|
|
1381
|
-
var rnds8Pool = new Uint8Array(256);
|
|
1382
|
-
var poolPtr = rnds8Pool.length;
|
|
1383
|
-
function rng() {
|
|
1384
|
-
if (poolPtr > rnds8Pool.length - 16) {
|
|
1385
|
-
crypto.randomFillSync(rnds8Pool);
|
|
1386
|
-
poolPtr = 0;
|
|
1387
|
-
}
|
|
1388
|
-
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
1389
|
-
}
|
|
1390
|
-
|
|
1391
|
-
// node_modules/uuid/dist/esm-node/stringify.js
|
|
1392
|
-
var byteToHex = [];
|
|
1393
|
-
for (let i = 0; i < 256; ++i) {
|
|
1394
|
-
byteToHex.push((i + 256).toString(16).slice(1));
|
|
1395
|
-
}
|
|
1396
|
-
function unsafeStringify(arr, offset = 0) {
|
|
1397
|
-
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1400
|
-
// node_modules/uuid/dist/esm-node/native.js
|
|
1267
|
+
// node_modules/@smithy/uuid/dist-es/randomUUID.js
|
|
1401
1268
|
import crypto2 from "crypto";
|
|
1402
|
-
var
|
|
1403
|
-
randomUUID: crypto2.randomUUID
|
|
1404
|
-
};
|
|
1269
|
+
var randomUUID = crypto2.randomUUID.bind(crypto2);
|
|
1405
1270
|
|
|
1406
|
-
// node_modules/uuid/dist
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1271
|
+
// node_modules/@smithy/uuid/dist-es/v4.js
|
|
1272
|
+
var decimalToHex = Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0"));
|
|
1273
|
+
var v4 = () => {
|
|
1274
|
+
if (randomUUID) {
|
|
1275
|
+
return randomUUID();
|
|
1410
1276
|
}
|
|
1411
|
-
|
|
1412
|
-
|
|
1277
|
+
const rnds = new Uint8Array(16);
|
|
1278
|
+
crypto.getRandomValues(rnds);
|
|
1413
1279
|
rnds[6] = rnds[6] & 15 | 64;
|
|
1414
1280
|
rnds[8] = rnds[8] & 63 | 128;
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
for (let i = 0; i < 16; ++i) {
|
|
1418
|
-
buf[offset + i] = rnds[i];
|
|
1419
|
-
}
|
|
1420
|
-
return buf;
|
|
1421
|
-
}
|
|
1422
|
-
return unsafeStringify(rnds);
|
|
1423
|
-
}
|
|
1424
|
-
var v4_default = v4;
|
|
1281
|
+
return decimalToHex[rnds[0]] + decimalToHex[rnds[1]] + decimalToHex[rnds[2]] + decimalToHex[rnds[3]] + "-" + decimalToHex[rnds[4]] + decimalToHex[rnds[5]] + "-" + decimalToHex[rnds[6]] + decimalToHex[rnds[7]] + "-" + decimalToHex[rnds[8]] + decimalToHex[rnds[9]] + "-" + decimalToHex[rnds[10]] + decimalToHex[rnds[11]] + decimalToHex[rnds[12]] + decimalToHex[rnds[13]] + decimalToHex[rnds[14]] + decimalToHex[rnds[15]];
|
|
1282
|
+
};
|
|
1425
1283
|
|
|
1426
1284
|
// node_modules/@smithy/core/dist-es/setFeature.js
|
|
1427
1285
|
function setFeature(context, feature, value) {
|
|
@@ -1436,7 +1294,9 @@ function setFeature(context, feature, value) {
|
|
|
1436
1294
|
}
|
|
1437
1295
|
|
|
1438
1296
|
// node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js
|
|
1439
|
-
var createIsIdentityExpiredFunction = (expirationMs) =>
|
|
1297
|
+
var createIsIdentityExpiredFunction = (expirationMs) => function isIdentityExpired2(identity) {
|
|
1298
|
+
return doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs;
|
|
1299
|
+
};
|
|
1440
1300
|
var EXPIRATION_MS = 3e5;
|
|
1441
1301
|
var isIdentityExpired = createIsIdentityExpiredFunction(EXPIRATION_MS);
|
|
1442
1302
|
var doesIdentityRequireRefresh = (identity) => identity.expiration !== void 0;
|
|
@@ -1517,57 +1377,12 @@ function resolveUserAgentConfig(input) {
|
|
|
1517
1377
|
});
|
|
1518
1378
|
}
|
|
1519
1379
|
|
|
1520
|
-
// node_modules/@smithy/smithy-client/dist-es/constants.js
|
|
1521
|
-
var SENSITIVE_STRING2 = "***SensitiveInformation***";
|
|
1522
|
-
|
|
1523
|
-
// node_modules/@smithy/smithy-client/dist-es/exceptions.js
|
|
1524
|
-
var ServiceException = class _ServiceException extends Error {
|
|
1525
|
-
constructor(options) {
|
|
1526
|
-
super(options.message);
|
|
1527
|
-
Object.setPrototypeOf(this, Object.getPrototypeOf(this).constructor.prototype);
|
|
1528
|
-
this.name = options.name;
|
|
1529
|
-
this.$fault = options.$fault;
|
|
1530
|
-
this.$metadata = options.$metadata;
|
|
1531
|
-
}
|
|
1532
|
-
static isInstance(value) {
|
|
1533
|
-
if (!value)
|
|
1534
|
-
return false;
|
|
1535
|
-
const candidate = value;
|
|
1536
|
-
return _ServiceException.prototype.isPrototypeOf(candidate) || Boolean(candidate.$fault) && Boolean(candidate.$metadata) && (candidate.$fault === "client" || candidate.$fault === "server");
|
|
1537
|
-
}
|
|
1538
|
-
static [Symbol.hasInstance](instance) {
|
|
1539
|
-
if (!instance)
|
|
1540
|
-
return false;
|
|
1541
|
-
const candidate = instance;
|
|
1542
|
-
if (this === _ServiceException) {
|
|
1543
|
-
return _ServiceException.isInstance(instance);
|
|
1544
|
-
}
|
|
1545
|
-
if (_ServiceException.isInstance(instance)) {
|
|
1546
|
-
if (candidate.name && this.name) {
|
|
1547
|
-
return this.prototype.isPrototypeOf(instance) || candidate.name === this.name;
|
|
1548
|
-
}
|
|
1549
|
-
return this.prototype.isPrototypeOf(instance);
|
|
1550
|
-
}
|
|
1551
|
-
return false;
|
|
1552
|
-
}
|
|
1553
|
-
};
|
|
1554
|
-
var decorateServiceException = (exception, additions = {}) => {
|
|
1555
|
-
Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => {
|
|
1556
|
-
if (exception[k] == void 0 || exception[k] === "") {
|
|
1557
|
-
exception[k] = v;
|
|
1558
|
-
}
|
|
1559
|
-
});
|
|
1560
|
-
const message = exception.message || exception.Message || "UnknownError";
|
|
1561
|
-
exception.message = message;
|
|
1562
|
-
delete exception.Message;
|
|
1563
|
-
return exception;
|
|
1564
|
-
};
|
|
1565
|
-
|
|
1566
1380
|
// node_modules/@smithy/util-endpoints/dist-es/cache/EndpointCache.js
|
|
1567
1381
|
var EndpointCache = class {
|
|
1382
|
+
capacity;
|
|
1383
|
+
data = /* @__PURE__ */ new Map();
|
|
1384
|
+
parameters = [];
|
|
1568
1385
|
constructor({ size, params }) {
|
|
1569
|
-
this.data = /* @__PURE__ */ new Map();
|
|
1570
|
-
this.parameters = [];
|
|
1571
1386
|
this.capacity = size ?? 50;
|
|
1572
1387
|
if (params) {
|
|
1573
1388
|
this.parameters = params;
|
|
@@ -1832,22 +1647,24 @@ var evaluateExpression = (obj, keyName, options) => {
|
|
|
1832
1647
|
if (typeof obj === "string") {
|
|
1833
1648
|
return evaluateTemplate(obj, options);
|
|
1834
1649
|
} else if (obj["fn"]) {
|
|
1835
|
-
return callFunction(obj, options);
|
|
1650
|
+
return group.callFunction(obj, options);
|
|
1836
1651
|
} else if (obj["ref"]) {
|
|
1837
1652
|
return getReferenceValue(obj, options);
|
|
1838
1653
|
}
|
|
1839
1654
|
throw new EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`);
|
|
1840
1655
|
};
|
|
1841
|
-
|
|
1842
|
-
// node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js
|
|
1843
1656
|
var callFunction = ({ fn, argv }, options) => {
|
|
1844
|
-
const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : evaluateExpression(arg, "arg", options));
|
|
1657
|
+
const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : group.evaluateExpression(arg, "arg", options));
|
|
1845
1658
|
const fnSegments = fn.split(".");
|
|
1846
1659
|
if (fnSegments[0] in customEndpointFunctions && fnSegments[1] != null) {
|
|
1847
1660
|
return customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs);
|
|
1848
1661
|
}
|
|
1849
1662
|
return endpointFunctions[fn](...evaluatedArgs);
|
|
1850
1663
|
};
|
|
1664
|
+
var group = {
|
|
1665
|
+
evaluateExpression,
|
|
1666
|
+
callFunction
|
|
1667
|
+
};
|
|
1851
1668
|
|
|
1852
1669
|
// node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js
|
|
1853
1670
|
var evaluateCondition = ({ assign, ...fnArgs }, options) => {
|
|
@@ -1896,7 +1713,11 @@ var getEndpointHeaders = (headers, options) => Object.entries(headers).reduce((a
|
|
|
1896
1713
|
})
|
|
1897
1714
|
}), {});
|
|
1898
1715
|
|
|
1899
|
-
// node_modules/@smithy/util-endpoints/dist-es/utils/
|
|
1716
|
+
// node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js
|
|
1717
|
+
var getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({
|
|
1718
|
+
...acc,
|
|
1719
|
+
[propertyKey]: group2.getEndpointProperty(propertyVal, options)
|
|
1720
|
+
}), {});
|
|
1900
1721
|
var getEndpointProperty = (property, options) => {
|
|
1901
1722
|
if (Array.isArray(property)) {
|
|
1902
1723
|
return property.map((propertyEntry) => getEndpointProperty(propertyEntry, options));
|
|
@@ -1908,19 +1729,17 @@ var getEndpointProperty = (property, options) => {
|
|
|
1908
1729
|
if (property === null) {
|
|
1909
1730
|
throw new EndpointError(`Unexpected endpoint property: ${property}`);
|
|
1910
1731
|
}
|
|
1911
|
-
return getEndpointProperties(property, options);
|
|
1732
|
+
return group2.getEndpointProperties(property, options);
|
|
1912
1733
|
case "boolean":
|
|
1913
1734
|
return property;
|
|
1914
1735
|
default:
|
|
1915
1736
|
throw new EndpointError(`Unexpected endpoint property type: ${typeof property}`);
|
|
1916
1737
|
}
|
|
1917
1738
|
};
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
[propertyKey]: getEndpointProperty(propertyVal, options)
|
|
1923
|
-
}), {});
|
|
1739
|
+
var group2 = {
|
|
1740
|
+
getEndpointProperty,
|
|
1741
|
+
getEndpointProperties
|
|
1742
|
+
};
|
|
1924
1743
|
|
|
1925
1744
|
// node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointUrl.js
|
|
1926
1745
|
var getEndpointUrl = (endpointUrl, options) => {
|
|
@@ -1973,19 +1792,6 @@ var evaluateErrorRule = (errorRule, options) => {
|
|
|
1973
1792
|
}));
|
|
1974
1793
|
};
|
|
1975
1794
|
|
|
1976
|
-
// node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTreeRule.js
|
|
1977
|
-
var evaluateTreeRule = (treeRule, options) => {
|
|
1978
|
-
const { conditions, rules } = treeRule;
|
|
1979
|
-
const { result, referenceRecord } = evaluateConditions(conditions, options);
|
|
1980
|
-
if (!result) {
|
|
1981
|
-
return;
|
|
1982
|
-
}
|
|
1983
|
-
return evaluateRules(rules, {
|
|
1984
|
-
...options,
|
|
1985
|
-
referenceRecord: { ...options.referenceRecord, ...referenceRecord }
|
|
1986
|
-
});
|
|
1987
|
-
};
|
|
1988
|
-
|
|
1989
1795
|
// node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js
|
|
1990
1796
|
var evaluateRules = (rules, options) => {
|
|
1991
1797
|
for (const rule of rules) {
|
|
@@ -1997,7 +1803,7 @@ var evaluateRules = (rules, options) => {
|
|
|
1997
1803
|
} else if (rule.type === "error") {
|
|
1998
1804
|
evaluateErrorRule(rule, options);
|
|
1999
1805
|
} else if (rule.type === "tree") {
|
|
2000
|
-
const endpointOrUndefined = evaluateTreeRule(rule, options);
|
|
1806
|
+
const endpointOrUndefined = group3.evaluateTreeRule(rule, options);
|
|
2001
1807
|
if (endpointOrUndefined) {
|
|
2002
1808
|
return endpointOrUndefined;
|
|
2003
1809
|
}
|
|
@@ -2007,6 +1813,21 @@ var evaluateRules = (rules, options) => {
|
|
|
2007
1813
|
}
|
|
2008
1814
|
throw new EndpointError(`Rules evaluation failed`);
|
|
2009
1815
|
};
|
|
1816
|
+
var evaluateTreeRule = (treeRule, options) => {
|
|
1817
|
+
const { conditions, rules } = treeRule;
|
|
1818
|
+
const { result, referenceRecord } = evaluateConditions(conditions, options);
|
|
1819
|
+
if (!result) {
|
|
1820
|
+
return;
|
|
1821
|
+
}
|
|
1822
|
+
return group3.evaluateRules(rules, {
|
|
1823
|
+
...options,
|
|
1824
|
+
referenceRecord: { ...options.referenceRecord, ...referenceRecord }
|
|
1825
|
+
});
|
|
1826
|
+
};
|
|
1827
|
+
var group3 = {
|
|
1828
|
+
evaluateRules,
|
|
1829
|
+
evaluateTreeRule
|
|
1830
|
+
};
|
|
2010
1831
|
|
|
2011
1832
|
// node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js
|
|
2012
1833
|
var resolveEndpoint = (ruleSetObject, options) => {
|
|
@@ -2128,14 +1949,11 @@ var partitions_default = {
|
|
|
2128
1949
|
"ap-southeast-5": {
|
|
2129
1950
|
description: "Asia Pacific (Malaysia)"
|
|
2130
1951
|
},
|
|
2131
|
-
"ap-southeast-6": {
|
|
2132
|
-
description: "Asia Pacific (New Zealand)"
|
|
2133
|
-
},
|
|
2134
1952
|
"ap-southeast-7": {
|
|
2135
1953
|
description: "Asia Pacific (Thailand)"
|
|
2136
1954
|
},
|
|
2137
1955
|
"aws-global": {
|
|
2138
|
-
description: "
|
|
1956
|
+
description: "AWS Standard global region"
|
|
2139
1957
|
},
|
|
2140
1958
|
"ca-central-1": {
|
|
2141
1959
|
description: "Canada (Central)"
|
|
@@ -2208,7 +2026,7 @@ var partitions_default = {
|
|
|
2208
2026
|
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
2209
2027
|
regions: {
|
|
2210
2028
|
"aws-cn-global": {
|
|
2211
|
-
description: "
|
|
2029
|
+
description: "AWS China global region"
|
|
2212
2030
|
},
|
|
2213
2031
|
"cn-north-1": {
|
|
2214
2032
|
description: "China (Beijing)"
|
|
@@ -2218,26 +2036,32 @@ var partitions_default = {
|
|
|
2218
2036
|
}
|
|
2219
2037
|
}
|
|
2220
2038
|
}, {
|
|
2221
|
-
id: "aws-
|
|
2039
|
+
id: "aws-us-gov",
|
|
2222
2040
|
outputs: {
|
|
2223
|
-
dnsSuffix: "amazonaws.
|
|
2224
|
-
dualStackDnsSuffix: "api.
|
|
2225
|
-
implicitGlobalRegion: "
|
|
2226
|
-
name: "aws-
|
|
2041
|
+
dnsSuffix: "amazonaws.com",
|
|
2042
|
+
dualStackDnsSuffix: "api.aws",
|
|
2043
|
+
implicitGlobalRegion: "us-gov-west-1",
|
|
2044
|
+
name: "aws-us-gov",
|
|
2227
2045
|
supportsDualStack: true,
|
|
2228
2046
|
supportsFIPS: true
|
|
2229
2047
|
},
|
|
2230
|
-
regionRegex: "^
|
|
2048
|
+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
2231
2049
|
regions: {
|
|
2232
|
-
"
|
|
2233
|
-
description: "
|
|
2050
|
+
"aws-us-gov-global": {
|
|
2051
|
+
description: "AWS GovCloud (US) global region"
|
|
2052
|
+
},
|
|
2053
|
+
"us-gov-east-1": {
|
|
2054
|
+
description: "AWS GovCloud (US-East)"
|
|
2055
|
+
},
|
|
2056
|
+
"us-gov-west-1": {
|
|
2057
|
+
description: "AWS GovCloud (US-West)"
|
|
2234
2058
|
}
|
|
2235
2059
|
}
|
|
2236
2060
|
}, {
|
|
2237
2061
|
id: "aws-iso",
|
|
2238
2062
|
outputs: {
|
|
2239
2063
|
dnsSuffix: "c2s.ic.gov",
|
|
2240
|
-
dualStackDnsSuffix: "
|
|
2064
|
+
dualStackDnsSuffix: "c2s.ic.gov",
|
|
2241
2065
|
implicitGlobalRegion: "us-iso-east-1",
|
|
2242
2066
|
name: "aws-iso",
|
|
2243
2067
|
supportsDualStack: false,
|
|
@@ -2246,7 +2070,7 @@ var partitions_default = {
|
|
|
2246
2070
|
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
2247
2071
|
regions: {
|
|
2248
2072
|
"aws-iso-global": {
|
|
2249
|
-
description: "
|
|
2073
|
+
description: "AWS ISO (US) global region"
|
|
2250
2074
|
},
|
|
2251
2075
|
"us-iso-east-1": {
|
|
2252
2076
|
description: "US ISO East"
|
|
@@ -2259,7 +2083,7 @@ var partitions_default = {
|
|
|
2259
2083
|
id: "aws-iso-b",
|
|
2260
2084
|
outputs: {
|
|
2261
2085
|
dnsSuffix: "sc2s.sgov.gov",
|
|
2262
|
-
dualStackDnsSuffix: "
|
|
2086
|
+
dualStackDnsSuffix: "sc2s.sgov.gov",
|
|
2263
2087
|
implicitGlobalRegion: "us-isob-east-1",
|
|
2264
2088
|
name: "aws-iso-b",
|
|
2265
2089
|
supportsDualStack: false,
|
|
@@ -2268,7 +2092,7 @@ var partitions_default = {
|
|
|
2268
2092
|
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
2269
2093
|
regions: {
|
|
2270
2094
|
"aws-iso-b-global": {
|
|
2271
|
-
description: "
|
|
2095
|
+
description: "AWS ISOB (US) global region"
|
|
2272
2096
|
},
|
|
2273
2097
|
"us-isob-east-1": {
|
|
2274
2098
|
description: "US ISOB East (Ohio)"
|
|
@@ -2278,7 +2102,7 @@ var partitions_default = {
|
|
|
2278
2102
|
id: "aws-iso-e",
|
|
2279
2103
|
outputs: {
|
|
2280
2104
|
dnsSuffix: "cloud.adc-e.uk",
|
|
2281
|
-
dualStackDnsSuffix: "
|
|
2105
|
+
dualStackDnsSuffix: "cloud.adc-e.uk",
|
|
2282
2106
|
implicitGlobalRegion: "eu-isoe-west-1",
|
|
2283
2107
|
name: "aws-iso-e",
|
|
2284
2108
|
supportsDualStack: false,
|
|
@@ -2287,7 +2111,7 @@ var partitions_default = {
|
|
|
2287
2111
|
regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
|
|
2288
2112
|
regions: {
|
|
2289
2113
|
"aws-iso-e-global": {
|
|
2290
|
-
description: "
|
|
2114
|
+
description: "AWS ISOE (Europe) global region"
|
|
2291
2115
|
},
|
|
2292
2116
|
"eu-isoe-west-1": {
|
|
2293
2117
|
description: "EU ISOE West"
|
|
@@ -2297,7 +2121,7 @@ var partitions_default = {
|
|
|
2297
2121
|
id: "aws-iso-f",
|
|
2298
2122
|
outputs: {
|
|
2299
2123
|
dnsSuffix: "csp.hci.ic.gov",
|
|
2300
|
-
dualStackDnsSuffix: "
|
|
2124
|
+
dualStackDnsSuffix: "csp.hci.ic.gov",
|
|
2301
2125
|
implicitGlobalRegion: "us-isof-south-1",
|
|
2302
2126
|
name: "aws-iso-f",
|
|
2303
2127
|
supportsDualStack: false,
|
|
@@ -2306,7 +2130,7 @@ var partitions_default = {
|
|
|
2306
2130
|
regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
|
|
2307
2131
|
regions: {
|
|
2308
2132
|
"aws-iso-f-global": {
|
|
2309
|
-
description: "
|
|
2133
|
+
description: "AWS ISOF global region"
|
|
2310
2134
|
},
|
|
2311
2135
|
"us-isof-east-1": {
|
|
2312
2136
|
description: "US ISOF EAST"
|
|
@@ -2316,25 +2140,19 @@ var partitions_default = {
|
|
|
2316
2140
|
}
|
|
2317
2141
|
}
|
|
2318
2142
|
}, {
|
|
2319
|
-
id: "aws-
|
|
2143
|
+
id: "aws-eusc",
|
|
2320
2144
|
outputs: {
|
|
2321
|
-
dnsSuffix: "amazonaws.
|
|
2322
|
-
dualStackDnsSuffix: "
|
|
2323
|
-
implicitGlobalRegion: "
|
|
2324
|
-
name: "aws-
|
|
2325
|
-
supportsDualStack:
|
|
2145
|
+
dnsSuffix: "amazonaws.eu",
|
|
2146
|
+
dualStackDnsSuffix: "amazonaws.eu",
|
|
2147
|
+
implicitGlobalRegion: "eusc-de-east-1",
|
|
2148
|
+
name: "aws-eusc",
|
|
2149
|
+
supportsDualStack: false,
|
|
2326
2150
|
supportsFIPS: true
|
|
2327
2151
|
},
|
|
2328
|
-
regionRegex: "^
|
|
2152
|
+
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
|
|
2329
2153
|
regions: {
|
|
2330
|
-
"
|
|
2331
|
-
description: "
|
|
2332
|
-
},
|
|
2333
|
-
"us-gov-east-1": {
|
|
2334
|
-
description: "AWS GovCloud (US-East)"
|
|
2335
|
-
},
|
|
2336
|
-
"us-gov-west-1": {
|
|
2337
|
-
description: "AWS GovCloud (US-West)"
|
|
2154
|
+
"eusc-de-east-1": {
|
|
2155
|
+
description: "EU (Germany)"
|
|
2338
2156
|
}
|
|
2339
2157
|
}
|
|
2340
2158
|
}],
|
|
@@ -3462,6 +3280,20 @@ var getUserAgentPlugin = (config) => ({
|
|
|
3462
3280
|
}
|
|
3463
3281
|
});
|
|
3464
3282
|
|
|
3283
|
+
// node_modules/@smithy/config-resolver/dist-es/regionConfig/checkRegion.js
|
|
3284
|
+
var validRegions = /* @__PURE__ */ new Set();
|
|
3285
|
+
var checkRegion = (region, check = isValidHostLabel) => {
|
|
3286
|
+
if (!validRegions.has(region) && !check(region)) {
|
|
3287
|
+
if (region === "*") {
|
|
3288
|
+
console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);
|
|
3289
|
+
} else {
|
|
3290
|
+
throw new Error(`Region not accepted: region="${region}" is not a valid hostname component.`);
|
|
3291
|
+
}
|
|
3292
|
+
} else {
|
|
3293
|
+
validRegions.add(region);
|
|
3294
|
+
}
|
|
3295
|
+
};
|
|
3296
|
+
|
|
3465
3297
|
// node_modules/@smithy/config-resolver/dist-es/regionConfig/isFipsRegion.js
|
|
3466
3298
|
var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
|
|
3467
3299
|
|
|
@@ -3476,11 +3308,10 @@ var resolveRegionConfig = (input) => {
|
|
|
3476
3308
|
}
|
|
3477
3309
|
return Object.assign(input, {
|
|
3478
3310
|
region: async () => {
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
return getRealRegion(providedRegion);
|
|
3311
|
+
const providedRegion = typeof region === "function" ? await region() : region;
|
|
3312
|
+
const realRegion = getRealRegion(providedRegion);
|
|
3313
|
+
checkRegion(realRegion);
|
|
3314
|
+
return realRegion;
|
|
3484
3315
|
},
|
|
3485
3316
|
useFipsEndpoint: async () => {
|
|
3486
3317
|
const providedRegion = typeof region === "string" ? region : await region();
|
|
@@ -3811,6 +3642,7 @@ var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMED
|
|
|
3811
3642
|
var NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND"];
|
|
3812
3643
|
|
|
3813
3644
|
// node_modules/@smithy/service-error-classification/dist-es/index.js
|
|
3645
|
+
var isRetryableByTrait = (error) => error?.$retryable !== void 0;
|
|
3814
3646
|
var isClockSkewCorrectedError = (error) => error.$metadata?.clockSkewCorrected;
|
|
3815
3647
|
var isBrowserNetworkError = (error) => {
|
|
3816
3648
|
const errorMessages = /* @__PURE__ */ new Set([
|
|
@@ -3827,7 +3659,7 @@ var isBrowserNetworkError = (error) => {
|
|
|
3827
3659
|
return errorMessages.has(error.message);
|
|
3828
3660
|
};
|
|
3829
3661
|
var isThrottlingError = (error) => error.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error.name) || error.$retryable?.throttling == true;
|
|
3830
|
-
var isTransientError = (error, depth = 0) => isClockSkewCorrectedError(error) || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") || NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error) || error.cause !== void 0 && depth <= 10 && isTransientError(error.cause, depth + 1);
|
|
3662
|
+
var isTransientError = (error, depth = 0) => isRetryableByTrait(error) || isClockSkewCorrectedError(error) || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") || NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error) || error.cause !== void 0 && depth <= 10 && isTransientError(error.cause, depth + 1);
|
|
3831
3663
|
var isServerError = (error) => {
|
|
3832
3664
|
if (error.$metadata?.httpStatusCode !== void 0) {
|
|
3833
3665
|
const statusCode = error.$metadata.httpStatusCode;
|
|
@@ -3841,14 +3673,24 @@ var isServerError = (error) => {
|
|
|
3841
3673
|
|
|
3842
3674
|
// node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js
|
|
3843
3675
|
var DefaultRateLimiter = class _DefaultRateLimiter {
|
|
3676
|
+
static setTimeoutFn = setTimeout;
|
|
3677
|
+
beta;
|
|
3678
|
+
minCapacity;
|
|
3679
|
+
minFillRate;
|
|
3680
|
+
scaleConstant;
|
|
3681
|
+
smooth;
|
|
3682
|
+
currentCapacity = 0;
|
|
3683
|
+
enabled = false;
|
|
3684
|
+
lastMaxRate = 0;
|
|
3685
|
+
measuredTxRate = 0;
|
|
3686
|
+
requestCount = 0;
|
|
3687
|
+
fillRate;
|
|
3688
|
+
lastThrottleTime;
|
|
3689
|
+
lastTimestamp = 0;
|
|
3690
|
+
lastTxRateBucket;
|
|
3691
|
+
maxCapacity;
|
|
3692
|
+
timeWindow = 0;
|
|
3844
3693
|
constructor(options) {
|
|
3845
|
-
this.currentCapacity = 0;
|
|
3846
|
-
this.enabled = false;
|
|
3847
|
-
this.lastMaxRate = 0;
|
|
3848
|
-
this.measuredTxRate = 0;
|
|
3849
|
-
this.requestCount = 0;
|
|
3850
|
-
this.lastTimestamp = 0;
|
|
3851
|
-
this.timeWindow = 0;
|
|
3852
3694
|
this.beta = options?.beta ?? 0.7;
|
|
3853
3695
|
this.minCapacity = options?.minCapacity ?? 1;
|
|
3854
3696
|
this.minFillRate = options?.minFillRate ?? 0.5;
|
|
@@ -3937,7 +3779,6 @@ var DefaultRateLimiter = class _DefaultRateLimiter {
|
|
|
3937
3779
|
return parseFloat(num.toFixed(8));
|
|
3938
3780
|
}
|
|
3939
3781
|
};
|
|
3940
|
-
DefaultRateLimiter.setTimeoutFn = setTimeout;
|
|
3941
3782
|
|
|
3942
3783
|
// node_modules/@smithy/util-retry/dist-es/constants.js
|
|
3943
3784
|
var DEFAULT_RETRY_DELAY_BASE = 100;
|
|
@@ -3979,11 +3820,13 @@ var createDefaultRetryToken = ({ retryDelay, retryCount, retryCost }) => {
|
|
|
3979
3820
|
|
|
3980
3821
|
// node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js
|
|
3981
3822
|
var StandardRetryStrategy = class {
|
|
3823
|
+
maxAttempts;
|
|
3824
|
+
mode = RETRY_MODES.STANDARD;
|
|
3825
|
+
capacity = INITIAL_RETRY_TOKENS;
|
|
3826
|
+
retryBackoffStrategy = getDefaultRetryBackoffStrategy();
|
|
3827
|
+
maxAttemptsProvider;
|
|
3982
3828
|
constructor(maxAttempts) {
|
|
3983
3829
|
this.maxAttempts = maxAttempts;
|
|
3984
|
-
this.mode = RETRY_MODES.STANDARD;
|
|
3985
|
-
this.capacity = INITIAL_RETRY_TOKENS;
|
|
3986
|
-
this.retryBackoffStrategy = getDefaultRetryBackoffStrategy();
|
|
3987
3830
|
this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts;
|
|
3988
3831
|
}
|
|
3989
3832
|
async acquireInitialRetryToken(retryTokenScope) {
|
|
@@ -4037,9 +3880,12 @@ var StandardRetryStrategy = class {
|
|
|
4037
3880
|
|
|
4038
3881
|
// node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js
|
|
4039
3882
|
var AdaptiveRetryStrategy = class {
|
|
3883
|
+
maxAttemptsProvider;
|
|
3884
|
+
rateLimiter;
|
|
3885
|
+
standardRetryStrategy;
|
|
3886
|
+
mode = RETRY_MODES.ADAPTIVE;
|
|
4040
3887
|
constructor(maxAttemptsProvider, options) {
|
|
4041
3888
|
this.maxAttemptsProvider = maxAttemptsProvider;
|
|
4042
|
-
this.mode = RETRY_MODES.ADAPTIVE;
|
|
4043
3889
|
const { rateLimiter } = options ?? {};
|
|
4044
3890
|
this.rateLimiter = rateLimiter ?? new DefaultRateLimiter();
|
|
4045
3891
|
this.standardRetryStrategy = new StandardRetryStrategy(maxAttemptsProvider);
|
|
@@ -4137,7 +3983,7 @@ var retryMiddleware = (options) => (next, context) => async (args) => {
|
|
|
4137
3983
|
const { request } = args;
|
|
4138
3984
|
const isRequest = HttpRequest.isInstance(request);
|
|
4139
3985
|
if (isRequest) {
|
|
4140
|
-
request.headers[INVOCATION_ID_HEADER] =
|
|
3986
|
+
request.headers[INVOCATION_ID_HEADER] = v4();
|
|
4141
3987
|
}
|
|
4142
3988
|
while (true) {
|
|
4143
3989
|
try {
|
|
@@ -4333,6 +4179,9 @@ var NODE_APP_ID_CONFIG_OPTIONS = {
|
|
|
4333
4179
|
import { Buffer as Buffer2 } from "buffer";
|
|
4334
4180
|
import { createHash, createHmac } from "crypto";
|
|
4335
4181
|
var Hash = class {
|
|
4182
|
+
algorithmIdentifier;
|
|
4183
|
+
secret;
|
|
4184
|
+
hash;
|
|
4336
4185
|
constructor(algorithmIdentifier, secret) {
|
|
4337
4186
|
this.algorithmIdentifier = algorithmIdentifier;
|
|
4338
4187
|
this.secret = secret;
|
|
@@ -4362,7 +4211,7 @@ function castSourceData(toCast, encoding) {
|
|
|
4362
4211
|
}
|
|
4363
4212
|
|
|
4364
4213
|
// node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js
|
|
4365
|
-
import { fstatSync, lstatSync } from "fs";
|
|
4214
|
+
import { fstatSync, lstatSync, ReadStream } from "node:fs";
|
|
4366
4215
|
var calculateBodyLength = (body) => {
|
|
4367
4216
|
if (!body) {
|
|
4368
4217
|
return 0;
|
|
@@ -4375,10 +4224,12 @@ var calculateBodyLength = (body) => {
|
|
|
4375
4224
|
return body.size;
|
|
4376
4225
|
} else if (typeof body.start === "number" && typeof body.end === "number") {
|
|
4377
4226
|
return body.end + 1 - body.start;
|
|
4378
|
-
} else if (
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4227
|
+
} else if (body instanceof ReadStream) {
|
|
4228
|
+
if (body.path != null) {
|
|
4229
|
+
return lstatSync(body.path).size;
|
|
4230
|
+
} else if (typeof body.fd === "number") {
|
|
4231
|
+
return fstatSync(body.fd).size;
|
|
4232
|
+
}
|
|
4382
4233
|
}
|
|
4383
4234
|
throw new Error(`Body Length computation failed for ${body}`);
|
|
4384
4235
|
};
|
|
@@ -4443,7 +4294,7 @@ var inferPhysicalRegion = async () => {
|
|
|
4443
4294
|
}
|
|
4444
4295
|
if (!process.env[ENV_IMDS_DISABLED]) {
|
|
4445
4296
|
try {
|
|
4446
|
-
const { getInstanceMetadataEndpoint, httpRequest } = await import("./dist-es-
|
|
4297
|
+
const { getInstanceMetadataEndpoint, httpRequest } = await import("./dist-es-JPDE6SED.js");
|
|
4447
4298
|
const endpoint = await getInstanceMetadataEndpoint();
|
|
4448
4299
|
return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
|
|
4449
4300
|
} catch (e) {
|
|
@@ -4475,22 +4326,33 @@ export {
|
|
|
4475
4326
|
getHostHeaderPlugin,
|
|
4476
4327
|
getLoggerPlugin,
|
|
4477
4328
|
getRecursionDetectionPlugin,
|
|
4329
|
+
Client,
|
|
4330
|
+
toUint8Array,
|
|
4331
|
+
collectBody,
|
|
4332
|
+
extendedEncodeURIComponent,
|
|
4478
4333
|
getSmithyContext,
|
|
4479
4334
|
normalizeProvider,
|
|
4335
|
+
Command,
|
|
4336
|
+
SENSITIVE_STRING2 as SENSITIVE_STRING,
|
|
4337
|
+
ServiceException,
|
|
4338
|
+
decorateServiceException,
|
|
4339
|
+
withBaseException,
|
|
4340
|
+
loadConfigsForDefaultMode,
|
|
4341
|
+
emitWarningIfUnsupportedVersion2 as emitWarningIfUnsupportedVersion,
|
|
4342
|
+
getDefaultExtensionConfiguration,
|
|
4343
|
+
resolveDefaultRuntimeConfig,
|
|
4344
|
+
NoOpLogger,
|
|
4480
4345
|
getHttpAuthSchemeEndpointRuleSetPlugin,
|
|
4481
4346
|
getSerdePlugin,
|
|
4482
4347
|
httpSigningMiddlewareOptions,
|
|
4483
4348
|
getHttpSigningPlugin,
|
|
4484
|
-
toUint8Array,
|
|
4485
|
-
collectBody,
|
|
4486
|
-
extendedEncodeURIComponent,
|
|
4487
4349
|
DefaultIdentityProviderConfig,
|
|
4488
4350
|
resolveUserAgentConfig,
|
|
4489
4351
|
EndpointCache,
|
|
4490
4352
|
customEndpointFunctions,
|
|
4491
4353
|
resolveEndpoint,
|
|
4492
4354
|
awsEndpointFunctions,
|
|
4493
|
-
emitWarningIfUnsupportedVersion,
|
|
4355
|
+
emitWarningIfUnsupportedVersion as emitWarningIfUnsupportedVersion2,
|
|
4494
4356
|
setFeature2 as setFeature,
|
|
4495
4357
|
AwsSdkSigV4Signer,
|
|
4496
4358
|
AwsSdkSigV4ASigner,
|
|
@@ -4499,17 +4361,6 @@ export {
|
|
|
4499
4361
|
NODE_SIGV4A_CONFIG_OPTIONS,
|
|
4500
4362
|
SignatureV4,
|
|
4501
4363
|
resolveAwsSdkSigV4Config,
|
|
4502
|
-
Client,
|
|
4503
|
-
Command,
|
|
4504
|
-
SENSITIVE_STRING2 as SENSITIVE_STRING,
|
|
4505
|
-
ServiceException,
|
|
4506
|
-
decorateServiceException,
|
|
4507
|
-
withBaseException,
|
|
4508
|
-
loadConfigsForDefaultMode,
|
|
4509
|
-
emitWarningIfUnsupportedVersion2,
|
|
4510
|
-
getDefaultExtensionConfiguration,
|
|
4511
|
-
resolveDefaultRuntimeConfig,
|
|
4512
|
-
NoOpLogger,
|
|
4513
4364
|
collectBodyString,
|
|
4514
4365
|
getUserAgentPlugin,
|
|
4515
4366
|
booleanSelector,
|
|
@@ -4536,4 +4387,4 @@ export {
|
|
|
4536
4387
|
getAwsRegionExtensionConfiguration,
|
|
4537
4388
|
resolveAwsRegionExtensionConfiguration
|
|
4538
4389
|
};
|
|
4539
|
-
//# sourceMappingURL=chunk-
|
|
4390
|
+
//# sourceMappingURL=chunk-HR3W7R4B.js.map
|