@mavogel/awscdk-rootmail 0.0.316 → 0.0.317

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.
Files changed (156) hide show
  1. package/.jsii +2 -2
  2. package/lib/rootmail.js +1 -1
  3. package/lib/ses-receive.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +14 -14
  5. package/node_modules/@aws-sdk/client-route-53/package.json +14 -14
  6. package/node_modules/@aws-sdk/client-s3/package.json +19 -19
  7. package/node_modules/@aws-sdk/client-ses/package.json +14 -14
  8. package/node_modules/@aws-sdk/client-ssm/package.json +14 -14
  9. package/node_modules/@aws-sdk/client-sso/package.json +13 -13
  10. package/node_modules/@aws-sdk/core/package.json +4 -4
  11. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  12. package/node_modules/@aws-sdk/credential-provider-http/package.json +6 -6
  13. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  14. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  15. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  16. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  17. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  18. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +4 -4
  19. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +5 -5
  20. package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
  21. package/node_modules/@aws-sdk/nested-clients/package.json +13 -13
  22. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  23. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  24. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +30 -0
  25. package/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +1 -0
  26. package/node_modules/@aws-sdk/util-endpoints/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js +21 -0
  27. package/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +1 -0
  28. package/node_modules/@aws-sdk/util-endpoints/dist-types/resolveDefaultAwsRegionalEndpointsConfig.d.ts +56 -0
  29. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +1 -0
  30. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveDefaultAwsRegionalEndpointsConfig.d.ts +35 -0
  31. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -1
  32. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  33. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +20 -20
  34. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +80 -6
  35. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +20 -20
  36. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +10 -0
  37. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +10 -0
  38. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +10 -0
  39. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +10 -0
  40. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +10 -0
  41. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +10 -0
  42. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +1 -1
  43. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +3 -0
  44. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +3 -0
  45. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +3 -0
  46. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +3 -0
  47. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +3 -0
  48. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +3 -0
  49. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts +1 -1
  50. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +3 -0
  51. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +3 -0
  52. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +3 -0
  53. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +3 -0
  54. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +3 -0
  55. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +3 -0
  56. package/node_modules/@smithy/core/package.json +2 -2
  57. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +2 -2
  58. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +4 -4
  59. package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +1 -1
  60. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +1 -1
  61. package/node_modules/@smithy/fetch-http-handler/package.json +1 -1
  62. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +5 -2
  63. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js +3 -0
  64. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +1 -1
  65. package/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js +1 -1
  66. package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts +5 -2
  67. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointConfig.d.ts +5 -2
  68. package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
  69. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  70. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -9
  71. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +4 -3
  72. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +7 -6
  73. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +1 -1
  74. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
  75. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +1 -1
  76. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +1 -1
  77. package/node_modules/@smithy/node-http-handler/package.json +1 -1
  78. package/node_modules/@smithy/smithy-client/package.json +4 -4
  79. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  80. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  81. package/node_modules/@smithy/util-stream/package.json +3 -3
  82. package/node_modules/cdk-nag/.jsii +2 -2
  83. package/node_modules/cdk-nag/lib/ignore-suppression-conditions.js +5 -5
  84. package/node_modules/cdk-nag/lib/nag-logger.js +2 -2
  85. package/node_modules/cdk-nag/lib/nag-pack.js +1 -1
  86. package/node_modules/cdk-nag/lib/nag-rules.js +1 -1
  87. package/node_modules/cdk-nag/lib/nag-suppressions.js +1 -1
  88. package/node_modules/cdk-nag/lib/packs/aws-solutions.js +1 -1
  89. package/node_modules/cdk-nag/lib/packs/hipaa-security.js +1 -1
  90. package/node_modules/cdk-nag/lib/packs/nist-800-53-r4.js +1 -1
  91. package/node_modules/cdk-nag/lib/packs/nist-800-53-r5.js +1 -1
  92. package/node_modules/cdk-nag/lib/packs/pci-dss-321.js +1 -1
  93. package/node_modules/cdk-nag/lib/packs/serverless.js +1 -1
  94. package/node_modules/cdk-nag/package.json +2 -2
  95. package/node_modules/fast-xml-parser/CHANGELOG.md +77 -0
  96. package/node_modules/fast-xml-parser/README.md +39 -52
  97. package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +2 -0
  98. package/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -0
  99. package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -0
  100. package/node_modules/fast-xml-parser/lib/fxp.d.cts +458 -0
  101. package/node_modules/fast-xml-parser/lib/fxp.min.js +2 -0
  102. package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -0
  103. package/node_modules/fast-xml-parser/lib/fxparser.min.js +2 -0
  104. package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -0
  105. package/node_modules/fast-xml-parser/lib/fxvalidator.min.js +2 -0
  106. package/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -0
  107. package/node_modules/fast-xml-parser/package.json +36 -20
  108. package/node_modules/fast-xml-parser/src/cli/cli.js +16 -12
  109. package/node_modules/fast-xml-parser/src/cli/man.js +6 -1
  110. package/node_modules/fast-xml-parser/src/cli/read.js +30 -79
  111. package/node_modules/fast-xml-parser/src/fxp.d.ts +52 -9
  112. package/node_modules/fast-xml-parser/src/fxp.js +11 -8
  113. package/node_modules/fast-xml-parser/src/ignoreAttributes.js +18 -0
  114. package/node_modules/fast-xml-parser/src/util.js +14 -18
  115. package/node_modules/fast-xml-parser/src/{v5 → v6}/CharsSymbol.js +1 -1
  116. package/node_modules/fast-xml-parser/src/{v5/valueParsers → v6}/EntitiesParser.js +3 -6
  117. package/node_modules/fast-xml-parser/src/{v5 → v6}/OptionsBuilder.js +3 -6
  118. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/BaseOutputBuilder.js +1 -3
  119. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/JsArrBuilder.js +3 -3
  120. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/JsMinArrBuilder.js +3 -5
  121. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/JsObjBuilder.js +3 -5
  122. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/ParserOptionsBuilder.js +6 -11
  123. package/node_modules/fast-xml-parser/src/{v5 → v6}/TagPath.js +1 -1
  124. package/node_modules/fast-xml-parser/src/{v5 → v6}/TagPathMatcher.js +3 -5
  125. package/node_modules/fast-xml-parser/src/{v5 → v6}/XMLParser.js +3 -5
  126. package/node_modules/fast-xml-parser/src/{v5 → v6}/Xml2JsParser.js +8 -10
  127. package/node_modules/fast-xml-parser/src/{v5 → v6}/XmlPartReader.js +24 -26
  128. package/node_modules/fast-xml-parser/src/{v5 → v6}/XmlSpecialTagsReader.js +5 -12
  129. package/node_modules/fast-xml-parser/src/{v5 → v6}/inputSource/BufferSource.js +1 -3
  130. package/node_modules/fast-xml-parser/src/{v5 → v6}/inputSource/StringSource.js +1 -3
  131. package/node_modules/fast-xml-parser/src/{v5 → v6/valueParsers}/EntitiesParser.js +3 -5
  132. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/booleanParser.js +1 -2
  133. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/booleanParserExt.js +1 -2
  134. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/currency.js +1 -3
  135. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/join.js +1 -2
  136. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/number.js +2 -4
  137. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/trim.js +1 -3
  138. package/node_modules/fast-xml-parser/src/validator.js +5 -5
  139. package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +17 -13
  140. package/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +1 -2
  141. package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +288 -71
  142. package/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +3 -5
  143. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +28 -23
  144. package/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +21 -8
  145. package/node_modules/fast-xml-parser/src/xmlparser/node2json.js +8 -2
  146. package/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +22 -7
  147. package/node_modules/strnum/.github/SECURITY.md +5 -0
  148. package/node_modules/strnum/CHANGELOG.md +33 -0
  149. package/node_modules/strnum/README.md +14 -3
  150. package/node_modules/strnum/algo.stflow +84 -0
  151. package/node_modules/strnum/package.json +9 -2
  152. package/node_modules/strnum/strnum.js +72 -67
  153. package/node_modules/strnum/strnum.test.js +29 -6
  154. package/node_modules/strnum/test.js +9 -0
  155. package/package.json +1 -1
  156. /package/node_modules/fast-xml-parser/src/{v5 → v6}/Report.js +0 -0
@@ -247,12 +247,24 @@ var Schema = class {
247
247
  };
248
248
 
249
249
  // src/submodules/schema/schemas/ListSchema.ts
250
- var ListSchema = class extends Schema {
250
+ var ListSchema = class _ListSchema extends Schema {
251
251
  constructor(name, traits, valueSchema) {
252
252
  super(name, traits);
253
253
  this.name = name;
254
254
  this.traits = traits;
255
255
  this.valueSchema = valueSchema;
256
+ this.symbol = _ListSchema.symbol;
257
+ }
258
+ static {
259
+ this.symbol = Symbol.for("@smithy/core/schema::ListSchema");
260
+ }
261
+ static [Symbol.hasInstance](lhs) {
262
+ const isPrototype = _ListSchema.prototype.isPrototypeOf(lhs);
263
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
264
+ const list2 = lhs;
265
+ return list2.symbol === _ListSchema.symbol;
266
+ }
267
+ return isPrototype;
256
268
  }
257
269
  };
258
270
  function list(namespace, name, traits = {}, valueSchema) {
@@ -266,13 +278,25 @@ function list(namespace, name, traits = {}, valueSchema) {
266
278
  }
267
279
 
268
280
  // src/submodules/schema/schemas/MapSchema.ts
269
- var MapSchema = class extends Schema {
281
+ var MapSchema = class _MapSchema extends Schema {
270
282
  constructor(name, traits, keySchema, valueSchema) {
271
283
  super(name, traits);
272
284
  this.name = name;
273
285
  this.traits = traits;
274
286
  this.keySchema = keySchema;
275
287
  this.valueSchema = valueSchema;
288
+ this.symbol = _MapSchema.symbol;
289
+ }
290
+ static {
291
+ this.symbol = Symbol.for("@smithy/core/schema::MapSchema");
292
+ }
293
+ static [Symbol.hasInstance](lhs) {
294
+ const isPrototype = _MapSchema.prototype.isPrototypeOf(lhs);
295
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
296
+ const map2 = lhs;
297
+ return map2.symbol === _MapSchema.symbol;
298
+ }
299
+ return isPrototype;
276
300
  }
277
301
  };
278
302
  function map(namespace, name, traits = {}, keySchema, valueSchema) {
@@ -303,18 +327,30 @@ function op(namespace, name, traits = {}, input, output) {
303
327
  }
304
328
 
305
329
  // src/submodules/schema/schemas/StructureSchema.ts
306
- var StructureSchema = class extends Schema {
330
+ var StructureSchema = class _StructureSchema extends Schema {
307
331
  constructor(name, traits, memberNames, memberList) {
308
332
  super(name, traits);
309
333
  this.name = name;
310
334
  this.traits = traits;
311
335
  this.memberNames = memberNames;
312
336
  this.memberList = memberList;
337
+ this.symbol = _StructureSchema.symbol;
313
338
  this.members = {};
314
339
  for (let i = 0; i < memberNames.length; ++i) {
315
340
  this.members[memberNames[i]] = Array.isArray(memberList[i]) ? memberList[i] : [memberList[i], 0];
316
341
  }
317
342
  }
343
+ static {
344
+ this.symbol = Symbol.for("@smithy/core/schema::StructureSchema");
345
+ }
346
+ static [Symbol.hasInstance](lhs) {
347
+ const isPrototype = _StructureSchema.prototype.isPrototypeOf(lhs);
348
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
349
+ const struct2 = lhs;
350
+ return struct2.symbol === _StructureSchema.symbol;
351
+ }
352
+ return isPrototype;
353
+ }
318
354
  };
319
355
  function struct(namespace, name, traits, memberNames, memberList) {
320
356
  const schema = new StructureSchema(namespace + "#" + name, traits, memberNames, memberList);
@@ -323,7 +359,7 @@ function struct(namespace, name, traits, memberNames, memberList) {
323
359
  }
324
360
 
325
361
  // src/submodules/schema/schemas/ErrorSchema.ts
326
- var ErrorSchema = class extends StructureSchema {
362
+ var ErrorSchema = class _ErrorSchema extends StructureSchema {
327
363
  constructor(name, traits, memberNames, memberList, ctor) {
328
364
  super(name, traits, memberNames, memberList);
329
365
  this.name = name;
@@ -331,6 +367,18 @@ var ErrorSchema = class extends StructureSchema {
331
367
  this.memberNames = memberNames;
332
368
  this.memberList = memberList;
333
369
  this.ctor = ctor;
370
+ this.symbol = _ErrorSchema.symbol;
371
+ }
372
+ static {
373
+ this.symbol = Symbol.for("@smithy/core/schema::ErrorSchema");
374
+ }
375
+ static [Symbol.hasInstance](lhs) {
376
+ const isPrototype = _ErrorSchema.prototype.isPrototypeOf(lhs);
377
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
378
+ const err = lhs;
379
+ return err.symbol === _ErrorSchema.symbol;
380
+ }
381
+ return isPrototype;
334
382
  }
335
383
  };
336
384
  function error(namespace, name, traits = {}, memberNames, memberList, ctor) {
@@ -372,12 +420,24 @@ var SCHEMA = {
372
420
  };
373
421
 
374
422
  // src/submodules/schema/schemas/SimpleSchema.ts
375
- var SimpleSchema = class extends Schema {
423
+ var SimpleSchema = class _SimpleSchema extends Schema {
376
424
  constructor(name, schemaRef, traits) {
377
425
  super(name, traits);
378
426
  this.name = name;
379
427
  this.schemaRef = schemaRef;
380
428
  this.traits = traits;
429
+ this.symbol = _SimpleSchema.symbol;
430
+ }
431
+ static {
432
+ this.symbol = Symbol.for("@smithy/core/schema::SimpleSchema");
433
+ }
434
+ static [Symbol.hasInstance](lhs) {
435
+ const isPrototype = _SimpleSchema.prototype.isPrototypeOf(lhs);
436
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
437
+ const sim2 = lhs;
438
+ return sim2.symbol === _SimpleSchema.symbol;
439
+ }
440
+ return isPrototype;
381
441
  }
382
442
  };
383
443
  function sim(namespace, name, schemaRef, traits) {
@@ -395,6 +455,7 @@ var NormalizedSchema = class _NormalizedSchema {
395
455
  constructor(ref, memberName) {
396
456
  this.ref = ref;
397
457
  this.memberName = memberName;
458
+ this.symbol = _NormalizedSchema.symbol;
398
459
  const traitStack = [];
399
460
  let _ref = ref;
400
461
  let schema = ref;
@@ -434,10 +495,23 @@ var NormalizedSchema = class _NormalizedSchema {
434
495
  this.name = (typeof this.schema === "object" ? this.schema?.name : void 0) ?? this.memberName ?? this.getSchemaName();
435
496
  if (this._isMemberSchema && !memberName) {
436
497
  throw new Error(
437
- `@smithy/core/schema - NormalizedSchema member schema ${this.getName(true)} must initialize with memberName argument.`
498
+ `@smithy/core/schema - NormalizedSchema member schema ${this.getName(
499
+ true
500
+ )} must initialize with memberName argument.`
438
501
  );
439
502
  }
440
503
  }
504
+ static {
505
+ this.symbol = Symbol.for("@smithy/core/schema::NormalizedSchema");
506
+ }
507
+ static [Symbol.hasInstance](lhs) {
508
+ const isPrototype = _NormalizedSchema.prototype.isPrototypeOf(lhs);
509
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
510
+ const ns = lhs;
511
+ return ns.symbol === _NormalizedSchema.symbol;
512
+ }
513
+ return isPrototype;
514
+ }
441
515
  /**
442
516
  * Static constructor that attempts to avoid wrapping a NormalizedSchema within another.
443
517
  */
@@ -4,7 +4,10 @@ import { collectBody } from "./collect-stream-body";
4
4
  import { extendedEncodeURIComponent } from "./extended-encode-uri-component";
5
5
  import { HttpProtocol } from "./HttpProtocol";
6
6
  export class HttpBindingProtocol extends HttpProtocol {
7
- async serializeRequest(operationSchema, input, context) {
7
+ async serializeRequest(operationSchema, _input, context) {
8
+ const input = {
9
+ ...(_input ?? {}),
10
+ };
8
11
  const serializer = this.serializer;
9
12
  const query = {};
10
13
  const headers = {};
@@ -40,16 +43,12 @@ export class HttpBindingProtocol extends HttpProtocol {
40
43
  Object.assign(query, Object.fromEntries(traitSearchParams));
41
44
  }
42
45
  }
43
- const _input = {
44
- ...input,
45
- };
46
- for (const memberName of Object.keys(_input)) {
47
- const memberNs = ns.getMemberSchema(memberName);
48
- if (memberNs === undefined) {
46
+ for (const [memberName, memberNs] of ns.structIterator()) {
47
+ const memberTraits = memberNs.getMergedTraits() ?? {};
48
+ const inputMemberValue = input[memberName];
49
+ if (inputMemberValue == null) {
49
50
  continue;
50
51
  }
51
- const memberTraits = memberNs.getMergedTraits();
52
- const inputMember = _input[memberName];
53
52
  if (memberTraits.httpPayload) {
54
53
  const isStreaming = memberNs.isStreaming();
55
54
  if (isStreaming) {
@@ -58,16 +57,17 @@ export class HttpBindingProtocol extends HttpProtocol {
58
57
  throw new Error("serialization of event streams is not yet implemented");
59
58
  }
60
59
  else {
61
- payload = inputMember;
60
+ payload = inputMemberValue;
62
61
  }
63
62
  }
64
63
  else {
65
- serializer.write(memberNs, inputMember);
64
+ serializer.write(memberNs, inputMemberValue);
66
65
  payload = serializer.flush();
67
66
  }
67
+ delete input[memberName];
68
68
  }
69
69
  else if (memberTraits.httpLabel) {
70
- serializer.write(memberNs, inputMember);
70
+ serializer.write(memberNs, inputMemberValue);
71
71
  const replacement = serializer.flush();
72
72
  if (request.path.includes(`{${memberName}+}`)) {
73
73
  request.path = request.path.replace(`{${memberName}+}`, replacement.split("/").map(extendedEncodeURIComponent).join("/"));
@@ -75,31 +75,31 @@ export class HttpBindingProtocol extends HttpProtocol {
75
75
  else if (request.path.includes(`{${memberName}}`)) {
76
76
  request.path = request.path.replace(`{${memberName}}`, extendedEncodeURIComponent(replacement));
77
77
  }
78
- delete _input[memberName];
78
+ delete input[memberName];
79
79
  }
80
80
  else if (memberTraits.httpHeader) {
81
- serializer.write(memberNs, inputMember);
81
+ serializer.write(memberNs, inputMemberValue);
82
82
  headers[memberTraits.httpHeader.toLowerCase()] = String(serializer.flush());
83
- delete _input[memberName];
83
+ delete input[memberName];
84
84
  }
85
85
  else if (typeof memberTraits.httpPrefixHeaders === "string") {
86
- for (const [key, val] of Object.entries(inputMember)) {
86
+ for (const [key, val] of Object.entries(inputMemberValue)) {
87
87
  const amalgam = memberTraits.httpPrefixHeaders + key;
88
88
  serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val);
89
89
  headers[amalgam.toLowerCase()] = serializer.flush();
90
90
  }
91
- delete _input[memberName];
91
+ delete input[memberName];
92
92
  }
93
93
  else if (memberTraits.httpQuery || memberTraits.httpQueryParams) {
94
- this.serializeQuery(memberNs, inputMember, query);
95
- delete _input[memberName];
94
+ this.serializeQuery(memberNs, inputMemberValue, query);
95
+ delete input[memberName];
96
96
  }
97
97
  else {
98
98
  hasNonHttpBindingMember = true;
99
99
  }
100
100
  }
101
101
  if (hasNonHttpBindingMember && input) {
102
- serializer.write(schema, _input);
102
+ serializer.write(schema, input);
103
103
  payload = serializer.flush();
104
104
  }
105
105
  request.headers = headers;
@@ -8,8 +8,18 @@ export class ErrorSchema extends StructureSchema {
8
8
  this.memberNames = memberNames;
9
9
  this.memberList = memberList;
10
10
  this.ctor = ctor;
11
+ this.symbol = ErrorSchema.symbol;
12
+ }
13
+ static [Symbol.hasInstance](lhs) {
14
+ const isPrototype = ErrorSchema.prototype.isPrototypeOf(lhs);
15
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
16
+ const err = lhs;
17
+ return err.symbol === ErrorSchema.symbol;
18
+ }
19
+ return isPrototype;
11
20
  }
12
21
  }
22
+ ErrorSchema.symbol = Symbol.for("@smithy/core/schema::ErrorSchema");
13
23
  export function error(namespace, name, traits = {}, memberNames, memberList, ctor) {
14
24
  const schema = new ErrorSchema(namespace + "#" + name, traits, memberNames, memberList, ctor);
15
25
  TypeRegistry.for(namespace).register(name, schema);
@@ -6,8 +6,18 @@ export class ListSchema extends Schema {
6
6
  this.name = name;
7
7
  this.traits = traits;
8
8
  this.valueSchema = valueSchema;
9
+ this.symbol = ListSchema.symbol;
10
+ }
11
+ static [Symbol.hasInstance](lhs) {
12
+ const isPrototype = ListSchema.prototype.isPrototypeOf(lhs);
13
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
14
+ const list = lhs;
15
+ return list.symbol === ListSchema.symbol;
16
+ }
17
+ return isPrototype;
9
18
  }
10
19
  }
20
+ ListSchema.symbol = Symbol.for("@smithy/core/schema::ListSchema");
11
21
  export function list(namespace, name, traits = {}, valueSchema) {
12
22
  const schema = new ListSchema(namespace + "#" + name, traits, typeof valueSchema === "function" ? valueSchema() : valueSchema);
13
23
  TypeRegistry.for(namespace).register(name, schema);
@@ -7,8 +7,18 @@ export class MapSchema extends Schema {
7
7
  this.traits = traits;
8
8
  this.keySchema = keySchema;
9
9
  this.valueSchema = valueSchema;
10
+ this.symbol = MapSchema.symbol;
11
+ }
12
+ static [Symbol.hasInstance](lhs) {
13
+ const isPrototype = MapSchema.prototype.isPrototypeOf(lhs);
14
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
15
+ const map = lhs;
16
+ return map.symbol === MapSchema.symbol;
17
+ }
18
+ return isPrototype;
10
19
  }
11
20
  }
21
+ MapSchema.symbol = Symbol.for("@smithy/core/schema::MapSchema");
12
22
  export function map(namespace, name, traits = {}, keySchema, valueSchema) {
13
23
  const schema = new MapSchema(namespace + "#" + name, traits, keySchema, typeof valueSchema === "function" ? valueSchema() : valueSchema);
14
24
  TypeRegistry.for(namespace).register(name, schema);
@@ -8,6 +8,7 @@ export class NormalizedSchema {
8
8
  constructor(ref, memberName) {
9
9
  this.ref = ref;
10
10
  this.memberName = memberName;
11
+ this.symbol = NormalizedSchema.symbol;
11
12
  const traitStack = [];
12
13
  let _ref = ref;
13
14
  let schema = ref;
@@ -52,6 +53,14 @@ export class NormalizedSchema {
52
53
  throw new Error(`@smithy/core/schema - NormalizedSchema member schema ${this.getName(true)} must initialize with memberName argument.`);
53
54
  }
54
55
  }
56
+ static [Symbol.hasInstance](lhs) {
57
+ const isPrototype = NormalizedSchema.prototype.isPrototypeOf(lhs);
58
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
59
+ const ns = lhs;
60
+ return ns.symbol === NormalizedSchema.symbol;
61
+ }
62
+ return isPrototype;
63
+ }
55
64
  static of(ref, memberName) {
56
65
  if (ref instanceof NormalizedSchema) {
57
66
  return ref;
@@ -292,3 +301,4 @@ export class NormalizedSchema {
292
301
  return "Unknown";
293
302
  }
294
303
  }
304
+ NormalizedSchema.symbol = Symbol.for("@smithy/core/schema::NormalizedSchema");
@@ -6,8 +6,18 @@ export class SimpleSchema extends Schema {
6
6
  this.name = name;
7
7
  this.schemaRef = schemaRef;
8
8
  this.traits = traits;
9
+ this.symbol = SimpleSchema.symbol;
10
+ }
11
+ static [Symbol.hasInstance](lhs) {
12
+ const isPrototype = SimpleSchema.prototype.isPrototypeOf(lhs);
13
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
14
+ const sim = lhs;
15
+ return sim.symbol === SimpleSchema.symbol;
16
+ }
17
+ return isPrototype;
9
18
  }
10
19
  }
20
+ SimpleSchema.symbol = Symbol.for("@smithy/core/schema::SimpleSchema");
11
21
  export function sim(namespace, name, schemaRef, traits) {
12
22
  const schema = new SimpleSchema(namespace + "#" + name, schemaRef, traits);
13
23
  TypeRegistry.for(namespace).register(name, schema);
@@ -7,6 +7,7 @@ export class StructureSchema extends Schema {
7
7
  this.traits = traits;
8
8
  this.memberNames = memberNames;
9
9
  this.memberList = memberList;
10
+ this.symbol = StructureSchema.symbol;
10
11
  this.members = {};
11
12
  for (let i = 0; i < memberNames.length; ++i) {
12
13
  this.members[memberNames[i]] = Array.isArray(memberList[i])
@@ -14,7 +15,16 @@ export class StructureSchema extends Schema {
14
15
  : [memberList[i], 0];
15
16
  }
16
17
  }
18
+ static [Symbol.hasInstance](lhs) {
19
+ const isPrototype = StructureSchema.prototype.isPrototypeOf(lhs);
20
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
21
+ const struct = lhs;
22
+ return struct.symbol === StructureSchema.symbol;
23
+ }
24
+ return isPrototype;
25
+ }
17
26
  }
27
+ StructureSchema.symbol = Symbol.for("@smithy/core/schema::StructureSchema");
18
28
  export function struct(namespace, name, traits, memberNames, memberList) {
19
29
  const schema = new StructureSchema(namespace + "#" + name, traits, memberNames, memberList);
20
30
  TypeRegistry.for(namespace).register(name, schema);
@@ -9,7 +9,7 @@ import { HttpProtocol } from "./HttpProtocol";
9
9
  * @alpha
10
10
  */
11
11
  export declare abstract class HttpBindingProtocol extends HttpProtocol {
12
- serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<IHttpRequest>;
12
+ serializeRequest<Input extends object>(operationSchema: OperationSchema, _input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<IHttpRequest>;
13
13
  protected serializeQuery(ns: NormalizedSchema, data: any, query: HttpRequest["query"]): void;
14
14
  deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise<Output>;
15
15
  }
@@ -17,11 +17,14 @@ export declare class ErrorSchema extends StructureSchema {
17
17
  * Constructor for a modeled service exception class that extends Error.
18
18
  */
19
19
  ctor: any;
20
+ static symbol: symbol;
21
+ protected symbol: symbol;
20
22
  constructor(name: string, traits: SchemaTraits, memberNames: string[], memberList: SchemaRef[],
21
23
  /**
22
24
  * Constructor for a modeled service exception class that extends Error.
23
25
  */
24
26
  ctor: any);
27
+ static [Symbol.hasInstance](lhs: unknown): lhs is ErrorSchema;
25
28
  }
26
29
  /**
27
30
  * Factory for ErrorSchema, to reduce codegen output and register the schema.
@@ -10,7 +10,10 @@ export declare class ListSchema extends Schema implements IListSchema {
10
10
  name: string;
11
11
  traits: SchemaTraits;
12
12
  valueSchema: SchemaRef;
13
+ static symbol: symbol;
14
+ protected symbol: symbol;
13
15
  constructor(name: string, traits: SchemaTraits, valueSchema: SchemaRef);
16
+ static [Symbol.hasInstance](lhs: unknown): lhs is ListSchema;
14
17
  }
15
18
  /**
16
19
  * Factory for ListSchema.
@@ -12,11 +12,14 @@ export declare class MapSchema extends Schema implements IMapSchema {
12
12
  */
13
13
  keySchema: SchemaRef;
14
14
  valueSchema: SchemaRef;
15
+ static symbol: symbol;
16
+ protected symbol: symbol;
15
17
  constructor(name: string, traits: SchemaTraits,
16
18
  /**
17
19
  * This is expected to be StringSchema, but may have traits.
18
20
  */
19
21
  keySchema: SchemaRef, valueSchema: SchemaRef);
22
+ static [Symbol.hasInstance](lhs: unknown): lhs is MapSchema;
20
23
  }
21
24
  /**
22
25
  * Factory for MapSchema.
@@ -8,6 +8,8 @@ import type { MemberSchema, NormalizedSchema as INormalizedSchema, Schema as ISc
8
8
  export declare class NormalizedSchema implements INormalizedSchema {
9
9
  private readonly ref;
10
10
  private memberName?;
11
+ static symbol: symbol;
12
+ protected symbol: symbol;
11
13
  private readonly name;
12
14
  private readonly traits;
13
15
  private _isMemberSchema;
@@ -19,6 +21,7 @@ export declare class NormalizedSchema implements INormalizedSchema {
19
21
  * @param memberName - optional memberName if this NormalizedSchema should be considered a member schema.
20
22
  */
21
23
  constructor(ref: SchemaRef, memberName?: string | undefined);
24
+ static [Symbol.hasInstance](lhs: unknown): lhs is NormalizedSchema;
22
25
  /**
23
26
  * Static constructor that attempts to avoid wrapping a NormalizedSchema within another.
24
27
  */
@@ -10,7 +10,10 @@ export declare class SimpleSchema extends Schema implements TraitsSchema {
10
10
  name: string;
11
11
  schemaRef: SchemaRef;
12
12
  traits: SchemaTraits;
13
+ static symbol: symbol;
14
+ protected symbol: symbol;
13
15
  constructor(name: string, schemaRef: SchemaRef, traits: SchemaTraits);
16
+ static [Symbol.hasInstance](lhs: unknown): lhs is SimpleSchema;
14
17
  }
15
18
  /**
16
19
  * Factory for simple schema class objects.
@@ -10,8 +10,11 @@ export declare class StructureSchema extends Schema implements IStructureSchema
10
10
  traits: SchemaTraits;
11
11
  memberNames: string[];
12
12
  memberList: SchemaRef[];
13
+ static symbol: symbol;
14
+ protected symbol: symbol;
13
15
  members: Record<string, [SchemaRef, SchemaTraits]>;
14
16
  constructor(name: string, traits: SchemaTraits, memberNames: string[], memberList: SchemaRef[]);
17
+ static [Symbol.hasInstance](lhs: unknown): lhs is StructureSchema;
15
18
  }
16
19
  /**
17
20
  * Factory for StructureSchema.
@@ -9,7 +9,7 @@ import { HttpProtocol } from "./HttpProtocol";
9
9
  * @alpha
10
10
  */
11
11
  export declare abstract class HttpBindingProtocol extends HttpProtocol {
12
- serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<IHttpRequest>;
12
+ serializeRequest<Input extends object>(operationSchema: OperationSchema, _input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<IHttpRequest>;
13
13
  protected serializeQuery(ns: NormalizedSchema, data: any, query: HttpRequest["query"]): void;
14
14
  deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise<Output>;
15
15
  }
@@ -17,11 +17,14 @@ export declare class ErrorSchema extends StructureSchema {
17
17
  * Constructor for a modeled service exception class that extends Error.
18
18
  */
19
19
  ctor: any;
20
+ static symbol: symbol;
21
+ protected symbol: symbol;
20
22
  constructor(name: string, traits: SchemaTraits, memberNames: string[], memberList: SchemaRef[],
21
23
  /**
22
24
  * Constructor for a modeled service exception class that extends Error.
23
25
  */
24
26
  ctor: any);
27
+ static [Symbol.hasInstance](lhs: unknown): lhs is ErrorSchema;
25
28
  }
26
29
  /**
27
30
  * Factory for ErrorSchema, to reduce codegen output and register the schema.
@@ -10,7 +10,10 @@ export declare class ListSchema extends Schema implements IListSchema {
10
10
  name: string;
11
11
  traits: SchemaTraits;
12
12
  valueSchema: SchemaRef;
13
+ static symbol: symbol;
14
+ protected symbol: symbol;
13
15
  constructor(name: string, traits: SchemaTraits, valueSchema: SchemaRef);
16
+ static [Symbol.hasInstance](lhs: unknown): lhs is ListSchema;
14
17
  }
15
18
  /**
16
19
  * Factory for ListSchema.
@@ -12,11 +12,14 @@ export declare class MapSchema extends Schema implements IMapSchema {
12
12
  */
13
13
  keySchema: SchemaRef;
14
14
  valueSchema: SchemaRef;
15
+ static symbol: symbol;
16
+ protected symbol: symbol;
15
17
  constructor(name: string, traits: SchemaTraits,
16
18
  /**
17
19
  * This is expected to be StringSchema, but may have traits.
18
20
  */
19
21
  keySchema: SchemaRef, valueSchema: SchemaRef);
22
+ static [Symbol.hasInstance](lhs: unknown): lhs is MapSchema;
20
23
  }
21
24
  /**
22
25
  * Factory for MapSchema.
@@ -8,6 +8,8 @@ import { MemberSchema, NormalizedSchema as INormalizedSchema, Schema as ISchema,
8
8
  export declare class NormalizedSchema implements INormalizedSchema {
9
9
  private readonly ref;
10
10
  private memberName?;
11
+ static symbol: symbol;
12
+ protected symbol: symbol;
11
13
  private readonly name;
12
14
  private readonly traits;
13
15
  private _isMemberSchema;
@@ -19,6 +21,7 @@ export declare class NormalizedSchema implements INormalizedSchema {
19
21
  * @param memberName - optional memberName if this NormalizedSchema should be considered a member schema.
20
22
  */
21
23
  constructor(ref: SchemaRef, memberName?: string | undefined);
24
+ static [Symbol.hasInstance](lhs: unknown): lhs is NormalizedSchema;
22
25
  /**
23
26
  * Static constructor that attempts to avoid wrapping a NormalizedSchema within another.
24
27
  */
@@ -10,7 +10,10 @@ export declare class SimpleSchema extends Schema implements TraitsSchema {
10
10
  name: string;
11
11
  schemaRef: SchemaRef;
12
12
  traits: SchemaTraits;
13
+ static symbol: symbol;
14
+ protected symbol: symbol;
13
15
  constructor(name: string, schemaRef: SchemaRef, traits: SchemaTraits);
16
+ static [Symbol.hasInstance](lhs: unknown): lhs is SimpleSchema;
14
17
  }
15
18
  /**
16
19
  * Factory for simple schema class objects.
@@ -10,11 +10,14 @@ export declare class StructureSchema extends Schema implements IStructureSchema
10
10
  traits: SchemaTraits;
11
11
  memberNames: string[];
12
12
  memberList: SchemaRef[];
13
+ static symbol: symbol;
14
+ protected symbol: symbol;
13
15
  members: Record<string, [
14
16
  SchemaRef,
15
17
  SchemaTraits
16
18
  ]>;
17
19
  constructor(name: string, traits: SchemaTraits, memberNames: string[], memberList: SchemaRef[]);
20
+ static [Symbol.hasInstance](lhs: unknown): lhs is StructureSchema;
18
21
  }
19
22
  /**
20
23
  * Factory for StructureSchema.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "scripts": {
5
5
  "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline core",
@@ -75,7 +75,7 @@
75
75
  "@smithy/util-base64": "^4.0.0",
76
76
  "@smithy/util-body-length-browser": "^4.0.0",
77
77
  "@smithy/util-middleware": "^4.0.4",
78
- "@smithy/util-stream": "^4.2.2",
78
+ "@smithy/util-stream": "^4.2.3",
79
79
  "@smithy/util-utf8": "^4.0.0",
80
80
  "tslib": "^2.6.2"
81
81
  },
@@ -83,11 +83,11 @@ var FetchHttpHandler = class _FetchHttpHandler {
83
83
  }
84
84
  destroy() {
85
85
  }
86
- async handle(request, { abortSignal } = {}) {
86
+ async handle(request, { abortSignal, requestTimeout: requestTimeout2 } = {}) {
87
87
  if (!this.config) {
88
88
  this.config = await this.configProvider;
89
89
  }
90
- const requestTimeoutInMs = this.config.requestTimeout;
90
+ const requestTimeoutInMs = requestTimeout2 ?? this.config.requestTimeout;
91
91
  const keepAlive = this.config.keepAlive === true;
92
92
  const credentials = this.config.credentials;
93
93
  if (abortSignal?.aborted) {
@@ -1,7 +1,7 @@
1
1
  import { HttpResponse } from "@smithy/protocol-http";
2
2
  import { buildQueryString } from "@smithy/querystring-builder";
3
3
  import { createRequest } from "./create-request";
4
- import { requestTimeout } from "./request-timeout";
4
+ import { requestTimeout as requestTimeoutFn } from "./request-timeout";
5
5
  export const keepAliveSupport = {
6
6
  supported: undefined,
7
7
  };
@@ -26,11 +26,11 @@ export class FetchHttpHandler {
26
26
  }
27
27
  destroy() {
28
28
  }
29
- async handle(request, { abortSignal } = {}) {
29
+ async handle(request, { abortSignal, requestTimeout } = {}) {
30
30
  if (!this.config) {
31
31
  this.config = await this.configProvider;
32
32
  }
33
- const requestTimeoutInMs = this.config.requestTimeout;
33
+ const requestTimeoutInMs = requestTimeout ?? this.config.requestTimeout;
34
34
  const keepAlive = this.config.keepAlive === true;
35
35
  const credentials = this.config.credentials;
36
36
  if (abortSignal?.aborted) {
@@ -105,7 +105,7 @@ export class FetchHttpHandler {
105
105
  }),
106
106
  };
107
107
  }),
108
- requestTimeout(requestTimeoutInMs),
108
+ requestTimeoutFn(requestTimeoutInMs),
109
109
  ];
110
110
  if (abortSignal) {
111
111
  raceOfPromises.push(new Promise((resolve, reject) => {