@mavogel/awscdk-rootmail 0.0.323 → 0.0.325

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 (395) 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/dist-types/models/models_0.d.ts +2 -2
  6. package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +38 -38
  7. package/node_modules/@aws-sdk/client-route-53/dist-cjs/index.js +7328 -7804
  8. package/node_modules/@aws-sdk/client-route-53/dist-types/models/models_0.d.ts +1 -1
  9. package/node_modules/@aws-sdk/client-route-53/package.json +38 -38
  10. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +11771 -11916
  11. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +4 -4
  12. package/node_modules/@aws-sdk/client-s3/package.json +52 -52
  13. package/node_modules/@aws-sdk/client-ses/dist-cjs/index.js +7284 -7626
  14. package/node_modules/@aws-sdk/client-ses/package.json +36 -36
  15. package/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/ruleset.js +1 -1
  16. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +12508 -13696
  17. package/node_modules/@aws-sdk/client-ssm/dist-es/endpoint/ruleset.js +1 -1
  18. package/node_modules/@aws-sdk/client-ssm/package.json +36 -36
  19. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +478 -596
  20. package/node_modules/@aws-sdk/client-sso/package.json +34 -34
  21. package/node_modules/@aws-sdk/core/dist-cjs/index.js +1969 -6
  22. package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +48 -88
  23. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +35 -74
  24. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +273 -365
  25. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1581 -1863
  26. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +1 -1
  27. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +4 -4
  28. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +3 -3
  29. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +4 -4
  30. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +4 -4
  31. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +4 -4
  32. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +4 -4
  33. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +3 -3
  34. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -4
  35. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +1 -1
  36. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +1 -1
  37. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +1 -1
  38. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +1 -1
  39. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +1 -1
  40. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +1 -1
  41. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +4 -4
  42. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts +1 -1
  43. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
  44. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +2 -2
  45. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +1 -1
  46. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +1 -2
  47. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlCodec.d.ts +1 -1
  48. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +7 -7
  49. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +1 -1
  50. package/node_modules/@aws-sdk/core/package.json +12 -12
  51. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +38 -73
  52. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  53. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  54. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +194 -259
  55. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +1 -2
  56. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +1 -1
  57. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -1
  58. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +4 -0
  59. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +3 -1
  60. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProfileData.d.ts +1 -0
  61. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  62. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +72 -132
  63. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  64. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +71 -107
  65. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  66. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +176 -249
  67. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-CVy8iqsZ.js +14 -0
  68. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  69. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +16 -25
  70. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  71. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js +334 -450
  72. package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +5 -5
  73. package/node_modules/@aws-sdk/middleware-expect-continue/dist-cjs/index.js +30 -60
  74. package/node_modules/@aws-sdk/middleware-expect-continue/package.json +4 -4
  75. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js +381 -478
  76. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +9 -9
  77. package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +35 -63
  78. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  79. package/node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js +23 -57
  80. package/node_modules/@aws-sdk/middleware-location-constraint/dist-es/index.js +4 -7
  81. package/node_modules/@aws-sdk/middleware-location-constraint/package.json +3 -3
  82. package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +44 -75
  83. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  84. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +19 -48
  85. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  86. package/node_modules/@aws-sdk/middleware-sdk-route53/dist-cjs/index.js +71 -109
  87. package/node_modules/@aws-sdk/middleware-sdk-route53/package.json +3 -3
  88. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +511 -641
  89. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +11 -11
  90. package/node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js +65 -92
  91. package/node_modules/@aws-sdk/middleware-ssec/package.json +3 -3
  92. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +170 -203
  93. package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
  94. package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +2 -2
  95. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +583 -858
  96. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +795 -928
  97. package/node_modules/@aws-sdk/nested-clients/package.json +34 -34
  98. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +59 -95
  99. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  100. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +108 -137
  101. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +6 -6
  102. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +147 -222
  103. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  104. package/node_modules/@aws-sdk/types/dist-cjs/index.js +18 -290
  105. package/node_modules/@aws-sdk/types/package.json +2 -2
  106. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +395 -469
  107. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  108. package/node_modules/@aws-sdk/util-user-agent-browser/README.md +22 -3
  109. package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/createUserAgentStringParsingProvider.js +57 -0
  110. package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.js +39 -8
  111. package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/createUserAgentStringParsingProvider.js +20 -0
  112. package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.js +37 -6
  113. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/createUserAgentStringParsingProvider.d.ts +14 -0
  114. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +14 -4
  115. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts +4 -3
  116. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/createUserAgentStringParsingProvider.d.ts +9 -0
  117. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/index.d.ts +5 -0
  118. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  119. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +50 -94
  120. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/crt-availability.d.ts +1 -2
  121. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/defaultUserAgent.d.ts +10 -5
  122. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  123. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +106 -160
  124. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.browser.js +4 -1
  125. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  126. package/node_modules/@smithy/abort-controller/package.json +2 -2
  127. package/node_modules/@smithy/chunked-blob-reader-native/package.json +2 -2
  128. package/node_modules/@smithy/config-resolver/package.json +4 -4
  129. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +4 -16
  130. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +5 -4
  131. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +51 -47
  132. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +234 -265
  133. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +126 -34
  134. package/node_modules/@smithy/core/dist-es/index.js +1 -1
  135. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +6 -17
  136. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -4
  137. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +4 -4
  138. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +10 -9
  139. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +2 -2
  140. package/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js +6 -0
  141. package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +1 -0
  142. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +22 -22
  143. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +3 -2
  144. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +7 -9
  145. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js +5 -6
  146. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +18 -11
  147. package/node_modules/@smithy/core/dist-es/submodules/schema/index.js +2 -0
  148. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +3 -1
  149. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +3 -1
  150. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +100 -185
  151. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +0 -2
  152. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +6 -0
  153. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js +7 -0
  154. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js +22 -0
  155. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  156. package/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js +110 -0
  157. package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +4 -26
  158. package/node_modules/@smithy/core/dist-types/index.d.ts +1 -1
  159. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +5 -10
  160. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +5 -2
  161. package/node_modules/@smithy/core/dist-types/submodules/protocols/SerdeContext.d.ts +8 -0
  162. package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +1 -0
  163. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +3 -4
  164. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +5 -2
  165. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +5 -2
  166. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts +3 -4
  167. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +5 -6
  168. package/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts +2 -0
  169. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +2 -0
  170. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +2 -0
  171. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +2 -0
  172. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +12 -27
  173. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts +2 -0
  174. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts +1 -0
  175. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +7 -0
  176. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +2 -0
  177. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/operation.d.ts +7 -0
  178. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts +2 -0
  179. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/translateTraits.d.ts +7 -0
  180. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
  181. package/node_modules/@smithy/core/dist-types/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
  182. package/node_modules/@smithy/core/dist-types/ts3.4/index.d.ts +1 -1
  183. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +5 -10
  184. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +5 -2
  185. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/SerdeContext.d.ts +8 -0
  186. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
  187. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +3 -4
  188. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +5 -2
  189. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +5 -2
  190. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +3 -4
  191. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +5 -6
  192. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts +2 -0
  193. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +2 -0
  194. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +2 -0
  195. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +2 -0
  196. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +12 -27
  197. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +2 -0
  198. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +1 -0
  199. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +7 -0
  200. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +2 -0
  201. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/operation.d.ts +7 -0
  202. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts +2 -0
  203. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +7 -0
  204. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
  205. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
  206. package/node_modules/@smithy/core/package.json +8 -8
  207. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  208. package/node_modules/@smithy/eventstream-codec/package.json +2 -2
  209. package/node_modules/@smithy/eventstream-serde-browser/package.json +3 -3
  210. package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +2 -2
  211. package/node_modules/@smithy/eventstream-serde-node/package.json +3 -3
  212. package/node_modules/@smithy/eventstream-serde-universal/package.json +6 -4
  213. package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  214. package/node_modules/@smithy/hash-blob-browser/package.json +3 -3
  215. package/node_modules/@smithy/hash-node/package.json +2 -2
  216. package/node_modules/@smithy/hash-stream-node/package.json +2 -2
  217. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  218. package/node_modules/@smithy/md5-js/package.json +3 -3
  219. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  220. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  221. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  222. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  223. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  224. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  225. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +30 -6
  226. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +7 -3
  227. package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +1 -1
  228. package/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
  229. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +2 -3
  230. package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
  231. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
  232. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  233. package/node_modules/@smithy/property-provider/package.json +2 -2
  234. package/node_modules/@smithy/protocol-http/package.json +2 -2
  235. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  236. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  237. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  238. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +2 -1
  239. package/node_modules/@smithy/shared-ini-file-loader/dist-es/constants.js +1 -0
  240. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +1 -1
  241. package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +1 -1
  242. package/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +1 -1
  243. package/node_modules/@smithy/shared-ini-file-loader/dist-types/constants.d.ts +4 -0
  244. package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +1 -4
  245. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/constants.d.ts +4 -0
  246. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +1 -4
  247. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  248. package/node_modules/@smithy/signature-v4/package.json +4 -4
  249. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +5 -4
  250. package/node_modules/@smithy/smithy-client/dist-es/command.js +5 -4
  251. package/node_modules/@smithy/smithy-client/dist-types/command.d.ts +3 -3
  252. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +3 -3
  253. package/node_modules/@smithy/smithy-client/package.json +7 -7
  254. package/node_modules/@smithy/types/dist-es/index.js +2 -0
  255. package/node_modules/@smithy/types/dist-es/schema/schema-deprecated.js +1 -0
  256. package/node_modules/@smithy/types/dist-es/schema/static-schemas.js +1 -0
  257. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +17 -10
  258. package/node_modules/@smithy/types/dist-types/index.d.ts +2 -0
  259. package/node_modules/@smithy/types/dist-types/schema/schema-deprecated.d.ts +136 -0
  260. package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +27 -68
  261. package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +82 -0
  262. package/node_modules/@smithy/types/dist-types/serde.d.ts +2 -2
  263. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +17 -10
  264. package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +2 -0
  265. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema-deprecated.d.ts +142 -0
  266. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +28 -72
  267. package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +101 -0
  268. package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +2 -2
  269. package/node_modules/@smithy/types/package.json +1 -1
  270. package/node_modules/@smithy/url-parser/package.json +3 -3
  271. package/node_modules/@smithy/util-base64/dist-cjs/constants.browser.js +9 -32
  272. package/node_modules/@smithy/util-base64/dist-es/constants.browser.js +9 -28
  273. package/node_modules/@smithy/util-base64/dist-types/constants.browser.d.ts +5 -6
  274. package/node_modules/@smithy/util-base64/dist-types/ts3.4/constants.browser.d.ts +5 -6
  275. package/node_modules/@smithy/util-base64/package.json +1 -1
  276. package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +8 -6
  277. package/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js +8 -6
  278. package/node_modules/@smithy/util-body-length-node/package.json +1 -1
  279. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js +11 -9
  280. package/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js +11 -8
  281. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -5
  282. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  283. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +31 -22
  284. package/node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js +1 -11
  285. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +15 -2
  286. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js +17 -2
  287. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTreeRule.js +1 -13
  288. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js +25 -2
  289. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperty.js +1 -21
  290. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts +1 -2
  291. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts +7 -2
  292. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +6 -1
  293. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts +1 -3
  294. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts +6 -0
  295. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts +1 -3
  296. package/node_modules/@smithy/util-endpoints/dist-types/utils/callFunction.d.ts +1 -2
  297. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateExpression.d.ts +7 -2
  298. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateRules.d.ts +6 -1
  299. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTreeRule.d.ts +1 -3
  300. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +6 -0
  301. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperty.d.ts +1 -3
  302. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  303. package/node_modules/@smithy/util-middleware/package.json +2 -2
  304. package/node_modules/@smithy/util-retry/package.json +3 -3
  305. package/node_modules/@smithy/util-stream/dist-cjs/index.js +10 -19
  306. package/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js +12 -7
  307. package/node_modules/@smithy/util-stream/dist-types/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
  308. package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
  309. package/node_modules/@smithy/util-stream/package.json +5 -5
  310. package/node_modules/@smithy/util-waiter/package.json +3 -3
  311. package/node_modules/cdk-nag/.jsii +3 -3
  312. package/node_modules/cdk-nag/lib/ignore-suppression-conditions.js +5 -5
  313. package/node_modules/cdk-nag/lib/nag-logger.js +2 -2
  314. package/node_modules/cdk-nag/lib/nag-pack.js +1 -1
  315. package/node_modules/cdk-nag/lib/nag-rules.js +1 -1
  316. package/node_modules/cdk-nag/lib/nag-suppressions.js +1 -1
  317. package/node_modules/cdk-nag/lib/packs/aws-solutions.js +1 -1
  318. package/node_modules/cdk-nag/lib/packs/hipaa-security.js +1 -1
  319. package/node_modules/cdk-nag/lib/packs/nist-800-53-r4.js +1 -1
  320. package/node_modules/cdk-nag/lib/packs/nist-800-53-r5.js +1 -1
  321. package/node_modules/cdk-nag/lib/packs/pci-dss-321.js +1 -1
  322. package/node_modules/cdk-nag/lib/packs/serverless.js +1 -1
  323. package/node_modules/cdk-nag/package.json +4 -4
  324. package/node_modules/mailparser/CHANGELOG.md +7 -0
  325. package/node_modules/mailparser/lib/mail-parser.js +12 -3
  326. package/node_modules/mailparser/node_modules/iconv-lite/Changelog.md +236 -0
  327. package/node_modules/mailparser/node_modules/iconv-lite/LICENSE +21 -0
  328. package/node_modules/mailparser/node_modules/iconv-lite/README.md +138 -0
  329. package/node_modules/mailparser/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
  330. package/node_modules/mailparser/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
  331. package/node_modules/mailparser/node_modules/iconv-lite/encodings/index.js +23 -0
  332. package/node_modules/mailparser/node_modules/iconv-lite/encodings/internal.js +218 -0
  333. package/node_modules/mailparser/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
  334. package/node_modules/mailparser/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  335. package/node_modules/mailparser/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
  336. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  337. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  338. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  339. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  340. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  341. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  342. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  343. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  344. package/node_modules/mailparser/node_modules/iconv-lite/encodings/utf16.js +187 -0
  345. package/node_modules/mailparser/node_modules/iconv-lite/encodings/utf32.js +307 -0
  346. package/node_modules/mailparser/node_modules/iconv-lite/encodings/utf7.js +283 -0
  347. package/node_modules/mailparser/node_modules/iconv-lite/lib/bom-handling.js +48 -0
  348. package/node_modules/mailparser/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  349. package/node_modules/mailparser/node_modules/iconv-lite/lib/index.d.ts +41 -0
  350. package/node_modules/mailparser/node_modules/iconv-lite/lib/index.js +183 -0
  351. package/node_modules/mailparser/node_modules/iconv-lite/lib/streams.js +105 -0
  352. package/node_modules/mailparser/node_modules/iconv-lite/package.json +59 -0
  353. package/node_modules/mailparser/package.json +5 -5
  354. package/node_modules/mailsplit/index.js +2 -0
  355. package/node_modules/mailsplit/lib/chunked-passthrough.js +37 -0
  356. package/node_modules/mailsplit/package.json +1 -1
  357. package/node_modules/nodemailer/.ncurc.js +3 -5
  358. package/node_modules/nodemailer/.prettierignore +8 -0
  359. package/node_modules/nodemailer/.prettierrc +12 -0
  360. package/node_modules/nodemailer/.prettierrc.js +2 -0
  361. package/node_modules/nodemailer/.release-please-config.json +9 -0
  362. package/node_modules/nodemailer/CHANGELOG.md +323 -305
  363. package/node_modules/nodemailer/CODE_OF_CONDUCT.md +13 -13
  364. package/node_modules/nodemailer/README.md +10 -10
  365. package/node_modules/nodemailer/eslint.config.js +88 -0
  366. package/node_modules/nodemailer/lib/addressparser/index.js +47 -7
  367. package/node_modules/nodemailer/lib/base64/index.js +11 -14
  368. package/node_modules/nodemailer/lib/dkim/index.js +3 -1
  369. package/node_modules/nodemailer/lib/dkim/sign.js +1 -1
  370. package/node_modules/nodemailer/lib/fetch/index.js +7 -1
  371. package/node_modules/nodemailer/lib/mail-composer/index.js +47 -9
  372. package/node_modules/nodemailer/lib/mailer/index.js +8 -1
  373. package/node_modules/nodemailer/lib/mailer/mail-message.js +2 -1
  374. package/node_modules/nodemailer/lib/mime-funcs/index.js +2 -2
  375. package/node_modules/nodemailer/lib/mime-funcs/mime-types.js +12 -3
  376. package/node_modules/nodemailer/lib/mime-node/index.js +11 -9
  377. package/node_modules/nodemailer/lib/nodemailer.js +3 -1
  378. package/node_modules/nodemailer/lib/qp/index.js +10 -2
  379. package/node_modules/nodemailer/lib/shared/index.js +108 -42
  380. package/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +2 -2
  381. package/node_modules/nodemailer/lib/smtp-connection/index.js +13 -6
  382. package/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +3 -2
  383. package/node_modules/nodemailer/lib/smtp-transport/index.js +1 -1
  384. package/node_modules/nodemailer/lib/well-known/services.json +277 -42
  385. package/node_modules/nodemailer/lib/xoauth2/index.js +58 -7
  386. package/node_modules/nodemailer/package.json +9 -5
  387. package/node_modules/tlds/index.json +0 -1
  388. package/node_modules/tlds/package.json +1 -1
  389. package/package.json +1 -1
  390. package/node_modules/@smithy/util-stream/dist-es/blob/transforms.js +0 -15
  391. package/node_modules/@smithy/util-stream/dist-types/blob/transforms.d.ts +0 -9
  392. package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/transforms.d.ts +0 -9
  393. /package/node_modules/@smithy/core/dist-es/{protocols → request-builder}/requestBuilder.js +0 -0
  394. /package/node_modules/@smithy/core/dist-types/{protocols → request-builder}/requestBuilder.d.ts +0 -0
  395. /package/node_modules/@smithy/core/dist-types/ts3.4/{protocols → request-builder}/requestBuilder.d.ts +0 -0
@@ -10,11 +10,20 @@ const deref = (schemaRef) => {
10
10
  return schemaRef;
11
11
  };
12
12
 
13
+ const operation = (namespace, name, traits, input, output) => ({
14
+ name,
15
+ namespace,
16
+ traits,
17
+ input,
18
+ output,
19
+ });
20
+
13
21
  const schemaDeserializationMiddleware = (config) => (next, context) => async (args) => {
14
22
  const { response } = await next(args);
15
23
  const { operationSchema } = utilMiddleware.getSmithyContext(context);
24
+ const [, ns, n, t, i, o] = operationSchema ?? [];
16
25
  try {
17
- const parsed = await config.protocol.deserializeResponse(operationSchema, {
26
+ const parsed = await config.protocol.deserializeResponse(operation(ns, n, t, i, o), {
18
27
  ...config,
19
28
  ...context,
20
29
  }, response);
@@ -71,10 +80,11 @@ const findHeader = (pattern, headers) => {
71
80
 
72
81
  const schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
73
82
  const { operationSchema } = utilMiddleware.getSmithyContext(context);
83
+ const [, ns, n, t, i, o] = operationSchema ?? [];
74
84
  const endpoint = context.endpointV2?.url && config.urlParser
75
85
  ? async () => config.urlParser(context.endpointV2.url)
76
86
  : config.endpoint;
77
- const request = await config.protocol.serializeRequest(operationSchema, args.input, {
87
+ const request = await config.protocol.serializeRequest(operation(ns, n, t, i, o), args.input, {
78
88
  ...config,
79
89
  ...context,
80
90
  endpoint,
@@ -107,72 +117,12 @@ function getSchemaSerdePlugin(config) {
107
117
  };
108
118
  }
109
119
 
110
- class TypeRegistry {
111
- namespace;
112
- schemas;
113
- exceptions;
114
- static registries = new Map();
115
- constructor(namespace, schemas = new Map(), exceptions = new Map()) {
116
- this.namespace = namespace;
117
- this.schemas = schemas;
118
- this.exceptions = exceptions;
119
- }
120
- static for(namespace) {
121
- if (!TypeRegistry.registries.has(namespace)) {
122
- TypeRegistry.registries.set(namespace, new TypeRegistry(namespace));
123
- }
124
- return TypeRegistry.registries.get(namespace);
125
- }
126
- register(shapeId, schema) {
127
- const qualifiedName = this.normalizeShapeId(shapeId);
128
- this.schemas.set(qualifiedName, schema);
129
- }
130
- getSchema(shapeId) {
131
- const id = this.normalizeShapeId(shapeId);
132
- if (!this.schemas.has(id)) {
133
- throw new Error(`@smithy/core/schema - schema not found for ${id}`);
134
- }
135
- return this.schemas.get(id);
136
- }
137
- registerError(errorSchema, ctor) {
138
- this.exceptions.set(errorSchema, ctor);
139
- }
140
- getErrorCtor(errorSchema) {
141
- return this.exceptions.get(errorSchema);
142
- }
143
- getBaseException() {
144
- for (const [id, schema] of this.schemas.entries()) {
145
- if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) {
146
- return schema;
147
- }
148
- }
149
- return undefined;
150
- }
151
- find(predicate) {
152
- return [...this.schemas.values()].find(predicate);
153
- }
154
- clear() {
155
- this.schemas.clear();
156
- this.exceptions.clear();
157
- }
158
- normalizeShapeId(shapeId) {
159
- if (shapeId.includes("#")) {
160
- return shapeId;
161
- }
162
- return this.namespace + "#" + shapeId;
163
- }
164
- getNamespace(shapeId) {
165
- return this.normalizeShapeId(shapeId).split("#")[0];
166
- }
167
- }
168
-
169
120
  class Schema {
170
121
  name;
171
122
  namespace;
172
123
  traits;
173
124
  static assign(instance, values) {
174
125
  const schema = Object.assign(instance, values);
175
- TypeRegistry.for(schema.namespace).register(schema.name, schema);
176
126
  return schema;
177
127
  }
178
128
  static [Symbol.hasInstance](lhs) {
@@ -264,36 +214,28 @@ const error = (namespace, name, traits, memberNames, memberList, ctor) => Schema
264
214
  ctor: null,
265
215
  });
266
216
 
267
- const SCHEMA = {
268
- BLOB: 0b0001_0101,
269
- STREAMING_BLOB: 0b0010_1010,
270
- BOOLEAN: 0b0000_0010,
271
- STRING: 0b0000_0000,
272
- NUMERIC: 0b0000_0001,
273
- BIG_INTEGER: 0b0001_0001,
274
- BIG_DECIMAL: 0b0001_0011,
275
- DOCUMENT: 0b0000_1111,
276
- TIMESTAMP_DEFAULT: 0b0000_0100,
277
- TIMESTAMP_DATE_TIME: 0b0000_0101,
278
- TIMESTAMP_HTTP_DATE: 0b0000_0110,
279
- TIMESTAMP_EPOCH_SECONDS: 0b0000_0111,
280
- LIST_MODIFIER: 0b0100_0000,
281
- MAP_MODIFIER: 0b1000_0000,
282
- };
283
-
284
- class SimpleSchema extends Schema {
285
- static symbol = Symbol.for("@smithy/sim");
286
- name;
287
- schemaRef;
288
- traits;
289
- symbol = SimpleSchema.symbol;
217
+ function translateTraits(indicator) {
218
+ if (typeof indicator === "object") {
219
+ return indicator;
220
+ }
221
+ indicator = indicator | 0;
222
+ const traits = {};
223
+ let i = 0;
224
+ for (const trait of [
225
+ "httpLabel",
226
+ "idempotent",
227
+ "idempotencyToken",
228
+ "sensitive",
229
+ "httpPayload",
230
+ "httpResponseCode",
231
+ "httpQueryParams",
232
+ ]) {
233
+ if (((indicator >> i++) & 1) === 1) {
234
+ traits[trait] = 1;
235
+ }
236
+ }
237
+ return traits;
290
238
  }
291
- const sim = (namespace, name, schemaRef, traits) => Schema.assign(new SimpleSchema(), {
292
- name,
293
- namespace,
294
- traits,
295
- schemaRef,
296
- });
297
239
 
298
240
  class NormalizedSchema {
299
241
  ref;
@@ -313,7 +255,7 @@ class NormalizedSchema {
313
255
  let _ref = ref;
314
256
  let schema = ref;
315
257
  this._isMemberSchema = false;
316
- while (Array.isArray(_ref)) {
258
+ while (isMemberSchema(_ref)) {
317
259
  traitStack.push(_ref[1]);
318
260
  _ref = _ref[0];
319
261
  schema = deref(_ref);
@@ -323,7 +265,7 @@ class NormalizedSchema {
323
265
  this.memberTraits = {};
324
266
  for (let i = traitStack.length - 1; i >= 0; --i) {
325
267
  const traitSet = traitStack[i];
326
- Object.assign(this.memberTraits, NormalizedSchema.translateTraits(traitSet));
268
+ Object.assign(this.memberTraits, translateTraits(traitSet));
327
269
  }
328
270
  }
329
271
  else {
@@ -338,154 +280,116 @@ class NormalizedSchema {
338
280
  return;
339
281
  }
340
282
  this.schema = deref(schema);
341
- if (this.schema && typeof this.schema === "object") {
342
- this.traits = this.schema?.traits ?? {};
283
+ if (isStaticSchema(this.schema)) {
284
+ this.name = `${this.schema[1]}#${this.schema[2]}`;
285
+ this.traits = this.schema[3];
343
286
  }
344
287
  else {
288
+ this.name = this.memberName ?? String(schema);
345
289
  this.traits = 0;
346
290
  }
347
- this.name =
348
- (this.schema instanceof Schema ? this.schema.getName?.() : void 0) ?? this.memberName ?? this.getSchemaName();
349
291
  if (this._isMemberSchema && !memberName) {
350
292
  throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`);
351
293
  }
352
294
  }
353
295
  static [Symbol.hasInstance](lhs) {
354
- return Schema[Symbol.hasInstance].bind(this)(lhs);
296
+ const isPrototype = this.prototype.isPrototypeOf(lhs);
297
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
298
+ const ns = lhs;
299
+ return ns.symbol === this.symbol;
300
+ }
301
+ return isPrototype;
355
302
  }
356
303
  static of(ref) {
357
- if (ref instanceof NormalizedSchema) {
358
- return ref;
304
+ const sc = deref(ref);
305
+ if (sc instanceof NormalizedSchema) {
306
+ return sc;
359
307
  }
360
- if (Array.isArray(ref)) {
361
- const [ns, traits] = ref;
308
+ if (isMemberSchema(sc)) {
309
+ const [ns, traits] = sc;
362
310
  if (ns instanceof NormalizedSchema) {
363
- Object.assign(ns.getMergedTraits(), NormalizedSchema.translateTraits(traits));
311
+ Object.assign(ns.getMergedTraits(), translateTraits(traits));
364
312
  return ns;
365
313
  }
366
314
  throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(ref, null, 2)}.`);
367
315
  }
368
- return new NormalizedSchema(ref);
369
- }
370
- static translateTraits(indicator) {
371
- if (typeof indicator === "object") {
372
- return indicator;
373
- }
374
- indicator = indicator | 0;
375
- const traits = {};
376
- let i = 0;
377
- for (const trait of [
378
- "httpLabel",
379
- "idempotent",
380
- "idempotencyToken",
381
- "sensitive",
382
- "httpPayload",
383
- "httpResponseCode",
384
- "httpQueryParams",
385
- ]) {
386
- if (((indicator >> i++) & 1) === 1) {
387
- traits[trait] = 1;
388
- }
389
- }
390
- return traits;
316
+ return new NormalizedSchema(sc);
391
317
  }
392
318
  getSchema() {
393
- if (this.schema instanceof NormalizedSchema) {
394
- Object.assign(this, { schema: this.schema.getSchema() });
395
- return this.schema;
396
- }
397
- if (this.schema instanceof SimpleSchema) {
398
- return deref(this.schema.schemaRef);
319
+ const sc = this.schema;
320
+ if (sc[0] === 0) {
321
+ return sc[4];
399
322
  }
400
- return deref(this.schema);
323
+ return sc;
401
324
  }
402
325
  getName(withNamespace = false) {
403
- if (!withNamespace) {
404
- if (this.name && this.name.includes("#")) {
405
- return this.name.split("#")[1];
406
- }
407
- }
408
- return this.name || undefined;
326
+ const { name } = this;
327
+ const short = !withNamespace && name && name.includes("#");
328
+ return short ? name.split("#")[1] : name || undefined;
409
329
  }
410
330
  getMemberName() {
411
- if (!this.isMemberSchema()) {
412
- throw new Error(`@smithy/core/schema - non-member schema: ${this.getName(true)}`);
413
- }
414
331
  return this.memberName;
415
332
  }
416
333
  isMemberSchema() {
417
334
  return this._isMemberSchema;
418
335
  }
419
- isUnitSchema() {
420
- return this.getSchema() === "unit";
421
- }
422
336
  isListSchema() {
423
- const inner = this.getSchema();
424
- if (typeof inner === "number") {
425
- return inner >= SCHEMA.LIST_MODIFIER && inner < SCHEMA.MAP_MODIFIER;
426
- }
427
- return inner instanceof ListSchema;
337
+ const sc = this.getSchema();
338
+ return typeof sc === "number"
339
+ ? sc >= 64 && sc < 128
340
+ : sc[0] === 1;
428
341
  }
429
342
  isMapSchema() {
430
- const inner = this.getSchema();
431
- if (typeof inner === "number") {
432
- return inner >= SCHEMA.MAP_MODIFIER && inner <= 0b1111_1111;
433
- }
434
- return inner instanceof MapSchema;
343
+ const sc = this.getSchema();
344
+ return typeof sc === "number"
345
+ ? sc >= 128 && sc <= 0b1111_1111
346
+ : sc[0] === 2;
435
347
  }
436
348
  isStructSchema() {
437
- const inner = this.getSchema();
438
- return (inner !== null && typeof inner === "object" && "members" in inner) || inner instanceof StructureSchema;
349
+ const sc = this.getSchema();
350
+ return (sc[0] === 3 ||
351
+ sc[0] === -3);
439
352
  }
440
353
  isBlobSchema() {
441
- return this.getSchema() === SCHEMA.BLOB || this.getSchema() === SCHEMA.STREAMING_BLOB;
354
+ const sc = this.getSchema();
355
+ return sc === 21 || sc === 42;
442
356
  }
443
357
  isTimestampSchema() {
444
- const schema = this.getSchema();
445
- return typeof schema === "number" && schema >= SCHEMA.TIMESTAMP_DEFAULT && schema <= SCHEMA.TIMESTAMP_EPOCH_SECONDS;
358
+ const sc = this.getSchema();
359
+ return (typeof sc === "number" &&
360
+ sc >= 4 &&
361
+ sc <= 7);
362
+ }
363
+ isUnitSchema() {
364
+ return this.getSchema() === "unit";
446
365
  }
447
366
  isDocumentSchema() {
448
- return this.getSchema() === SCHEMA.DOCUMENT;
367
+ return this.getSchema() === 15;
449
368
  }
450
369
  isStringSchema() {
451
- return this.getSchema() === SCHEMA.STRING;
370
+ return this.getSchema() === 0;
452
371
  }
453
372
  isBooleanSchema() {
454
- return this.getSchema() === SCHEMA.BOOLEAN;
373
+ return this.getSchema() === 2;
455
374
  }
456
375
  isNumericSchema() {
457
- return this.getSchema() === SCHEMA.NUMERIC;
376
+ return this.getSchema() === 1;
458
377
  }
459
378
  isBigIntegerSchema() {
460
- return this.getSchema() === SCHEMA.BIG_INTEGER;
379
+ return this.getSchema() === 17;
461
380
  }
462
381
  isBigDecimalSchema() {
463
- return this.getSchema() === SCHEMA.BIG_DECIMAL;
382
+ return this.getSchema() === 19;
464
383
  }
465
384
  isStreaming() {
466
- const streaming = !!this.getMergedTraits().streaming;
467
- if (streaming) {
468
- return true;
469
- }
470
- return this.getSchema() === SCHEMA.STREAMING_BLOB;
385
+ const { streaming } = this.getMergedTraits();
386
+ return !!streaming || this.getSchema() === 42;
471
387
  }
472
388
  isIdempotencyToken() {
473
- if (this.normalizedTraits) {
474
- return !!this.normalizedTraits.idempotencyToken;
475
- }
476
- for (const traits of [this.traits, this.memberTraits]) {
477
- if (typeof traits === "number") {
478
- if ((traits & 0b0100) === 0b0100) {
479
- return true;
480
- }
481
- }
482
- else if (typeof traits === "object") {
483
- if (!!traits.idempotencyToken) {
484
- return true;
485
- }
486
- }
487
- }
488
- return false;
389
+ const match = (traits) => (traits & 0b0100) === 0b0100 ||
390
+ !!traits?.idempotencyToken;
391
+ const { normalizedTraits, traits, memberTraits } = this;
392
+ return match(normalizedTraits) || match(traits) || match(memberTraits);
489
393
  }
490
394
  getMergedTraits() {
491
395
  return (this.normalizedTraits ??
@@ -495,74 +399,48 @@ class NormalizedSchema {
495
399
  }));
496
400
  }
497
401
  getMemberTraits() {
498
- return NormalizedSchema.translateTraits(this.memberTraits);
402
+ return translateTraits(this.memberTraits);
499
403
  }
500
404
  getOwnTraits() {
501
- return NormalizedSchema.translateTraits(this.traits);
405
+ return translateTraits(this.traits);
502
406
  }
503
407
  getKeySchema() {
504
- if (this.isDocumentSchema()) {
505
- return this.memberFrom([SCHEMA.DOCUMENT, 0], "key");
506
- }
507
- if (!this.isMapSchema()) {
408
+ const [isDoc, isMap] = [this.isDocumentSchema(), this.isMapSchema()];
409
+ if (!isDoc && !isMap) {
508
410
  throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`);
509
411
  }
510
412
  const schema = this.getSchema();
511
- if (typeof schema === "number") {
512
- return this.memberFrom([0b0011_1111 & schema, 0], "key");
513
- }
514
- return this.memberFrom([schema.keySchema, 0], "key");
413
+ const memberSchema = isDoc
414
+ ? 15
415
+ : schema[4] ?? 0;
416
+ return member([memberSchema, 0], "key");
515
417
  }
516
418
  getValueSchema() {
517
- const schema = this.getSchema();
518
- if (typeof schema === "number") {
519
- if (this.isMapSchema()) {
520
- return this.memberFrom([0b0011_1111 & schema, 0], "value");
521
- }
522
- else if (this.isListSchema()) {
523
- return this.memberFrom([0b0011_1111 & schema, 0], "member");
524
- }
525
- }
526
- if (schema && typeof schema === "object") {
527
- if (this.isStructSchema()) {
528
- throw new Error(`may not getValueSchema() on structure ${this.getName(true)}`);
529
- }
530
- const collection = schema;
531
- if ("valueSchema" in collection) {
532
- if (this.isMapSchema()) {
533
- return this.memberFrom([collection.valueSchema, 0], "value");
534
- }
535
- else if (this.isListSchema()) {
536
- return this.memberFrom([collection.valueSchema, 0], "member");
537
- }
538
- }
539
- }
540
- if (this.isDocumentSchema()) {
541
- return this.memberFrom([SCHEMA.DOCUMENT, 0], "value");
419
+ const sc = this.getSchema();
420
+ const [isDoc, isMap, isList] = [this.isDocumentSchema(), this.isMapSchema(), this.isListSchema()];
421
+ const memberSchema = typeof sc === "number"
422
+ ? 0b0011_1111 & sc
423
+ : sc && typeof sc === "object" && (isMap || isList)
424
+ ? sc[3 + sc[0]]
425
+ : isDoc
426
+ ? 15
427
+ : void 0;
428
+ if (memberSchema != null) {
429
+ return member([memberSchema, 0], isMap ? "value" : "member");
542
430
  }
543
431
  throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`);
544
432
  }
545
- hasMemberSchema(member) {
546
- if (this.isStructSchema()) {
547
- const struct = this.getSchema();
548
- return struct.memberNames.includes(member);
549
- }
550
- return false;
551
- }
552
- getMemberSchema(member) {
553
- if (this.isStructSchema()) {
554
- const struct = this.getSchema();
555
- if (!struct.memberNames.includes(member)) {
556
- throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${member}.`);
557
- }
558
- const i = struct.memberNames.indexOf(member);
559
- const memberSchema = struct.memberList[i];
560
- return this.memberFrom(Array.isArray(memberSchema) ? memberSchema : [memberSchema, 0], member);
433
+ getMemberSchema(memberName) {
434
+ const struct = this.getSchema();
435
+ if (this.isStructSchema() && struct[4].includes(memberName)) {
436
+ const i = struct[4].indexOf(memberName);
437
+ const memberSchema = struct[5][i];
438
+ return member(isMemberSchema(memberSchema) ? memberSchema : [memberSchema, 0], memberName);
561
439
  }
562
440
  if (this.isDocumentSchema()) {
563
- return this.memberFrom([SCHEMA.DOCUMENT, 0], member);
441
+ return member([15, 0], memberName);
564
442
  }
565
- throw new Error(`@smithy/core/schema - ${this.getName(true)} has no members.`);
443
+ throw new Error(`@smithy/core/schema - ${this.getName(true)} has no no member=${memberName}.`);
566
444
  }
567
445
  getMemberSchemas() {
568
446
  const buffer = {};
@@ -592,37 +470,124 @@ class NormalizedSchema {
592
470
  throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
593
471
  }
594
472
  const struct = this.getSchema();
595
- for (let i = 0; i < struct.memberNames.length; ++i) {
596
- yield [struct.memberNames[i], this.memberFrom([struct.memberList[i], 0], struct.memberNames[i])];
473
+ for (let i = 0; i < struct[4].length; ++i) {
474
+ yield [struct[4][i], member([struct[5][i], 0], struct[4][i])];
475
+ }
476
+ }
477
+ }
478
+ function member(memberSchema, memberName) {
479
+ if (memberSchema instanceof NormalizedSchema) {
480
+ return Object.assign(memberSchema, {
481
+ memberName,
482
+ _isMemberSchema: true,
483
+ });
484
+ }
485
+ const internalCtorAccess = NormalizedSchema;
486
+ return new internalCtorAccess(memberSchema, memberName);
487
+ }
488
+ const isMemberSchema = (sc) => Array.isArray(sc) && sc.length === 2;
489
+ const isStaticSchema = (sc) => Array.isArray(sc) && sc.length >= 5;
490
+
491
+ class SimpleSchema extends Schema {
492
+ static symbol = Symbol.for("@smithy/sim");
493
+ name;
494
+ schemaRef;
495
+ traits;
496
+ symbol = SimpleSchema.symbol;
497
+ }
498
+ const sim = (namespace, name, schemaRef, traits) => Schema.assign(new SimpleSchema(), {
499
+ name,
500
+ namespace,
501
+ traits,
502
+ schemaRef,
503
+ });
504
+ const simAdapter = (namespace, name, traits, schemaRef) => Schema.assign(new SimpleSchema(), {
505
+ name,
506
+ namespace,
507
+ traits,
508
+ schemaRef,
509
+ });
510
+
511
+ const SCHEMA = {
512
+ BLOB: 0b0001_0101,
513
+ STREAMING_BLOB: 0b0010_1010,
514
+ BOOLEAN: 0b0000_0010,
515
+ STRING: 0b0000_0000,
516
+ NUMERIC: 0b0000_0001,
517
+ BIG_INTEGER: 0b0001_0001,
518
+ BIG_DECIMAL: 0b0001_0011,
519
+ DOCUMENT: 0b0000_1111,
520
+ TIMESTAMP_DEFAULT: 0b0000_0100,
521
+ TIMESTAMP_DATE_TIME: 0b0000_0101,
522
+ TIMESTAMP_HTTP_DATE: 0b0000_0110,
523
+ TIMESTAMP_EPOCH_SECONDS: 0b0000_0111,
524
+ LIST_MODIFIER: 0b0100_0000,
525
+ MAP_MODIFIER: 0b1000_0000,
526
+ };
527
+
528
+ class TypeRegistry {
529
+ namespace;
530
+ schemas;
531
+ exceptions;
532
+ static registries = new Map();
533
+ constructor(namespace, schemas = new Map(), exceptions = new Map()) {
534
+ this.namespace = namespace;
535
+ this.schemas = schemas;
536
+ this.exceptions = exceptions;
537
+ }
538
+ static for(namespace) {
539
+ if (!TypeRegistry.registries.has(namespace)) {
540
+ TypeRegistry.registries.set(namespace, new TypeRegistry(namespace));
597
541
  }
542
+ return TypeRegistry.registries.get(namespace);
598
543
  }
599
- memberFrom(memberSchema, memberName) {
600
- if (memberSchema instanceof NormalizedSchema) {
601
- return Object.assign(memberSchema, {
602
- memberName,
603
- _isMemberSchema: true,
604
- });
544
+ register(shapeId, schema) {
545
+ const qualifiedName = this.normalizeShapeId(shapeId);
546
+ const registry = TypeRegistry.for(qualifiedName.split("#")[0]);
547
+ registry.schemas.set(qualifiedName, schema);
548
+ }
549
+ getSchema(shapeId) {
550
+ const id = this.normalizeShapeId(shapeId);
551
+ if (!this.schemas.has(id)) {
552
+ throw new Error(`@smithy/core/schema - schema not found for ${id}`);
605
553
  }
606
- return new NormalizedSchema(memberSchema, memberName);
554
+ return this.schemas.get(id);
607
555
  }
608
- getSchemaName() {
609
- const schema = this.getSchema();
610
- if (typeof schema === "number") {
611
- const _schema = 0b0011_1111 & schema;
612
- const container = 0b1100_0000 & schema;
613
- const type = Object.entries(SCHEMA).find(([, value]) => {
614
- return value === _schema;
615
- })?.[0] ?? "Unknown";
616
- switch (container) {
617
- case SCHEMA.MAP_MODIFIER:
618
- return `${type}Map`;
619
- case SCHEMA.LIST_MODIFIER:
620
- return `${type}List`;
621
- case 0:
622
- return type;
556
+ registerError(es, ctor) {
557
+ const $error = es;
558
+ const registry = TypeRegistry.for($error[1]);
559
+ registry.schemas.set($error[1] + "#" + $error[2], $error);
560
+ registry.exceptions.set($error, ctor);
561
+ }
562
+ getErrorCtor(es) {
563
+ const $error = es;
564
+ const registry = TypeRegistry.for($error[1]);
565
+ return registry.exceptions.get($error);
566
+ }
567
+ getBaseException() {
568
+ for (const exceptionKey of this.exceptions.keys()) {
569
+ if (Array.isArray(exceptionKey)) {
570
+ const [, ns, name] = exceptionKey;
571
+ const id = ns + "#" + name;
572
+ if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) {
573
+ return exceptionKey;
574
+ }
623
575
  }
624
576
  }
625
- return "Unknown";
577
+ return undefined;
578
+ }
579
+ find(predicate) {
580
+ return [...this.schemas.values()].find(predicate);
581
+ }
582
+ clear() {
583
+ this.schemas.clear();
584
+ this.exceptions.clear();
585
+ }
586
+ normalizeShapeId(shapeId) {
587
+ if (shapeId.includes("#")) {
588
+ return shapeId;
589
+ }
590
+ return this.namespace + "#" + shapeId;
626
591
  }
627
592
  }
628
593
 
@@ -640,9 +605,13 @@ exports.deref = deref;
640
605
  exports.deserializerMiddlewareOption = deserializerMiddlewareOption;
641
606
  exports.error = error;
642
607
  exports.getSchemaSerdePlugin = getSchemaSerdePlugin;
608
+ exports.isStaticSchema = isStaticSchema;
643
609
  exports.list = list;
644
610
  exports.map = map;
645
611
  exports.op = op;
612
+ exports.operation = operation;
646
613
  exports.serializerMiddlewareOption = serializerMiddlewareOption;
647
614
  exports.sim = sim;
615
+ exports.simAdapter = simAdapter;
648
616
  exports.struct = struct;
617
+ exports.translateTraits = translateTraits;