cloudstructs 0.12.5 → 0.12.7

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 (197) hide show
  1. package/.jsii +3 -3
  2. package/lib/codecommit-mirror/index.js +2 -2
  3. package/lib/dmarc/index.js +1 -1
  4. package/lib/ecs-service-roller/index.js +2 -2
  5. package/lib/email-receiver/receiver.js +1 -1
  6. package/lib/mjml-template/index.js +1 -1
  7. package/lib/saml-identity-provider/index.js +2 -2
  8. package/lib/slack-app/manifest.js +1 -1
  9. package/lib/slack-app/slack-app.js +2 -2
  10. package/lib/slack-events/index.js +1 -1
  11. package/lib/slack-textract/index.js +1 -1
  12. package/lib/ssl-server-test/index.js +1 -1
  13. package/lib/state-machine-cr-provider/index.js +1 -1
  14. package/lib/static-website/index.js +1 -1
  15. package/lib/toolkit-cleaner/index.js +1 -1
  16. package/lib/url-shortener/index.js +1 -1
  17. package/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +1 -1
  18. package/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js +1 -1
  19. package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.d.ts +3 -4
  20. package/node_modules/@aws/lambda-invoke-store/package.json +1 -1
  21. package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +174 -174
  22. package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +153 -153
  23. package/node_modules/@aws-sdk/client-lambda/dist-es/waiters/waitForFunctionActive.js +4 -4
  24. package/node_modules/@aws-sdk/client-lambda/dist-es/waiters/waitForFunctionActiveV2.js +4 -4
  25. package/node_modules/@aws-sdk/client-lambda/dist-es/waiters/waitForFunctionExists.js +1 -1
  26. package/node_modules/@aws-sdk/client-lambda/dist-es/waiters/waitForFunctionUpdated.js +4 -4
  27. package/node_modules/@aws-sdk/client-lambda/dist-es/waiters/waitForFunctionUpdatedV2.js +4 -4
  28. package/node_modules/@aws-sdk/client-lambda/dist-es/waiters/waitForPublishedVersionActive.js +4 -4
  29. package/node_modules/@aws-sdk/client-lambda/package.json +43 -43
  30. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +6 -6
  31. package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +6 -6
  32. package/node_modules/@aws-sdk/client-sso/package.json +37 -37
  33. package/node_modules/@aws-sdk/core/dist-cjs/index.js +54 -11
  34. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +9 -1
  35. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +45 -10
  36. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +9 -1
  37. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +23 -5
  38. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +22 -5
  39. package/node_modules/@aws-sdk/core/package.json +17 -17
  40. package/node_modules/@aws-sdk/credential-provider-env/package.json +9 -9
  41. package/node_modules/@aws-sdk/credential-provider-http/package.json +14 -14
  42. package/node_modules/@aws-sdk/credential-provider-ini/package.json +18 -18
  43. package/node_modules/@aws-sdk/credential-provider-login/package.json +12 -12
  44. package/node_modules/@aws-sdk/credential-provider-node/package.json +16 -16
  45. package/node_modules/@aws-sdk/credential-provider-process/package.json +10 -10
  46. package/node_modules/@aws-sdk/credential-provider-sso/package.json +12 -12
  47. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +11 -11
  48. package/node_modules/@aws-sdk/middleware-host-header/package.json +7 -7
  49. package/node_modules/@aws-sdk/middleware-logger/package.json +7 -7
  50. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +7 -7
  51. package/node_modules/@aws-sdk/middleware-user-agent/package.json +10 -10
  52. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +9 -4
  53. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -0
  54. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +5 -2
  55. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +9 -4
  56. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +1 -0
  57. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +5 -2
  58. package/node_modules/@aws-sdk/nested-clients/package.json +36 -36
  59. package/node_modules/@aws-sdk/region-config-resolver/package.json +8 -8
  60. package/node_modules/@aws-sdk/token-providers/package.json +11 -11
  61. package/node_modules/@aws-sdk/types/package.json +5 -5
  62. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +1 -1
  63. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +1 -1
  64. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +1 -1
  65. package/node_modules/@aws-sdk/util-endpoints/package.json +8 -8
  66. package/node_modules/@aws-sdk/util-locate-window/package.json +5 -5
  67. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +5 -5
  68. package/node_modules/@aws-sdk/util-user-agent-node/package.json +9 -9
  69. package/node_modules/@aws-sdk/xml-builder/package.json +5 -5
  70. package/node_modules/@babel/runtime/package.json +1 -1
  71. package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
  72. package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +14 -1
  73. package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +3 -3
  74. package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
  75. package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +66 -2
  76. package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +4 -0
  77. package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +3 -0
  78. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  79. package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +14 -1
  80. package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +3 -3
  81. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
  82. package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +66 -2
  83. package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +4 -0
  84. package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +3 -0
  85. package/node_modules/@smithy/abort-controller/package.json +3 -3
  86. package/node_modules/@smithy/config-resolver/package.json +6 -6
  87. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +20 -0
  88. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +8 -0
  89. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +16 -6
  90. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +21 -0
  91. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +5 -0
  92. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +3 -0
  93. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +16 -6
  94. package/node_modules/@smithy/core/dist-types/submodules/protocols/SerdeContext.d.ts +10 -2
  95. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  96. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/SerdeContext.d.ts +10 -2
  97. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
  98. package/node_modules/@smithy/core/package.json +11 -11
  99. package/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  100. package/node_modules/@smithy/eventstream-codec/package.json +3 -3
  101. package/node_modules/@smithy/eventstream-serde-browser/package.json +4 -4
  102. package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +3 -3
  103. package/node_modules/@smithy/eventstream-serde-node/package.json +4 -4
  104. package/node_modules/@smithy/eventstream-serde-universal/package.json +4 -4
  105. package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  106. package/node_modules/@smithy/hash-node/package.json +3 -3
  107. package/node_modules/@smithy/invalid-dependency/package.json +3 -3
  108. package/node_modules/@smithy/middleware-content-length/package.json +4 -4
  109. package/node_modules/@smithy/middleware-endpoint/package.json +12 -12
  110. package/node_modules/@smithy/middleware-retry/package.json +12 -12
  111. package/node_modules/@smithy/middleware-serde/package.json +4 -4
  112. package/node_modules/@smithy/middleware-stack/package.json +3 -3
  113. package/node_modules/@smithy/node-config-provider/package.json +5 -5
  114. package/node_modules/@smithy/node-http-handler/package.json +6 -6
  115. package/node_modules/@smithy/property-provider/package.json +3 -3
  116. package/node_modules/@smithy/protocol-http/package.json +3 -3
  117. package/node_modules/@smithy/querystring-builder/package.json +3 -3
  118. package/node_modules/@smithy/querystring-parser/package.json +3 -3
  119. package/node_modules/@smithy/service-error-classification/package.json +3 -3
  120. package/node_modules/@smithy/shared-ini-file-loader/package.json +3 -3
  121. package/node_modules/@smithy/signature-v4/package.json +5 -5
  122. package/node_modules/@smithy/smithy-client/package.json +11 -11
  123. package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
  124. package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
  125. package/node_modules/@smithy/types/package.json +2 -2
  126. package/node_modules/@smithy/url-parser/package.json +4 -4
  127. package/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -8
  128. package/node_modules/@smithy/util-defaults-mode-node/package.json +11 -11
  129. package/node_modules/@smithy/util-endpoints/package.json +4 -4
  130. package/node_modules/@smithy/util-middleware/package.json +3 -3
  131. package/node_modules/@smithy/util-retry/package.json +4 -4
  132. package/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +20 -9
  133. package/node_modules/@smithy/util-stream/dist-cjs/index.js +8 -6
  134. package/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js +19 -7
  135. package/node_modules/@smithy/util-stream/dist-es/index.js +1 -1
  136. package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +7 -7
  137. package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +2 -3
  138. package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +4 -2
  139. package/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +4 -1
  140. package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +7 -3
  141. package/node_modules/@smithy/util-stream/dist-types/headStream.browser.d.ts +1 -2
  142. package/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +2 -2
  143. package/node_modules/@smithy/util-stream/dist-types/index.d.ts +4 -1
  144. package/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +3 -0
  145. package/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +2 -1
  146. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +7 -7
  147. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.browser.d.ts +2 -3
  148. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +4 -2
  149. package/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +4 -1
  150. package/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +7 -3
  151. package/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.browser.d.ts +1 -2
  152. package/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +2 -2
  153. package/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +4 -1
  154. package/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +3 -0
  155. package/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +2 -1
  156. package/node_modules/@smithy/util-stream/package.json +5 -5
  157. package/node_modules/@smithy/util-waiter/package.json +4 -4
  158. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  159. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +14 -1
  160. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +3 -3
  161. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
  162. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +66 -2
  163. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +4 -0
  164. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +3 -0
  165. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  166. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +14 -1
  167. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +3 -3
  168. package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
  169. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +66 -2
  170. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +4 -0
  171. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +3 -0
  172. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  173. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +14 -1
  174. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +3 -3
  175. package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
  176. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +66 -2
  177. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +4 -0
  178. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +3 -0
  179. package/node_modules/eventemitter3/README.md +3 -12
  180. package/node_modules/eventemitter3/dist/eventemitter3.esm.js +353 -345
  181. package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +1 -1
  182. package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map +1 -1
  183. package/node_modules/eventemitter3/dist/eventemitter3.umd.js +358 -350
  184. package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +1 -1
  185. package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map +1 -1
  186. package/node_modules/eventemitter3/package.json +7 -12
  187. package/node_modules/lodash/README.md +2 -2
  188. package/node_modules/lodash/_baseUnset.js +47 -2
  189. package/node_modules/lodash/core.js +1 -1
  190. package/node_modules/lodash/core.min.js +1 -1
  191. package/node_modules/lodash/lodash.js +43 -4
  192. package/node_modules/lodash/lodash.min.js +57 -57
  193. package/node_modules/lodash/package.json +1 -1
  194. package/package.json +17 -17
  195. package/node_modules/lodash/flake.lock +0 -40
  196. package/node_modules/lodash/flake.nix +0 -20
  197. package/node_modules/lodash/release.md +0 -48
@@ -389,24 +389,42 @@ class JsonShapeDeserializer extends SerdeContextConfig {
389
389
  const ns = schema.NormalizedSchema.of(schema$1);
390
390
  if (isObject) {
391
391
  if (ns.isStructSchema()) {
392
+ const record = value;
392
393
  const union = ns.isUnionSchema();
393
394
  const out = {};
395
+ let nameMap = void 0;
396
+ const { jsonName } = this.settings;
397
+ if (jsonName) {
398
+ nameMap = {};
399
+ }
394
400
  let unionSerde;
395
401
  if (union) {
396
- unionSerde = new UnionSerde(value, out);
402
+ unionSerde = new UnionSerde(record, out);
397
403
  }
398
- for (const [memberName, memberSchema] of deserializingStructIterator(ns, value, this.settings.jsonName ? "jsonName" : false)) {
399
- const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
404
+ for (const [memberName, memberSchema] of deserializingStructIterator(ns, record, jsonName ? "jsonName" : false)) {
405
+ let fromKey = memberName;
406
+ if (jsonName) {
407
+ fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
408
+ nameMap[fromKey] = memberName;
409
+ }
400
410
  if (union) {
401
411
  unionSerde.mark(fromKey);
402
412
  }
403
- if (value[fromKey] != null) {
404
- out[memberName] = this._read(memberSchema, value[fromKey]);
413
+ if (record[fromKey] != null) {
414
+ out[memberName] = this._read(memberSchema, record[fromKey]);
405
415
  }
406
416
  }
407
417
  if (union) {
408
418
  unionSerde.writeUnknown();
409
419
  }
420
+ else if (typeof record.__type === "string") {
421
+ for (const [k, v] of Object.entries(record)) {
422
+ const t = jsonName ? nameMap[k] ?? k : k;
423
+ if (!(t in out)) {
424
+ out[t] = v;
425
+ }
426
+ }
427
+ }
410
428
  return out;
411
429
  }
412
430
  if (Array.isArray(value) && ns.isListSchema()) {
@@ -585,22 +603,39 @@ class JsonShapeSerializer extends SerdeContextConfig {
585
603
  const ns = schema.NormalizedSchema.of(schema$1);
586
604
  if (isObject) {
587
605
  if (ns.isStructSchema()) {
606
+ const record = value;
588
607
  const out = {};
589
- for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
590
- const serializableValue = this._write(memberSchema, value[memberName], ns);
608
+ const { jsonName } = this.settings;
609
+ let nameMap = void 0;
610
+ if (jsonName) {
611
+ nameMap = {};
612
+ }
613
+ for (const [memberName, memberSchema] of serializingStructIterator(ns, record)) {
614
+ const serializableValue = this._write(memberSchema, record[memberName], ns);
591
615
  if (serializableValue !== undefined) {
592
- const jsonName = memberSchema.getMergedTraits().jsonName;
593
- const targetKey = this.settings.jsonName ? jsonName ?? memberName : memberName;
616
+ let targetKey = memberName;
617
+ if (jsonName) {
618
+ targetKey = memberSchema.getMergedTraits().jsonName ?? memberName;
619
+ nameMap[memberName] = targetKey;
620
+ }
594
621
  out[targetKey] = serializableValue;
595
622
  }
596
623
  }
597
624
  if (ns.isUnionSchema() && Object.keys(out).length === 0) {
598
- const { $unknown } = value;
625
+ const { $unknown } = record;
599
626
  if (Array.isArray($unknown)) {
600
627
  const [k, v] = $unknown;
601
628
  out[k] = this._write(15, v);
602
629
  }
603
630
  }
631
+ else if (typeof record.__type === "string") {
632
+ for (const [k, v] of Object.entries(record)) {
633
+ const targetKey = jsonName ? nameMap[k] ?? k : k;
634
+ if (!(targetKey in out)) {
635
+ out[targetKey] = this._write(15, v);
636
+ }
637
+ }
638
+ }
604
639
  return out;
605
640
  }
606
641
  if (Array.isArray(value) && ns.isListSchema()) {
@@ -17,7 +17,15 @@ export const resolveAwsSdkSigV4Config = (config) => {
17
17
  });
18
18
  const boundProvider = bindCallerConfig(config, memoizedProvider);
19
19
  if (isUserSupplied && !boundProvider.attributed) {
20
- resolvedCredentials = async (options) => boundProvider(options).then((creds) => setCredentialFeature(creds, "CREDENTIALS_CODE", "e"));
20
+ const isCredentialObject = typeof inputCredentials === "object" && inputCredentials !== null;
21
+ resolvedCredentials = async (options) => {
22
+ const creds = await boundProvider(options);
23
+ const attributedCreds = creds;
24
+ if (isCredentialObject && (!attributedCreds.$source || Object.keys(attributedCreds.$source).length === 0)) {
25
+ return setCredentialFeature(attributedCreds, "CREDENTIALS_CODE", "e");
26
+ }
27
+ return attributedCreds;
28
+ };
21
29
  resolvedCredentials.memoized = boundProvider.memoized;
22
30
  resolvedCredentials.configBound = boundProvider.configBound;
23
31
  resolvedCredentials.attributed = true;
@@ -24,24 +24,42 @@ export class JsonShapeDeserializer extends SerdeContextConfig {
24
24
  const ns = NormalizedSchema.of(schema);
25
25
  if (isObject) {
26
26
  if (ns.isStructSchema()) {
27
+ const record = value;
27
28
  const union = ns.isUnionSchema();
28
29
  const out = {};
30
+ let nameMap = void 0;
31
+ const { jsonName } = this.settings;
32
+ if (jsonName) {
33
+ nameMap = {};
34
+ }
29
35
  let unionSerde;
30
36
  if (union) {
31
- unionSerde = new UnionSerde(value, out);
37
+ unionSerde = new UnionSerde(record, out);
32
38
  }
33
- for (const [memberName, memberSchema] of deserializingStructIterator(ns, value, this.settings.jsonName ? "jsonName" : false)) {
34
- const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
39
+ for (const [memberName, memberSchema] of deserializingStructIterator(ns, record, jsonName ? "jsonName" : false)) {
40
+ let fromKey = memberName;
41
+ if (jsonName) {
42
+ fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
43
+ nameMap[fromKey] = memberName;
44
+ }
35
45
  if (union) {
36
46
  unionSerde.mark(fromKey);
37
47
  }
38
- if (value[fromKey] != null) {
39
- out[memberName] = this._read(memberSchema, value[fromKey]);
48
+ if (record[fromKey] != null) {
49
+ out[memberName] = this._read(memberSchema, record[fromKey]);
40
50
  }
41
51
  }
42
52
  if (union) {
43
53
  unionSerde.writeUnknown();
44
54
  }
55
+ else if (typeof record.__type === "string") {
56
+ for (const [k, v] of Object.entries(record)) {
57
+ const t = jsonName ? nameMap[k] ?? k : k;
58
+ if (!(t in out)) {
59
+ out[t] = v;
60
+ }
61
+ }
62
+ }
45
63
  return out;
46
64
  }
47
65
  if (Array.isArray(value) && ns.isListSchema()) {
@@ -42,22 +42,39 @@ export class JsonShapeSerializer extends SerdeContextConfig {
42
42
  const ns = NormalizedSchema.of(schema);
43
43
  if (isObject) {
44
44
  if (ns.isStructSchema()) {
45
+ const record = value;
45
46
  const out = {};
46
- for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
47
- const serializableValue = this._write(memberSchema, value[memberName], ns);
47
+ const { jsonName } = this.settings;
48
+ let nameMap = void 0;
49
+ if (jsonName) {
50
+ nameMap = {};
51
+ }
52
+ for (const [memberName, memberSchema] of serializingStructIterator(ns, record)) {
53
+ const serializableValue = this._write(memberSchema, record[memberName], ns);
48
54
  if (serializableValue !== undefined) {
49
- const jsonName = memberSchema.getMergedTraits().jsonName;
50
- const targetKey = this.settings.jsonName ? jsonName ?? memberName : memberName;
55
+ let targetKey = memberName;
56
+ if (jsonName) {
57
+ targetKey = memberSchema.getMergedTraits().jsonName ?? memberName;
58
+ nameMap[memberName] = targetKey;
59
+ }
51
60
  out[targetKey] = serializableValue;
52
61
  }
53
62
  }
54
63
  if (ns.isUnionSchema() && Object.keys(out).length === 0) {
55
- const { $unknown } = value;
64
+ const { $unknown } = record;
56
65
  if (Array.isArray($unknown)) {
57
66
  const [k, v] = $unknown;
58
67
  out[k] = this._write(15, v);
59
68
  }
60
69
  }
70
+ else if (typeof record.__type === "string") {
71
+ for (const [k, v] of Object.entries(record)) {
72
+ const targetKey = jsonName ? nameMap[k] ?? k : k;
73
+ if (!(targetKey in out)) {
74
+ out[targetKey] = this._write(15, v);
75
+ }
76
+ }
77
+ }
61
78
  return out;
62
79
  }
63
80
  if (Array.isArray(value) && ns.isListSchema()) {
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.957.0",
3
+ "version": "3.972.0",
4
4
  "description": "Core functions & classes shared by multiple AWS SDK clients.",
5
5
  "scripts": {
6
- "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
- "build:cjs": "node ../../scripts/compilation/inline core && rimraf ./dist-cjs/api-extractor-type-index.js",
8
- "build:es": "tsc -p tsconfig.es.json && rimraf ./dist-es/api-extractor-type-index.js",
6
+ "build": "yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
+ "build:cjs": "node ../../scripts/compilation/inline core && premove ./dist-cjs/api-extractor-type-index.js",
8
+ "build:es": "tsc -p tsconfig.es.json && premove ./dist-es/api-extractor-type-index.js",
9
9
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
12
  "lint": "node ../../scripts/validation/submodules-linter.js --pkg core",
13
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
13
+ "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
14
14
  "extract:docs": "api-extractor run --local",
15
15
  "test": "yarn g:vitest run",
16
16
  "test:watch": "yarn g:vitest watch",
@@ -81,17 +81,17 @@
81
81
  },
82
82
  "license": "Apache-2.0",
83
83
  "dependencies": {
84
- "@aws-sdk/types": "3.957.0",
85
- "@aws-sdk/xml-builder": "3.957.0",
86
- "@smithy/core": "^3.20.0",
87
- "@smithy/node-config-provider": "^4.3.7",
88
- "@smithy/property-provider": "^4.2.7",
89
- "@smithy/protocol-http": "^5.3.7",
90
- "@smithy/signature-v4": "^5.3.7",
91
- "@smithy/smithy-client": "^4.10.2",
92
- "@smithy/types": "^4.11.0",
84
+ "@aws-sdk/types": "3.972.0",
85
+ "@aws-sdk/xml-builder": "3.972.0",
86
+ "@smithy/core": "^3.20.6",
87
+ "@smithy/node-config-provider": "^4.3.8",
88
+ "@smithy/property-provider": "^4.2.8",
89
+ "@smithy/protocol-http": "^5.3.8",
90
+ "@smithy/signature-v4": "^5.3.8",
91
+ "@smithy/smithy-client": "^4.10.8",
92
+ "@smithy/types": "^4.12.0",
93
93
  "@smithy/util-base64": "^4.3.0",
94
- "@smithy/util-middleware": "^4.2.7",
94
+ "@smithy/util-middleware": "^4.2.8",
95
95
  "@smithy/util-utf8": "^4.2.0",
96
96
  "tslib": "^2.6.2"
97
97
  },
@@ -99,11 +99,11 @@
99
99
  "@tsconfig/recommended": "1.0.1",
100
100
  "concurrently": "7.0.0",
101
101
  "downlevel-dts": "0.10.1",
102
- "rimraf": "3.0.2",
102
+ "premove": "4.0.0",
103
103
  "typescript": "~5.8.3"
104
104
  },
105
105
  "engines": {
106
- "node": ">=18.0.0"
106
+ "node": ">=20.0.0"
107
107
  },
108
108
  "typesVersions": {
109
109
  "<4.0": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-env",
3
- "version": "3.957.0",
3
+ "version": "3.972.0",
4
4
  "description": "AWS credential provider that sources credentials from known environment variables",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -11,7 +11,7 @@
11
11
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
12
12
  "build:types": "tsc -p tsconfig.types.json",
13
13
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
14
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
14
+ "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
15
15
  "test": "yarn g:vitest run",
16
16
  "test:watch": "yarn g:vitest watch"
17
17
  },
@@ -26,23 +26,23 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/core": "3.957.0",
30
- "@aws-sdk/types": "3.957.0",
31
- "@smithy/property-provider": "^4.2.7",
32
- "@smithy/types": "^4.11.0",
29
+ "@aws-sdk/core": "3.972.0",
30
+ "@aws-sdk/types": "3.972.0",
31
+ "@smithy/property-provider": "^4.2.8",
32
+ "@smithy/types": "^4.12.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@tsconfig/recommended": "1.0.1",
37
- "@types/node": "^18.19.69",
37
+ "@types/node": "^20.14.8",
38
38
  "concurrently": "7.0.0",
39
39
  "downlevel-dts": "0.10.1",
40
- "rimraf": "3.0.2",
40
+ "premove": "4.0.0",
41
41
  "typescript": "~5.8.3"
42
42
  },
43
43
  "types": "./dist-types/index.d.ts",
44
44
  "engines": {
45
- "node": ">=18.0.0"
45
+ "node": ">=20.0.0"
46
46
  },
47
47
  "typesVersions": {
48
48
  "<4.0": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-http",
3
- "version": "3.957.0",
3
+ "version": "3.972.0",
4
4
  "description": "AWS credential provider for containers and HTTP sources",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -13,7 +13,7 @@
13
13
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
14
14
  "build:types": "tsc -p tsconfig.types.json",
15
15
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
16
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
16
+ "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
17
17
  "test": "yarn g:vitest run",
18
18
  "test:watch": "yarn g:vitest watch"
19
19
  },
@@ -28,28 +28,28 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@aws-sdk/core": "3.957.0",
32
- "@aws-sdk/types": "3.957.0",
33
- "@smithy/fetch-http-handler": "^5.3.8",
34
- "@smithy/node-http-handler": "^4.4.7",
35
- "@smithy/property-provider": "^4.2.7",
36
- "@smithy/protocol-http": "^5.3.7",
37
- "@smithy/smithy-client": "^4.10.2",
38
- "@smithy/types": "^4.11.0",
39
- "@smithy/util-stream": "^4.5.8",
31
+ "@aws-sdk/core": "3.972.0",
32
+ "@aws-sdk/types": "3.972.0",
33
+ "@smithy/fetch-http-handler": "^5.3.9",
34
+ "@smithy/node-http-handler": "^4.4.8",
35
+ "@smithy/property-provider": "^4.2.8",
36
+ "@smithy/protocol-http": "^5.3.8",
37
+ "@smithy/smithy-client": "^4.10.8",
38
+ "@smithy/types": "^4.12.0",
39
+ "@smithy/util-stream": "^4.5.10",
40
40
  "tslib": "^2.6.2"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@tsconfig/recommended": "1.0.1",
44
- "@types/node": "^18.19.69",
44
+ "@types/node": "^20.14.8",
45
45
  "concurrently": "7.0.0",
46
46
  "downlevel-dts": "0.10.1",
47
- "rimraf": "3.0.2",
47
+ "premove": "4.0.0",
48
48
  "typescript": "~5.8.3"
49
49
  },
50
50
  "types": "./dist-types/index.d.ts",
51
51
  "engines": {
52
- "node": ">=18.0.0"
52
+ "node": ">=20.0.0"
53
53
  },
54
54
  "typesVersions": {
55
55
  "<4.0": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.958.0",
3
+ "version": "3.972.0",
4
4
  "description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -11,7 +11,7 @@
11
11
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
12
12
  "build:types": "tsc -p tsconfig.types.json",
13
13
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
14
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
14
+ "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
15
15
  "test": "yarn g:vitest run",
16
16
  "test:watch": "yarn g:vitest watch",
17
17
  "test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
@@ -28,32 +28,32 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@aws-sdk/core": "3.957.0",
32
- "@aws-sdk/credential-provider-env": "3.957.0",
33
- "@aws-sdk/credential-provider-http": "3.957.0",
34
- "@aws-sdk/credential-provider-login": "3.958.0",
35
- "@aws-sdk/credential-provider-process": "3.957.0",
36
- "@aws-sdk/credential-provider-sso": "3.958.0",
37
- "@aws-sdk/credential-provider-web-identity": "3.958.0",
38
- "@aws-sdk/nested-clients": "3.958.0",
39
- "@aws-sdk/types": "3.957.0",
40
- "@smithy/credential-provider-imds": "^4.2.7",
41
- "@smithy/property-provider": "^4.2.7",
42
- "@smithy/shared-ini-file-loader": "^4.4.2",
43
- "@smithy/types": "^4.11.0",
31
+ "@aws-sdk/core": "3.972.0",
32
+ "@aws-sdk/credential-provider-env": "3.972.0",
33
+ "@aws-sdk/credential-provider-http": "3.972.0",
34
+ "@aws-sdk/credential-provider-login": "3.972.0",
35
+ "@aws-sdk/credential-provider-process": "3.972.0",
36
+ "@aws-sdk/credential-provider-sso": "3.972.0",
37
+ "@aws-sdk/credential-provider-web-identity": "3.972.0",
38
+ "@aws-sdk/nested-clients": "3.972.0",
39
+ "@aws-sdk/types": "3.972.0",
40
+ "@smithy/credential-provider-imds": "^4.2.8",
41
+ "@smithy/property-provider": "^4.2.8",
42
+ "@smithy/shared-ini-file-loader": "^4.4.3",
43
+ "@smithy/types": "^4.12.0",
44
44
  "tslib": "^2.6.2"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@tsconfig/recommended": "1.0.1",
48
- "@types/node": "^18.19.69",
48
+ "@types/node": "^20.14.8",
49
49
  "concurrently": "7.0.0",
50
50
  "downlevel-dts": "0.10.1",
51
- "rimraf": "3.0.2",
51
+ "premove": "4.0.0",
52
52
  "typescript": "~5.8.3"
53
53
  },
54
54
  "types": "./dist-types/index.d.ts",
55
55
  "engines": {
56
- "node": ">=18.0.0"
56
+ "node": ">=20.0.0"
57
57
  },
58
58
  "typesVersions": {
59
59
  "<4.0": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-login",
3
- "version": "3.958.0",
3
+ "version": "3.972.0",
4
4
  "description": "AWS credential provider that sources credentials from aws login cached tokens",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -11,7 +11,7 @@
11
11
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
12
12
  "build:types": "tsc -p tsconfig.types.json",
13
13
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
14
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
14
+ "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
15
15
  "test": "yarn g:vitest run",
16
16
  "test:watch": "yarn g:vitest watch"
17
17
  },
@@ -28,26 +28,26 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@aws-sdk/core": "3.957.0",
32
- "@aws-sdk/nested-clients": "3.958.0",
33
- "@aws-sdk/types": "3.957.0",
34
- "@smithy/property-provider": "^4.2.7",
35
- "@smithy/protocol-http": "^5.3.7",
36
- "@smithy/shared-ini-file-loader": "^4.4.2",
37
- "@smithy/types": "^4.11.0",
31
+ "@aws-sdk/core": "3.972.0",
32
+ "@aws-sdk/nested-clients": "3.972.0",
33
+ "@aws-sdk/types": "3.972.0",
34
+ "@smithy/property-provider": "^4.2.8",
35
+ "@smithy/protocol-http": "^5.3.8",
36
+ "@smithy/shared-ini-file-loader": "^4.4.3",
37
+ "@smithy/types": "^4.12.0",
38
38
  "tslib": "^2.6.2"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@tsconfig/recommended": "1.0.1",
42
- "@types/node": "^18.19.69",
42
+ "@types/node": "^20.14.8",
43
43
  "concurrently": "7.0.0",
44
44
  "downlevel-dts": "0.10.1",
45
- "rimraf": "3.0.2",
45
+ "premove": "4.0.0",
46
46
  "typescript": "~5.8.3"
47
47
  },
48
48
  "types": "./dist-types/index.d.ts",
49
49
  "engines": {
50
- "node": ">=18.0.0"
50
+ "node": ">=20.0.0"
51
51
  },
52
52
  "typesVersions": {
53
53
  "<4.0": {
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.958.0",
3
+ "version": "3.972.0",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "engines": {
6
- "node": ">=18.0.0"
6
+ "node": ">=20.0.0"
7
7
  },
8
8
  "main": "./dist-cjs/index.js",
9
9
  "module": "./dist-es/index.js",
@@ -14,7 +14,7 @@
14
14
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
15
15
  "build:types": "tsc -p tsconfig.types.json",
16
16
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
17
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
17
+ "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
18
18
  "test": "yarn g:vitest run --reporter verbose",
19
19
  "test:watch": "yarn g:vitest watch",
20
20
  "test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
@@ -31,25 +31,25 @@
31
31
  },
32
32
  "license": "Apache-2.0",
33
33
  "dependencies": {
34
- "@aws-sdk/credential-provider-env": "3.957.0",
35
- "@aws-sdk/credential-provider-http": "3.957.0",
36
- "@aws-sdk/credential-provider-ini": "3.958.0",
37
- "@aws-sdk/credential-provider-process": "3.957.0",
38
- "@aws-sdk/credential-provider-sso": "3.958.0",
39
- "@aws-sdk/credential-provider-web-identity": "3.958.0",
40
- "@aws-sdk/types": "3.957.0",
41
- "@smithy/credential-provider-imds": "^4.2.7",
42
- "@smithy/property-provider": "^4.2.7",
43
- "@smithy/shared-ini-file-loader": "^4.4.2",
44
- "@smithy/types": "^4.11.0",
34
+ "@aws-sdk/credential-provider-env": "3.972.0",
35
+ "@aws-sdk/credential-provider-http": "3.972.0",
36
+ "@aws-sdk/credential-provider-ini": "3.972.0",
37
+ "@aws-sdk/credential-provider-process": "3.972.0",
38
+ "@aws-sdk/credential-provider-sso": "3.972.0",
39
+ "@aws-sdk/credential-provider-web-identity": "3.972.0",
40
+ "@aws-sdk/types": "3.972.0",
41
+ "@smithy/credential-provider-imds": "^4.2.8",
42
+ "@smithy/property-provider": "^4.2.8",
43
+ "@smithy/shared-ini-file-loader": "^4.4.3",
44
+ "@smithy/types": "^4.12.0",
45
45
  "tslib": "^2.6.2"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@tsconfig/recommended": "1.0.1",
49
- "@types/node": "^18.19.69",
49
+ "@types/node": "^20.14.8",
50
50
  "concurrently": "7.0.0",
51
51
  "downlevel-dts": "0.10.1",
52
- "rimraf": "3.0.2",
52
+ "premove": "4.0.0",
53
53
  "typescript": "~5.8.3"
54
54
  },
55
55
  "types": "./dist-types/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.957.0",
3
+ "version": "3.972.0",
4
4
  "description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -11,7 +11,7 @@
11
11
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
12
12
  "build:types": "tsc -p tsconfig.types.json",
13
13
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
14
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
14
+ "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
15
15
  "test": "yarn g:vitest run",
16
16
  "test:watch": "yarn g:vitest watch"
17
17
  },
@@ -26,24 +26,24 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/core": "3.957.0",
30
- "@aws-sdk/types": "3.957.0",
31
- "@smithy/property-provider": "^4.2.7",
32
- "@smithy/shared-ini-file-loader": "^4.4.2",
33
- "@smithy/types": "^4.11.0",
29
+ "@aws-sdk/core": "3.972.0",
30
+ "@aws-sdk/types": "3.972.0",
31
+ "@smithy/property-provider": "^4.2.8",
32
+ "@smithy/shared-ini-file-loader": "^4.4.3",
33
+ "@smithy/types": "^4.12.0",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@tsconfig/recommended": "1.0.1",
38
- "@types/node": "^18.19.69",
38
+ "@types/node": "^20.14.8",
39
39
  "concurrently": "7.0.0",
40
40
  "downlevel-dts": "0.10.1",
41
- "rimraf": "3.0.2",
41
+ "premove": "4.0.0",
42
42
  "typescript": "~5.8.3"
43
43
  },
44
44
  "types": "./dist-types/index.d.ts",
45
45
  "engines": {
46
- "node": ">=18.0.0"
46
+ "node": ">=20.0.0"
47
47
  },
48
48
  "typesVersions": {
49
49
  "<4.0": {