@cdklabs/cdk-construct-connect-datalake 0.0.19 → 0.0.20

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 (282) hide show
  1. package/.jsii +9 -9
  2. package/.jsii.tabl.json +1 -1
  3. package/lib/index.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +2 -0
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +2 -0
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +2 -0
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  11. package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -6
  12. package/node_modules/@aws-sdk/client-connect/dist-cjs/index.js +1 -1
  13. package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.browser.d.ts +2 -0
  14. package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.d.ts +2 -0
  15. package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.native.d.ts +2 -0
  16. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  17. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  18. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  19. package/node_modules/@aws-sdk/client-connect/package.json +6 -6
  20. package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +1 -1
  21. package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.browser.d.ts +2 -0
  22. package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.d.ts +2 -0
  23. package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.native.d.ts +2 -0
  24. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  25. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  26. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  27. package/node_modules/@aws-sdk/client-glue/package.json +6 -6
  28. package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/index.js +1 -1
  29. package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.browser.d.ts +2 -0
  30. package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.d.ts +2 -0
  31. package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.native.d.ts +2 -0
  32. package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  33. package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  34. package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  35. package/node_modules/@aws-sdk/client-lakeformation/package.json +6 -6
  36. package/node_modules/@aws-sdk/client-ram/dist-cjs/index.js +1 -1
  37. package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.browser.d.ts +2 -0
  38. package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.d.ts +2 -0
  39. package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.native.d.ts +2 -0
  40. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  41. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  42. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  43. package/node_modules/@aws-sdk/client-ram/package.json +6 -6
  44. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1 -1
  45. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +2 -0
  46. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +2 -0
  47. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +2 -0
  48. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  49. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  50. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  51. package/node_modules/@aws-sdk/client-sts/package.json +8 -8
  52. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +66 -28
  53. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +133 -15
  54. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +7 -2
  55. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +28 -14
  56. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.js +1 -0
  57. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.js +3 -0
  58. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.js +8 -0
  59. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js +1 -1
  60. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +3 -3
  61. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.browser.js +9 -0
  62. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js +5 -1
  63. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js +1 -0
  64. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +12 -6
  65. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js +2 -1
  66. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js +1 -1
  67. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +10 -1
  68. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +10 -0
  69. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/detectBufferParsing.js +18 -0
  70. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.js +180 -0
  71. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/ByteJsonShapeSerializer.js +483 -0
  72. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +22 -3
  73. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/needsReviver.js +41 -0
  74. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +33 -13
  75. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/writeKey.js +3 -0
  76. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +4 -0
  77. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -1
  78. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +6 -0
  79. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +7 -0
  80. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +13 -0
  81. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -1
  82. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +22 -6
  83. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.browser.d.ts +11 -0
  84. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d.ts +7 -1
  85. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +4 -0
  86. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +22 -6
  87. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/index.d.ts +2 -1
  88. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
  89. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +29 -0
  90. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +57 -0
  91. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/needsReviver.d.ts +11 -0
  92. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +7 -2
  93. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/writeKey.d.ts +4 -0
  94. package/node_modules/@aws-sdk/core/dist-types/ts3.4/api-extractor-type-index.d.ts +7 -4
  95. package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +21 -61
  96. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +27 -13
  97. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +16 -4
  98. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +14 -5
  99. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +5 -16
  100. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +11 -4
  101. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +47 -107
  102. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +39 -112
  103. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +48 -107
  104. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +14 -13
  105. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +35 -25
  106. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +4 -14
  107. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +6 -2
  108. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +5 -2
  109. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +5 -2
  110. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +6 -2
  111. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +10 -2
  112. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +6 -2
  113. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +20 -16
  114. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +44 -21
  115. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/constants.d.ts +7 -7
  116. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/encode-features.d.ts +5 -2
  117. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/user-agent-middleware.d.ts +18 -18
  118. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/awsRegionConfig.d.ts +11 -8
  119. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +16 -14
  120. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.browser.d.ts +4 -1
  121. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +14 -7
  122. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.native.d.ts +4 -1
  123. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +7 -6
  124. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setFeature.d.ts +12 -6
  125. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +7 -6
  126. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/aws.d.ts +2 -2
  127. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.d.ts +5 -4
  128. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/parseArn.d.ts +7 -2
  129. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +38 -28
  130. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +638 -647
  131. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/isIpAddress.d.ts +1 -1
  132. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.d.ts +56 -29
  133. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveEndpoint.d.ts +1 -1
  134. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointError.d.ts +1 -1
  135. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointRuleObject.d.ts +1 -6
  136. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/ErrorRuleObject.d.ts +1 -1
  137. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -1
  138. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/TreeRuleObject.d.ts +1 -1
  139. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/shared.d.ts +1 -12
  140. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/configurations.d.ts +7 -4
  141. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +14 -7
  142. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +2 -7
  143. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +27 -18
  144. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +18 -13
  145. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/crt-availability.d.ts +8 -3
  146. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +28 -17
  147. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.d.ts +6 -2
  148. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/is-crt-available.d.ts +5 -2
  149. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +13 -4
  150. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +10 -9
  151. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +44 -37
  152. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +5 -2
  153. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +6 -0
  154. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +7 -0
  155. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +13 -0
  156. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +7 -23
  157. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +38 -13
  158. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +133 -56
  159. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +11 -0
  160. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +9 -24
  161. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +8 -1
  162. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts +6 -1
  163. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +8 -1
  164. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +8 -1
  165. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +26 -4
  166. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +4 -3
  167. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +9 -1
  168. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -5
  169. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +74 -40
  170. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +24 -9
  171. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +25 -36
  172. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/coercing-serializers.d.ts +18 -3
  173. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -5
  174. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +22 -27
  175. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +22 -21
  176. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +22 -21
  177. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +29 -49
  178. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +36 -49
  179. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +19 -13
  180. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +13 -13
  181. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +28 -18
  182. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +7 -1
  183. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
  184. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +29 -0
  185. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +57 -0
  186. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +21 -7
  187. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +15 -7
  188. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +11 -0
  189. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +22 -9
  190. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +27 -18
  191. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +49 -57
  192. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +13 -7
  193. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +16 -21
  194. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +4 -0
  195. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +31 -47
  196. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts +14 -17
  197. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts +20 -15
  198. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -21
  199. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +13 -4
  200. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts +6 -1
  201. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +3 -3
  202. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-arn-parser/arn.d.ts +32 -14
  203. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +2 -4
  204. package/node_modules/@aws-sdk/core/package.json +11 -6
  205. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  206. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  207. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  208. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  209. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  210. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  211. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  212. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  213. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  214. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  215. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  216. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  217. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  218. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -0
  219. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +2 -0
  220. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -0
  221. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +2 -0
  222. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +2 -0
  223. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +2 -0
  224. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +2 -0
  225. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +2 -0
  226. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +2 -0
  227. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -0
  228. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +2 -0
  229. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -0
  230. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +2 -0
  231. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +2 -0
  232. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +2 -0
  233. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -0
  234. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +2 -0
  235. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -0
  236. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +2 -0
  237. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +2 -0
  238. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +2 -0
  239. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +2 -0
  240. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +2 -0
  241. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +2 -0
  242. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -0
  243. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +2 -0
  244. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -0
  245. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +2 -0
  246. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +2 -0
  247. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +2 -0
  248. package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
  249. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  250. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  251. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +14 -4
  252. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +14 -4
  253. package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
  254. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1 -1
  255. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +34 -11
  256. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +34 -11
  257. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1 -0
  258. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +1 -0
  259. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +1 -0
  260. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -2
  261. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +2 -2
  262. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -2
  263. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +1 -1
  264. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +34 -11
  265. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +1 -0
  266. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js +1 -0
  267. package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +2 -2
  268. package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +10 -2
  269. package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/constants.d.ts +1 -0
  270. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +10 -2
  271. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/constants.d.ts +1 -0
  272. package/node_modules/@smithy/core/package.json +1 -1
  273. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  274. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  275. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  276. package/node_modules/@smithy/signature-v4/package.json +2 -2
  277. package/node_modules/xml2js/node_modules/sax/lib/sax.js +27 -9
  278. package/node_modules/xml2js/node_modules/sax/package.json +1 -1
  279. package/package.json +10 -10
  280. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +0 -135
  281. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -27
  282. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -17
@@ -4,6 +4,7 @@
4
4
  *
5
5
  * These errors are retryable, assuming the SDK has enabled clock skew
6
6
  * correction.
7
+ *
7
8
  */
8
9
  export declare const CLOCK_SKEW_ERROR_CODES: string[];
9
10
  /**
@@ -1,4 +1,4 @@
1
- import { NormalizedSchema } from "@smithy/core/schema";
1
+ import { NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
2
2
  import { EventStreamMarshaller, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
3
3
  /**
4
4
  * Separated module for async mixin of EventStream serde capability.
@@ -12,15 +12,17 @@ export declare class EventStreamSerde {
12
12
  private readonly deserializer;
13
13
  private readonly serdeContext?;
14
14
  private readonly defaultContentType;
15
+ private readonly compositeErrorRegistry?;
15
16
  /**
16
17
  * Properties are injected by the HttpProtocol.
17
18
  */
18
- constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType, }: {
19
+ constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType, compositeErrorRegistry, }: {
19
20
  marshaller: EventStreamMarshaller;
20
21
  serializer: ShapeSerializer<string | Uint8Array>;
21
22
  deserializer: ShapeDeserializer<string | Uint8Array>;
22
23
  serdeContext?: SerdeFunctions;
23
24
  defaultContentType: string;
25
+ compositeErrorRegistry?: TypeRegistry;
24
26
  });
25
27
  /**
26
28
  * @param eventStream - the iterable provided by the caller.
@@ -49,6 +51,12 @@ export declare class EventStreamSerde {
49
51
  [key: string]: any;
50
52
  $unknown?: unknown;
51
53
  }>>;
54
+ /**
55
+ * Reads and returns an event member. For error schemas, resolves the registered
56
+ * error constructor from the TypeRegistry and wraps the deserialized value
57
+ * so that it can be thrown as a typed exception instance by the caller.
58
+ */
59
+ private readEventMember;
52
60
  /**
53
61
  * @param unionMember - member name within the structure that contains an event stream union.
54
62
  * @param unionSchema - schema of the union.
@@ -4,6 +4,7 @@
4
4
  *
5
5
  * These errors are retryable, assuming the SDK has enabled clock skew
6
6
  * correction.
7
+ *
7
8
  */
8
9
  export declare const CLOCK_SKEW_ERROR_CODES: string[];
9
10
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.29.6",
3
+ "version": "3.30.0",
4
4
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/core",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "4.4.11",
3
+ "version": "4.4.14",
4
4
  "description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
5
5
  "keywords": [
6
6
  "aws",
@@ -45,7 +45,7 @@
45
45
  "test:watch": "yarn g:vitest watch"
46
46
  },
47
47
  "dependencies": {
48
- "@smithy/core": "^3.29.6",
48
+ "@smithy/core": "^3.30.0",
49
49
  "@smithy/types": "^4.16.1",
50
50
  "tslib": "^2.6.2"
51
51
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "5.6.8",
3
+ "version": "5.6.11",
4
4
  "description": "Provides a way to make requests",
5
5
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/fetch-http-handler",
6
6
  "license": "Apache-2.0",
@@ -44,7 +44,7 @@
44
44
  "test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.mts"
45
45
  },
46
46
  "dependencies": {
47
- "@smithy/core": "^3.29.6",
47
+ "@smithy/core": "^3.30.0",
48
48
  "@smithy/types": "^4.16.1",
49
49
  "tslib": "^2.6.2"
50
50
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.9.8",
3
+ "version": "4.9.11",
4
4
  "description": "Provides a way to make requests",
5
5
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/node-http-handler",
6
6
  "license": "Apache-2.0",
@@ -43,7 +43,7 @@
43
43
  "test:watch": "yarn g:vitest watch"
44
44
  },
45
45
  "dependencies": {
46
- "@smithy/core": "^3.29.6",
46
+ "@smithy/core": "^3.30.0",
47
47
  "@smithy/types": "^4.16.1",
48
48
  "tslib": "^2.6.2"
49
49
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/signature-v4",
3
- "version": "5.6.7",
3
+ "version": "5.6.10",
4
4
  "description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
5
5
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/signature-v4",
6
6
  "license": "Apache-2.0",
@@ -42,7 +42,7 @@
42
42
  "test:watch": "yarn g:vitest watch"
43
43
  },
44
44
  "dependencies": {
45
- "@smithy/core": "^3.29.6",
45
+ "@smithy/core": "^3.30.0",
46
46
  "@smithy/types": "^4.16.1",
47
47
  "tslib": "^2.6.2"
48
48
  },
@@ -381,8 +381,8 @@
381
381
 
382
382
  // this really needs to be replaced with character classes.
383
383
  // XML allows all manner of ridiculous numbers and digits.
384
- var CDATA = '[CDATA['
385
- var DOCTYPE = 'DOCTYPE'
384
+ var CDATAre = /^\[CDATA\[$/i
385
+ var DOCTYPEre = /^DOCTYPE$/i
386
386
  var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace'
387
387
  var XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/'
388
388
  var rootNS = { xml: XML_NAMESPACE, xmlns: XMLNS_NAMESPACE }
@@ -464,15 +464,15 @@
464
464
  SCRIPT_ENDING: S++, // <script> ... <
465
465
  }
466
466
 
467
- sax.XML_ENTITIES = {
467
+ sax.XML_ENTITIES = Object.assign(Object.create(null), {
468
468
  amp: '&',
469
469
  gt: '>',
470
470
  lt: '<',
471
471
  quot: '"',
472
472
  apos: "'",
473
- }
473
+ })
474
474
 
475
- sax.ENTITIES = {
475
+ sax.ENTITIES = Object.assign(Object.create(null), {
476
476
  amp: '&',
477
477
  gt: '>',
478
478
  lt: '<',
@@ -726,7 +726,7 @@
726
726
  clubs: 9827,
727
727
  hearts: 9829,
728
728
  diams: 9830,
729
- }
729
+ })
730
730
 
731
731
  Object.keys(sax.ENTITIES).forEach(function (key) {
732
732
  var e = sax.ENTITIES[key]
@@ -1137,7 +1137,8 @@
1137
1137
  isNaN(num) ||
1138
1138
  numStr.toLowerCase() !== entity ||
1139
1139
  num < 0 ||
1140
- num > 0x10ffff
1140
+ num > 0x10ffff ||
1141
+ !isXmlChar(num)
1141
1142
  ) {
1142
1143
  strictFail(parser, 'Invalid character entity')
1143
1144
  return '&' + parser.entity + ';'
@@ -1146,6 +1147,23 @@
1146
1147
  return String.fromCodePoint(num)
1147
1148
  }
1148
1149
 
1150
+ // Returns true if `num` is a code point that matches the XML `Char`
1151
+ // production, false otherwise. Character references that resolve to a
1152
+ // character outside this range (e.g. surrogates or restricted control
1153
+ // characters) are not well-formed.
1154
+ // https://www.w3.org/TR/REC-xml/#NT-Char
1155
+ // https://www.w3.org/TR/REC-xml/#wf-Legalchar
1156
+ function isXmlChar(num) {
1157
+ return (
1158
+ num === 0x9 ||
1159
+ num === 0xa ||
1160
+ num === 0xd ||
1161
+ (num >= 0x20 && num <= 0xd7ff) ||
1162
+ (num >= 0xe000 && num <= 0xfffd) ||
1163
+ (num >= 0x10000 && num <= 0x10ffff)
1164
+ )
1165
+ }
1166
+
1149
1167
  function beginWhiteSpace(parser, c) {
1150
1168
  if (c === '<') {
1151
1169
  parser.state = S.OPEN_WAKA
@@ -1317,12 +1335,12 @@
1317
1335
  parser.state = S.DOCTYPE_DTD
1318
1336
  parser.doctype += '<!' + parser.sgmlDecl + c
1319
1337
  parser.sgmlDecl = ''
1320
- } else if ((parser.sgmlDecl + c).toUpperCase() === CDATA) {
1338
+ } else if (CDATAre.test(parser.sgmlDecl + c)) {
1321
1339
  emitNode(parser, 'onopencdata')
1322
1340
  parser.state = S.CDATA
1323
1341
  parser.sgmlDecl = ''
1324
1342
  parser.cdata = ''
1325
- } else if ((parser.sgmlDecl + c).toUpperCase() === DOCTYPE) {
1343
+ } else if (DOCTYPEre.test(parser.sgmlDecl + c)) {
1326
1344
  parser.state = S.DOCTYPE
1327
1345
  if (parser.doctype || parser.sawRoot) {
1328
1346
  strictFail(
@@ -2,7 +2,7 @@
2
2
  "name": "sax",
3
3
  "description": "An evented streaming XML parser in JavaScript",
4
4
  "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
5
- "version": "1.6.0",
5
+ "version": "1.6.1",
6
6
  "main": "lib/sax.js",
7
7
  "license": "BlueOak-1.0.0",
8
8
  "scripts": {
package/package.json CHANGED
@@ -62,10 +62,10 @@
62
62
  "jest": "^30.4.2",
63
63
  "jest-junit": "^16",
64
64
  "jsii": "~5.9",
65
- "jsii-diff": "^1.138.0",
65
+ "jsii-diff": "^1.139.0",
66
66
  "jsii-docgen": "^10.5.0",
67
- "jsii-pacmak": "^1.138.0",
68
- "jsii-rosetta": "^5.9.56",
67
+ "jsii-pacmak": "^1.139.0",
68
+ "jsii-rosetta": "^5.9.57",
69
69
  "prettier": "^3.9.5",
70
70
  "projen": "^0.99.17",
71
71
  "ts-jest": "^29.4.11",
@@ -77,12 +77,12 @@
77
77
  "constructs": "^10.5.1"
78
78
  },
79
79
  "dependencies": {
80
- "@aws-sdk/client-cloudformation": "^3.1090.0",
81
- "@aws-sdk/client-connect": "^3.1090.0",
82
- "@aws-sdk/client-glue": "^3.1090.0",
83
- "@aws-sdk/client-lakeformation": "^3.1090.0",
84
- "@aws-sdk/client-ram": "^3.1090.0",
85
- "@aws-sdk/client-sts": "^3.1090.0",
80
+ "@aws-sdk/client-cloudformation": "^3.1095.0",
81
+ "@aws-sdk/client-connect": "^3.1095.0",
82
+ "@aws-sdk/client-glue": "^3.1095.0",
83
+ "@aws-sdk/client-lakeformation": "^3.1095.0",
84
+ "@aws-sdk/client-ram": "^3.1095.0",
85
+ "@aws-sdk/client-sts": "^3.1095.0",
86
86
  "@aws-sdk/types": "^3.974.2",
87
87
  "@types/aws-lambda": "^8.10.162",
88
88
  "aws-lambda": "^1.0.7"
@@ -112,7 +112,7 @@
112
112
  "publishConfig": {
113
113
  "access": "public"
114
114
  },
115
- "version": "0.0.19",
115
+ "version": "0.0.20",
116
116
  "jest": {
117
117
  "coverageProvider": "v8",
118
118
  "moduleNameMapper": {
@@ -1,135 +0,0 @@
1
- import { determineTimestampFormat } from "@smithy/core/protocols";
2
- import { NormalizedSchema } from "@smithy/core/schema";
3
- import { dateToUtcString, generateIdempotencyToken, LazyJsonString, NumericValue, toBase64 } from "@smithy/core/serde";
4
- import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
5
- export class SinglePassJsonShapeSerializer extends SerdeContextConfig {
6
- settings;
7
- buffer;
8
- rootSchema;
9
- constructor(settings) {
10
- super();
11
- this.settings = settings;
12
- }
13
- write(schema, value) {
14
- this.rootSchema = NormalizedSchema.of(schema);
15
- this.buffer = this.writeObject(this.rootSchema, value);
16
- }
17
- writeDiscriminatedDocument(schema, value) {
18
- this.write(schema, value);
19
- if (typeof this.buffer === "object") {
20
- this.buffer.__type = NormalizedSchema.of(schema).getName(true);
21
- }
22
- }
23
- flush() {
24
- this.rootSchema = undefined;
25
- return this.buffer;
26
- }
27
- writeObject(schema, value) {
28
- if (value == undefined) {
29
- return "";
30
- }
31
- let b = "";
32
- const ns = NormalizedSchema.of(schema);
33
- const sparse = !!ns.getMergedTraits().sparse;
34
- if (Array.isArray(value) && (ns.isDocumentSchema() || ns.isListSchema())) {
35
- b += "[";
36
- for (let i = 0; i < value.length; ++i) {
37
- const item = value[i];
38
- if (item != null || sparse) {
39
- b += this.writeValue(ns.getValueSchema(), item);
40
- b += ",";
41
- }
42
- }
43
- }
44
- else if (ns.isStructSchema()) {
45
- b += "{";
46
- let didWriteMember = false;
47
- for (const [name, member] of ns.structIterator()) {
48
- const item = value[name];
49
- const targetKey = this.settings.jsonName ? (member.getMergedTraits().jsonName ?? name) : name;
50
- const serializableValue = this.writeValue(member, item);
51
- if (item != null || member.isIdempotencyToken()) {
52
- didWriteMember = true;
53
- b += `"${targetKey}":${serializableValue}`;
54
- b += ",";
55
- }
56
- }
57
- if (!didWriteMember && ns.isUnionSchema()) {
58
- const { $unknown } = value;
59
- if (Array.isArray($unknown)) {
60
- const [k, v] = $unknown;
61
- b += `"${k}":${this.writeValue(15, v)}`;
62
- }
63
- }
64
- }
65
- else if (ns.isMapSchema() || ns.isDocumentSchema()) {
66
- b += "{";
67
- for (const k in value) {
68
- const v = value[k];
69
- if (v != null || sparse) {
70
- b += `"${k}":${this.writeValue(ns, v)}`;
71
- b += ",";
72
- }
73
- }
74
- }
75
- if (b[b.length - 1] === ",") {
76
- b = b.slice(0, -1);
77
- }
78
- if (b[0] === "[") {
79
- b += "]";
80
- }
81
- if (b[0] === "{") {
82
- b += "}";
83
- }
84
- return b;
85
- }
86
- writeValue(schema, value) {
87
- const isObject = value !== null && typeof value === "object";
88
- const ns = NormalizedSchema.of(schema);
89
- const quote = (_) => `"${_}"`;
90
- if ((ns.isBlobSchema() && (value instanceof Uint8Array || typeof value === "string")) ||
91
- (ns.isDocumentSchema() && value instanceof Uint8Array)) {
92
- return quote((this.serdeContext?.base64Encoder ?? toBase64)(value));
93
- }
94
- if ((ns.isTimestampSchema() || ns.isDocumentSchema()) && value instanceof Date) {
95
- const format = determineTimestampFormat(ns, this.settings);
96
- switch (format) {
97
- case 5:
98
- return quote(value.toISOString().replace(".000Z", "Z"));
99
- case 6:
100
- return quote(dateToUtcString(value));
101
- case 7:
102
- return String(value.getTime() / 1000);
103
- default:
104
- console.warn("Missing timestamp format, using epoch seconds", value);
105
- return String(value.getTime() / 1000);
106
- }
107
- }
108
- if (ns.isNumericSchema() && typeof value === "number") {
109
- if (Math.abs(value) === Infinity || isNaN(value)) {
110
- return quote(String(value));
111
- }
112
- }
113
- if (ns.isStringSchema()) {
114
- if (typeof value === "undefined" && ns.isIdempotencyToken()) {
115
- return quote(generateIdempotencyToken());
116
- }
117
- if (typeof value === "string") {
118
- const mediaType = ns.getMergedTraits().mediaType;
119
- if (mediaType) {
120
- const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
121
- if (isJson) {
122
- return quote(LazyJsonString.from(value).toString());
123
- }
124
- }
125
- }
126
- }
127
- if (value instanceof NumericValue) {
128
- return value.string;
129
- }
130
- if (isObject) {
131
- return this.writeObject(ns, value);
132
- }
133
- return typeof value === "string" ? quote(value) : String(value);
134
- }
135
- }
@@ -1,27 +0,0 @@
1
- import type { Schema, ShapeSerializer } from "@smithy/types";
2
- import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
3
- import type { JsonSettings } from "../JsonCodec";
4
- /**
5
- * This implementation uses single-pass JSON serialization with JS code instead of
6
- * JSON.stringify.
7
- *
8
- * It isn't significantly faster than dual-pass ending with native JSON.stringify
9
- * that I would want to use it. It seems to be barely faster in some mid-range object
10
- * sizes but slower on the high end.
11
- *
12
- * @internal
13
- */
14
- export declare class SinglePassJsonShapeSerializer extends SerdeContextConfig implements ShapeSerializer<string> {
15
- readonly settings: JsonSettings;
16
- private buffer;
17
- private rootSchema;
18
- constructor(settings: JsonSettings);
19
- write(schema: Schema, value: unknown): void;
20
- /**
21
- * @internal
22
- */
23
- writeDiscriminatedDocument(schema: Schema, value: unknown): void;
24
- flush(): string;
25
- private writeObject;
26
- private writeValue;
27
- }
@@ -1,17 +0,0 @@
1
- import { Schema, ShapeSerializer } from "@smithy/types";
2
- import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
3
- import { JsonSettings } from "../JsonCodec";
4
- export declare class SinglePassJsonShapeSerializer
5
- extends SerdeContextConfig
6
- implements ShapeSerializer<string>
7
- {
8
- readonly settings: JsonSettings;
9
- private buffer;
10
- private rootSchema;
11
- constructor(settings: JsonSettings);
12
- write(schema: Schema, value: unknown): void;
13
- writeDiscriminatedDocument(schema: Schema, value: unknown): void;
14
- flush(): string;
15
- private writeObject;
16
- private writeValue;
17
- }