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

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 (355) 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 +2 -1
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/enums.js +1 -0
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeChangeSetCommand.d.ts +1 -1
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/enums.d.ts +1 -0
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +7 -3
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +2 -0
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +2 -0
  11. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +2 -0
  12. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/enums.d.ts +1 -0
  13. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  14. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  15. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  16. package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -6
  17. package/node_modules/@aws-sdk/client-connect/dist-cjs/index.js +1 -1
  18. package/node_modules/@aws-sdk/client-connect/dist-types/commands/AssociateContactWithUserCommand.d.ts +5 -1
  19. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_0.d.ts +11 -3
  20. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +3 -1
  21. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_3.d.ts +9 -2
  22. package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.browser.d.ts +2 -0
  23. package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.d.ts +2 -0
  24. package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.native.d.ts +2 -0
  25. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  26. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  27. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  28. package/node_modules/@aws-sdk/client-connect/package.json +6 -6
  29. package/node_modules/@aws-sdk/client-glue/README.md +7 -0
  30. package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +295 -118
  31. package/node_modules/@aws-sdk/client-glue/dist-es/Glue.js +2 -0
  32. package/node_modules/@aws-sdk/client-glue/dist-es/commands/BatchGetDataQualityRulesetEvaluationRunCommand.js +4 -0
  33. package/node_modules/@aws-sdk/client-glue/dist-es/commands/index.js +1 -0
  34. package/node_modules/@aws-sdk/client-glue/dist-es/models/enums.js +30 -13
  35. package/node_modules/@aws-sdk/client-glue/dist-es/schemas/schemas_0.js +243 -104
  36. package/node_modules/@aws-sdk/client-glue/dist-types/Glue.d.ts +7 -0
  37. package/node_modules/@aws-sdk/client-glue/dist-types/GlueClient.d.ts +3 -2
  38. package/node_modules/@aws-sdk/client-glue/dist-types/commands/BatchGetDataQualityResultCommand.d.ts +11 -0
  39. package/node_modules/@aws-sdk/client-glue/dist-types/commands/BatchGetDataQualityRulesetEvaluationRunCommand.d.ts +202 -0
  40. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateClassifierCommand.d.ts +1 -1
  41. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateColumnStatisticsTaskSettingsCommand.d.ts +1 -1
  42. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateConnectionCommand.d.ts +1 -1
  43. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateCrawlerCommand.d.ts +1 -2
  44. package/node_modules/@aws-sdk/client-glue/dist-types/commands/DescribeConnectionTypeCommand.d.ts +68 -0
  45. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataCatalogEncryptionSettingsCommand.d.ts +2 -1
  46. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityModelCommand.d.ts +1 -1
  47. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityModelResultCommand.d.ts +1 -1
  48. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityResultCommand.d.ts +12 -1
  49. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityRuleRecommendationRunCommand.d.ts +4 -1
  50. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityRulesetCommand.d.ts +1 -1
  51. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityRulesetEvaluationRunCommand.d.ts +48 -0
  52. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataflowGraphCommand.d.ts +1 -1
  53. package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListDataQualityRuleRecommendationRunsCommand.d.ts +4 -0
  54. package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListDataQualityStatisticsCommand.d.ts +9 -0
  55. package/node_modules/@aws-sdk/client-glue/dist-types/commands/RegisterConnectionTypeCommand.d.ts +67 -0
  56. package/node_modules/@aws-sdk/client-glue/dist-types/commands/SearchAssetsCommand.d.ts +1 -2
  57. package/node_modules/@aws-sdk/client-glue/dist-types/commands/SearchTablesCommand.d.ts +1 -2
  58. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartBlueprintRunCommand.d.ts +1 -1
  59. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartColumnStatisticsTaskRunCommand.d.ts +1 -1
  60. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartColumnStatisticsTaskRunScheduleCommand.d.ts +1 -1
  61. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartCrawlerCommand.d.ts +1 -1
  62. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartDataQualityRuleRecommendationRunCommand.d.ts +3 -0
  63. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartDataQualityRulesetEvaluationRunCommand.d.ts +48 -0
  64. package/node_modules/@aws-sdk/client-glue/dist-types/commands/index.d.ts +1 -0
  65. package/node_modules/@aws-sdk/client-glue/dist-types/models/enums.d.ts +78 -29
  66. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_0.d.ts +305 -439
  67. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_1.d.ts +3890 -3703
  68. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_2.d.ts +416 -308
  69. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_3.d.ts +301 -4
  70. package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.browser.d.ts +2 -0
  71. package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.d.ts +2 -0
  72. package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.native.d.ts +2 -0
  73. package/node_modules/@aws-sdk/client-glue/dist-types/schemas/schemas_0.d.ts +16 -0
  74. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/Glue.d.ts +17 -0
  75. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/GlueClient.d.ts +6 -0
  76. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/BatchGetDataQualityRulesetEvaluationRunCommand.d.ts +42 -0
  77. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateClassifierCommand.d.ts +1 -1
  78. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateColumnStatisticsTaskSettingsCommand.d.ts +1 -1
  79. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateConnectionCommand.d.ts +1 -1
  80. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateCrawlerCommand.d.ts +1 -2
  81. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataCatalogEncryptionSettingsCommand.d.ts +2 -4
  82. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityModelCommand.d.ts +1 -1
  83. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityModelResultCommand.d.ts +1 -1
  84. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityResultCommand.d.ts +1 -1
  85. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityRuleRecommendationRunCommand.d.ts +1 -1
  86. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityRulesetCommand.d.ts +1 -1
  87. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataflowGraphCommand.d.ts +1 -1
  88. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/SearchAssetsCommand.d.ts +1 -2
  89. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/SearchTablesCommand.d.ts +1 -2
  90. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartBlueprintRunCommand.d.ts +1 -1
  91. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartColumnStatisticsTaskRunCommand.d.ts +1 -1
  92. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartColumnStatisticsTaskRunScheduleCommand.d.ts +1 -1
  93. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartCrawlerCommand.d.ts +1 -1
  94. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/index.d.ts +1 -0
  95. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/enums.d.ts +38 -16
  96. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_0.d.ts +74 -76
  97. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_1.d.ts +113 -101
  98. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_2.d.ts +109 -79
  99. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_3.d.ts +77 -4
  100. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  101. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  102. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  103. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/schemas/schemas_0.d.ts +16 -0
  104. package/node_modules/@aws-sdk/client-glue/package.json +6 -6
  105. package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/index.js +1 -1
  106. package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.browser.d.ts +2 -0
  107. package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.d.ts +2 -0
  108. package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.native.d.ts +2 -0
  109. package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  110. package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  111. package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  112. package/node_modules/@aws-sdk/client-lakeformation/package.json +6 -6
  113. package/node_modules/@aws-sdk/client-ram/dist-cjs/index.js +1 -1
  114. package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.browser.d.ts +2 -0
  115. package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.d.ts +2 -0
  116. package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.native.d.ts +2 -0
  117. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  118. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  119. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  120. package/node_modules/@aws-sdk/client-ram/package.json +6 -6
  121. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1 -1
  122. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +2 -0
  123. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +2 -0
  124. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +2 -0
  125. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  126. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  127. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  128. package/node_modules/@aws-sdk/client-sts/package.json +8 -8
  129. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +66 -28
  130. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +989 -72
  131. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +7 -2
  132. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +28 -14
  133. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.js +1 -0
  134. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.js +3 -0
  135. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.js +8 -0
  136. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js +1 -1
  137. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +3 -3
  138. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.browser.js +9 -0
  139. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js +5 -1
  140. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js +1 -0
  141. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +12 -6
  142. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js +2 -1
  143. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js +1 -1
  144. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +8 -5
  145. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -1
  146. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -1
  147. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonSettings.js +1 -0
  148. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonCodec.js → codec-v1/JsonCodec.js} +1 -1
  149. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +1 -0
  150. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeDeserializer.js → codec-v1/JsonShapeDeserializer.js} +14 -5
  151. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeSerializer.js → codec-v1/JsonShapeSerializer.js} +12 -2
  152. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +103 -0
  153. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +20 -0
  154. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +200 -0
  155. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +489 -0
  156. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/detectBufferParsing.js +18 -0
  157. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +22 -3
  158. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/needsReviver.js +41 -0
  159. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +33 -13
  160. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/writeKey.js +3 -0
  161. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +4 -0
  162. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -1
  163. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +6 -0
  164. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +7 -0
  165. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +13 -0
  166. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -1
  167. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +22 -6
  168. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.browser.d.ts +11 -0
  169. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d.ts +7 -1
  170. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +4 -0
  171. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +22 -6
  172. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/index.d.ts +2 -1
  173. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +9 -6
  174. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
  175. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
  176. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
  177. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
  178. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +7 -0
  179. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonCodec.d.ts → codec-v1/JsonCodec.d.ts} +4 -8
  180. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +7 -0
  181. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeDeserializer.d.ts → codec-v1/JsonShapeDeserializer.d.ts} +3 -2
  182. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeSerializer.d.ts → codec-v1/JsonShapeSerializer.d.ts} +3 -2
  183. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
  184. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -0
  185. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +30 -0
  186. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +60 -0
  187. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
  188. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/needsReviver.d.ts +11 -0
  189. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +7 -2
  190. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/writeKey.d.ts +4 -0
  191. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -0
  192. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +1 -0
  193. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +1 -0
  194. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +4 -0
  195. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -1
  196. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +7 -6
  197. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +32 -0
  198. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +10 -2
  199. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +1 -0
  200. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +2 -0
  201. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +2 -1
  202. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +9 -6
  203. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
  204. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
  205. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
  206. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
  207. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +4 -0
  208. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/{JsonCodec.d.ts → codec-v1/JsonCodec.d.ts} +3 -5
  209. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +4 -0
  210. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/{JsonShapeDeserializer.d.ts → codec-v1/JsonShapeDeserializer.d.ts} +2 -2
  211. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/{JsonShapeSerializer.d.ts → codec-v1/JsonShapeSerializer.d.ts} +2 -2
  212. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +27 -0
  213. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +9 -0
  214. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +15 -0
  215. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +39 -0
  216. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
  217. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +2 -0
  218. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +7 -2
  219. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +1 -0
  220. package/node_modules/@aws-sdk/core/package.json +11 -6
  221. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  222. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  223. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  224. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  225. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  226. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  227. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  228. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  229. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  230. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  231. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  232. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  233. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  234. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -0
  235. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +2 -0
  236. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -0
  237. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +2 -0
  238. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +2 -0
  239. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +2 -0
  240. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +2 -0
  241. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +2 -0
  242. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +2 -0
  243. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -0
  244. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +2 -0
  245. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -0
  246. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +2 -0
  247. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +2 -0
  248. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +2 -0
  249. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -0
  250. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +2 -0
  251. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -0
  252. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +2 -0
  253. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +2 -0
  254. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +2 -0
  255. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +2 -0
  256. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +2 -0
  257. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +2 -0
  258. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -0
  259. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +2 -0
  260. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -0
  261. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +2 -0
  262. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +2 -0
  263. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +2 -0
  264. package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
  265. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  266. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  267. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +14 -4
  268. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +14 -4
  269. package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
  270. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1562 -338
  271. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +34 -11
  272. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +34 -11
  273. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1 -0
  274. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +1 -0
  275. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +1 -0
  276. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -2
  277. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +2 -2
  278. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -2
  279. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -205
  280. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +1 -1
  281. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +1 -1
  282. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +113 -0
  283. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +103 -0
  284. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +621 -0
  285. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +602 -0
  286. package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +5 -1
  287. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +34 -11
  288. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +1 -0
  289. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js +1 -0
  290. package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +2 -2
  291. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +5 -27
  292. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  293. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
  294. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
  295. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
  296. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
  297. package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +5 -1
  298. package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +10 -2
  299. package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/constants.d.ts +1 -0
  300. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +5 -27
  301. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  302. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
  303. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
  304. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
  305. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
  306. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +5 -1
  307. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +10 -2
  308. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/constants.d.ts +1 -0
  309. package/node_modules/@smithy/core/package.json +2 -1
  310. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  311. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  312. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  313. package/node_modules/@smithy/signature-v4/package.json +2 -2
  314. package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/dist/js-yaml.js +4 -4
  315. package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/dist/js-yaml.min.js +1 -1
  316. package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/omap.js +3 -3
  317. package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/package.json +1 -1
  318. package/node_modules/xml2js/node_modules/sax/lib/sax.js +27 -9
  319. package/node_modules/xml2js/node_modules/sax/package.json +1 -1
  320. package/package.json +12 -12
  321. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +0 -135
  322. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -27
  323. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -17
  324. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/LICENSE +0 -0
  325. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/README.md +0 -0
  326. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/bin/js-yaml.js +0 -0
  327. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/index.js +0 -0
  328. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/common.js +0 -0
  329. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/dumper.js +0 -0
  330. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/exception.js +0 -0
  331. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/loader.js +0 -0
  332. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/mark.js +0 -0
  333. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/core.js +0 -0
  334. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/default_full.js +0 -0
  335. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/default_safe.js +0 -0
  336. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/failsafe.js +0 -0
  337. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/json.js +0 -0
  338. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema.js +0 -0
  339. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/binary.js +0 -0
  340. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/bool.js +0 -0
  341. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/float.js +0 -0
  342. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/int.js +0 -0
  343. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/js/function.js +0 -0
  344. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/js/regexp.js +0 -0
  345. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/js/undefined.js +0 -0
  346. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/map.js +0 -0
  347. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/merge.js +0 -0
  348. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/null.js +0 -0
  349. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/pairs.js +0 -0
  350. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/seq.js +0 -0
  351. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/set.js +0 -0
  352. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/str.js +0 -0
  353. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/timestamp.js +0 -0
  354. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type.js +0 -0
  355. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml.js +0 -0
@@ -3,12 +3,18 @@ export function jsonReviver(key, value, context) {
3
3
  if (context?.source) {
4
4
  const numericString = context.source;
5
5
  if (typeof value === "number") {
6
- if (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER || numericString !== String(value)) {
7
- const isFractional = numericString.includes(".");
8
- if (isFractional) {
6
+ const inSafeRange = value <= Number.MAX_SAFE_INTEGER && value >= Number.MIN_SAFE_INTEGER;
7
+ if (!inSafeRange || numericString !== String(value)) {
8
+ if (inSafeRange && /[eE]/.test(numericString) && String(Number(numericString)) === String(value)) {
9
+ return value;
10
+ }
11
+ if (isFractionalNumeric(numericString)) {
9
12
  return new NumericValue(numericString, "bigDecimal");
10
13
  }
11
14
  else {
15
+ if (/[eE]/.test(numericString)) {
16
+ return BigInt(Number(numericString));
17
+ }
12
18
  return BigInt(numericString);
13
19
  }
14
20
  }
@@ -16,3 +22,16 @@ export function jsonReviver(key, value, context) {
16
22
  }
17
23
  return value;
18
24
  }
25
+ function isFractionalNumeric(s) {
26
+ const dotIndex = s.indexOf(".");
27
+ if (dotIndex === -1) {
28
+ return false;
29
+ }
30
+ const eIndex = s.search(/[eE]/);
31
+ if (eIndex === -1) {
32
+ return true;
33
+ }
34
+ const fracDigits = eIndex - dotIndex - 1;
35
+ const exp = parseInt(s.slice(eIndex + 1), 10);
36
+ return exp < fracDigits;
37
+ }
@@ -0,0 +1,41 @@
1
+ import { NormalizedSchema } from "@smithy/core/schema";
2
+ const REVIVER_SYMBOL = Symbol.for("@aws-sdk/reviver");
3
+ export function needsReviver(schema) {
4
+ const ns = NormalizedSchema.of(schema);
5
+ const raw = ns.getSchema();
6
+ if (Array.isArray(raw) && ns.isStructSchema()) {
7
+ if (REVIVER_SYMBOL in raw) {
8
+ return raw[REVIVER_SYMBOL];
9
+ }
10
+ const result = _check(ns, new Set());
11
+ raw[REVIVER_SYMBOL] = result;
12
+ return result;
13
+ }
14
+ return _check(ns, new Set());
15
+ }
16
+ function _check(ns, seen) {
17
+ const raw = ns.getSchema();
18
+ if (seen.has(raw)) {
19
+ return false;
20
+ }
21
+ seen.add(raw);
22
+ if (ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
23
+ return true;
24
+ }
25
+ if (ns.isStructSchema()) {
26
+ for (const [, memberSchema] of ns.structIterator()) {
27
+ if (_check(memberSchema, seen)) {
28
+ return true;
29
+ }
30
+ }
31
+ }
32
+ else if (ns.isListSchema() || ns.isMapSchema()) {
33
+ if (_check(ns.getValueSchema(), seen)) {
34
+ return true;
35
+ }
36
+ }
37
+ else if (ns.isDocumentSchema()) {
38
+ return true;
39
+ }
40
+ return false;
41
+ }
@@ -1,20 +1,40 @@
1
+ import { collectBody } from "@smithy/core/protocols";
1
2
  import { collectBodyString } from "../common";
2
- export const parseJsonBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3
- if (encoded.length) {
4
- try {
5
- return JSON.parse(encoded);
6
- }
7
- catch (e) {
8
- if (e?.name === "SyntaxError") {
9
- Object.defineProperty(e, "$responseBodyText", {
10
- value: encoded,
11
- });
3
+ import { detectBufferParsing } from "./detectBufferParsing";
4
+ import { jsonReviver } from "./jsonReviver";
5
+ import { needsReviver } from "./needsReviver";
6
+ export async function parseJsonBody(streamBody, context, schema) {
7
+ let parsingInput;
8
+ if (detectBufferParsing() && typeof streamBody?.[Symbol.asyncIterator] === "function") {
9
+ const buffer = await collectBody(streamBody, context);
10
+ if (typeof Buffer === "function") {
11
+ if (Buffer.isBuffer(buffer)) {
12
+ parsingInput = buffer;
13
+ }
14
+ else {
15
+ parsingInput = Buffer.from(buffer.buffer, buffer.byteOffset, buffer.byteLength);
12
16
  }
13
- throw e;
14
17
  }
15
18
  }
16
- return {};
17
- });
19
+ if (!parsingInput) {
20
+ parsingInput = await collectBodyString(streamBody, context);
21
+ }
22
+ if (parsingInput.length === 0) {
23
+ return {};
24
+ }
25
+ const reviver = schema && needsReviver(schema) ? jsonReviver : undefined;
26
+ try {
27
+ return JSON.parse(parsingInput, reviver);
28
+ }
29
+ catch (e) {
30
+ if (e?.name === "SyntaxError") {
31
+ Object.defineProperty(e, "$responseBodyText", {
32
+ value: typeof parsingInput === "string" ? parsingInput : parsingInput.toString("utf8"),
33
+ });
34
+ }
35
+ throw e;
36
+ }
37
+ }
18
38
  export const parseJsonErrorBody = async (errorBody, context) => {
19
39
  const value = await parseJsonBody(errorBody, context);
20
40
  value.message = value.message ?? value.Message;
@@ -0,0 +1,3 @@
1
+ export function writeKey(obj) {
2
+ Object.defineProperty(obj, "__proto__", { value: undefined, writable: true, enumerable: true, configurable: true });
3
+ }
@@ -5,6 +5,7 @@ import { NormalizedSchema } from "@smithy/core/schema";
5
5
  import { toUtf8 } from "@smithy/core/serde";
6
6
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
7
7
  import { UnionSerde } from "../UnionSerde";
8
+ import { writeKey } from "../writeKey";
8
9
  export class XmlShapeDeserializer extends SerdeContextConfig {
9
10
  settings;
10
11
  stringDeserializer;
@@ -85,6 +86,9 @@ export class XmlShapeDeserializer extends SerdeContextConfig {
85
86
  for (const entry of entries) {
86
87
  const key = entry[keyProperty];
87
88
  const value = entry[valueProperty];
89
+ if (key === "__proto__") {
90
+ writeKey(buffer);
91
+ }
88
92
  buffer[key] = this.readSchema(memberNs, value);
89
93
  }
90
94
  return buffer;
@@ -1,4 +1,4 @@
1
- import type { AuthScheme, AwsCredentialIdentity, HttpRequest as IHttpRequest, HttpResponse, HttpSigner, RequestSigner } from "@smithy/types";
1
+ import type { AuthScheme, AwsCredentialIdentity, HttpRequest as IHttpRequest, HttpResponse, HttpSigner, Provider, RequestSigner } from "@smithy/types";
2
2
  import type { AwsSdkSigV4AAuthResolvedConfig } from "./resolveAwsSdkSigV4AConfig";
3
3
  /**
4
4
  * @internal
@@ -6,6 +6,7 @@ import type { AwsSdkSigV4AAuthResolvedConfig } from "./resolveAwsSdkSigV4AConfig
6
6
  interface AwsSdkSigV4Config extends AwsSdkSigV4AAuthResolvedConfig {
7
7
  systemClockOffset: number;
8
8
  signer: (authScheme?: AuthScheme) => Promise<RequestSigner>;
9
+ disableClockSkewCorrection?: Provider<boolean>;
9
10
  }
10
11
  /**
11
12
  * @internal
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Browser default: clock skew correction enabled.
3
+ *
4
+ * @internal
5
+ */
6
+ export declare const DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION = false;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Node.js default: lazily reads from env var / shared config file.
3
+ * Browser counterpart (via index binding) exports `false`.
4
+ *
5
+ * @internal
6
+ */
7
+ export declare const DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION: import("@smithy/types").Provider<boolean>;
@@ -0,0 +1,13 @@
1
+ import { type LoadedConfigSelectors } from "@smithy/core/config";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const ENV_DISABLE_CLOCK_SKEW_CORRECTION = "AWS_DISABLE_CLOCK_SKEW_CORRECTION";
6
+ /**
7
+ * @internal
8
+ */
9
+ export declare const CONFIG_DISABLE_CLOCK_SKEW_CORRECTION = "disable_clock_skew_correction";
10
+ /**
11
+ * @internal
12
+ */
13
+ export declare const NODE_DISABLE_CLOCK_SKEW_CORRECTION_CONFIG_OPTIONS: LoadedConfigSelectors<boolean>;
@@ -3,5 +3,5 @@ export { AwsSdkSigV4ASigner } from "./AwsSdkSigV4ASigner";
3
3
  export { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "./NODE_AUTH_SCHEME_PREFERENCE_OPTIONS";
4
4
  export { resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS } from "./resolveAwsSdkSigV4AConfig";
5
5
  export type { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AAuthResolvedConfig, } from "./resolveAwsSdkSigV4AConfig";
6
- export { resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config } from "./resolveAwsSdkSigV4Config";
6
+ export { bindResolveAwsSdkSigV4Config } from "./resolveAwsSdkSigV4Config";
7
7
  export type { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4Memoized, AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig, AWSSDKSigV4AuthInputConfig, AWSSDKSigV4PreviouslyResolved, AWSSDKSigV4AuthResolvedConfig, } from "./resolveAwsSdkSigV4Config";
@@ -33,6 +33,14 @@ export interface AwsSdkSigV4AuthInputConfig {
33
33
  * @internal
34
34
  */
35
35
  signerConstructor?: new (options: SignatureV4Init & SignatureV4CryptoInit) => RequestSigner;
36
+ /**
37
+ * Whether to disable clock skew correction. When true, the SDK will not adjust
38
+ * the signing timestamp, will not update the client clock offset from response
39
+ * headers, and will not retry clock skew errors.
40
+ *
41
+ * Defaults to false (correction enabled).
42
+ */
43
+ disableClockSkewCorrection?: boolean | Provider<boolean>;
36
44
  }
37
45
  /**
38
46
  * Used to indicate whether a credential provider function was memoized by this resolver.
@@ -87,11 +95,23 @@ export interface AwsSdkSigV4AuthResolvedConfig {
87
95
  * Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.systemClockOffset}
88
96
  */
89
97
  systemClockOffset: number;
98
+ /**
99
+ * Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.disableClockSkewCorrection}
100
+ */
101
+ disableClockSkewCorrection: Provider<boolean>;
90
102
  }
91
103
  /**
104
+ * Combined input config type used internally by the resolver and helper functions.
92
105
  * @internal
93
106
  */
94
- export declare const resolveAwsSdkSigV4Config: <T>(config: T & AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved) => T & AwsSdkSigV4AuthResolvedConfig;
107
+ type AwsSdkSigV4ConfigInput = AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved;
108
+ /**
109
+ * Accepts a platform-specific default for disableClockSkewCorrection and
110
+ * returns the resolver function. Called from the index (node vs browser).
111
+ *
112
+ * @internal
113
+ */
114
+ export declare const bindResolveAwsSdkSigV4Config: (defaultDisableClockSkewCorrection: boolean | Provider<boolean>) => <T>(config: T & AwsSdkSigV4ConfigInput) => T & AwsSdkSigV4AuthResolvedConfig;
95
115
  /**
96
116
  * @internal
97
117
  * @deprecated renamed to {@link AwsSdkSigV4AuthInputConfig}
@@ -110,8 +130,4 @@ export interface AWSSDKSigV4PreviouslyResolved extends AwsSdkSigV4PreviouslyReso
110
130
  */
111
131
  export interface AWSSDKSigV4AuthResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
112
132
  }
113
- /**
114
- * @internal
115
- * @deprecated renamed to {@link resolveAwsSdkSigV4Config}
116
- */
117
- export declare const resolveAWSSDKSigV4Config: <T>(config: T & AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved) => T & AwsSdkSigV4AuthResolvedConfig;
133
+ export {};
@@ -0,0 +1,11 @@
1
+ export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, resolveAwsSdkSigV4AConfig, } from "./aws_sdk";
2
+ export type { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4Memoized, AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig, AWSSDKSigV4AuthInputConfig, AWSSDKSigV4PreviouslyResolved, AWSSDKSigV4AuthResolvedConfig, } from "./aws_sdk";
3
+ export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey";
4
+ export declare const NODE_AUTH_SCHEME_PREFERENCE_OPTIONS: symbol;
5
+ export declare const NODE_SIGV4A_CONFIG_OPTIONS: symbol;
6
+ export declare const resolveAwsSdkSigV4Config: <T>(config: T & (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & import("./aws_sdk").AwsSdkSigV4PreviouslyResolved)) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig;
7
+ /**
8
+ * @internal
9
+ * @deprecated renamed to {@link resolveAwsSdkSigV4Config}
10
+ */
11
+ export declare const resolveAWSSDKSigV4Config: <T>(config: T & (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & import("./aws_sdk").AwsSdkSigV4PreviouslyResolved)) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig;
@@ -1,3 +1,9 @@
1
- export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS, resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config, } from "./aws_sdk";
1
+ export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS, } from "./aws_sdk";
2
2
  export type { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4Memoized, AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig, AWSSDKSigV4AuthInputConfig, AWSSDKSigV4PreviouslyResolved, AWSSDKSigV4AuthResolvedConfig, } from "./aws_sdk";
3
3
  export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey";
4
+ export declare const resolveAwsSdkSigV4Config: <T>(config: T & (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & import("./aws_sdk").AwsSdkSigV4PreviouslyResolved)) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig;
5
+ /**
6
+ * @internal
7
+ * @deprecated renamed to {@link resolveAwsSdkSigV4Config}
8
+ */
9
+ export declare const resolveAWSSDKSigV4Config: <T>(config: T & (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & import("./aws_sdk").AwsSdkSigV4PreviouslyResolved)) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig;
@@ -2,3 +2,7 @@
2
2
  * @internal
3
3
  */
4
4
  export declare const getDateHeader: (response: unknown) => string | undefined;
5
+ /**
6
+ * @internal
7
+ */
8
+ export declare const getAgeHeader: (response: unknown) => string | undefined;
@@ -1,10 +1,26 @@
1
1
  /**
2
- * @internal
2
+ * Computes an updated system clock offset from a server Date header.
3
+ *
4
+ * When `timeRequestSent` is provided, uses the midpoint formula:
5
+ * elapsed = timeResponseReceived - timeRequestSent
6
+ * midpoint = (timeRequestSent + timeResponseReceived) / 2
7
+ * candidateSkew = serverTime - midpoint
8
+ *
9
+ * When `timeRequestSent` is absent (legacy callers), falls back to:
10
+ * candidateSkew = serverTime - timeResponseReceived
3
11
  *
4
- * If clock is skewed, it returns the difference between serverTime and current time.
5
- * If clock is not skewed, it returns currentSystemClockOffset.
12
+ * The candidate is discarded if:
13
+ * - An Age header is present
14
+ * - elapsed > 15 minutes
6
15
  *
7
- * @param clockTime The string value of the server time.
8
- * @param currentSystemClockOffset The current system clock offset.
16
+ * The candidate is recorded unconditionally when not
17
+ * discarded. The detection threshold (4 min) is only used for retry decisions,
18
+ * not for whether to update the offset.
19
+ *
20
+ * @internal
21
+ * @param clockTime The string value of the Date response header.
22
+ * @param currentSystemClockOffset The current system clock offset in milliseconds.
23
+ * @param timeRequestSent The raw client time (ms) at which the request was sent.
24
+ * @param ageHeader The value of the Age response header, if present.
9
25
  */
10
- export declare const getUpdatedSystemClockOffset: (clockTime: string, currentSystemClockOffset: number) => number;
26
+ export declare const getUpdatedSystemClockOffset: (clockTime: string, currentSystemClockOffset: number, timeRequestSent?: number, ageHeader?: string) => number;
@@ -1,3 +1,4 @@
1
- export { getDateHeader } from "./getDateHeader";
1
+ export { getAgeHeader, getDateHeader } from "./getDateHeader";
2
2
  export { getSkewCorrectedDate } from "./getSkewCorrectedDate";
3
3
  export { getUpdatedSystemClockOffset } from "./getUpdatedSystemClockOffset";
4
+ export { isClockSkewed } from "./isClockSkewed";
@@ -1,14 +1,15 @@
1
1
  export { AwsSmithyRpcV2CborProtocol } from "./cbor/AwsSmithyRpcV2CborProtocol";
2
- export { _toStr, _toBool, _toNum } from "./coercing-serializers";
3
2
  export { AwsJson1_0Protocol } from "./json/AwsJson1_0Protocol";
4
3
  export { AwsJson1_1Protocol } from "./json/AwsJson1_1Protocol";
5
4
  export { AwsJsonRpcProtocol } from "./json/AwsJsonRpcProtocol";
6
5
  export { AwsRestJsonProtocol } from "./json/AwsRestJsonProtocol";
7
- export { JsonCodec } from "./json/JsonCodec";
8
- export type { JsonSettings } from "./json/JsonCodec";
9
- export { JsonShapeDeserializer } from "./json/JsonShapeDeserializer";
10
- export { JsonShapeSerializer } from "./json/JsonShapeSerializer";
11
- export { awsExpectUnion } from "./json/awsExpectUnion";
6
+ export { JsonCodec } from "./json/codec-v1/JsonCodec";
7
+ export type { JsonSettings } from "./json/JsonSettings";
8
+ export { JsonShapeDeserializer } from "./json/codec-v1/JsonShapeDeserializer";
9
+ export { JsonShapeSerializer } from "./json/codec-v1/JsonShapeSerializer";
10
+ export { JsonCodec2 } from "./json/codec-v2/JsonCodec2";
11
+ export { JsonShapeDeserializer2 } from "./json/codec-v2/JsonShapeDeserializer2";
12
+ export { JsonShapeSerializer2 } from "./json/codec-v2/JsonShapeSerializer2";
12
13
  export { parseJsonBody, parseJsonErrorBody, loadRestJsonErrorCode, loadJsonRpcErrorCode } from "./json/parseJsonBody";
13
14
  export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol";
14
15
  export { AwsQueryProtocol } from "./query/AwsQueryProtocol";
@@ -20,3 +21,5 @@ export type { XmlSettings } from "./xml/XmlCodec";
20
21
  export { XmlShapeDeserializer } from "./xml/XmlShapeDeserializer";
21
22
  export { XmlShapeSerializer } from "./xml/XmlShapeSerializer";
22
23
  export { parseXmlBody, parseXmlErrorBody, loadRestXmlErrorCode } from "./xml/parseXmlBody";
24
+ export { awsExpectUnion } from "./json/awsExpectUnion";
25
+ export { _toStr, _toBool, _toNum } from "./coercing-serializers";
@@ -1,6 +1,6 @@
1
1
  import type { TypeRegistry } from "@smithy/core/schema";
2
2
  import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
3
- import type { JsonCodec } from "./JsonCodec";
3
+ import type { JsonCodec } from "./codec-v1/JsonCodec";
4
4
  /**
5
5
  * @public
6
6
  * @see https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html#differences-between-awsjson1-0-and-awsjson1-1
@@ -1,6 +1,6 @@
1
1
  import type { TypeRegistry } from "@smithy/core/schema";
2
2
  import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
3
- import type { JsonCodec } from "./JsonCodec";
3
+ import type { JsonCodec } from "./codec-v1/JsonCodec";
4
4
  /**
5
5
  * @public
6
6
  * @see https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html#differences-between-awsjson1-0-and-awsjson1-1
@@ -1,7 +1,7 @@
1
1
  import { RpcProtocol } from "@smithy/core/protocols";
2
2
  import type { TypeRegistry } from "@smithy/core/schema";
3
3
  import type { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
4
- import { JsonCodec } from "./JsonCodec";
4
+ import { JsonCodec } from "./codec-v1/JsonCodec";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { HttpBindingProtocol } from "@smithy/core/protocols";
2
2
  import type { TypeRegistry } from "@smithy/core/schema";
3
3
  import type { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
4
- import { JsonCodec } from "./JsonCodec";
4
+ import { JsonCodec } from "./codec-v1/JsonCodec";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -0,0 +1,7 @@
1
+ import type { CodecSettings } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export type JsonSettings = CodecSettings & {
6
+ jsonName: boolean;
7
+ };
@@ -1,14 +1,10 @@
1
- import type { Codec, CodecSettings } from "@smithy/types";
2
- import { SerdeContextConfig } from "../ConfigurableSerdeContext";
1
+ import type { Codec } from "@smithy/types";
2
+ import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
3
3
  import { JsonShapeDeserializer } from "./JsonShapeDeserializer";
4
4
  import { JsonShapeSerializer } from "./JsonShapeSerializer";
5
+ import type { JsonSettings } from "./JsonSettings";
5
6
  /**
6
- * @public
7
- */
8
- export type JsonSettings = CodecSettings & {
9
- jsonName: boolean;
10
- };
11
- /**
7
+ * @deprecated use JsonCodec2.
12
8
  * @public
13
9
  */
14
10
  export declare class JsonCodec extends SerdeContextConfig implements Codec<string, string> {
@@ -0,0 +1,7 @@
1
+ import type { CodecSettings } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export type JsonSettings = CodecSettings & {
6
+ jsonName: boolean;
7
+ };
@@ -1,7 +1,8 @@
1
1
  import type { DocumentType, Schema, ShapeDeserializer } from "@smithy/types";
2
- import { SerdeContextConfig } from "../ConfigurableSerdeContext";
3
- import type { JsonSettings } from "./JsonCodec";
2
+ import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
3
+ import type { JsonSettings } from "./JsonSettings";
4
4
  /**
5
+ * @deprecated prefer JsonShapeDeserializer in codec-v2.
5
6
  * @public
6
7
  */
7
8
  export declare class JsonShapeDeserializer extends SerdeContextConfig implements ShapeDeserializer<string> {
@@ -1,8 +1,9 @@
1
1
  import { NormalizedSchema } from "@smithy/core/schema";
2
2
  import type { Schema, ShapeSerializer } from "@smithy/types";
3
- import { SerdeContextConfig } from "../ConfigurableSerdeContext";
4
- import type { JsonSettings } from "./JsonCodec";
3
+ import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
4
+ import type { JsonSettings } from "./JsonSettings";
5
5
  /**
6
+ * @deprecated prefer byte-targeting JsonShapeSerializer or its string adapter StringJsonShapeSerializer in codec-v2.
6
7
  * @public
7
8
  */
8
9
  export declare class JsonShapeSerializer extends SerdeContextConfig implements ShapeSerializer<string> {
@@ -0,0 +1,51 @@
1
+ /**
2
+ * A Uint8Array subclass holding serialized JSON bytes that provides
3
+ * string method compatibility for customer middleware.
4
+ *
5
+ * Middleware historically observed `request.body` as a string for JSON
6
+ * protocol services. This class preserves that contract: string methods
7
+ * and coercion (template literals, `+` operator) lazily decode the bytes
8
+ * to a cached string. The HTTP transport layer still sees a Uint8Array
9
+ * and sends raw bytes without conversion.
10
+ *
11
+ * @internal
12
+ * @deprecated this adapter will be removed in a future version.
13
+ */
14
+ export declare class JsonBytesStringAdapter extends Uint8Array {
15
+ private string;
16
+ static allocUnsafe(bytes: number): JsonBytesStringAdapter;
17
+ /**
18
+ * Enables string coercion via template literals and `+` operator.
19
+ */
20
+ toString(): string;
21
+ /**
22
+ * Enables string coercion in comparison and arithmetic contexts.
23
+ * @returns a string. The signature is set to avoid incompatibility with extending Uint8Array.
24
+ */
25
+ valueOf(): any;
26
+ includes(searchString: string | number, position?: number): boolean;
27
+ indexOf(searchString: string | number, position?: number): number;
28
+ lastIndexOf(searchString: string | number, position?: number): number;
29
+ startsWith(searchString: string, position?: number): boolean;
30
+ endsWith(searchString: string, endPosition?: number): boolean;
31
+ match(regexp: string | RegExp): RegExpMatchArray | null;
32
+ replace(searchValue: string | RegExp, replaceValue: string): string;
33
+ search(regexp: string | RegExp): number;
34
+ split(separator: string | RegExp, limit?: number): string[];
35
+ substring(start: number, end?: number): string;
36
+ trim(): string;
37
+ trimStart(): string;
38
+ trimEnd(): string;
39
+ charAt(pos: number): string;
40
+ charCodeAt(index: number): number;
41
+ padStart(maxLength: number, fillString?: string): string;
42
+ padEnd(maxLength: number, fillString?: string): string;
43
+ repeat(count: number): string;
44
+ toUpperCase(): string;
45
+ toLowerCase(): string;
46
+ /**
47
+ * Decodes the bytes to a UTF-8 string on first access, then caches.
48
+ * Subsequent calls return the cached string with zero cost.
49
+ */
50
+ private s;
51
+ }
@@ -0,0 +1,13 @@
1
+ import type { $ShapeSerializer, $Codec, $ShapeDeserializer } from "@smithy/types";
2
+ import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
3
+ import type { JsonSettings } from "../JsonSettings";
4
+ /**
5
+ * Codec grouping the v2 serializer and deserializer.
6
+ * @public
7
+ */
8
+ export declare class JsonCodec2 extends SerdeContextConfig implements $Codec<Uint8Array, string> {
9
+ readonly settings: JsonSettings;
10
+ constructor(settings: JsonSettings);
11
+ createSerializer(): $ShapeSerializer<Uint8Array>;
12
+ createDeserializer(): $ShapeDeserializer<string>;
13
+ }
@@ -0,0 +1,30 @@
1
+ import type { DocumentType, Schema, ShapeDeserializer } from "@smithy/types";
2
+ import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
3
+ import type { JsonSettings } from "../JsonSettings";
4
+ /**
5
+ * Performance-optimized JSON deserializer.
6
+ *
7
+ * Skips UTF-8 decoding when the runtime supports JSON.parse(Buffer) (Node 22+).
8
+ *
9
+ * After JSON.parse, lists, maps, and document containers are mutated in place
10
+ * (element values are overwritten with their deserialized form) rather than
11
+ * copied into new arrays/objects. Structs allocate a fresh object because
12
+ * jsonName traits require key renaming, and building the output object
13
+ * incrementally lets V8 assign a stable hidden class rather than
14
+ * deoptimizing from repeated property deletion/addition on an existing shape.
15
+ *
16
+ * In-place mutation is safe here because the parsed tree is locally owned
17
+ * after JSON.parse with no external references, so rewriting values avoids
18
+ * redundant allocation and GC pressure.
19
+ *
20
+ * @public
21
+ */
22
+ export declare class JsonShapeDeserializer2 extends SerdeContextConfig implements ShapeDeserializer<string> {
23
+ readonly settings: JsonSettings;
24
+ constructor(settings: JsonSettings);
25
+ read(schema: Schema, data: string | Uint8Array | unknown): Promise<any>;
26
+ readObject(schema: Schema, data: DocumentType): any;
27
+ protected _read(schema: Schema, value: unknown): any;
28
+ private _readStruct;
29
+ private needsTransform;
30
+ }
@@ -0,0 +1,60 @@
1
+ import { NormalizedSchema } from "@smithy/core/schema";
2
+ import type { Schema, ShapeSerializer } from "@smithy/types";
3
+ import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
4
+ import type { JsonSettings } from "../JsonSettings";
5
+ /**
6
+ * Single-pass JSON serializer that writes directly to a Uint8Array buffer.
7
+ * Fewer intermediate states as when compared to the initial multi-pass implementation.
8
+ *
9
+ * @public
10
+ */
11
+ export declare class JsonShapeSerializer2 extends SerdeContextConfig implements ShapeSerializer<Uint8Array> {
12
+ readonly settings: JsonSettings;
13
+ private json;
14
+ private i;
15
+ private rootSchema;
16
+ private rawValue;
17
+ private passthrough;
18
+ constructor(settings: JsonSettings);
19
+ write(schema: Schema, value: unknown): void;
20
+ /**
21
+ * @internal
22
+ */
23
+ writeDiscriminatedDocument(schema: Schema, value: unknown): void;
24
+ /**
25
+ * Returns the serialized JSON as a Uint8Array (UTF-8 bytes).
26
+ * This is the primary output — pass directly to request.body.
27
+ */
28
+ flush(): Uint8Array;
29
+ protected ensure(byteCount: number): void;
30
+ /**
31
+ * Write a raw ASCII string (no JSON escaping). Used for pre-validated content
32
+ * like numeric literals and pre-encoded base64.
33
+ */
34
+ protected writeAscii(s: string): void;
35
+ /**
36
+ * Write a quoted ASCII string with no escape checking.
37
+ * Used for struct member keys (jsonName or model names) which are
38
+ * guaranteed to be safe ASCII identifiers. No control chars, quotes,
39
+ * backslashes, or non-ASCII.
40
+ * Ensures extra room for surrounding structural chars (comma, colon).
41
+ */
42
+ protected writeAsciiQuoted(s: string): void;
43
+ /**
44
+ * Write a JSON-escaped string including the surrounding quotes.
45
+ * Fast-path for ASCII, falls back to TextEncoder for multi-byte.
46
+ */
47
+ protected writeJsonString(s: string): void;
48
+ protected writeUnicodeEscape(code: number): void;
49
+ protected static readonly B64: Uint8Array;
50
+ /**
51
+ * Write a Uint8Array as a quoted base64 string directly into the buffer.
52
+ * No intermediate JS string, no escape checking (base64 alphabet is safe ASCII).
53
+ */
54
+ protected writeBase64(data: Uint8Array): void;
55
+ protected writeValue(schema: Schema, value: unknown, container: NormalizedSchema | undefined): void;
56
+ protected writeStruct(ns: NormalizedSchema, value: Record<string, unknown>): void;
57
+ protected writeList(ns: NormalizedSchema, value: unknown[], isDocument?: boolean): void;
58
+ protected writeMap(ns: NormalizedSchema, value: Record<string, unknown>, isDocument?: boolean): void;
59
+ protected writeTimestamp(ns: NormalizedSchema, value: Date): void;
60
+ }
@@ -0,0 +1 @@
1
+ export declare function detectBufferParsing(): boolean;