@mavogel/awscdk-rootmail 0.0.322 → 0.0.324

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 (987) 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/dist-cjs/index.js +4442 -4660
  5. package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +41 -41
  6. package/node_modules/@aws-sdk/client-route-53/dist-cjs/index.js +7328 -7804
  7. package/node_modules/@aws-sdk/client-route-53/package.json +40 -40
  8. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +11771 -11916
  9. package/node_modules/@aws-sdk/client-s3/package.json +55 -55
  10. package/node_modules/@aws-sdk/client-ses/dist-cjs/index.js +7284 -7626
  11. package/node_modules/@aws-sdk/client-ses/package.json +38 -38
  12. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +12508 -13696
  13. package/node_modules/@aws-sdk/client-ssm/package.json +39 -39
  14. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +478 -596
  15. package/node_modules/@aws-sdk/client-sso/package.json +36 -36
  16. package/node_modules/@aws-sdk/core/dist-cjs/index.js +1969 -6
  17. package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +48 -88
  18. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +35 -74
  19. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +273 -365
  20. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1581 -1863
  21. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +2 -2
  22. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +2 -2
  23. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +4 -4
  24. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +4 -4
  25. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +3 -3
  26. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +4 -4
  27. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +2 -2
  28. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -4
  29. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +1 -1
  30. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +1 -1
  31. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +1 -1
  32. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +1 -1
  33. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +1 -1
  34. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +1 -1
  35. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts +1 -1
  36. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
  37. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +2 -2
  38. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +1 -1
  39. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlCodec.d.ts +1 -1
  40. package/node_modules/@aws-sdk/core/package.json +13 -13
  41. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +38 -73
  42. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  43. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  44. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +194 -259
  45. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  46. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +72 -132
  47. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  48. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +71 -107
  49. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  50. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +176 -249
  51. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-CVy8iqsZ.js +14 -0
  52. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  53. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +16 -25
  54. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  55. package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +6 -6
  56. package/node_modules/@aws-sdk/middleware-expect-continue/package.json +4 -4
  57. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js +381 -478
  58. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +11 -11
  59. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  60. package/node_modules/@aws-sdk/middleware-location-constraint/package.json +3 -3
  61. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  62. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  63. package/node_modules/@aws-sdk/middleware-sdk-route53/package.json +3 -3
  64. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +511 -641
  65. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +13 -13
  66. package/node_modules/@aws-sdk/middleware-ssec/package.json +3 -3
  67. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +170 -203
  68. package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
  69. package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +2 -2
  70. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +583 -858
  71. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +795 -928
  72. package/node_modules/@aws-sdk/nested-clients/package.json +36 -36
  73. package/node_modules/@aws-sdk/region-config-resolver/package.json +6 -6
  74. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +108 -137
  75. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +6 -6
  76. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +147 -222
  77. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  78. package/node_modules/@aws-sdk/types/package.json +2 -2
  79. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  80. package/node_modules/@aws-sdk/util-user-agent-browser/README.md +22 -3
  81. package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/createUserAgentStringParsingProvider.js +57 -0
  82. package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.js +39 -8
  83. package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/createUserAgentStringParsingProvider.js +20 -0
  84. package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.js +37 -6
  85. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/createUserAgentStringParsingProvider.d.ts +14 -0
  86. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +14 -4
  87. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts +4 -3
  88. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/createUserAgentStringParsingProvider.d.ts +9 -0
  89. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/index.d.ts +5 -0
  90. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  91. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +50 -94
  92. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/crt-availability.d.ts +1 -2
  93. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/defaultUserAgent.d.ts +10 -5
  94. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  95. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  96. package/node_modules/@smithy/abort-controller/dist-cjs/index.js +28 -80
  97. package/node_modules/@smithy/abort-controller/dist-es/AbortController.js +1 -3
  98. package/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +2 -2
  99. package/node_modules/@smithy/abort-controller/package.json +2 -2
  100. package/node_modules/@smithy/chunked-blob-reader/dist-cjs/index.js +9 -37
  101. package/node_modules/@smithy/chunked-blob-reader/package.json +1 -1
  102. package/node_modules/@smithy/chunked-blob-reader-native/dist-cjs/index.js +28 -55
  103. package/node_modules/@smithy/chunked-blob-reader-native/package.json +2 -2
  104. package/node_modules/@smithy/config-resolver/dist-cjs/index.js +158 -215
  105. package/node_modules/@smithy/config-resolver/package.json +5 -5
  106. package/node_modules/@smithy/core/dist-cjs/index.js +308 -412
  107. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +945 -969
  108. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +200 -249
  109. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +796 -894
  110. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +562 -802
  111. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +675 -679
  112. package/node_modules/@smithy/core/dist-es/index.js +1 -1
  113. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +7 -14
  114. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +3 -3
  115. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +18 -18
  116. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +5 -5
  117. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +10 -3
  118. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +4 -4
  119. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +7 -4
  120. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +2 -2
  121. package/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js +6 -0
  122. package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +1 -0
  123. package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +9 -7
  124. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +23 -21
  125. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +5 -1
  126. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js +3 -0
  127. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +9 -10
  128. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js +5 -6
  129. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +8 -5
  130. package/node_modules/@smithy/core/dist-es/submodules/schema/index.js +1 -0
  131. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +5 -1
  132. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +5 -1
  133. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +3 -5
  134. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +5 -5
  135. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +6 -5
  136. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +114 -182
  137. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +6 -5
  138. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +3 -0
  139. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +5 -5
  140. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +6 -5
  141. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js +14 -14
  142. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js +22 -0
  143. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  144. package/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js +110 -0
  145. package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +6 -26
  146. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js +1 -1
  147. package/node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js +4 -2
  148. package/node_modules/@smithy/core/dist-types/index.d.ts +1 -1
  149. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +5 -10
  150. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +5 -2
  151. package/node_modules/@smithy/core/dist-types/submodules/protocols/SerdeContext.d.ts +8 -0
  152. package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +1 -0
  153. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +3 -4
  154. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +5 -2
  155. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +5 -2
  156. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts +3 -4
  157. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +4 -4
  158. package/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts +1 -0
  159. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +26 -24
  160. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts +2 -0
  161. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/translateTraits.d.ts +7 -0
  162. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
  163. package/node_modules/@smithy/core/dist-types/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
  164. package/node_modules/@smithy/core/dist-types/ts3.4/index.d.ts +1 -1
  165. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +5 -10
  166. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +5 -2
  167. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/SerdeContext.d.ts +8 -0
  168. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
  169. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +3 -4
  170. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +5 -2
  171. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +5 -2
  172. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +3 -4
  173. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +4 -4
  174. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts +1 -0
  175. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +26 -24
  176. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts +2 -0
  177. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +7 -0
  178. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
  179. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
  180. package/node_modules/@smithy/core/package.json +11 -11
  181. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +340 -412
  182. package/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js +2 -1
  183. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  184. package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +372 -457
  185. package/node_modules/@smithy/eventstream-codec/dist-es/EventStreamCodec.js +3 -0
  186. package/node_modules/@smithy/eventstream-codec/dist-es/HeaderMarshaller.js +2 -0
  187. package/node_modules/@smithy/eventstream-codec/dist-es/Int64.js +2 -1
  188. package/node_modules/@smithy/eventstream-codec/dist-es/MessageDecoderStream.js +1 -0
  189. package/node_modules/@smithy/eventstream-codec/dist-es/MessageEncoderStream.js +1 -0
  190. package/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageDecoderStream.js +1 -0
  191. package/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageEncoderStream.js +1 -0
  192. package/node_modules/@smithy/eventstream-codec/package.json +4 -4
  193. package/node_modules/@smithy/eventstream-serde-browser/dist-cjs/index.js +51 -96
  194. package/node_modules/@smithy/eventstream-serde-browser/dist-es/EventStreamMarshaller.js +1 -0
  195. package/node_modules/@smithy/eventstream-serde-browser/package.json +3 -3
  196. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/index.js +4 -33
  197. package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +2 -2
  198. package/node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js +44 -80
  199. package/node_modules/@smithy/eventstream-serde-node/dist-es/EventStreamMarshaller.js +1 -0
  200. package/node_modules/@smithy/eventstream-serde-node/package.json +3 -3
  201. package/node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js +120 -170
  202. package/node_modules/@smithy/eventstream-serde-universal/dist-es/EventStreamMarshaller.js +2 -0
  203. package/node_modules/@smithy/eventstream-serde-universal/package.json +4 -4
  204. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +190 -238
  205. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +2 -0
  206. package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  207. package/node_modules/@smithy/hash-blob-browser/dist-cjs/index.js +10 -36
  208. package/node_modules/@smithy/hash-blob-browser/package.json +5 -5
  209. package/node_modules/@smithy/hash-node/dist-cjs/index.js +38 -63
  210. package/node_modules/@smithy/hash-node/dist-es/index.js +3 -0
  211. package/node_modules/@smithy/hash-node/package.json +4 -4
  212. package/node_modules/@smithy/hash-stream-node/dist-cjs/index.js +58 -92
  213. package/node_modules/@smithy/hash-stream-node/dist-es/HashCalculator.js +1 -0
  214. package/node_modules/@smithy/hash-stream-node/package.json +4 -4
  215. package/node_modules/@smithy/invalid-dependency/dist-cjs/index.js +7 -38
  216. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  217. package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +4 -30
  218. package/node_modules/@smithy/is-array-buffer/package.json +1 -1
  219. package/node_modules/@smithy/md5-js/dist-cjs/index.js +153 -186
  220. package/node_modules/@smithy/md5-js/dist-es/index.js +5 -0
  221. package/node_modules/@smithy/md5-js/package.json +5 -5
  222. package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +39 -64
  223. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  224. package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js +1 -1
  225. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +219 -277
  226. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/LICENSE +201 -0
  227. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/README.md +105 -0
  228. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +26 -0
  229. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +12 -0
  230. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +16 -0
  231. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +189 -0
  232. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +17 -0
  233. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js +16 -0
  234. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +18 -0
  235. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js +4 -0
  236. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js +4 -0
  237. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js +22 -0
  238. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js +3 -0
  239. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js +8 -0
  240. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +12 -0
  241. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +5 -0
  242. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +9 -0
  243. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +39 -0
  244. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +9 -0
  245. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js +14 -0
  246. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +52 -0
  247. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js +6 -0
  248. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +13 -0
  249. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/types.js +1 -0
  250. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/externalDataInterceptor.d.ts +9 -0
  251. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +8 -0
  252. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigFilepath.d.ts +2 -0
  253. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getCredentialsFilepath.d.ts +2 -0
  254. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getHomeDir.d.ts +6 -0
  255. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +15 -0
  256. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +5 -0
  257. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +50 -0
  258. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +6 -0
  259. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +9 -0
  260. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +36 -0
  261. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +17 -0
  262. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +7 -0
  263. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +2 -0
  264. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +18 -0
  265. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +7 -0
  266. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/externalDataInterceptor.d.ts +9 -0
  267. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigData.d.ts +8 -0
  268. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigFilepath.d.ts +2 -0
  269. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getCredentialsFilepath.d.ts +2 -0
  270. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getHomeDir.d.ts +6 -0
  271. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts +15 -0
  272. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts +5 -0
  273. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +50 -0
  274. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSsoSessionData.d.ts +6 -0
  275. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +9 -0
  276. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +36 -0
  277. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts +17 -0
  278. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/mergeConfigFiles.d.ts +7 -0
  279. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseIni.d.ts +2 -0
  280. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts +18 -0
  281. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +7 -0
  282. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts +16 -0
  283. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +16 -0
  284. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/package.json +73 -0
  285. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  286. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +327 -380
  287. package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.browser.js +1 -1
  288. package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js +2 -2
  289. package/node_modules/@smithy/middleware-retry/dist-es/AdaptiveRetryStrategy.js +1 -0
  290. package/node_modules/@smithy/middleware-retry/dist-es/StandardRetryStrategy.js +5 -1
  291. package/node_modules/@smithy/middleware-retry/package.json +9 -9
  292. package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +89 -118
  293. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  294. package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +274 -297
  295. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  296. package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +51 -98
  297. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/LICENSE +201 -0
  298. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/README.md +10 -0
  299. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-cjs/index.js +117 -0
  300. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +8 -0
  301. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/ProviderError.js +23 -0
  302. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +8 -0
  303. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/chain.js +21 -0
  304. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/fromStatic.js +1 -0
  305. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/index.js +6 -0
  306. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/memoize.js +45 -0
  307. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/CredentialsProviderError.d.ts +31 -0
  308. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ProviderError.d.ts +39 -0
  309. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/TokenProviderError.d.ts +31 -0
  310. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/chain.d.ts +13 -0
  311. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/fromStatic.d.ts +5 -0
  312. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/index.d.ts +24 -0
  313. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/memoize.d.ts +40 -0
  314. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/CredentialsProviderError.d.ts +31 -0
  315. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/ProviderError.d.ts +39 -0
  316. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/TokenProviderError.d.ts +31 -0
  317. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts +13 -0
  318. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/fromStatic.d.ts +5 -0
  319. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/index.d.ts +24 -0
  320. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/memoize.d.ts +40 -0
  321. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/package.json +61 -0
  322. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/LICENSE +201 -0
  323. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/README.md +105 -0
  324. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +26 -0
  325. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +12 -0
  326. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +16 -0
  327. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +189 -0
  328. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +17 -0
  329. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js +16 -0
  330. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +18 -0
  331. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js +4 -0
  332. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js +4 -0
  333. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js +22 -0
  334. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js +3 -0
  335. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js +8 -0
  336. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +12 -0
  337. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +5 -0
  338. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +9 -0
  339. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +39 -0
  340. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +9 -0
  341. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js +14 -0
  342. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +52 -0
  343. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js +6 -0
  344. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +13 -0
  345. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/types.js +1 -0
  346. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/externalDataInterceptor.d.ts +9 -0
  347. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +8 -0
  348. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigFilepath.d.ts +2 -0
  349. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getCredentialsFilepath.d.ts +2 -0
  350. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getHomeDir.d.ts +6 -0
  351. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +15 -0
  352. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +5 -0
  353. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +50 -0
  354. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +6 -0
  355. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +9 -0
  356. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +36 -0
  357. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +17 -0
  358. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +7 -0
  359. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +2 -0
  360. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +18 -0
  361. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +7 -0
  362. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/externalDataInterceptor.d.ts +9 -0
  363. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigData.d.ts +8 -0
  364. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigFilepath.d.ts +2 -0
  365. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getCredentialsFilepath.d.ts +2 -0
  366. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getHomeDir.d.ts +6 -0
  367. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts +15 -0
  368. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts +5 -0
  369. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +50 -0
  370. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSsoSessionData.d.ts +6 -0
  371. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +9 -0
  372. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +36 -0
  373. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts +17 -0
  374. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/mergeConfigFiles.d.ts +7 -0
  375. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseIni.d.ts +2 -0
  376. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts +18 -0
  377. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +7 -0
  378. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts +16 -0
  379. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +16 -0
  380. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/package.json +73 -0
  381. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  382. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +685 -769
  383. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +12 -6
  384. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -1
  385. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +1 -1
  386. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +4 -2
  387. package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +3 -1
  388. package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +1 -1
  389. package/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
  390. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +2 -3
  391. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +1 -4
  392. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +3 -1
  393. package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +1 -1
  394. package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
  395. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
  396. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/LICENSE +201 -0
  397. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/README.md +4 -0
  398. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-cjs/index.js +32 -0
  399. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-es/AbortController.js +7 -0
  400. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +20 -0
  401. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-es/index.js +2 -0
  402. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +16 -0
  403. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/AbortSignal.d.ts +21 -0
  404. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/index.d.ts +9 -0
  405. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +16 -0
  406. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortSignal.d.ts +21 -0
  407. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/ts3.4/index.d.ts +9 -0
  408. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/package.json +63 -0
  409. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  410. package/node_modules/@smithy/property-provider/dist-cjs/index.js +105 -158
  411. package/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +1 -1
  412. package/node_modules/@smithy/property-provider/dist-es/ProviderError.js +2 -1
  413. package/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +1 -1
  414. package/node_modules/@smithy/property-provider/package.json +2 -2
  415. package/node_modules/@smithy/protocol-http/dist-cjs/index.js +154 -246
  416. package/node_modules/@smithy/protocol-http/dist-es/Field.js +3 -0
  417. package/node_modules/@smithy/protocol-http/dist-es/Fields.js +2 -1
  418. package/node_modules/@smithy/protocol-http/dist-es/httpRequest.js +11 -0
  419. package/node_modules/@smithy/protocol-http/dist-es/httpResponse.js +4 -0
  420. package/node_modules/@smithy/protocol-http/package.json +2 -2
  421. package/node_modules/@smithy/querystring-builder/dist-cjs/index.js +21 -47
  422. package/node_modules/@smithy/querystring-builder/package.json +3 -3
  423. package/node_modules/@smithy/querystring-parser/dist-cjs/index.js +22 -48
  424. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  425. package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +70 -103
  426. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  427. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +171 -210
  428. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +1 -1
  429. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  430. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +525 -648
  431. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +2 -1
  432. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +1 -1
  433. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +6 -0
  434. package/node_modules/@smithy/signature-v4/package.json +8 -8
  435. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +555 -747
  436. package/node_modules/@smithy/smithy-client/dist-es/client.js +4 -1
  437. package/node_modules/@smithy/smithy-client/dist-es/command.js +22 -22
  438. package/node_modules/@smithy/smithy-client/dist-es/exceptions.js +4 -0
  439. package/node_modules/@smithy/smithy-client/dist-types/command.d.ts +3 -3
  440. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +3 -3
  441. package/node_modules/@smithy/smithy-client/package.json +7 -7
  442. package/node_modules/@smithy/types/dist-cjs/index.js +80 -133
  443. package/node_modules/@smithy/types/dist-es/index.js +1 -0
  444. package/node_modules/@smithy/types/dist-es/schema/static-schemas.js +1 -0
  445. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +17 -10
  446. package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
  447. package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +2 -1
  448. package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +82 -0
  449. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +17 -10
  450. package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +1 -0
  451. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +2 -1
  452. package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +101 -0
  453. package/node_modules/@smithy/types/package.json +1 -1
  454. package/node_modules/@smithy/url-parser/dist-cjs/index.js +20 -46
  455. package/node_modules/@smithy/url-parser/package.json +3 -3
  456. package/node_modules/@smithy/util-base64/dist-cjs/constants.browser.js +9 -32
  457. package/node_modules/@smithy/util-base64/dist-cjs/index.js +16 -24
  458. package/node_modules/@smithy/util-base64/dist-es/constants.browser.js +9 -28
  459. package/node_modules/@smithy/util-base64/dist-types/constants.browser.d.ts +5 -6
  460. package/node_modules/@smithy/util-base64/dist-types/ts3.4/constants.browser.d.ts +5 -6
  461. package/node_modules/@smithy/util-base64/package.json +3 -3
  462. package/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +26 -50
  463. package/node_modules/@smithy/util-body-length-browser/package.json +1 -1
  464. package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +29 -50
  465. package/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js +8 -6
  466. package/node_modules/@smithy/util-body-length-node/package.json +1 -1
  467. package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +17 -44
  468. package/node_modules/@smithy/util-buffer-from/package.json +2 -2
  469. package/node_modules/@smithy/util-config-provider/dist-cjs/index.js +26 -56
  470. package/node_modules/@smithy/util-config-provider/package.json +1 -1
  471. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +9 -22
  472. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js +13 -12
  473. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.native.js +2 -2
  474. package/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js +11 -8
  475. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/LICENSE +201 -0
  476. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/README.md +10 -0
  477. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-cjs/index.js +117 -0
  478. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +8 -0
  479. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/ProviderError.js +23 -0
  480. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +8 -0
  481. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/chain.js +21 -0
  482. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/fromStatic.js +1 -0
  483. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/index.js +6 -0
  484. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/memoize.js +45 -0
  485. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/CredentialsProviderError.d.ts +31 -0
  486. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ProviderError.d.ts +39 -0
  487. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/TokenProviderError.d.ts +31 -0
  488. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/chain.d.ts +13 -0
  489. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/fromStatic.d.ts +5 -0
  490. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/index.d.ts +24 -0
  491. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/memoize.d.ts +40 -0
  492. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/CredentialsProviderError.d.ts +31 -0
  493. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/ProviderError.d.ts +39 -0
  494. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/TokenProviderError.d.ts +31 -0
  495. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts +13 -0
  496. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/fromStatic.d.ts +5 -0
  497. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/index.d.ts +24 -0
  498. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/memoize.d.ts +40 -0
  499. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/package.json +61 -0
  500. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -5
  501. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +65 -110
  502. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/LICENSE +201 -0
  503. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/README.md +11 -0
  504. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +372 -0
  505. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/config/Endpoint.js +5 -0
  506. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointConfigOptions.js +7 -0
  507. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointMode.js +5 -0
  508. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointModeConfigOptions.js +8 -0
  509. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js +10 -0
  510. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js +77 -0
  511. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js +134 -0
  512. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/index.js +7 -0
  513. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/ImdsCredentials.js +13 -0
  514. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/RemoteProviderInit.js +3 -0
  515. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js +36 -0
  516. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/index.js +2 -0
  517. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/retry.js +7 -0
  518. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/types.js +1 -0
  519. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/utils/getExtendedInstanceMetadataCredentials.js +17 -0
  520. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/utils/getInstanceMetadataEndpoint.js +19 -0
  521. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/utils/staticStabilityProvider.js +25 -0
  522. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/config/Endpoint.d.ts +7 -0
  523. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointConfigOptions.d.ts +13 -0
  524. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointMode.d.ts +7 -0
  525. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointModeConfigOptions.d.ts +13 -0
  526. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/error/InstanceMetadataV1FallbackError.d.ts +12 -0
  527. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/fromContainerMetadata.d.ts +21 -0
  528. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/fromInstanceMetadata.d.ts +10 -0
  529. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/index.d.ts +28 -0
  530. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/ImdsCredentials.d.ts +19 -0
  531. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/RemoteProviderInit.d.ts +40 -0
  532. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +6 -0
  533. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/index.d.ts +8 -0
  534. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/retry.d.ts +10 -0
  535. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/Endpoint.d.ts +7 -0
  536. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointConfigOptions.d.ts +13 -0
  537. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointMode.d.ts +7 -0
  538. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointModeConfigOptions.d.ts +13 -0
  539. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/error/InstanceMetadataV1FallbackError.d.ts +12 -0
  540. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/fromContainerMetadata.d.ts +21 -0
  541. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/fromInstanceMetadata.d.ts +10 -0
  542. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/index.d.ts +28 -0
  543. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/ImdsCredentials.d.ts +19 -0
  544. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/RemoteProviderInit.d.ts +40 -0
  545. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/httpRequest.d.ts +6 -0
  546. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/index.d.ts +8 -0
  547. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/retry.d.ts +10 -0
  548. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/types.d.ts +7 -0
  549. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/getExtendedInstanceMetadataCredentials.d.ts +6 -0
  550. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/getInstanceMetadataEndpoint.d.ts +21 -0
  551. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/staticStabilityProvider.d.ts +16 -0
  552. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/types.d.ts +7 -0
  553. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/utils/getExtendedInstanceMetadataCredentials.d.ts +6 -0
  554. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/utils/getInstanceMetadataEndpoint.d.ts +21 -0
  555. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/utils/staticStabilityProvider.d.ts +16 -0
  556. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/package.json +70 -0
  557. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/LICENSE +201 -0
  558. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/README.md +10 -0
  559. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-cjs/index.js +117 -0
  560. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +8 -0
  561. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/ProviderError.js +23 -0
  562. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +8 -0
  563. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/chain.js +21 -0
  564. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/fromStatic.js +1 -0
  565. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/index.js +6 -0
  566. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/memoize.js +45 -0
  567. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/CredentialsProviderError.d.ts +31 -0
  568. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ProviderError.d.ts +39 -0
  569. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/TokenProviderError.d.ts +31 -0
  570. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/chain.d.ts +13 -0
  571. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/fromStatic.d.ts +5 -0
  572. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/index.d.ts +24 -0
  573. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/memoize.d.ts +40 -0
  574. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/CredentialsProviderError.d.ts +31 -0
  575. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/ProviderError.d.ts +39 -0
  576. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/TokenProviderError.d.ts +31 -0
  577. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts +13 -0
  578. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/fromStatic.d.ts +5 -0
  579. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/index.d.ts +24 -0
  580. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/memoize.d.ts +40 -0
  581. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/package.json +61 -0
  582. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  583. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +445 -526
  584. package/node_modules/@smithy/util-endpoints/dist-es/cache/EndpointCache.js +3 -2
  585. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  586. package/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +29 -58
  587. package/node_modules/@smithy/util-hex-encoding/package.json +1 -1
  588. package/node_modules/@smithy/util-middleware/dist-cjs/index.js +11 -40
  589. package/node_modules/@smithy/util-middleware/package.json +2 -2
  590. package/node_modules/@smithy/util-retry/dist-cjs/index.js +260 -340
  591. package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +4 -1
  592. package/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js +1 -0
  593. package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +17 -8
  594. package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +5 -3
  595. package/node_modules/@smithy/util-retry/package.json +3 -3
  596. package/node_modules/@smithy/util-stream/dist-cjs/ByteArrayCollector.js +3 -2
  597. package/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js +7 -3
  598. package/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js +2 -3
  599. package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +1 -1
  600. package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +2 -3
  601. package/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +1 -2
  602. package/node_modules/@smithy/util-stream/dist-cjs/headStream.js +4 -8
  603. package/node_modules/@smithy/util-stream/dist-cjs/index.js +80 -92
  604. package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js +1 -2
  605. package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +1 -2
  606. package/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js +3 -7
  607. package/node_modules/@smithy/util-stream/dist-es/ByteArrayCollector.js +3 -2
  608. package/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js +3 -5
  609. package/node_modules/@smithy/util-stream/dist-es/checksum/ChecksumStream.js +5 -0
  610. package/node_modules/@smithy/util-stream/dist-es/headStream.js +3 -6
  611. package/node_modules/@smithy/util-stream/dist-types/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
  612. package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
  613. package/node_modules/@smithy/util-stream/package.json +8 -8
  614. package/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +6 -40
  615. package/node_modules/@smithy/util-uri-escape/package.json +1 -1
  616. package/node_modules/@smithy/util-utf8/dist-cjs/index.js +27 -60
  617. package/node_modules/@smithy/util-utf8/package.json +2 -2
  618. package/node_modules/@smithy/util-waiter/dist-cjs/index.js +152 -189
  619. package/node_modules/@smithy/util-waiter/package.json +3 -3
  620. package/node_modules/@smithy/uuid/dist-cjs/index.js +33 -42
  621. package/node_modules/@smithy/uuid/package.json +1 -1
  622. package/node_modules/cdk-nag/.jsii +3 -3
  623. package/node_modules/cdk-nag/API.md +1 -1
  624. package/node_modules/cdk-nag/lib/ignore-suppression-conditions.js +5 -5
  625. package/node_modules/cdk-nag/lib/nag-logger.js +2 -2
  626. package/node_modules/cdk-nag/lib/nag-pack.js +1 -1
  627. package/node_modules/cdk-nag/lib/nag-rules.js +1 -1
  628. package/node_modules/cdk-nag/lib/nag-suppressions.js +1 -1
  629. package/node_modules/cdk-nag/lib/packs/aws-solutions.js +1 -1
  630. package/node_modules/cdk-nag/lib/packs/hipaa-security.js +1 -1
  631. package/node_modules/cdk-nag/lib/packs/nist-800-53-r4.js +1 -1
  632. package/node_modules/cdk-nag/lib/packs/nist-800-53-r5.js +1 -1
  633. package/node_modules/cdk-nag/lib/packs/pci-dss-321.js +1 -1
  634. package/node_modules/cdk-nag/lib/packs/serverless.js +1 -1
  635. package/node_modules/cdk-nag/package.json +4 -4
  636. package/node_modules/mailparser/CHANGELOG.md +7 -0
  637. package/node_modules/mailparser/lib/mail-parser.js +12 -3
  638. package/node_modules/mailparser/node_modules/iconv-lite/Changelog.md +236 -0
  639. package/node_modules/mailparser/node_modules/iconv-lite/LICENSE +21 -0
  640. package/node_modules/mailparser/node_modules/iconv-lite/README.md +138 -0
  641. package/node_modules/mailparser/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
  642. package/node_modules/mailparser/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
  643. package/node_modules/mailparser/node_modules/iconv-lite/encodings/index.js +23 -0
  644. package/node_modules/mailparser/node_modules/iconv-lite/encodings/internal.js +218 -0
  645. package/node_modules/mailparser/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
  646. package/node_modules/mailparser/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  647. package/node_modules/mailparser/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
  648. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  649. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  650. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  651. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  652. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  653. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  654. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  655. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  656. package/node_modules/mailparser/node_modules/iconv-lite/encodings/utf16.js +187 -0
  657. package/node_modules/mailparser/node_modules/iconv-lite/encodings/utf32.js +307 -0
  658. package/node_modules/mailparser/node_modules/iconv-lite/encodings/utf7.js +283 -0
  659. package/node_modules/mailparser/node_modules/iconv-lite/lib/bom-handling.js +48 -0
  660. package/node_modules/mailparser/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  661. package/node_modules/mailparser/node_modules/iconv-lite/lib/index.d.ts +41 -0
  662. package/node_modules/mailparser/node_modules/iconv-lite/lib/index.js +183 -0
  663. package/node_modules/mailparser/node_modules/iconv-lite/lib/streams.js +105 -0
  664. package/node_modules/mailparser/node_modules/iconv-lite/package.json +59 -0
  665. package/node_modules/mailparser/package.json +5 -5
  666. package/node_modules/mailsplit/index.js +2 -0
  667. package/node_modules/mailsplit/lib/chunked-passthrough.js +37 -0
  668. package/node_modules/mailsplit/package.json +1 -1
  669. package/node_modules/nodemailer/.ncurc.js +3 -5
  670. package/node_modules/nodemailer/.prettierignore +8 -0
  671. package/node_modules/nodemailer/.prettierrc +12 -0
  672. package/node_modules/nodemailer/.prettierrc.js +2 -0
  673. package/node_modules/nodemailer/.release-please-config.json +9 -0
  674. package/node_modules/nodemailer/CHANGELOG.md +323 -305
  675. package/node_modules/nodemailer/CODE_OF_CONDUCT.md +13 -13
  676. package/node_modules/nodemailer/README.md +10 -10
  677. package/node_modules/nodemailer/eslint.config.js +88 -0
  678. package/node_modules/nodemailer/lib/addressparser/index.js +47 -7
  679. package/node_modules/nodemailer/lib/base64/index.js +11 -14
  680. package/node_modules/nodemailer/lib/dkim/index.js +3 -1
  681. package/node_modules/nodemailer/lib/dkim/sign.js +1 -1
  682. package/node_modules/nodemailer/lib/fetch/index.js +7 -1
  683. package/node_modules/nodemailer/lib/mail-composer/index.js +47 -9
  684. package/node_modules/nodemailer/lib/mailer/index.js +8 -1
  685. package/node_modules/nodemailer/lib/mailer/mail-message.js +2 -1
  686. package/node_modules/nodemailer/lib/mime-funcs/index.js +2 -2
  687. package/node_modules/nodemailer/lib/mime-funcs/mime-types.js +12 -3
  688. package/node_modules/nodemailer/lib/mime-node/index.js +11 -9
  689. package/node_modules/nodemailer/lib/nodemailer.js +3 -1
  690. package/node_modules/nodemailer/lib/qp/index.js +10 -2
  691. package/node_modules/nodemailer/lib/shared/index.js +108 -42
  692. package/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +2 -2
  693. package/node_modules/nodemailer/lib/smtp-connection/index.js +13 -6
  694. package/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +3 -2
  695. package/node_modules/nodemailer/lib/smtp-transport/index.js +1 -1
  696. package/node_modules/nodemailer/lib/well-known/services.json +277 -42
  697. package/node_modules/nodemailer/lib/xoauth2/index.js +58 -7
  698. package/node_modules/nodemailer/package.json +9 -5
  699. package/node_modules/tlds/index.json +0 -1
  700. package/node_modules/tlds/package.json +1 -1
  701. package/package.json +1 -1
  702. package/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +0 -1
  703. package/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +0 -1
  704. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +0 -1
  705. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +0 -1
  706. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/index.js +0 -1
  707. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js +0 -1
  708. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js +0 -1
  709. package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js +0 -1
  710. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js +0 -1
  711. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/getRealRegion.js +0 -1
  712. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/index.js +0 -1
  713. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/isFipsRegion.js +0 -1
  714. package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +0 -1
  715. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariant.js +0 -1
  716. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariantTag.js +0 -1
  717. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js +0 -1
  718. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/RegionHash.js +0 -1
  719. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js +0 -1
  720. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getRegionInfo.js +0 -1
  721. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js +0 -1
  722. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js +0 -1
  723. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js +0 -1
  724. package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/index.js +0 -1
  725. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js +0 -1
  726. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js +0 -1
  727. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js +0 -1
  728. package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js +0 -1
  729. package/node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js +0 -1
  730. package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js +0 -1
  731. package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +0 -1
  732. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js +0 -1
  733. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js +0 -1
  734. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js +0 -1
  735. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/index.js +0 -1
  736. package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js +0 -1
  737. package/node_modules/@smithy/credential-provider-imds/dist-cjs/types.js +0 -1
  738. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js +0 -1
  739. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js +0 -1
  740. package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js +0 -1
  741. package/node_modules/@smithy/eventstream-codec/dist-cjs/EventStreamCodec.js +0 -1
  742. package/node_modules/@smithy/eventstream-codec/dist-cjs/HeaderMarshaller.js +0 -1
  743. package/node_modules/@smithy/eventstream-codec/dist-cjs/Int64.js +0 -1
  744. package/node_modules/@smithy/eventstream-codec/dist-cjs/Message.js +0 -1
  745. package/node_modules/@smithy/eventstream-codec/dist-cjs/MessageDecoderStream.js +0 -1
  746. package/node_modules/@smithy/eventstream-codec/dist-cjs/MessageEncoderStream.js +0 -1
  747. package/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js +0 -1
  748. package/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js +0 -1
  749. package/node_modules/@smithy/eventstream-codec/dist-cjs/TestVectors.fixture.js +0 -1
  750. package/node_modules/@smithy/eventstream-codec/dist-cjs/splitMessage.js +0 -1
  751. package/node_modules/@smithy/eventstream-codec/dist-cjs/vectorTypes.fixture.js +0 -1
  752. package/node_modules/@smithy/eventstream-serde-browser/dist-cjs/EventStreamMarshaller.js +0 -1
  753. package/node_modules/@smithy/eventstream-serde-browser/dist-cjs/provider.js +0 -1
  754. package/node_modules/@smithy/eventstream-serde-browser/dist-cjs/utils.js +0 -1
  755. package/node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/EventStreamSerdeConfig.js +0 -1
  756. package/node_modules/@smithy/eventstream-serde-node/dist-cjs/EventStreamMarshaller.js +0 -1
  757. package/node_modules/@smithy/eventstream-serde-node/dist-cjs/provider.js +0 -1
  758. package/node_modules/@smithy/eventstream-serde-node/dist-cjs/utils.js +0 -1
  759. package/node_modules/@smithy/eventstream-serde-universal/dist-cjs/EventStreamMarshaller.js +0 -1
  760. package/node_modules/@smithy/eventstream-serde-universal/dist-cjs/getChunkedStream.js +0 -1
  761. package/node_modules/@smithy/eventstream-serde-universal/dist-cjs/getUnmarshalledStream.js +0 -1
  762. package/node_modules/@smithy/eventstream-serde-universal/dist-cjs/provider.js +0 -1
  763. package/node_modules/@smithy/fetch-http-handler/dist-cjs/create-request.js +0 -1
  764. package/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js +0 -1
  765. package/node_modules/@smithy/fetch-http-handler/dist-cjs/request-timeout.js +0 -1
  766. package/node_modules/@smithy/fetch-http-handler/dist-cjs/stream-collector.js +0 -1
  767. package/node_modules/@smithy/hash-stream-node/dist-cjs/HashCalculator.js +0 -1
  768. package/node_modules/@smithy/hash-stream-node/dist-cjs/fileStreamHasher.js +0 -1
  769. package/node_modules/@smithy/hash-stream-node/dist-cjs/readableStreamHasher.js +0 -1
  770. package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidFunction.js +0 -1
  771. package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidProvider.js +0 -1
  772. package/node_modules/@smithy/md5-js/dist-cjs/constants.js +0 -1
  773. package/node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js +0 -1
  774. package/node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js +0 -1
  775. package/node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js +0 -1
  776. package/node_modules/@smithy/middleware-stack/dist-cjs/MiddlewareStack.js +0 -1
  777. package/node_modules/@smithy/middleware-stack/dist-cjs/types.js +0 -1
  778. package/node_modules/@smithy/node-config-provider/dist-cjs/configLoader.js +0 -1
  779. package/node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js +0 -1
  780. package/node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js +0 -1
  781. package/node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js +0 -1
  782. package/node_modules/@smithy/node-config-provider/dist-cjs/getSelectorName.js +0 -1
  783. package/node_modules/@smithy/node-http-handler/dist-cjs/constants.js +0 -1
  784. package/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js +0 -1
  785. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js +0 -1
  786. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js +0 -1
  787. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js +0 -1
  788. package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js +0 -1
  789. package/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js +0 -1
  790. package/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js +0 -1
  791. package/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js +0 -1
  792. package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js +0 -1
  793. package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js +0 -1
  794. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js +0 -1
  795. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js +0 -1
  796. package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js +0 -1
  797. package/node_modules/@smithy/node-http-handler/dist-cjs/timing.js +0 -1
  798. package/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js +0 -1
  799. package/node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js +0 -1
  800. package/node_modules/@smithy/property-provider/dist-cjs/ProviderError.js +0 -1
  801. package/node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js +0 -1
  802. package/node_modules/@smithy/property-provider/dist-cjs/chain.js +0 -1
  803. package/node_modules/@smithy/property-provider/dist-cjs/fromStatic.js +0 -1
  804. package/node_modules/@smithy/property-provider/dist-cjs/memoize.js +0 -1
  805. package/node_modules/@smithy/protocol-http/dist-cjs/Field.js +0 -1
  806. package/node_modules/@smithy/protocol-http/dist-cjs/Fields.js +0 -1
  807. package/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +0 -1
  808. package/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +0 -1
  809. package/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js +0 -1
  810. package/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +0 -1
  811. package/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +0 -1
  812. package/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +0 -1
  813. package/node_modules/@smithy/protocol-http/dist-cjs/types.js +0 -1
  814. package/node_modules/@smithy/service-error-classification/dist-cjs/constants.js +0 -1
  815. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/externalDataInterceptor.js +0 -1
  816. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +0 -1
  817. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +0 -1
  818. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +0 -1
  819. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js +0 -1
  820. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +0 -1
  821. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +0 -1
  822. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +0 -1
  823. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js +0 -1
  824. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +0 -1
  825. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +0 -1
  826. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js +0 -1
  827. package/node_modules/@smithy/signature-v4/dist-cjs/HeaderFormatter.js +0 -1
  828. package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js +0 -1
  829. package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4Base.js +0 -1
  830. package/node_modules/@smithy/signature-v4/dist-cjs/constants.js +0 -1
  831. package/node_modules/@smithy/signature-v4/dist-cjs/credentialDerivation.js +0 -1
  832. package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalHeaders.js +0 -1
  833. package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js +0 -1
  834. package/node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js +0 -1
  835. package/node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js +0 -1
  836. package/node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js +0 -1
  837. package/node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js +0 -1
  838. package/node_modules/@smithy/signature-v4/dist-cjs/signature-v4a-container.js +0 -1
  839. package/node_modules/@smithy/signature-v4/dist-cjs/suite.fixture.js +0 -1
  840. package/node_modules/@smithy/signature-v4/dist-cjs/utilDate.js +0 -1
  841. package/node_modules/@smithy/types/dist-cjs/abort-handler.js +0 -1
  842. package/node_modules/@smithy/types/dist-cjs/abort.js +0 -1
  843. package/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +0 -1
  844. package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +0 -1
  845. package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +0 -1
  846. package/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +0 -1
  847. package/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +0 -1
  848. package/node_modules/@smithy/types/dist-cjs/auth/auth.js +0 -1
  849. package/node_modules/@smithy/types/dist-cjs/auth/index.js +0 -1
  850. package/node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js +0 -1
  851. package/node_modules/@smithy/types/dist-cjs/checksum.js +0 -1
  852. package/node_modules/@smithy/types/dist-cjs/client.js +0 -1
  853. package/node_modules/@smithy/types/dist-cjs/command.js +0 -1
  854. package/node_modules/@smithy/types/dist-cjs/connection/config.js +0 -1
  855. package/node_modules/@smithy/types/dist-cjs/connection/index.js +0 -1
  856. package/node_modules/@smithy/types/dist-cjs/connection/manager.js +0 -1
  857. package/node_modules/@smithy/types/dist-cjs/connection/pool.js +0 -1
  858. package/node_modules/@smithy/types/dist-cjs/crypto.js +0 -1
  859. package/node_modules/@smithy/types/dist-cjs/downlevel-ts3.4/transform/type-transform.js +0 -1
  860. package/node_modules/@smithy/types/dist-cjs/encode.js +0 -1
  861. package/node_modules/@smithy/types/dist-cjs/endpoint.js +0 -1
  862. package/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +0 -1
  863. package/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +0 -1
  864. package/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +0 -1
  865. package/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +0 -1
  866. package/node_modules/@smithy/types/dist-cjs/endpoints/index.js +0 -1
  867. package/node_modules/@smithy/types/dist-cjs/endpoints/shared.js +0 -1
  868. package/node_modules/@smithy/types/dist-cjs/eventStream.js +0 -1
  869. package/node_modules/@smithy/types/dist-cjs/extensions/checksum.js +0 -1
  870. package/node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js +0 -1
  871. package/node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js +0 -1
  872. package/node_modules/@smithy/types/dist-cjs/extensions/index.js +0 -1
  873. package/node_modules/@smithy/types/dist-cjs/extensions/retry.js +0 -1
  874. package/node_modules/@smithy/types/dist-cjs/externals-check/browser-externals-check.js +0 -1
  875. package/node_modules/@smithy/types/dist-cjs/feature-ids.js +0 -1
  876. package/node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js +0 -1
  877. package/node_modules/@smithy/types/dist-cjs/http.js +0 -1
  878. package/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +0 -1
  879. package/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +0 -1
  880. package/node_modules/@smithy/types/dist-cjs/identity/identity.js +0 -1
  881. package/node_modules/@smithy/types/dist-cjs/identity/index.js +0 -1
  882. package/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +0 -1
  883. package/node_modules/@smithy/types/dist-cjs/logger.js +0 -1
  884. package/node_modules/@smithy/types/dist-cjs/middleware.js +0 -1
  885. package/node_modules/@smithy/types/dist-cjs/pagination.js +0 -1
  886. package/node_modules/@smithy/types/dist-cjs/profile.js +0 -1
  887. package/node_modules/@smithy/types/dist-cjs/response.js +0 -1
  888. package/node_modules/@smithy/types/dist-cjs/retry.js +0 -1
  889. package/node_modules/@smithy/types/dist-cjs/schema/schema.js +0 -1
  890. package/node_modules/@smithy/types/dist-cjs/schema/sentinels.js +0 -1
  891. package/node_modules/@smithy/types/dist-cjs/schema/traits.js +0 -1
  892. package/node_modules/@smithy/types/dist-cjs/serde.js +0 -1
  893. package/node_modules/@smithy/types/dist-cjs/shapes.js +0 -1
  894. package/node_modules/@smithy/types/dist-cjs/signature.js +0 -1
  895. package/node_modules/@smithy/types/dist-cjs/stream.js +0 -1
  896. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js +0 -1
  897. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +0 -1
  898. package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +0 -1
  899. package/node_modules/@smithy/types/dist-cjs/transfer.js +0 -1
  900. package/node_modules/@smithy/types/dist-cjs/transform/client-method-transforms.js +0 -1
  901. package/node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js +0 -1
  902. package/node_modules/@smithy/types/dist-cjs/transform/exact.js +0 -1
  903. package/node_modules/@smithy/types/dist-cjs/transform/mutable.js +0 -1
  904. package/node_modules/@smithy/types/dist-cjs/transform/no-undefined.js +0 -1
  905. package/node_modules/@smithy/types/dist-cjs/transform/type-transform.js +0 -1
  906. package/node_modules/@smithy/types/dist-cjs/uri.js +0 -1
  907. package/node_modules/@smithy/types/dist-cjs/util.js +0 -1
  908. package/node_modules/@smithy/types/dist-cjs/waiter.js +0 -1
  909. package/node_modules/@smithy/util-body-length-browser/dist-cjs/calculateBodyLength.js +0 -1
  910. package/node_modules/@smithy/util-body-length-node/dist-cjs/calculateBodyLength.js +0 -1
  911. package/node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js +0 -1
  912. package/node_modules/@smithy/util-config-provider/dist-cjs/numberSelector.js +0 -1
  913. package/node_modules/@smithy/util-config-provider/dist-cjs/types.js +0 -1
  914. package/node_modules/@smithy/util-endpoints/dist-cjs/cache/EndpointCache.js +0 -1
  915. package/node_modules/@smithy/util-endpoints/dist-cjs/debug/debugId.js +0 -1
  916. package/node_modules/@smithy/util-endpoints/dist-cjs/debug/index.js +0 -1
  917. package/node_modules/@smithy/util-endpoints/dist-cjs/debug/toDebugString.js +0 -1
  918. package/node_modules/@smithy/util-endpoints/dist-cjs/getEndpointUrlConfig.js +0 -1
  919. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/booleanEquals.js +0 -1
  920. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttr.js +0 -1
  921. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttrPathList.js +0 -1
  922. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/index.js +0 -1
  923. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isIpAddress.js +0 -1
  924. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isSet.js +0 -1
  925. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isValidHostLabel.js +0 -1
  926. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/not.js +0 -1
  927. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/parseURL.js +0 -1
  928. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/stringEquals.js +0 -1
  929. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/substring.js +0 -1
  930. package/node_modules/@smithy/util-endpoints/dist-cjs/lib/uriEncode.js +0 -1
  931. package/node_modules/@smithy/util-endpoints/dist-cjs/resolveEndpoint.js +0 -1
  932. package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointError.js +0 -1
  933. package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointFunctions.js +0 -1
  934. package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointRuleObject.js +0 -1
  935. package/node_modules/@smithy/util-endpoints/dist-cjs/types/ErrorRuleObject.js +0 -1
  936. package/node_modules/@smithy/util-endpoints/dist-cjs/types/RuleSetObject.js +0 -1
  937. package/node_modules/@smithy/util-endpoints/dist-cjs/types/TreeRuleObject.js +0 -1
  938. package/node_modules/@smithy/util-endpoints/dist-cjs/types/index.js +0 -1
  939. package/node_modules/@smithy/util-endpoints/dist-cjs/types/shared.js +0 -1
  940. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/callFunction.js +0 -1
  941. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/customEndpointFunctions.js +0 -1
  942. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/endpointFunctions.js +0 -1
  943. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateCondition.js +0 -1
  944. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateConditions.js +0 -1
  945. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js +0 -1
  946. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateErrorRule.js +0 -1
  947. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateExpression.js +0 -1
  948. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateRules.js +0 -1
  949. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTemplate.js +0 -1
  950. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTreeRule.js +0 -1
  951. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointHeaders.js +0 -1
  952. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperties.js +0 -1
  953. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperty.js +0 -1
  954. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointUrl.js +0 -1
  955. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getReferenceValue.js +0 -1
  956. package/node_modules/@smithy/util-endpoints/dist-cjs/utils/index.js +0 -1
  957. package/node_modules/@smithy/util-middleware/dist-cjs/getSmithyContext.js +0 -1
  958. package/node_modules/@smithy/util-middleware/dist-cjs/normalizeProvider.js +0 -1
  959. package/node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js +0 -1
  960. package/node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js +0 -1
  961. package/node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js +0 -1
  962. package/node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js +0 -1
  963. package/node_modules/@smithy/util-retry/dist-cjs/config.js +0 -1
  964. package/node_modules/@smithy/util-retry/dist-cjs/constants.js +0 -1
  965. package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js +0 -1
  966. package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js +0 -1
  967. package/node_modules/@smithy/util-retry/dist-cjs/types.js +0 -1
  968. package/node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js +0 -1
  969. package/node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js +0 -1
  970. package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js +0 -1
  971. package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js +0 -1
  972. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
  973. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
  974. package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
  975. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
  976. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
  977. package/node_modules/@smithy/util-waiter/dist-cjs/createWaiter.js +0 -1
  978. package/node_modules/@smithy/util-waiter/dist-cjs/poller.js +0 -1
  979. package/node_modules/@smithy/util-waiter/dist-cjs/utils/index.js +0 -1
  980. package/node_modules/@smithy/util-waiter/dist-cjs/utils/sleep.js +0 -1
  981. package/node_modules/@smithy/util-waiter/dist-cjs/utils/validate.js +0 -1
  982. package/node_modules/@smithy/util-waiter/dist-cjs/waiter.js +0 -1
  983. package/node_modules/@smithy/uuid/dist-cjs/randomUUID.browser.js +0 -1
  984. package/node_modules/@smithy/uuid/dist-cjs/v4.js +0 -1
  985. /package/node_modules/@smithy/core/dist-es/{protocols → request-builder}/requestBuilder.js +0 -0
  986. /package/node_modules/@smithy/core/dist-types/{protocols → request-builder}/requestBuilder.d.ts +0 -0
  987. /package/node_modules/@smithy/core/dist-types/ts3.4/{protocols → request-builder}/requestBuilder.d.ts +0 -0
@@ -1,842 +1,602 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ 'use strict';
18
2
 
19
- // src/submodules/schema/index.ts
20
- var index_exports = {};
21
- __export(index_exports, {
22
- ErrorSchema: () => ErrorSchema,
23
- ListSchema: () => ListSchema,
24
- MapSchema: () => MapSchema,
25
- NormalizedSchema: () => NormalizedSchema,
26
- OperationSchema: () => OperationSchema,
27
- SCHEMA: () => SCHEMA,
28
- Schema: () => Schema,
29
- SimpleSchema: () => SimpleSchema,
30
- StructureSchema: () => StructureSchema,
31
- TypeRegistry: () => TypeRegistry,
32
- deref: () => deref,
33
- deserializerMiddlewareOption: () => deserializerMiddlewareOption,
34
- error: () => error,
35
- getSchemaSerdePlugin: () => getSchemaSerdePlugin,
36
- list: () => list,
37
- map: () => map,
38
- op: () => op,
39
- serializerMiddlewareOption: () => serializerMiddlewareOption,
40
- sim: () => sim,
41
- struct: () => struct
42
- });
43
- module.exports = __toCommonJS(index_exports);
3
+ var protocolHttp = require('@smithy/protocol-http');
4
+ var utilMiddleware = require('@smithy/util-middleware');
44
5
 
45
- // src/submodules/schema/deref.ts
46
- var deref = (schemaRef) => {
47
- if (typeof schemaRef === "function") {
48
- return schemaRef();
49
- }
50
- return schemaRef;
6
+ const deref = (schemaRef) => {
7
+ if (typeof schemaRef === "function") {
8
+ return schemaRef();
9
+ }
10
+ return schemaRef;
51
11
  };
52
12
 
53
- // src/submodules/schema/middleware/schemaDeserializationMiddleware.ts
54
- var import_protocol_http = require("@smithy/protocol-http");
55
- var import_util_middleware = require("@smithy/util-middleware");
56
- var schemaDeserializationMiddleware = (config) => (next, context) => async (args) => {
57
- const { response } = await next(args);
58
- const { operationSchema } = (0, import_util_middleware.getSmithyContext)(context);
59
- try {
60
- const parsed = await config.protocol.deserializeResponse(
61
- operationSchema,
62
- {
63
- ...config,
64
- ...context
65
- },
66
- response
67
- );
68
- return {
69
- response,
70
- output: parsed
71
- };
72
- } catch (error2) {
73
- Object.defineProperty(error2, "$response", {
74
- value: response
75
- });
76
- if (!("$metadata" in error2)) {
77
- const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
78
- try {
79
- error2.message += "\n " + hint;
80
- } catch (e) {
81
- if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
82
- console.warn(hint);
83
- } else {
84
- context.logger?.warn?.(hint);
13
+ class TypeRegistry {
14
+ namespace;
15
+ schemas;
16
+ exceptions;
17
+ static registries = new Map();
18
+ constructor(namespace, schemas = new Map(), exceptions = new Map()) {
19
+ this.namespace = namespace;
20
+ this.schemas = schemas;
21
+ this.exceptions = exceptions;
22
+ }
23
+ static for(namespace) {
24
+ if (!TypeRegistry.registries.has(namespace)) {
25
+ TypeRegistry.registries.set(namespace, new TypeRegistry(namespace));
85
26
  }
86
- }
87
- if (typeof error2.$responseBodyText !== "undefined") {
88
- if (error2.$response) {
89
- error2.$response.body = error2.$responseBodyText;
27
+ return TypeRegistry.registries.get(namespace);
28
+ }
29
+ register(shapeId, schema) {
30
+ const qualifiedName = this.normalizeShapeId(shapeId);
31
+ this.schemas.set(qualifiedName, schema);
32
+ }
33
+ getSchema(shapeId) {
34
+ const id = this.normalizeShapeId(shapeId);
35
+ if (!this.schemas.has(id)) {
36
+ throw new Error(`@smithy/core/schema - schema not found for ${id}`);
90
37
  }
91
- }
92
- try {
93
- if (import_protocol_http.HttpResponse.isInstance(response)) {
94
- const { headers = {} } = response;
95
- const headerEntries = Object.entries(headers);
96
- error2.$metadata = {
97
- httpStatusCode: response.statusCode,
98
- requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
99
- extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
100
- cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries)
101
- };
38
+ return this.schemas.get(id);
39
+ }
40
+ registerError(es, ctor) {
41
+ this.exceptions.set(es, ctor);
42
+ }
43
+ getErrorCtor(es) {
44
+ return this.exceptions.get(es);
45
+ }
46
+ getBaseException() {
47
+ for (const [id, schema] of this.schemas.entries()) {
48
+ if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) {
49
+ return schema;
50
+ }
102
51
  }
103
- } catch (e) {
104
- }
52
+ return undefined;
105
53
  }
106
- throw error2;
107
- }
108
- };
109
- var findHeader = (pattern, headers) => {
110
- return (headers.find(([k]) => {
111
- return k.match(pattern);
112
- }) || [void 0, void 0])[1];
113
- };
114
-
115
- // src/submodules/schema/middleware/schemaSerializationMiddleware.ts
116
- var import_util_middleware2 = require("@smithy/util-middleware");
117
- var schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
118
- const { operationSchema } = (0, import_util_middleware2.getSmithyContext)(context);
119
- const endpoint = context.endpointV2?.url && config.urlParser ? async () => config.urlParser(context.endpointV2.url) : config.endpoint;
120
- const request = await config.protocol.serializeRequest(operationSchema, args.input, {
121
- ...config,
122
- ...context,
123
- endpoint
124
- });
125
- return next({
126
- ...args,
127
- request
128
- });
129
- };
130
-
131
- // src/submodules/schema/middleware/getSchemaSerdePlugin.ts
132
- var deserializerMiddlewareOption = {
133
- name: "deserializerMiddleware",
134
- step: "deserialize",
135
- tags: ["DESERIALIZER"],
136
- override: true
137
- };
138
- var serializerMiddlewareOption = {
139
- name: "serializerMiddleware",
140
- step: "serialize",
141
- tags: ["SERIALIZER"],
142
- override: true
143
- };
144
- function getSchemaSerdePlugin(config) {
145
- return {
146
- applyToStack: (commandStack) => {
147
- commandStack.add(schemaSerializationMiddleware(config), serializerMiddlewareOption);
148
- commandStack.add(schemaDeserializationMiddleware(config), deserializerMiddlewareOption);
149
- config.protocol.setSerdeContext(config);
54
+ find(predicate) {
55
+ return [...this.schemas.values()].find(predicate);
56
+ }
57
+ clear() {
58
+ this.schemas.clear();
59
+ this.exceptions.clear();
60
+ }
61
+ normalizeShapeId(shapeId) {
62
+ if (shapeId.includes("#")) {
63
+ return shapeId;
64
+ }
65
+ return this.namespace + "#" + shapeId;
66
+ }
67
+ getNamespace(shapeId) {
68
+ return this.normalizeShapeId(shapeId).split("#")[0];
150
69
  }
151
- };
152
70
  }
153
71
 
154
- // src/submodules/schema/TypeRegistry.ts
155
- var TypeRegistry = class _TypeRegistry {
156
- constructor(namespace, schemas = /* @__PURE__ */ new Map(), exceptions = /* @__PURE__ */ new Map()) {
157
- this.namespace = namespace;
158
- this.schemas = schemas;
159
- this.exceptions = exceptions;
160
- }
161
- static {
162
- this.registries = /* @__PURE__ */ new Map();
163
- }
164
- /**
165
- * @param namespace - specifier.
166
- * @returns the schema for that namespace, creating it if necessary.
167
- */
168
- static for(namespace) {
169
- if (!_TypeRegistry.registries.has(namespace)) {
170
- _TypeRegistry.registries.set(namespace, new _TypeRegistry(namespace));
171
- }
172
- return _TypeRegistry.registries.get(namespace);
173
- }
174
- /**
175
- * Adds the given schema to a type registry with the same namespace.
176
- *
177
- * @param shapeId - to be registered.
178
- * @param schema - to be registered.
179
- */
180
- register(shapeId, schema) {
181
- const qualifiedName = this.normalizeShapeId(shapeId);
182
- this.schemas.set(qualifiedName, schema);
183
- }
184
- /**
185
- * @param shapeId - query.
186
- * @returns the schema.
187
- */
188
- getSchema(shapeId) {
189
- const id = this.normalizeShapeId(shapeId);
190
- if (!this.schemas.has(id)) {
191
- throw new Error(`@smithy/core/schema - schema not found for ${id}`);
192
- }
193
- return this.schemas.get(id);
194
- }
195
- /**
196
- * Associates an error schema with its constructor.
197
- */
198
- registerError(errorSchema, ctor) {
199
- this.exceptions.set(errorSchema, ctor);
200
- }
201
- /**
202
- * @param errorSchema - query.
203
- * @returns Error constructor that extends the service's base exception.
204
- */
205
- getErrorCtor(errorSchema) {
206
- return this.exceptions.get(errorSchema);
207
- }
208
- /**
209
- * The smithy-typescript code generator generates a synthetic (i.e. unmodeled) base exception,
210
- * because generated SDKs before the introduction of schemas have the notion of a ServiceBaseException, which
211
- * is unique per service/model.
212
- *
213
- * This is generated under a unique prefix that is combined with the service namespace, and this
214
- * method is used to retrieve it.
215
- *
216
- * The base exception synthetic schema is used when an error is returned by a service, but we cannot
217
- * determine what existing schema to use to deserialize it.
218
- *
219
- * @returns the synthetic base exception of the service namespace associated with this registry instance.
220
- */
221
- getBaseException() {
222
- for (const [id, schema] of this.schemas.entries()) {
223
- if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) {
72
+ class Schema {
73
+ name;
74
+ namespace;
75
+ traits;
76
+ static assign(instance, values) {
77
+ const schema = Object.assign(instance, values);
78
+ TypeRegistry.for(schema.namespace).register(schema.name, schema);
224
79
  return schema;
225
- }
226
- }
227
- return void 0;
228
- }
229
- /**
230
- * @param predicate - criterion.
231
- * @returns a schema in this registry matching the predicate.
232
- */
233
- find(predicate) {
234
- return [...this.schemas.values()].find(predicate);
235
- }
236
- /**
237
- * Unloads the current TypeRegistry.
238
- */
239
- clear() {
240
- this.schemas.clear();
241
- this.exceptions.clear();
242
- }
243
- normalizeShapeId(shapeId) {
244
- if (shapeId.includes("#")) {
245
- return shapeId;
246
- }
247
- return this.namespace + "#" + shapeId;
248
- }
249
- getNamespace(shapeId) {
250
- return this.normalizeShapeId(shapeId).split("#")[0];
251
- }
252
- };
253
-
254
- // src/submodules/schema/schemas/Schema.ts
255
- var Schema = class {
256
- static assign(instance, values) {
257
- const schema = Object.assign(instance, values);
258
- TypeRegistry.for(schema.namespace).register(schema.name, schema);
259
- return schema;
260
- }
261
- static [Symbol.hasInstance](lhs) {
262
- const isPrototype = this.prototype.isPrototypeOf(lhs);
263
- if (!isPrototype && typeof lhs === "object" && lhs !== null) {
264
- const list2 = lhs;
265
- return list2.symbol === this.symbol;
266
- }
267
- return isPrototype;
268
- }
269
- getName() {
270
- return this.namespace + "#" + this.name;
271
- }
272
- };
80
+ }
81
+ static [Symbol.hasInstance](lhs) {
82
+ const isPrototype = this.prototype.isPrototypeOf(lhs);
83
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
84
+ const list = lhs;
85
+ return list.symbol === this.symbol;
86
+ }
87
+ return isPrototype;
88
+ }
89
+ getName() {
90
+ return this.namespace + "#" + this.name;
91
+ }
92
+ }
273
93
 
274
- // src/submodules/schema/schemas/ListSchema.ts
275
- var ListSchema = class _ListSchema extends Schema {
276
- constructor() {
277
- super(...arguments);
278
- this.symbol = _ListSchema.symbol;
279
- }
280
- static {
281
- this.symbol = Symbol.for("@smithy/lis");
282
- }
283
- };
284
- var list = (namespace, name, traits, valueSchema) => Schema.assign(new ListSchema(), {
285
- name,
286
- namespace,
287
- traits,
288
- valueSchema
94
+ class StructureSchema extends Schema {
95
+ static symbol = Symbol.for("@smithy/str");
96
+ name;
97
+ traits;
98
+ memberNames;
99
+ memberList;
100
+ symbol = StructureSchema.symbol;
101
+ }
102
+ const struct = (namespace, name, traits, memberNames, memberList) => Schema.assign(new StructureSchema(), {
103
+ name,
104
+ namespace,
105
+ traits,
106
+ memberNames,
107
+ memberList,
289
108
  });
290
109
 
291
- // src/submodules/schema/schemas/MapSchema.ts
292
- var MapSchema = class _MapSchema extends Schema {
293
- constructor() {
294
- super(...arguments);
295
- this.symbol = _MapSchema.symbol;
296
- }
297
- static {
298
- this.symbol = Symbol.for("@smithy/map");
299
- }
300
- };
301
- var map = (namespace, name, traits, keySchema, valueSchema) => Schema.assign(new MapSchema(), {
302
- name,
303
- namespace,
304
- traits,
305
- keySchema,
306
- valueSchema
110
+ class ErrorSchema extends StructureSchema {
111
+ static symbol = Symbol.for("@smithy/err");
112
+ ctor;
113
+ symbol = ErrorSchema.symbol;
114
+ }
115
+ const error = (namespace, name, traits, memberNames, memberList, ctor) => Schema.assign(new ErrorSchema(), {
116
+ name,
117
+ namespace,
118
+ traits,
119
+ memberNames,
120
+ memberList,
121
+ ctor: null,
307
122
  });
308
123
 
309
- // src/submodules/schema/schemas/OperationSchema.ts
310
- var OperationSchema = class _OperationSchema extends Schema {
311
- constructor() {
312
- super(...arguments);
313
- this.symbol = _OperationSchema.symbol;
314
- }
315
- static {
316
- this.symbol = Symbol.for("@smithy/ope");
317
- }
318
- };
319
- var op = (namespace, name, traits, input, output) => Schema.assign(new OperationSchema(), {
320
- name,
321
- namespace,
322
- traits,
323
- input,
324
- output
124
+ class ListSchema extends Schema {
125
+ static symbol = Symbol.for("@smithy/lis");
126
+ name;
127
+ traits;
128
+ valueSchema;
129
+ symbol = ListSchema.symbol;
130
+ }
131
+ const list = (namespace, name, traits, valueSchema) => Schema.assign(new ListSchema(), {
132
+ name,
133
+ namespace,
134
+ traits,
135
+ valueSchema,
325
136
  });
326
137
 
327
- // src/submodules/schema/schemas/StructureSchema.ts
328
- var StructureSchema = class _StructureSchema extends Schema {
329
- constructor() {
330
- super(...arguments);
331
- this.symbol = _StructureSchema.symbol;
332
- }
333
- static {
334
- this.symbol = Symbol.for("@smithy/str");
335
- }
336
- };
337
- var struct = (namespace, name, traits, memberNames, memberList) => Schema.assign(new StructureSchema(), {
338
- name,
339
- namespace,
340
- traits,
341
- memberNames,
342
- memberList
138
+ class MapSchema extends Schema {
139
+ static symbol = Symbol.for("@smithy/map");
140
+ name;
141
+ traits;
142
+ keySchema;
143
+ valueSchema;
144
+ symbol = MapSchema.symbol;
145
+ }
146
+ const map = (namespace, name, traits, keySchema, valueSchema) => Schema.assign(new MapSchema(), {
147
+ name,
148
+ namespace,
149
+ traits,
150
+ keySchema,
151
+ valueSchema,
343
152
  });
344
153
 
345
- // src/submodules/schema/schemas/ErrorSchema.ts
346
- var ErrorSchema = class _ErrorSchema extends StructureSchema {
347
- constructor() {
348
- super(...arguments);
349
- this.symbol = _ErrorSchema.symbol;
350
- }
351
- static {
352
- this.symbol = Symbol.for("@smithy/err");
353
- }
354
- };
355
- var error = (namespace, name, traits, memberNames, memberList, ctor) => Schema.assign(new ErrorSchema(), {
356
- name,
357
- namespace,
358
- traits,
359
- memberNames,
360
- memberList,
361
- ctor: null
154
+ class OperationSchema extends Schema {
155
+ static symbol = Symbol.for("@smithy/ope");
156
+ name;
157
+ traits;
158
+ input;
159
+ output;
160
+ symbol = OperationSchema.symbol;
161
+ }
162
+ const op = (namespace, name, traits, input, output) => Schema.assign(new OperationSchema(), {
163
+ name,
164
+ namespace,
165
+ traits,
166
+ input,
167
+ output,
362
168
  });
363
169
 
364
- // src/submodules/schema/schemas/sentinels.ts
365
- var SCHEMA = {
366
- BLOB: 21,
367
- // 21
368
- STREAMING_BLOB: 42,
369
- // 42
370
- BOOLEAN: 2,
371
- // 2
372
- STRING: 0,
373
- // 0
374
- NUMERIC: 1,
375
- // 1
376
- BIG_INTEGER: 17,
377
- // 17
378
- BIG_DECIMAL: 19,
379
- // 19
380
- DOCUMENT: 15,
381
- // 15
382
- TIMESTAMP_DEFAULT: 4,
383
- // 4
384
- TIMESTAMP_DATE_TIME: 5,
385
- // 5
386
- TIMESTAMP_HTTP_DATE: 6,
387
- // 6
388
- TIMESTAMP_EPOCH_SECONDS: 7,
389
- // 7
390
- LIST_MODIFIER: 64,
391
- // 64
392
- MAP_MODIFIER: 128
393
- // 128
394
- };
395
-
396
- // src/submodules/schema/schemas/SimpleSchema.ts
397
- var SimpleSchema = class _SimpleSchema extends Schema {
398
- constructor() {
399
- super(...arguments);
400
- this.symbol = _SimpleSchema.symbol;
401
- }
402
- static {
403
- this.symbol = Symbol.for("@smithy/sim");
404
- }
405
- };
406
- var sim = (namespace, name, schemaRef, traits) => Schema.assign(new SimpleSchema(), {
407
- name,
408
- namespace,
409
- traits,
410
- schemaRef
170
+ class SimpleSchema extends Schema {
171
+ static symbol = Symbol.for("@smithy/sim");
172
+ name;
173
+ schemaRef;
174
+ traits;
175
+ symbol = SimpleSchema.symbol;
176
+ }
177
+ const sim = (namespace, name, schemaRef, traits) => Schema.assign(new SimpleSchema(), {
178
+ name,
179
+ namespace,
180
+ traits,
181
+ schemaRef,
411
182
  });
412
183
 
413
- // src/submodules/schema/schemas/NormalizedSchema.ts
414
- var NormalizedSchema = class _NormalizedSchema {
415
- /**
416
- * @param ref - a polymorphic SchemaRef to be dereferenced/normalized.
417
- * @param memberName - optional memberName if this NormalizedSchema should be considered a member schema.
418
- */
419
- constructor(ref, memberName) {
420
- this.ref = ref;
421
- this.memberName = memberName;
422
- this.symbol = _NormalizedSchema.symbol;
423
- const traitStack = [];
424
- let _ref = ref;
425
- let schema = ref;
426
- this._isMemberSchema = false;
427
- while (Array.isArray(_ref)) {
428
- traitStack.push(_ref[1]);
429
- _ref = _ref[0];
430
- schema = deref(_ref);
431
- this._isMemberSchema = true;
432
- }
433
- if (traitStack.length > 0) {
434
- this.memberTraits = {};
435
- for (let i = traitStack.length - 1; i >= 0; --i) {
436
- const traitSet = traitStack[i];
437
- Object.assign(this.memberTraits, _NormalizedSchema.translateTraits(traitSet));
438
- }
439
- } else {
440
- this.memberTraits = 0;
441
- }
442
- if (schema instanceof _NormalizedSchema) {
443
- const computedMemberTraits = this.memberTraits;
444
- Object.assign(this, schema);
445
- this.memberTraits = Object.assign({}, computedMemberTraits, schema.getMemberTraits(), this.getMemberTraits());
446
- this.normalizedTraits = void 0;
447
- this.memberName = memberName ?? schema.memberName;
448
- return;
449
- }
450
- this.schema = deref(schema);
451
- if (this.schema && typeof this.schema === "object") {
452
- this.traits = this.schema?.traits ?? {};
453
- } else {
454
- this.traits = 0;
455
- }
456
- this.name = (this.schema instanceof Schema ? this.schema.getName?.() : void 0) ?? this.memberName ?? this.getSchemaName();
457
- if (this._isMemberSchema && !memberName) {
458
- throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`);
459
- }
460
- }
461
- static {
462
- this.symbol = Symbol.for("@smithy/nor");
463
- }
464
- static [Symbol.hasInstance](lhs) {
465
- return Schema[Symbol.hasInstance].bind(this)(lhs);
466
- }
467
- /**
468
- * Static constructor that attempts to avoid wrapping a NormalizedSchema within another.
469
- */
470
- static of(ref) {
471
- if (ref instanceof _NormalizedSchema) {
472
- return ref;
473
- }
474
- if (Array.isArray(ref)) {
475
- const [ns, traits] = ref;
476
- if (ns instanceof _NormalizedSchema) {
477
- Object.assign(ns.getMergedTraits(), _NormalizedSchema.translateTraits(traits));
478
- return ns;
479
- }
480
- throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(ref, null, 2)}.`);
481
- }
482
- return new _NormalizedSchema(ref);
483
- }
484
- /**
485
- * @param indicator - numeric indicator for preset trait combination.
486
- * @returns equivalent trait object.
487
- */
488
- static translateTraits(indicator) {
184
+ function translateTraits(indicator) {
489
185
  if (typeof indicator === "object") {
490
- return indicator;
186
+ return indicator;
491
187
  }
492
188
  indicator = indicator | 0;
493
189
  const traits = {};
494
190
  let i = 0;
495
191
  for (const trait of [
496
- "httpLabel",
497
- "idempotent",
498
- "idempotencyToken",
499
- "sensitive",
500
- "httpPayload",
501
- "httpResponseCode",
502
- "httpQueryParams"
192
+ "httpLabel",
193
+ "idempotent",
194
+ "idempotencyToken",
195
+ "sensitive",
196
+ "httpPayload",
197
+ "httpResponseCode",
198
+ "httpQueryParams",
503
199
  ]) {
504
- if ((indicator >> i++ & 1) === 1) {
505
- traits[trait] = 1;
506
- }
200
+ if (((indicator >> i++) & 1) === 1) {
201
+ traits[trait] = 1;
202
+ }
507
203
  }
508
204
  return traits;
509
- }
510
- /**
511
- * @returns the underlying non-normalized schema.
512
- */
513
- getSchema() {
514
- if (this.schema instanceof _NormalizedSchema) {
515
- Object.assign(this, { schema: this.schema.getSchema() });
516
- return this.schema;
517
- }
518
- if (this.schema instanceof SimpleSchema) {
519
- return deref(this.schema.schemaRef);
520
- }
521
- return deref(this.schema);
522
- }
523
- /**
524
- * @param withNamespace - qualifies the name.
525
- * @returns e.g. `MyShape` or `com.namespace#MyShape`.
526
- */
527
- getName(withNamespace = false) {
528
- if (!withNamespace) {
529
- if (this.name && this.name.includes("#")) {
530
- return this.name.split("#")[1];
531
- }
532
- }
533
- return this.name || void 0;
534
- }
535
- /**
536
- * @returns the member name if the schema is a member schema.
537
- * @throws Error when the schema isn't a member schema.
538
- */
539
- getMemberName() {
540
- if (!this.isMemberSchema()) {
541
- throw new Error(`@smithy/core/schema - non-member schema: ${this.getName(true)}`);
542
- }
543
- return this.memberName;
544
- }
545
- isMemberSchema() {
546
- return this._isMemberSchema;
547
- }
548
- isUnitSchema() {
549
- return this.getSchema() === "unit";
550
- }
551
- /**
552
- * boolean methods on this class help control flow in shape serialization and deserialization.
553
- */
554
- isListSchema() {
555
- const inner = this.getSchema();
556
- if (typeof inner === "number") {
557
- return inner >= SCHEMA.LIST_MODIFIER && inner < SCHEMA.MAP_MODIFIER;
558
- }
559
- return inner instanceof ListSchema;
560
- }
561
- isMapSchema() {
562
- const inner = this.getSchema();
563
- if (typeof inner === "number") {
564
- return inner >= SCHEMA.MAP_MODIFIER && inner <= 255;
565
- }
566
- return inner instanceof MapSchema;
567
- }
568
- isStructSchema() {
569
- const inner = this.getSchema();
570
- return inner !== null && typeof inner === "object" && "members" in inner || inner instanceof StructureSchema;
571
- }
572
- isBlobSchema() {
573
- return this.getSchema() === SCHEMA.BLOB || this.getSchema() === SCHEMA.STREAMING_BLOB;
574
- }
575
- isTimestampSchema() {
576
- const schema = this.getSchema();
577
- return typeof schema === "number" && schema >= SCHEMA.TIMESTAMP_DEFAULT && schema <= SCHEMA.TIMESTAMP_EPOCH_SECONDS;
578
- }
579
- isDocumentSchema() {
580
- return this.getSchema() === SCHEMA.DOCUMENT;
581
- }
582
- isStringSchema() {
583
- return this.getSchema() === SCHEMA.STRING;
584
- }
585
- isBooleanSchema() {
586
- return this.getSchema() === SCHEMA.BOOLEAN;
587
- }
588
- isNumericSchema() {
589
- return this.getSchema() === SCHEMA.NUMERIC;
590
- }
591
- isBigIntegerSchema() {
592
- return this.getSchema() === SCHEMA.BIG_INTEGER;
593
- }
594
- isBigDecimalSchema() {
595
- return this.getSchema() === SCHEMA.BIG_DECIMAL;
596
- }
597
- isStreaming() {
598
- const streaming = !!this.getMergedTraits().streaming;
599
- if (streaming) {
600
- return true;
601
- }
602
- return this.getSchema() === SCHEMA.STREAMING_BLOB;
603
- }
604
- /**
605
- * This is a shortcut to avoid calling `getMergedTraits().idempotencyToken` on every string.
606
- * @returns whether the schema has the idempotencyToken trait.
607
- */
608
- isIdempotencyToken() {
609
- if (this.normalizedTraits) {
610
- return !!this.normalizedTraits.idempotencyToken;
611
- }
612
- for (const traits of [this.traits, this.memberTraits]) {
613
- if (typeof traits === "number") {
614
- if ((traits & 4) === 4) {
615
- return true;
205
+ }
206
+
207
+ class NormalizedSchema {
208
+ ref;
209
+ memberName;
210
+ static symbol = Symbol.for("@smithy/nor");
211
+ symbol = NormalizedSchema.symbol;
212
+ name;
213
+ schema;
214
+ _isMemberSchema;
215
+ traits;
216
+ memberTraits;
217
+ normalizedTraits;
218
+ constructor(ref, memberName) {
219
+ this.ref = ref;
220
+ this.memberName = memberName;
221
+ const traitStack = [];
222
+ let _ref = ref;
223
+ let schema = ref;
224
+ this._isMemberSchema = false;
225
+ while (isMemberSchema(_ref)) {
226
+ traitStack.push(_ref[1]);
227
+ _ref = _ref[0];
228
+ schema = deref(_ref);
229
+ this._isMemberSchema = true;
616
230
  }
617
- } else if (typeof traits === "object") {
618
- if (!!traits.idempotencyToken) {
619
- return true;
231
+ if (isStaticSchema(schema))
232
+ schema = hydrate(schema);
233
+ if (traitStack.length > 0) {
234
+ this.memberTraits = {};
235
+ for (let i = traitStack.length - 1; i >= 0; --i) {
236
+ const traitSet = traitStack[i];
237
+ Object.assign(this.memberTraits, translateTraits(traitSet));
238
+ }
620
239
  }
621
- }
622
- }
623
- return false;
624
- }
625
- /**
626
- * @returns own traits merged with member traits, where member traits of the same trait key take priority.
627
- * This method is cached.
628
- */
629
- getMergedTraits() {
630
- return this.normalizedTraits ?? (this.normalizedTraits = {
631
- ...this.getOwnTraits(),
632
- ...this.getMemberTraits()
633
- });
634
- }
635
- /**
636
- * @returns only the member traits. If the schema is not a member, this returns empty.
637
- */
638
- getMemberTraits() {
639
- return _NormalizedSchema.translateTraits(this.memberTraits);
640
- }
641
- /**
642
- * @returns only the traits inherent to the shape or member target shape if this schema is a member.
643
- * If there are any member traits they are excluded.
644
- */
645
- getOwnTraits() {
646
- return _NormalizedSchema.translateTraits(this.traits);
647
- }
648
- /**
649
- * @returns the map's key's schema. Returns a dummy Document schema if this schema is a Document.
650
- *
651
- * @throws Error if the schema is not a Map or Document.
652
- */
653
- getKeySchema() {
654
- if (this.isDocumentSchema()) {
655
- return this.memberFrom([SCHEMA.DOCUMENT, 0], "key");
656
- }
657
- if (!this.isMapSchema()) {
658
- throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`);
659
- }
660
- const schema = this.getSchema();
661
- if (typeof schema === "number") {
662
- return this.memberFrom([63 & schema, 0], "key");
663
- }
664
- return this.memberFrom([schema.keySchema, 0], "key");
665
- }
666
- /**
667
- * @returns the schema of the map's value or list's member.
668
- * Returns a dummy Document schema if this schema is a Document.
669
- *
670
- * @throws Error if the schema is not a Map, List, nor Document.
671
- */
672
- getValueSchema() {
673
- const schema = this.getSchema();
674
- if (typeof schema === "number") {
675
- if (this.isMapSchema()) {
676
- return this.memberFrom([63 & schema, 0], "value");
677
- } else if (this.isListSchema()) {
678
- return this.memberFrom([63 & schema, 0], "member");
679
- }
680
- }
681
- if (schema && typeof schema === "object") {
682
- if (this.isStructSchema()) {
683
- throw new Error(`may not getValueSchema() on structure ${this.getName(true)}`);
684
- }
685
- const collection = schema;
686
- if ("valueSchema" in collection) {
687
- if (this.isMapSchema()) {
688
- return this.memberFrom([collection.valueSchema, 0], "value");
689
- } else if (this.isListSchema()) {
690
- return this.memberFrom([collection.valueSchema, 0], "member");
240
+ else {
241
+ this.memberTraits = 0;
242
+ }
243
+ if (schema instanceof NormalizedSchema) {
244
+ const computedMemberTraits = this.memberTraits;
245
+ Object.assign(this, schema);
246
+ this.memberTraits = Object.assign({}, computedMemberTraits, schema.getMemberTraits(), this.getMemberTraits());
247
+ this.normalizedTraits = void 0;
248
+ this.memberName = memberName ?? schema.memberName;
249
+ return;
250
+ }
251
+ this.schema = deref(schema);
252
+ if (this.schema && typeof this.schema === "object") {
253
+ this.traits = this.schema?.traits ?? {};
254
+ }
255
+ else {
256
+ this.traits = 0;
257
+ }
258
+ this.name = (this.schema instanceof Schema ? this.schema.getName?.() : void 0) ?? this.memberName ?? String(schema);
259
+ if (this._isMemberSchema && !memberName) {
260
+ throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`);
261
+ }
262
+ }
263
+ static [Symbol.hasInstance](lhs) {
264
+ return Schema[Symbol.hasInstance].bind(this)(lhs);
265
+ }
266
+ static of(ref) {
267
+ const sc = deref(ref);
268
+ if (sc instanceof NormalizedSchema) {
269
+ return sc;
691
270
  }
692
- }
693
- }
694
- if (this.isDocumentSchema()) {
695
- return this.memberFrom([SCHEMA.DOCUMENT, 0], "value");
696
- }
697
- throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`);
698
- }
699
- /**
700
- * @param member - to query.
701
- * @returns whether there is a memberSchema with the given member name. False if not a structure (or union).
702
- */
703
- hasMemberSchema(member) {
704
- if (this.isStructSchema()) {
705
- const struct2 = this.getSchema();
706
- return struct2.memberNames.includes(member);
707
- }
708
- return false;
709
- }
710
- /**
711
- * @returns the NormalizedSchema for the given member name. The returned instance will return true for `isMemberSchema()`
712
- * and will have the member name given.
713
- * @param member - which member to retrieve and wrap.
714
- *
715
- * @throws Error if member does not exist or the schema is neither a document nor structure.
716
- * Note that errors are assumed to be structures and unions are considered structures for these purposes.
717
- */
718
- getMemberSchema(member) {
719
- if (this.isStructSchema()) {
720
- const struct2 = this.getSchema();
721
- if (!struct2.memberNames.includes(member)) {
722
- throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${member}.`);
723
- }
724
- const i = struct2.memberNames.indexOf(member);
725
- const memberSchema = struct2.memberList[i];
726
- return this.memberFrom(Array.isArray(memberSchema) ? memberSchema : [memberSchema, 0], member);
727
- }
728
- if (this.isDocumentSchema()) {
729
- return this.memberFrom([SCHEMA.DOCUMENT, 0], member);
730
- }
731
- throw new Error(`@smithy/core/schema - ${this.getName(true)} has no members.`);
732
- }
733
- /**
734
- * This can be used for checking the members as a hashmap.
735
- * Prefer the structIterator method for iteration.
736
- *
737
- * This does NOT return list and map members, it is only for structures.
738
- *
739
- * @deprecated use (checked) structIterator instead.
740
- *
741
- * @returns a map of member names to member schemas (normalized).
742
- */
743
- getMemberSchemas() {
744
- const buffer = {};
271
+ if (isMemberSchema(sc)) {
272
+ const [ns, traits] = sc;
273
+ if (ns instanceof NormalizedSchema) {
274
+ Object.assign(ns.getMergedTraits(), translateTraits(traits));
275
+ return ns;
276
+ }
277
+ throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(ref, null, 2)}.`);
278
+ }
279
+ return new NormalizedSchema(sc);
280
+ }
281
+ getSchema() {
282
+ return deref(this.schema?.schemaRef ?? this.schema);
283
+ }
284
+ getName(withNamespace = false) {
285
+ const { name } = this;
286
+ const short = !withNamespace && name && name.includes("#");
287
+ return short ? name.split("#")[1] : name || undefined;
288
+ }
289
+ getMemberName() {
290
+ return this.memberName;
291
+ }
292
+ isMemberSchema() {
293
+ return this._isMemberSchema;
294
+ }
295
+ isListSchema() {
296
+ const sc = this.getSchema();
297
+ return typeof sc === "number"
298
+ ? sc >= 64 && sc < 128
299
+ : sc instanceof ListSchema;
300
+ }
301
+ isMapSchema() {
302
+ const sc = this.getSchema();
303
+ return typeof sc === "number"
304
+ ? sc >= 128 && sc <= 0b1111_1111
305
+ : sc instanceof MapSchema;
306
+ }
307
+ isStructSchema() {
308
+ const sc = this.getSchema();
309
+ return (sc !== null && typeof sc === "object" && "members" in sc) || sc instanceof StructureSchema;
310
+ }
311
+ isBlobSchema() {
312
+ const sc = this.getSchema();
313
+ return sc === 21 || sc === 42;
314
+ }
315
+ isTimestampSchema() {
316
+ const sc = this.getSchema();
317
+ return (typeof sc === "number" &&
318
+ sc >= 4 &&
319
+ sc <= 7);
320
+ }
321
+ isUnitSchema() {
322
+ return this.getSchema() === "unit";
323
+ }
324
+ isDocumentSchema() {
325
+ return this.getSchema() === 15;
326
+ }
327
+ isStringSchema() {
328
+ return this.getSchema() === 0;
329
+ }
330
+ isBooleanSchema() {
331
+ return this.getSchema() === 2;
332
+ }
333
+ isNumericSchema() {
334
+ return this.getSchema() === 1;
335
+ }
336
+ isBigIntegerSchema() {
337
+ return this.getSchema() === 17;
338
+ }
339
+ isBigDecimalSchema() {
340
+ return this.getSchema() === 19;
341
+ }
342
+ isStreaming() {
343
+ const { streaming } = this.getMergedTraits();
344
+ return !!streaming || this.getSchema() === 42;
345
+ }
346
+ isIdempotencyToken() {
347
+ const match = (traits) => (traits & 0b0100) === 0b0100 ||
348
+ !!traits?.idempotencyToken;
349
+ const { normalizedTraits, traits, memberTraits } = this;
350
+ return match(normalizedTraits) || match(traits) || match(memberTraits);
351
+ }
352
+ getMergedTraits() {
353
+ return (this.normalizedTraits ??
354
+ (this.normalizedTraits = {
355
+ ...this.getOwnTraits(),
356
+ ...this.getMemberTraits(),
357
+ }));
358
+ }
359
+ getMemberTraits() {
360
+ return translateTraits(this.memberTraits);
361
+ }
362
+ getOwnTraits() {
363
+ return translateTraits(this.traits);
364
+ }
365
+ getKeySchema() {
366
+ const [isDoc, isMap] = [this.isDocumentSchema(), this.isMapSchema()];
367
+ if (!isDoc && !isMap) {
368
+ throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`);
369
+ }
370
+ const schema = this.getSchema();
371
+ const memberSchema = isDoc
372
+ ? 15
373
+ : schema?.keySchema ?? 0;
374
+ return member([memberSchema, 0], "key");
375
+ }
376
+ getValueSchema() {
377
+ const sc = this.getSchema();
378
+ const [isDoc, isMap, isList] = [this.isDocumentSchema(), this.isMapSchema(), this.isListSchema()];
379
+ const memberSchema = typeof sc === "number"
380
+ ? 0b0011_1111 & sc
381
+ : sc && typeof sc === "object" && (isMap || isList)
382
+ ? sc.valueSchema
383
+ : isDoc
384
+ ? 15
385
+ : void 0;
386
+ if (memberSchema != null) {
387
+ return member([memberSchema, 0], isMap ? "value" : "member");
388
+ }
389
+ throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`);
390
+ }
391
+ getMemberSchema(memberName) {
392
+ const struct = this.getSchema();
393
+ if (this.isStructSchema() && struct.memberNames.includes(memberName)) {
394
+ const i = struct.memberNames.indexOf(memberName);
395
+ const memberSchema = struct.memberList[i];
396
+ return member(isMemberSchema(memberSchema) ? memberSchema : [memberSchema, 0], memberName);
397
+ }
398
+ if (this.isDocumentSchema()) {
399
+ return member([15, 0], memberName);
400
+ }
401
+ throw new Error(`@smithy/core/schema - ${this.getName(true)} has no no member=${memberName}.`);
402
+ }
403
+ getMemberSchemas() {
404
+ const buffer = {};
405
+ try {
406
+ for (const [k, v] of this.structIterator()) {
407
+ buffer[k] = v;
408
+ }
409
+ }
410
+ catch (ignored) { }
411
+ return buffer;
412
+ }
413
+ getEventStreamMember() {
414
+ if (this.isStructSchema()) {
415
+ for (const [memberName, memberSchema] of this.structIterator()) {
416
+ if (memberSchema.isStreaming() && memberSchema.isStructSchema()) {
417
+ return memberName;
418
+ }
419
+ }
420
+ }
421
+ return "";
422
+ }
423
+ *structIterator() {
424
+ if (this.isUnitSchema()) {
425
+ return;
426
+ }
427
+ if (!this.isStructSchema()) {
428
+ throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
429
+ }
430
+ const struct = this.getSchema();
431
+ for (let i = 0; i < struct.memberNames.length; ++i) {
432
+ yield [struct.memberNames[i], member([struct.memberList[i], 0], struct.memberNames[i])];
433
+ }
434
+ }
435
+ }
436
+ function member(memberSchema, memberName) {
437
+ if (memberSchema instanceof NormalizedSchema) {
438
+ return Object.assign(memberSchema, {
439
+ memberName,
440
+ _isMemberSchema: true,
441
+ });
442
+ }
443
+ const internalCtorAccess = NormalizedSchema;
444
+ return new internalCtorAccess(memberSchema, memberName);
445
+ }
446
+ function hydrate(ss) {
447
+ const [id, ...rest] = ss;
448
+ return {
449
+ [0]: sim,
450
+ [1]: list,
451
+ [2]: map,
452
+ [3]: struct,
453
+ [-3]: error,
454
+ [9]: op,
455
+ }[id].call(null, ...rest);
456
+ }
457
+ const isMemberSchema = (sc) => Array.isArray(sc) && sc.length === 2;
458
+ const isStaticSchema = (sc) => Array.isArray(sc) && sc.length >= 5;
459
+
460
+ const schemaDeserializationMiddleware = (config) => (next, context) => async (args) => {
461
+ const { response } = await next(args);
462
+ let { operationSchema } = utilMiddleware.getSmithyContext(context);
463
+ if (isStaticSchema(operationSchema)) {
464
+ operationSchema = hydrate(operationSchema);
465
+ }
745
466
  try {
746
- for (const [k, v] of this.structIterator()) {
747
- buffer[k] = v;
748
- }
749
- } catch (ignored) {
750
- }
751
- return buffer;
752
- }
753
- /**
754
- * @returns member name of event stream or empty string indicating none exists or this
755
- * isn't a structure schema.
756
- */
757
- getEventStreamMember() {
758
- if (this.isStructSchema()) {
759
- for (const [memberName, memberSchema] of this.structIterator()) {
760
- if (memberSchema.isStreaming() && memberSchema.isStructSchema()) {
761
- return memberName;
467
+ const parsed = await config.protocol.deserializeResponse(operationSchema, {
468
+ ...config,
469
+ ...context,
470
+ }, response);
471
+ return {
472
+ response,
473
+ output: parsed,
474
+ };
475
+ }
476
+ catch (error) {
477
+ Object.defineProperty(error, "$response", {
478
+ value: response,
479
+ });
480
+ if (!("$metadata" in error)) {
481
+ const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
482
+ try {
483
+ error.message += "\n " + hint;
484
+ }
485
+ catch (e) {
486
+ if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
487
+ console.warn(hint);
488
+ }
489
+ else {
490
+ context.logger?.warn?.(hint);
491
+ }
492
+ }
493
+ if (typeof error.$responseBodyText !== "undefined") {
494
+ if (error.$response) {
495
+ error.$response.body = error.$responseBodyText;
496
+ }
497
+ }
498
+ try {
499
+ if (protocolHttp.HttpResponse.isInstance(response)) {
500
+ const { headers = {} } = response;
501
+ const headerEntries = Object.entries(headers);
502
+ error.$metadata = {
503
+ httpStatusCode: response.statusCode,
504
+ requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
505
+ extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
506
+ cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries),
507
+ };
508
+ }
509
+ }
510
+ catch (e) {
511
+ }
762
512
  }
763
- }
764
- }
765
- return "";
766
- }
767
- /**
768
- * Allows iteration over members of a structure schema.
769
- * Each yield is a pair of the member name and member schema.
770
- *
771
- * This avoids the overhead of calling Object.entries(ns.getMemberSchemas()).
772
- */
773
- *structIterator() {
774
- if (this.isUnitSchema()) {
775
- return;
776
- }
777
- if (!this.isStructSchema()) {
778
- throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
779
- }
780
- const struct2 = this.getSchema();
781
- for (let i = 0; i < struct2.memberNames.length; ++i) {
782
- yield [struct2.memberNames[i], this.memberFrom([struct2.memberList[i], 0], struct2.memberNames[i])];
783
- }
784
- }
785
- /**
786
- * Creates a normalized member schema from the given schema and member name.
787
- */
788
- memberFrom(memberSchema, memberName) {
789
- if (memberSchema instanceof _NormalizedSchema) {
790
- return Object.assign(memberSchema, {
791
- memberName,
792
- _isMemberSchema: true
793
- });
794
- }
795
- return new _NormalizedSchema(memberSchema, memberName);
796
- }
797
- /**
798
- * @returns a last-resort human-readable name for the schema if it has no other identifiers.
799
- */
800
- getSchemaName() {
801
- const schema = this.getSchema();
802
- if (typeof schema === "number") {
803
- const _schema = 63 & schema;
804
- const container = 192 & schema;
805
- const type = Object.entries(SCHEMA).find(([, value]) => {
806
- return value === _schema;
807
- })?.[0] ?? "Unknown";
808
- switch (container) {
809
- case SCHEMA.MAP_MODIFIER:
810
- return `${type}Map`;
811
- case SCHEMA.LIST_MODIFIER:
812
- return `${type}List`;
813
- case 0:
814
- return type;
815
- }
816
- }
817
- return "Unknown";
818
- }
513
+ throw error;
514
+ }
819
515
  };
820
- // Annotate the CommonJS export names for ESM import in node:
821
- 0 && (module.exports = {
822
- ErrorSchema,
823
- ListSchema,
824
- MapSchema,
825
- NormalizedSchema,
826
- OperationSchema,
827
- SCHEMA,
828
- Schema,
829
- SimpleSchema,
830
- StructureSchema,
831
- TypeRegistry,
832
- deref,
833
- deserializerMiddlewareOption,
834
- error,
835
- getSchemaSerdePlugin,
836
- list,
837
- map,
838
- op,
839
- serializerMiddlewareOption,
840
- sim,
841
- struct
842
- });
516
+ const findHeader = (pattern, headers) => {
517
+ return (headers.find(([k]) => {
518
+ return k.match(pattern);
519
+ }) || [void 0, void 0])[1];
520
+ };
521
+
522
+ const schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
523
+ let { operationSchema } = utilMiddleware.getSmithyContext(context);
524
+ if (isStaticSchema(operationSchema)) {
525
+ operationSchema = hydrate(operationSchema);
526
+ }
527
+ const endpoint = context.endpointV2?.url && config.urlParser
528
+ ? async () => config.urlParser(context.endpointV2.url)
529
+ : config.endpoint;
530
+ const request = await config.protocol.serializeRequest(operationSchema, args.input, {
531
+ ...config,
532
+ ...context,
533
+ endpoint,
534
+ });
535
+ return next({
536
+ ...args,
537
+ request,
538
+ });
539
+ };
540
+
541
+ const deserializerMiddlewareOption = {
542
+ name: "deserializerMiddleware",
543
+ step: "deserialize",
544
+ tags: ["DESERIALIZER"],
545
+ override: true,
546
+ };
547
+ const serializerMiddlewareOption = {
548
+ name: "serializerMiddleware",
549
+ step: "serialize",
550
+ tags: ["SERIALIZER"],
551
+ override: true,
552
+ };
553
+ function getSchemaSerdePlugin(config) {
554
+ return {
555
+ applyToStack: (commandStack) => {
556
+ commandStack.add(schemaSerializationMiddleware(config), serializerMiddlewareOption);
557
+ commandStack.add(schemaDeserializationMiddleware(config), deserializerMiddlewareOption);
558
+ config.protocol.setSerdeContext(config);
559
+ },
560
+ };
561
+ }
562
+
563
+ const SCHEMA = {
564
+ BLOB: 0b0001_0101,
565
+ STREAMING_BLOB: 0b0010_1010,
566
+ BOOLEAN: 0b0000_0010,
567
+ STRING: 0b0000_0000,
568
+ NUMERIC: 0b0000_0001,
569
+ BIG_INTEGER: 0b0001_0001,
570
+ BIG_DECIMAL: 0b0001_0011,
571
+ DOCUMENT: 0b0000_1111,
572
+ TIMESTAMP_DEFAULT: 0b0000_0100,
573
+ TIMESTAMP_DATE_TIME: 0b0000_0101,
574
+ TIMESTAMP_HTTP_DATE: 0b0000_0110,
575
+ TIMESTAMP_EPOCH_SECONDS: 0b0000_0111,
576
+ LIST_MODIFIER: 0b0100_0000,
577
+ MAP_MODIFIER: 0b1000_0000,
578
+ };
579
+
580
+ exports.ErrorSchema = ErrorSchema;
581
+ exports.ListSchema = ListSchema;
582
+ exports.MapSchema = MapSchema;
583
+ exports.NormalizedSchema = NormalizedSchema;
584
+ exports.OperationSchema = OperationSchema;
585
+ exports.SCHEMA = SCHEMA;
586
+ exports.Schema = Schema;
587
+ exports.SimpleSchema = SimpleSchema;
588
+ exports.StructureSchema = StructureSchema;
589
+ exports.TypeRegistry = TypeRegistry;
590
+ exports.deref = deref;
591
+ exports.deserializerMiddlewareOption = deserializerMiddlewareOption;
592
+ exports.error = error;
593
+ exports.getSchemaSerdePlugin = getSchemaSerdePlugin;
594
+ exports.hydrate = hydrate;
595
+ exports.isStaticSchema = isStaticSchema;
596
+ exports.list = list;
597
+ exports.map = map;
598
+ exports.op = op;
599
+ exports.serializerMiddlewareOption = serializerMiddlewareOption;
600
+ exports.sim = sim;
601
+ exports.struct = struct;
602
+ exports.translateTraits = translateTraits;