@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
@@ -1,10 +1,12 @@
1
1
  import { getSmithyContext } from "@smithy/util-middleware";
2
+ import { operation } from "../schemas/operation";
2
3
  export const schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
3
4
  const { operationSchema } = getSmithyContext(context);
5
+ const [, ns, n, t, i, o] = operationSchema ?? [];
4
6
  const endpoint = context.endpointV2?.url && config.urlParser
5
7
  ? async () => config.urlParser(context.endpointV2.url)
6
8
  : config.endpoint;
7
- const request = await config.protocol.serializeRequest(operationSchema, args.input, {
9
+ const request = await config.protocol.serializeRequest(operation(ns, n, t, i, o), args.input, {
8
10
  ...config,
9
11
  ...context,
10
12
  endpoint,
@@ -1,10 +1,5 @@
1
1
  import { deref } from "../deref";
2
- import { ListSchema } from "./ListSchema";
3
- import { MapSchema } from "./MapSchema";
4
- import { Schema } from "./Schema";
5
- import { SCHEMA } from "./sentinels";
6
- import { SimpleSchema } from "./SimpleSchema";
7
- import { StructureSchema } from "./StructureSchema";
2
+ import { translateTraits } from "./translateTraits";
8
3
  export class NormalizedSchema {
9
4
  ref;
10
5
  memberName;
@@ -23,7 +18,7 @@ export class NormalizedSchema {
23
18
  let _ref = ref;
24
19
  let schema = ref;
25
20
  this._isMemberSchema = false;
26
- while (Array.isArray(_ref)) {
21
+ while (isMemberSchema(_ref)) {
27
22
  traitStack.push(_ref[1]);
28
23
  _ref = _ref[0];
29
24
  schema = deref(_ref);
@@ -33,7 +28,7 @@ export class NormalizedSchema {
33
28
  this.memberTraits = {};
34
29
  for (let i = traitStack.length - 1; i >= 0; --i) {
35
30
  const traitSet = traitStack[i];
36
- Object.assign(this.memberTraits, NormalizedSchema.translateTraits(traitSet));
31
+ Object.assign(this.memberTraits, translateTraits(traitSet));
37
32
  }
38
33
  }
39
34
  else {
@@ -48,154 +43,116 @@ export class NormalizedSchema {
48
43
  return;
49
44
  }
50
45
  this.schema = deref(schema);
51
- if (this.schema && typeof this.schema === "object") {
52
- this.traits = this.schema?.traits ?? {};
46
+ if (isStaticSchema(this.schema)) {
47
+ this.name = `${this.schema[1]}#${this.schema[2]}`;
48
+ this.traits = this.schema[3];
53
49
  }
54
50
  else {
51
+ this.name = this.memberName ?? String(schema);
55
52
  this.traits = 0;
56
53
  }
57
- this.name =
58
- (this.schema instanceof Schema ? this.schema.getName?.() : void 0) ?? this.memberName ?? this.getSchemaName();
59
54
  if (this._isMemberSchema && !memberName) {
60
55
  throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`);
61
56
  }
62
57
  }
63
58
  static [Symbol.hasInstance](lhs) {
64
- return Schema[Symbol.hasInstance].bind(this)(lhs);
59
+ const isPrototype = this.prototype.isPrototypeOf(lhs);
60
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
61
+ const ns = lhs;
62
+ return ns.symbol === this.symbol;
63
+ }
64
+ return isPrototype;
65
65
  }
66
66
  static of(ref) {
67
- if (ref instanceof NormalizedSchema) {
68
- return ref;
67
+ const sc = deref(ref);
68
+ if (sc instanceof NormalizedSchema) {
69
+ return sc;
69
70
  }
70
- if (Array.isArray(ref)) {
71
- const [ns, traits] = ref;
71
+ if (isMemberSchema(sc)) {
72
+ const [ns, traits] = sc;
72
73
  if (ns instanceof NormalizedSchema) {
73
- Object.assign(ns.getMergedTraits(), NormalizedSchema.translateTraits(traits));
74
+ Object.assign(ns.getMergedTraits(), translateTraits(traits));
74
75
  return ns;
75
76
  }
76
77
  throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(ref, null, 2)}.`);
77
78
  }
78
- return new NormalizedSchema(ref);
79
- }
80
- static translateTraits(indicator) {
81
- if (typeof indicator === "object") {
82
- return indicator;
83
- }
84
- indicator = indicator | 0;
85
- const traits = {};
86
- let i = 0;
87
- for (const trait of [
88
- "httpLabel",
89
- "idempotent",
90
- "idempotencyToken",
91
- "sensitive",
92
- "httpPayload",
93
- "httpResponseCode",
94
- "httpQueryParams",
95
- ]) {
96
- if (((indicator >> i++) & 1) === 1) {
97
- traits[trait] = 1;
98
- }
99
- }
100
- return traits;
79
+ return new NormalizedSchema(sc);
101
80
  }
102
81
  getSchema() {
103
- if (this.schema instanceof NormalizedSchema) {
104
- Object.assign(this, { schema: this.schema.getSchema() });
105
- return this.schema;
106
- }
107
- if (this.schema instanceof SimpleSchema) {
108
- return deref(this.schema.schemaRef);
82
+ const sc = this.schema;
83
+ if (sc[0] === 0) {
84
+ return sc[4];
109
85
  }
110
- return deref(this.schema);
86
+ return sc;
111
87
  }
112
88
  getName(withNamespace = false) {
113
- if (!withNamespace) {
114
- if (this.name && this.name.includes("#")) {
115
- return this.name.split("#")[1];
116
- }
117
- }
118
- return this.name || undefined;
89
+ const { name } = this;
90
+ const short = !withNamespace && name && name.includes("#");
91
+ return short ? name.split("#")[1] : name || undefined;
119
92
  }
120
93
  getMemberName() {
121
- if (!this.isMemberSchema()) {
122
- throw new Error(`@smithy/core/schema - non-member schema: ${this.getName(true)}`);
123
- }
124
94
  return this.memberName;
125
95
  }
126
96
  isMemberSchema() {
127
97
  return this._isMemberSchema;
128
98
  }
129
- isUnitSchema() {
130
- return this.getSchema() === "unit";
131
- }
132
99
  isListSchema() {
133
- const inner = this.getSchema();
134
- if (typeof inner === "number") {
135
- return inner >= SCHEMA.LIST_MODIFIER && inner < SCHEMA.MAP_MODIFIER;
136
- }
137
- return inner instanceof ListSchema;
100
+ const sc = this.getSchema();
101
+ return typeof sc === "number"
102
+ ? sc >= 64 && sc < 128
103
+ : sc[0] === 1;
138
104
  }
139
105
  isMapSchema() {
140
- const inner = this.getSchema();
141
- if (typeof inner === "number") {
142
- return inner >= SCHEMA.MAP_MODIFIER && inner <= 0b1111_1111;
143
- }
144
- return inner instanceof MapSchema;
106
+ const sc = this.getSchema();
107
+ return typeof sc === "number"
108
+ ? sc >= 128 && sc <= 0b1111_1111
109
+ : sc[0] === 2;
145
110
  }
146
111
  isStructSchema() {
147
- const inner = this.getSchema();
148
- return (inner !== null && typeof inner === "object" && "members" in inner) || inner instanceof StructureSchema;
112
+ const sc = this.getSchema();
113
+ return (sc[0] === 3 ||
114
+ sc[0] === -3);
149
115
  }
150
116
  isBlobSchema() {
151
- return this.getSchema() === SCHEMA.BLOB || this.getSchema() === SCHEMA.STREAMING_BLOB;
117
+ const sc = this.getSchema();
118
+ return sc === 21 || sc === 42;
152
119
  }
153
120
  isTimestampSchema() {
154
- const schema = this.getSchema();
155
- return typeof schema === "number" && schema >= SCHEMA.TIMESTAMP_DEFAULT && schema <= SCHEMA.TIMESTAMP_EPOCH_SECONDS;
121
+ const sc = this.getSchema();
122
+ return (typeof sc === "number" &&
123
+ sc >= 4 &&
124
+ sc <= 7);
125
+ }
126
+ isUnitSchema() {
127
+ return this.getSchema() === "unit";
156
128
  }
157
129
  isDocumentSchema() {
158
- return this.getSchema() === SCHEMA.DOCUMENT;
130
+ return this.getSchema() === 15;
159
131
  }
160
132
  isStringSchema() {
161
- return this.getSchema() === SCHEMA.STRING;
133
+ return this.getSchema() === 0;
162
134
  }
163
135
  isBooleanSchema() {
164
- return this.getSchema() === SCHEMA.BOOLEAN;
136
+ return this.getSchema() === 2;
165
137
  }
166
138
  isNumericSchema() {
167
- return this.getSchema() === SCHEMA.NUMERIC;
139
+ return this.getSchema() === 1;
168
140
  }
169
141
  isBigIntegerSchema() {
170
- return this.getSchema() === SCHEMA.BIG_INTEGER;
142
+ return this.getSchema() === 17;
171
143
  }
172
144
  isBigDecimalSchema() {
173
- return this.getSchema() === SCHEMA.BIG_DECIMAL;
145
+ return this.getSchema() === 19;
174
146
  }
175
147
  isStreaming() {
176
- const streaming = !!this.getMergedTraits().streaming;
177
- if (streaming) {
178
- return true;
179
- }
180
- return this.getSchema() === SCHEMA.STREAMING_BLOB;
148
+ const { streaming } = this.getMergedTraits();
149
+ return !!streaming || this.getSchema() === 42;
181
150
  }
182
151
  isIdempotencyToken() {
183
- if (this.normalizedTraits) {
184
- return !!this.normalizedTraits.idempotencyToken;
185
- }
186
- for (const traits of [this.traits, this.memberTraits]) {
187
- if (typeof traits === "number") {
188
- if ((traits & 0b0100) === 0b0100) {
189
- return true;
190
- }
191
- }
192
- else if (typeof traits === "object") {
193
- if (!!traits.idempotencyToken) {
194
- return true;
195
- }
196
- }
197
- }
198
- return false;
152
+ const match = (traits) => (traits & 0b0100) === 0b0100 ||
153
+ !!traits?.idempotencyToken;
154
+ const { normalizedTraits, traits, memberTraits } = this;
155
+ return match(normalizedTraits) || match(traits) || match(memberTraits);
199
156
  }
200
157
  getMergedTraits() {
201
158
  return (this.normalizedTraits ??
@@ -205,74 +162,48 @@ export class NormalizedSchema {
205
162
  }));
206
163
  }
207
164
  getMemberTraits() {
208
- return NormalizedSchema.translateTraits(this.memberTraits);
165
+ return translateTraits(this.memberTraits);
209
166
  }
210
167
  getOwnTraits() {
211
- return NormalizedSchema.translateTraits(this.traits);
168
+ return translateTraits(this.traits);
212
169
  }
213
170
  getKeySchema() {
214
- if (this.isDocumentSchema()) {
215
- return this.memberFrom([SCHEMA.DOCUMENT, 0], "key");
216
- }
217
- if (!this.isMapSchema()) {
171
+ const [isDoc, isMap] = [this.isDocumentSchema(), this.isMapSchema()];
172
+ if (!isDoc && !isMap) {
218
173
  throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`);
219
174
  }
220
175
  const schema = this.getSchema();
221
- if (typeof schema === "number") {
222
- return this.memberFrom([0b0011_1111 & schema, 0], "key");
223
- }
224
- return this.memberFrom([schema.keySchema, 0], "key");
176
+ const memberSchema = isDoc
177
+ ? 15
178
+ : schema[4] ?? 0;
179
+ return member([memberSchema, 0], "key");
225
180
  }
226
181
  getValueSchema() {
227
- const schema = this.getSchema();
228
- if (typeof schema === "number") {
229
- if (this.isMapSchema()) {
230
- return this.memberFrom([0b0011_1111 & schema, 0], "value");
231
- }
232
- else if (this.isListSchema()) {
233
- return this.memberFrom([0b0011_1111 & schema, 0], "member");
234
- }
235
- }
236
- if (schema && typeof schema === "object") {
237
- if (this.isStructSchema()) {
238
- throw new Error(`may not getValueSchema() on structure ${this.getName(true)}`);
239
- }
240
- const collection = schema;
241
- if ("valueSchema" in collection) {
242
- if (this.isMapSchema()) {
243
- return this.memberFrom([collection.valueSchema, 0], "value");
244
- }
245
- else if (this.isListSchema()) {
246
- return this.memberFrom([collection.valueSchema, 0], "member");
247
- }
248
- }
249
- }
250
- if (this.isDocumentSchema()) {
251
- return this.memberFrom([SCHEMA.DOCUMENT, 0], "value");
182
+ const sc = this.getSchema();
183
+ const [isDoc, isMap, isList] = [this.isDocumentSchema(), this.isMapSchema(), this.isListSchema()];
184
+ const memberSchema = typeof sc === "number"
185
+ ? 0b0011_1111 & sc
186
+ : sc && typeof sc === "object" && (isMap || isList)
187
+ ? sc[3 + sc[0]]
188
+ : isDoc
189
+ ? 15
190
+ : void 0;
191
+ if (memberSchema != null) {
192
+ return member([memberSchema, 0], isMap ? "value" : "member");
252
193
  }
253
194
  throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`);
254
195
  }
255
- hasMemberSchema(member) {
256
- if (this.isStructSchema()) {
257
- const struct = this.getSchema();
258
- return struct.memberNames.includes(member);
259
- }
260
- return false;
261
- }
262
- getMemberSchema(member) {
263
- if (this.isStructSchema()) {
264
- const struct = this.getSchema();
265
- if (!struct.memberNames.includes(member)) {
266
- throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${member}.`);
267
- }
268
- const i = struct.memberNames.indexOf(member);
269
- const memberSchema = struct.memberList[i];
270
- return this.memberFrom(Array.isArray(memberSchema) ? memberSchema : [memberSchema, 0], member);
196
+ getMemberSchema(memberName) {
197
+ const struct = this.getSchema();
198
+ if (this.isStructSchema() && struct[4].includes(memberName)) {
199
+ const i = struct[4].indexOf(memberName);
200
+ const memberSchema = struct[5][i];
201
+ return member(isMemberSchema(memberSchema) ? memberSchema : [memberSchema, 0], memberName);
271
202
  }
272
203
  if (this.isDocumentSchema()) {
273
- return this.memberFrom([SCHEMA.DOCUMENT, 0], member);
204
+ return member([15, 0], memberName);
274
205
  }
275
- throw new Error(`@smithy/core/schema - ${this.getName(true)} has no members.`);
206
+ throw new Error(`@smithy/core/schema - ${this.getName(true)} has no no member=${memberName}.`);
276
207
  }
277
208
  getMemberSchemas() {
278
209
  const buffer = {};
@@ -302,36 +233,20 @@ export class NormalizedSchema {
302
233
  throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
303
234
  }
304
235
  const struct = this.getSchema();
305
- for (let i = 0; i < struct.memberNames.length; ++i) {
306
- yield [struct.memberNames[i], this.memberFrom([struct.memberList[i], 0], struct.memberNames[i])];
307
- }
308
- }
309
- memberFrom(memberSchema, memberName) {
310
- if (memberSchema instanceof NormalizedSchema) {
311
- return Object.assign(memberSchema, {
312
- memberName,
313
- _isMemberSchema: true,
314
- });
315
- }
316
- return new NormalizedSchema(memberSchema, memberName);
317
- }
318
- getSchemaName() {
319
- const schema = this.getSchema();
320
- if (typeof schema === "number") {
321
- const _schema = 0b0011_1111 & schema;
322
- const container = 0b1100_0000 & schema;
323
- const type = Object.entries(SCHEMA).find(([, value]) => {
324
- return value === _schema;
325
- })?.[0] ?? "Unknown";
326
- switch (container) {
327
- case SCHEMA.MAP_MODIFIER:
328
- return `${type}Map`;
329
- case SCHEMA.LIST_MODIFIER:
330
- return `${type}List`;
331
- case 0:
332
- return type;
333
- }
236
+ for (let i = 0; i < struct[4].length; ++i) {
237
+ yield [struct[4][i], member([struct[5][i], 0], struct[4][i])];
334
238
  }
335
- return "Unknown";
336
239
  }
337
240
  }
241
+ function member(memberSchema, memberName) {
242
+ if (memberSchema instanceof NormalizedSchema) {
243
+ return Object.assign(memberSchema, {
244
+ memberName,
245
+ _isMemberSchema: true,
246
+ });
247
+ }
248
+ const internalCtorAccess = NormalizedSchema;
249
+ return new internalCtorAccess(memberSchema, memberName);
250
+ }
251
+ const isMemberSchema = (sc) => Array.isArray(sc) && sc.length === 2;
252
+ export const isStaticSchema = (sc) => Array.isArray(sc) && sc.length >= 5;
@@ -1,11 +1,9 @@
1
- import { TypeRegistry } from "../TypeRegistry";
2
1
  export class Schema {
3
2
  name;
4
3
  namespace;
5
4
  traits;
6
5
  static assign(instance, values) {
7
6
  const schema = Object.assign(instance, values);
8
- TypeRegistry.for(schema.namespace).register(schema.name, schema);
9
7
  return schema;
10
8
  }
11
9
  static [Symbol.hasInstance](lhs) {
@@ -12,3 +12,9 @@ export const sim = (namespace, name, schemaRef, traits) => Schema.assign(new Sim
12
12
  traits,
13
13
  schemaRef,
14
14
  });
15
+ export const simAdapter = (namespace, name, traits, schemaRef) => Schema.assign(new SimpleSchema(), {
16
+ name,
17
+ namespace,
18
+ traits,
19
+ schemaRef,
20
+ });
@@ -0,0 +1,7 @@
1
+ export const operation = (namespace, name, traits, input, output) => ({
2
+ name,
3
+ namespace,
4
+ traits,
5
+ input,
6
+ output,
7
+ });
@@ -0,0 +1,22 @@
1
+ export function translateTraits(indicator) {
2
+ if (typeof indicator === "object") {
3
+ return indicator;
4
+ }
5
+ indicator = indicator | 0;
6
+ const traits = {};
7
+ let i = 0;
8
+ for (const trait of [
9
+ "httpLabel",
10
+ "idempotent",
11
+ "idempotencyToken",
12
+ "sensitive",
13
+ "httpPayload",
14
+ "httpResponseCode",
15
+ "httpQueryParams",
16
+ ]) {
17
+ if (((indicator >> i++) & 1) === 1) {
18
+ traits[trait] = 1;
19
+ }
20
+ }
21
+ return traits;
22
+ }
@@ -4,6 +4,7 @@ export * from "./generateIdempotencyToken";
4
4
  export * from "./lazy-json";
5
5
  export * from "./parse-utils";
6
6
  export * from "./quote-header";
7
+ export * from "./schema-serde-lib/schema-date-utils";
7
8
  export * from "./split-every";
8
9
  export * from "./split-header";
9
10
  export * from "./value/NumericValue";
@@ -0,0 +1,110 @@
1
+ const ddd = `(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`;
2
+ const mmm = `(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`;
3
+ const time = `(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`;
4
+ const date = `(\\d?\\d)`;
5
+ const year = `(\\d{4})`;
6
+ const RFC3339_WITH_OFFSET = new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/);
7
+ const IMF_FIXDATE = new RegExp(`^${ddd}, ${date} ${mmm} ${year} ${time} GMT$`);
8
+ const RFC_850_DATE = new RegExp(`^${ddd}, ${date}-${mmm}-(\\d\\d) ${time} GMT$`);
9
+ const ASC_TIME = new RegExp(`^${ddd} ${mmm} ( [1-9]|\\d\\d) ${time} ${year}$`);
10
+ const months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
11
+ export const _parseEpochTimestamp = (value) => {
12
+ if (value == null) {
13
+ return void 0;
14
+ }
15
+ let num = NaN;
16
+ if (typeof value === "number") {
17
+ num = value;
18
+ }
19
+ else if (typeof value === "string") {
20
+ if (!/^-?\d*\.?\d+$/.test(value)) {
21
+ throw new TypeError(`parseEpochTimestamp - numeric string invalid.`);
22
+ }
23
+ num = Number.parseFloat(value);
24
+ }
25
+ else if (typeof value === "object" && value.tag === 1) {
26
+ num = value.value;
27
+ }
28
+ if (isNaN(num) || Math.abs(num) === Infinity) {
29
+ throw new TypeError("Epoch timestamps must be valid finite numbers.");
30
+ }
31
+ return new Date(Math.round(num * 1000));
32
+ };
33
+ export const _parseRfc3339DateTimeWithOffset = (value) => {
34
+ if (value == null) {
35
+ return void 0;
36
+ }
37
+ if (typeof value !== "string") {
38
+ throw new TypeError("RFC3339 timestamps must be strings");
39
+ }
40
+ const matches = RFC3339_WITH_OFFSET.exec(value);
41
+ if (!matches) {
42
+ throw new TypeError(`Invalid RFC3339 timestamp format ${value}`);
43
+ }
44
+ const [, yearStr, monthStr, dayStr, hours, minutes, seconds, , ms, offsetStr] = matches;
45
+ range(monthStr, 1, 12);
46
+ range(dayStr, 1, 31);
47
+ range(hours, 0, 23);
48
+ range(minutes, 0, 59);
49
+ range(seconds, 0, 60);
50
+ const date = new Date();
51
+ date.setUTCFullYear(Number(yearStr), Number(monthStr) - 1, Number(dayStr));
52
+ date.setUTCHours(Number(hours));
53
+ date.setUTCMinutes(Number(minutes));
54
+ date.setUTCSeconds(Number(seconds));
55
+ date.setUTCMilliseconds(Number(ms) ? Math.round(parseFloat(`0.${ms}`) * 1000) : 0);
56
+ if (offsetStr.toUpperCase() != "Z") {
57
+ const [, sign, offsetH, offsetM] = /([+-])(\d\d):(\d\d)/.exec(offsetStr) || [void 0, "+", 0, 0];
58
+ const scalar = sign === "-" ? 1 : -1;
59
+ date.setTime(date.getTime() + scalar * (Number(offsetH) * 60 * 60 * 1000 + Number(offsetM) * 60 * 1000));
60
+ }
61
+ return date;
62
+ };
63
+ export const _parseRfc7231DateTime = (value) => {
64
+ if (value == null) {
65
+ return void 0;
66
+ }
67
+ if (typeof value !== "string") {
68
+ throw new TypeError("RFC7231 timestamps must be strings.");
69
+ }
70
+ let day;
71
+ let month;
72
+ let year;
73
+ let hour;
74
+ let minute;
75
+ let second;
76
+ let fraction;
77
+ let matches;
78
+ if ((matches = IMF_FIXDATE.exec(value))) {
79
+ [, day, month, year, hour, minute, second, fraction] = matches;
80
+ }
81
+ else if ((matches = RFC_850_DATE.exec(value))) {
82
+ [, day, month, year, hour, minute, second, fraction] = matches;
83
+ year = (Number(year) + 1900).toString();
84
+ }
85
+ else if ((matches = ASC_TIME.exec(value))) {
86
+ [, month, day, hour, minute, second, fraction, year] = matches;
87
+ }
88
+ if (year && second) {
89
+ const date = new Date();
90
+ date.setUTCFullYear(Number(year));
91
+ date.setUTCMonth(months.indexOf(month));
92
+ range(day, 1, 31);
93
+ date.setUTCDate(Number(day));
94
+ range(hour, 0, 23);
95
+ date.setUTCHours(Number(hour));
96
+ range(minute, 0, 59);
97
+ date.setUTCMinutes(Number(minute));
98
+ range(second, 0, 60);
99
+ date.setUTCSeconds(Number(second));
100
+ date.setUTCMilliseconds(fraction ? Math.round(parseFloat(`0.${fraction}`) * 1000) : 0);
101
+ return date;
102
+ }
103
+ throw new TypeError(`Invalid RFC7231 date-time value ${value}.`);
104
+ };
105
+ function range(v, min, max) {
106
+ const _v = Number(v);
107
+ if (_v < min || _v > max) {
108
+ throw new Error(`Value ${_v} out of range [${min}, ${max}]`);
109
+ }
110
+ }
@@ -1,25 +1,12 @@
1
+ const format = /^-?\d*(\.\d+)?$/;
1
2
  export class NumericValue {
2
3
  string;
3
4
  type;
4
5
  constructor(string, type) {
5
6
  this.string = string;
6
7
  this.type = type;
7
- let dot = 0;
8
- for (let i = 0; i < string.length; ++i) {
9
- const char = string.charCodeAt(i);
10
- if (i === 0 && char === 45) {
11
- continue;
12
- }
13
- if (char === 46) {
14
- if (dot) {
15
- throw new Error("@smithy/core/serde - NumericValue must contain at most one decimal point.");
16
- }
17
- dot = 1;
18
- continue;
19
- }
20
- if (char < 48 || char > 57) {
21
- throw new Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`);
22
- }
8
+ if (!format.test(string)) {
9
+ throw new Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`);
23
10
  }
24
11
  }
25
12
  toString() {
@@ -30,16 +17,7 @@ export class NumericValue {
30
17
  return false;
31
18
  }
32
19
  const _nv = object;
33
- const prototypeMatch = NumericValue.prototype.isPrototypeOf(object);
34
- if (prototypeMatch) {
35
- return prototypeMatch;
36
- }
37
- if (typeof _nv.string === "string" &&
38
- typeof _nv.type === "string" &&
39
- _nv.constructor?.name?.endsWith("NumericValue")) {
40
- return true;
41
- }
42
- return prototypeMatch;
20
+ return NumericValue.prototype.isPrototypeOf(object) || (_nv.type === "bigDecimal" && format.test(_nv.string));
43
21
  }
44
22
  }
45
23
  export function nv(input) {
@@ -3,6 +3,6 @@ export * from "./middleware-http-auth-scheme";
3
3
  export * from "./middleware-http-signing";
4
4
  export * from "./normalizeProvider";
5
5
  export { createPaginator } from "./pagination/createPaginator";
6
- export * from "./protocols/requestBuilder";
6
+ export * from "./request-builder/requestBuilder";
7
7
  export * from "./setFeature";
8
8
  export * from "./util-identity-and-auth";