@cdklabs/cdk-ssm-documents 0.0.71 → 0.0.72

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 (432) hide show
  1. package/.jsii +11 -11
  2. package/lib/construct/synth-utils.js +1 -1
  3. package/lib/document/automation-document.js +1 -1
  4. package/lib/document/command-document.js +1 -1
  5. package/lib/document/document-builder.js +2 -2
  6. package/lib/document/ssm-document.js +1 -1
  7. package/lib/domain/aws-service.js +1 -1
  8. package/lib/domain/choice.js +1 -1
  9. package/lib/domain/data-type.js +1 -1
  10. package/lib/domain/enum/install-action.js +2 -2
  11. package/lib/domain/enum/install-uninstall-repair.js +2 -2
  12. package/lib/domain/enum/installation-type.js +2 -2
  13. package/lib/domain/enum/package-name.js +2 -2
  14. package/lib/domain/input.js +1 -1
  15. package/lib/domain/operation.js +1 -1
  16. package/lib/domain/platform.js +1 -1
  17. package/lib/domain/precondition.js +1 -1
  18. package/lib/incident-response/incident-response.js +3 -3
  19. package/lib/interface/approve-hook.js +2 -2
  20. package/lib/interface/auth-method.js +3 -3
  21. package/lib/interface/aws-invoker.js +2 -2
  22. package/lib/interface/downloadable-content.js +8 -8
  23. package/lib/interface/environment.js +3 -3
  24. package/lib/interface/execute-automation-hook/api-execute-automation-hook.js +1 -1
  25. package/lib/interface/observer.js +1 -1
  26. package/lib/interface/on-failure.js +6 -6
  27. package/lib/interface/pause-hook.js +2 -2
  28. package/lib/interface/run-command-hook/api-run-command-hook.js +1 -1
  29. package/lib/interface/run-document-location.js +2 -2
  30. package/lib/interface/sleep-hook.js +2 -2
  31. package/lib/interface/step-ref.js +1 -1
  32. package/lib/interface/variables/boolean-variable.js +2 -2
  33. package/lib/interface/variables/map-list-variable.js +2 -2
  34. package/lib/interface/variables/number-variable.js +2 -2
  35. package/lib/interface/variables/secure-string-variable.js +4 -4
  36. package/lib/interface/variables/string-list-variable.js +2 -2
  37. package/lib/interface/variables/string-map-variable.js +2 -2
  38. package/lib/interface/variables/string-variable.js +4 -4
  39. package/lib/interface/variables/variable.js +2 -2
  40. package/lib/interface/webhook.js +1 -1
  41. package/lib/parent-steps/automation/approve-step.js +1 -1
  42. package/lib/parent-steps/automation/assert-aws-resource-step.js +1 -1
  43. package/lib/parent-steps/automation/aws-api-step.js +1 -1
  44. package/lib/parent-steps/automation/branch-step.js +1 -1
  45. package/lib/parent-steps/automation/change-instance-state-step.js +3 -3
  46. package/lib/parent-steps/automation/copy-image-step.js +1 -1
  47. package/lib/parent-steps/automation/create-image-step.js +1 -1
  48. package/lib/parent-steps/automation/create-stack-step.js +3 -3
  49. package/lib/parent-steps/automation/create-tags-step.js +3 -3
  50. package/lib/parent-steps/automation/delete-image-step.js +1 -1
  51. package/lib/parent-steps/automation/delete-stack-step.js +1 -1
  52. package/lib/parent-steps/automation/execute-automation-step.js +1 -1
  53. package/lib/parent-steps/automation/execute-script-step.js +5 -5
  54. package/lib/parent-steps/automation/execute-state-machine-step.js +1 -1
  55. package/lib/parent-steps/automation/invoke-lambda-function-step.js +1 -1
  56. package/lib/parent-steps/automation/invoke-webhook-step.js +1 -1
  57. package/lib/parent-steps/automation/pause-step.js +1 -1
  58. package/lib/parent-steps/automation/run-command-step.js +3 -3
  59. package/lib/parent-steps/automation/run-instance-step.js +1 -1
  60. package/lib/parent-steps/automation/sleep-step.js +1 -1
  61. package/lib/parent-steps/automation/update-variable.js +1 -1
  62. package/lib/parent-steps/automation/wait-for-resource-step.js +1 -1
  63. package/lib/parent-steps/automation-step.js +1 -1
  64. package/lib/parent-steps/command/applications-step.js +1 -1
  65. package/lib/parent-steps/command/configure-docker-step.js +1 -1
  66. package/lib/parent-steps/command/configure-package-step.js +1 -1
  67. package/lib/parent-steps/command/domain-join-step.js +1 -1
  68. package/lib/parent-steps/command/download-content-step.js +1 -1
  69. package/lib/parent-steps/command/ps-module-step.js +1 -1
  70. package/lib/parent-steps/command/run-docker-action-step.js +1 -1
  71. package/lib/parent-steps/command/run-document-step.js +1 -1
  72. package/lib/parent-steps/command/run-powershell-script-step.js +1 -1
  73. package/lib/parent-steps/command/run-shell-script-step.js +1 -1
  74. package/lib/parent-steps/command/software-inventory-step.js +1 -1
  75. package/lib/parent-steps/command/update-agent-step.js +1 -1
  76. package/lib/parent-steps/command/update-ssm-agent-step.js +1 -1
  77. package/lib/parent-steps/command-step.js +1 -1
  78. package/lib/parent-steps/step.js +1 -1
  79. package/lib/patterns/automation/composite-step.js +2 -2
  80. package/lib/patterns/automation/reboot-instance-and-wait.js +1 -1
  81. package/lib/patterns/automation/string-step.js +1 -1
  82. package/lib/patterns/document/string-document.js +1 -1
  83. package/lib/patterns/document/timed-document.js +1 -1
  84. package/lib/samples/hello-world.js +1 -1
  85. package/lib/simulation/automation/approve-simulation.js +1 -1
  86. package/lib/simulation/automation/assert-aws-resource-simulation.js +1 -1
  87. package/lib/simulation/automation/automation-simulation-base.js +1 -1
  88. package/lib/simulation/automation/aws-api-simulation.js +1 -1
  89. package/lib/simulation/automation/branch-simulation.js +1 -1
  90. package/lib/simulation/automation/change-instance-state-simulation.js +1 -1
  91. package/lib/simulation/automation/copy-image-simulation.js +1 -1
  92. package/lib/simulation/automation/create-image-simulation.js +1 -1
  93. package/lib/simulation/automation/create-stack-simulation.js +1 -1
  94. package/lib/simulation/automation/create-tags-simulation.js +1 -1
  95. package/lib/simulation/automation/delete-image-simulation.js +1 -1
  96. package/lib/simulation/automation/delete-stack-simulation.js +1 -1
  97. package/lib/simulation/automation/execute-script-simulation.js +1 -1
  98. package/lib/simulation/automation/execute-state-machine-simulation.js +1 -1
  99. package/lib/simulation/automation/invoke-lambda-function-simulation.js +1 -1
  100. package/lib/simulation/automation/invoke-webhook-simulation.js +1 -1
  101. package/lib/simulation/automation/pause-simulation.js +1 -1
  102. package/lib/simulation/automation/run-command-simulation.js +1 -1
  103. package/lib/simulation/automation/run-instance-simulation.js +1 -1
  104. package/lib/simulation/automation/sleep-simulation.js +1 -1
  105. package/lib/simulation/automation/update-variable-simulation.js +1 -1
  106. package/lib/simulation/automation/wait-for-resource-simulation.js +1 -1
  107. package/lib/simulation/automation-step-simulation.js +1 -1
  108. package/lib/simulation/command/command-simulation-base.js +1 -1
  109. package/lib/simulation/command/ps-module-simulation.js +1 -1
  110. package/lib/simulation/command/run-powershell-script-simulation.js +1 -1
  111. package/lib/simulation/command/run-shell-script-simulation.js +1 -1
  112. package/lib/simulation/command-step-simulation.js +1 -1
  113. package/lib/simulation/document/automation-simulation.js +1 -1
  114. package/lib/simulation/document/command-simulation.js +1 -1
  115. package/lib/simulation/simulation.js +1 -1
  116. package/node_modules/@aws-sdk/checksums/package.json +3 -3
  117. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
  118. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +2 -0
  119. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +2 -0
  120. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +2 -0
  121. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  122. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  123. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  124. package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -6
  125. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/index.js +2 -2
  126. package/node_modules/@aws-sdk/client-cloudwatch/dist-es/schemas/schemas_0.js +1 -1
  127. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/DescribeAlarmsCommand.d.ts +1 -1
  128. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/PutLogAlarmCommand.d.ts +1 -1
  129. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/models/models_0.d.ts +1 -1
  130. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.browser.d.ts +2 -0
  131. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.d.ts +2 -0
  132. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.native.d.ts +2 -0
  133. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/models/models_0.d.ts +1 -1
  134. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  135. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  136. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  137. package/node_modules/@aws-sdk/client-cloudwatch/package.json +8 -8
  138. package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +1 -1
  139. package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.browser.d.ts +2 -0
  140. package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.d.ts +2 -0
  141. package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.native.d.ts +2 -0
  142. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  143. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  144. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  145. package/node_modules/@aws-sdk/client-ec2/package.json +8 -8
  146. package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +1 -1
  147. package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.browser.d.ts +2 -0
  148. package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.d.ts +2 -0
  149. package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.native.d.ts +2 -0
  150. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  151. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  152. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  153. package/node_modules/@aws-sdk/client-iam/package.json +7 -7
  154. package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +1 -1
  155. package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.browser.d.ts +2 -0
  156. package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.d.ts +2 -0
  157. package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.native.d.ts +2 -0
  158. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  159. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  160. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  161. package/node_modules/@aws-sdk/client-lambda/package.json +7 -7
  162. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
  163. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.browser.d.ts +2 -0
  164. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.d.ts +2 -0
  165. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.native.d.ts +2 -0
  166. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  167. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  168. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  169. package/node_modules/@aws-sdk/client-s3/package.json +11 -11
  170. package/node_modules/@aws-sdk/client-sns/dist-cjs/index.js +1 -1
  171. package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.browser.d.ts +2 -0
  172. package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.d.ts +2 -0
  173. package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.native.d.ts +2 -0
  174. package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  175. package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  176. package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  177. package/node_modules/@aws-sdk/client-sns/package.json +6 -6
  178. package/node_modules/@aws-sdk/client-sqs/dist-cjs/index.js +1 -1
  179. package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.browser.d.ts +2 -0
  180. package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.d.ts +2 -0
  181. package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.native.d.ts +2 -0
  182. package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  183. package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  184. package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  185. package/node_modules/@aws-sdk/client-sqs/package.json +8 -8
  186. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +8 -7
  187. package/node_modules/@aws-sdk/client-ssm/dist-es/schemas/schemas_0.js +7 -6
  188. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAutomationExecutionsCommand.d.ts +1 -0
  189. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAutomationStepExecutionsCommand.d.ts +1 -0
  190. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetAutomationExecutionCommand.d.ts +2 -0
  191. package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_0.d.ts +16 -1
  192. package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.browser.d.ts +2 -0
  193. package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.d.ts +2 -0
  194. package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.native.d.ts +2 -0
  195. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_0.d.ts +3 -0
  196. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  197. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  198. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  199. package/node_modules/@aws-sdk/client-ssm/package.json +6 -6
  200. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +66 -28
  201. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +133 -15
  202. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +7 -2
  203. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +28 -14
  204. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.js +1 -0
  205. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.js +3 -0
  206. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.js +8 -0
  207. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js +1 -1
  208. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +3 -3
  209. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.browser.js +9 -0
  210. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js +5 -1
  211. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js +1 -0
  212. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +12 -6
  213. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js +2 -1
  214. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js +1 -1
  215. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +10 -1
  216. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +10 -0
  217. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/detectBufferParsing.js +18 -0
  218. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.js +180 -0
  219. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/ByteJsonShapeSerializer.js +483 -0
  220. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +22 -3
  221. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/needsReviver.js +41 -0
  222. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +33 -13
  223. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/writeKey.js +3 -0
  224. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +4 -0
  225. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -1
  226. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +6 -0
  227. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +7 -0
  228. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +13 -0
  229. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -1
  230. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +22 -6
  231. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.browser.d.ts +11 -0
  232. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d.ts +7 -1
  233. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +4 -0
  234. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +22 -6
  235. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/index.d.ts +2 -1
  236. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
  237. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +29 -0
  238. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +57 -0
  239. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/needsReviver.d.ts +11 -0
  240. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +7 -2
  241. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/writeKey.d.ts +4 -0
  242. package/node_modules/@aws-sdk/core/dist-types/ts3.4/api-extractor-type-index.d.ts +7 -4
  243. package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +21 -61
  244. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +27 -13
  245. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +16 -4
  246. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +14 -5
  247. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +5 -16
  248. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +11 -4
  249. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +47 -107
  250. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +39 -112
  251. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +48 -107
  252. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +14 -13
  253. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +35 -25
  254. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +4 -14
  255. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +6 -2
  256. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +5 -2
  257. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +5 -2
  258. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +6 -2
  259. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +10 -2
  260. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +6 -2
  261. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +20 -16
  262. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +44 -21
  263. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/constants.d.ts +7 -7
  264. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/encode-features.d.ts +5 -2
  265. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/user-agent-middleware.d.ts +18 -18
  266. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/awsRegionConfig.d.ts +11 -8
  267. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +16 -14
  268. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.browser.d.ts +4 -1
  269. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +14 -7
  270. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.native.d.ts +4 -1
  271. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +7 -6
  272. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setFeature.d.ts +12 -6
  273. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +7 -6
  274. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/aws.d.ts +2 -2
  275. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.d.ts +5 -4
  276. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/parseArn.d.ts +7 -2
  277. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +38 -28
  278. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +638 -647
  279. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/isIpAddress.d.ts +1 -1
  280. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.d.ts +56 -29
  281. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveEndpoint.d.ts +1 -1
  282. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointError.d.ts +1 -1
  283. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointRuleObject.d.ts +1 -6
  284. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/ErrorRuleObject.d.ts +1 -1
  285. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -1
  286. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/TreeRuleObject.d.ts +1 -1
  287. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/shared.d.ts +1 -12
  288. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/configurations.d.ts +7 -4
  289. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +14 -7
  290. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +2 -7
  291. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +27 -18
  292. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +18 -13
  293. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/crt-availability.d.ts +8 -3
  294. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +28 -17
  295. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.d.ts +6 -2
  296. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/is-crt-available.d.ts +5 -2
  297. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +13 -4
  298. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +10 -9
  299. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +44 -37
  300. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +5 -2
  301. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +6 -0
  302. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +7 -0
  303. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +13 -0
  304. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +7 -23
  305. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +38 -13
  306. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +133 -56
  307. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +11 -0
  308. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +9 -24
  309. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +8 -1
  310. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts +6 -1
  311. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +8 -1
  312. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +8 -1
  313. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +26 -4
  314. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +4 -3
  315. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +9 -1
  316. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -5
  317. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +74 -40
  318. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +24 -9
  319. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +25 -36
  320. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/coercing-serializers.d.ts +18 -3
  321. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -5
  322. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +22 -27
  323. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +22 -21
  324. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +22 -21
  325. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +29 -49
  326. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +36 -49
  327. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +19 -13
  328. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +13 -13
  329. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +28 -18
  330. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +7 -1
  331. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
  332. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +29 -0
  333. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +57 -0
  334. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +21 -7
  335. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +15 -7
  336. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +11 -0
  337. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +22 -9
  338. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +27 -18
  339. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +49 -57
  340. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +13 -7
  341. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +16 -21
  342. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +4 -0
  343. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +31 -47
  344. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts +14 -17
  345. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts +20 -15
  346. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -21
  347. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +13 -4
  348. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts +6 -1
  349. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +3 -3
  350. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-arn-parser/arn.d.ts +32 -14
  351. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +2 -4
  352. package/node_modules/@aws-sdk/core/package.json +11 -6
  353. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  354. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  355. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  356. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  357. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  358. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  359. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  360. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  361. package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +4 -4
  362. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +4 -4
  363. package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +2 -2
  364. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  365. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  366. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  367. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  368. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  369. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -0
  370. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +2 -0
  371. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -0
  372. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +2 -0
  373. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +2 -0
  374. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +2 -0
  375. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +2 -0
  376. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +2 -0
  377. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +2 -0
  378. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -0
  379. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +2 -0
  380. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -0
  381. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +2 -0
  382. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +2 -0
  383. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +2 -0
  384. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -0
  385. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +2 -0
  386. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -0
  387. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +2 -0
  388. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +2 -0
  389. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +2 -0
  390. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +2 -0
  391. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +2 -0
  392. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +2 -0
  393. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -0
  394. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +2 -0
  395. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -0
  396. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +2 -0
  397. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +2 -0
  398. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +2 -0
  399. package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
  400. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  401. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  402. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +14 -4
  403. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +14 -4
  404. package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
  405. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1 -1
  406. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +34 -11
  407. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +34 -11
  408. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1 -0
  409. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +1 -0
  410. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +1 -0
  411. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -2
  412. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +2 -2
  413. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -2
  414. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +1 -1
  415. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +34 -11
  416. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +1 -0
  417. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js +1 -0
  418. package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +2 -2
  419. package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +10 -2
  420. package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/constants.d.ts +1 -0
  421. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +10 -2
  422. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/constants.d.ts +1 -0
  423. package/node_modules/@smithy/core/package.json +1 -1
  424. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  425. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  426. package/node_modules/@smithy/middleware-compression/package.json +2 -2
  427. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  428. package/node_modules/@smithy/signature-v4/package.json +2 -2
  429. package/package.json +10 -10
  430. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +0 -135
  431. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -27
  432. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -17
@@ -281,12 +281,18 @@ function jsonReviver(key, value, context) {
281
281
  if (context?.source) {
282
282
  const numericString = context.source;
283
283
  if (typeof value === "number") {
284
- if (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER || numericString !== String(value)) {
285
- const isFractional = numericString.includes(".");
286
- if (isFractional) {
284
+ const inSafeRange = value <= Number.MAX_SAFE_INTEGER && value >= Number.MIN_SAFE_INTEGER;
285
+ if (!inSafeRange || numericString !== String(value)) {
286
+ if (inSafeRange && /[eE]/.test(numericString) && String(Number(numericString)) === String(value)) {
287
+ return value;
288
+ }
289
+ if (isFractionalNumeric(numericString)) {
287
290
  return new NumericValue(numericString, "bigDecimal");
288
291
  }
289
292
  else {
293
+ if (/[eE]/.test(numericString)) {
294
+ return BigInt(Number(numericString));
295
+ }
290
296
  return BigInt(numericString);
291
297
  }
292
298
  }
@@ -294,25 +300,114 @@ function jsonReviver(key, value, context) {
294
300
  }
295
301
  return value;
296
302
  }
303
+ function isFractionalNumeric(s) {
304
+ const dotIndex = s.indexOf(".");
305
+ if (dotIndex === -1) {
306
+ return false;
307
+ }
308
+ const eIndex = s.search(/[eE]/);
309
+ if (eIndex === -1) {
310
+ return true;
311
+ }
312
+ const fracDigits = eIndex - dotIndex - 1;
313
+ const exp = parseInt(s.slice(eIndex + 1), 10);
314
+ return exp < fracDigits;
315
+ }
316
+
317
+ const REVIVER_SYMBOL = Symbol.for("@aws-sdk/reviver");
318
+ function needsReviver(schema) {
319
+ const ns = NormalizedSchema.of(schema);
320
+ const raw = ns.getSchema();
321
+ if (Array.isArray(raw) && ns.isStructSchema()) {
322
+ if (REVIVER_SYMBOL in raw) {
323
+ return raw[REVIVER_SYMBOL];
324
+ }
325
+ const result = _check(ns, new Set());
326
+ raw[REVIVER_SYMBOL] = result;
327
+ return result;
328
+ }
329
+ return _check(ns, new Set());
330
+ }
331
+ function _check(ns, seen) {
332
+ const raw = ns.getSchema();
333
+ if (seen.has(raw)) {
334
+ return false;
335
+ }
336
+ seen.add(raw);
337
+ if (ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
338
+ return true;
339
+ }
340
+ if (ns.isStructSchema()) {
341
+ for (const [, memberSchema] of ns.structIterator()) {
342
+ if (_check(memberSchema, seen)) {
343
+ return true;
344
+ }
345
+ }
346
+ }
347
+ else if (ns.isListSchema() || ns.isMapSchema()) {
348
+ if (_check(ns.getValueSchema(), seen)) {
349
+ return true;
350
+ }
351
+ }
352
+ else if (ns.isDocumentSchema()) {
353
+ return true;
354
+ }
355
+ return false;
356
+ }
297
357
 
298
358
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => (context?.utf8Encoder ?? toUtf8)(body));
299
359
 
300
- const parseJsonBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
301
- if (encoded.length) {
360
+ let canParseBuffer;
361
+ function detectBufferParsing() {
362
+ if (canParseBuffer === undefined) {
302
363
  try {
303
- return JSON.parse(encoded);
364
+ if (typeof Buffer !== "function") {
365
+ canParseBuffer = false;
366
+ }
367
+ else {
368
+ const result = JSON.parse(Buffer.from([0x7b, 0x7d]));
369
+ canParseBuffer = result !== null && typeof result === "object";
370
+ }
304
371
  }
305
- catch (e) {
306
- if (e?.name === "SyntaxError") {
307
- Object.defineProperty(e, "$responseBodyText", {
308
- value: encoded,
309
- });
372
+ catch {
373
+ canParseBuffer = false;
374
+ }
375
+ }
376
+ return canParseBuffer;
377
+ }
378
+
379
+ async function parseJsonBody(streamBody, context, schema) {
380
+ let parsingInput;
381
+ if (detectBufferParsing() && typeof streamBody?.[Symbol.asyncIterator] === "function") {
382
+ const buffer = await collectBody(streamBody, context);
383
+ if (typeof Buffer === "function") {
384
+ if (Buffer.isBuffer(buffer)) {
385
+ parsingInput = buffer;
386
+ }
387
+ else {
388
+ parsingInput = Buffer.from(buffer.buffer, buffer.byteOffset, buffer.byteLength);
310
389
  }
311
- throw e;
312
390
  }
313
391
  }
314
- return {};
315
- });
392
+ if (!parsingInput) {
393
+ parsingInput = await collectBodyString(streamBody, context);
394
+ }
395
+ if (parsingInput.length === 0) {
396
+ return {};
397
+ }
398
+ const reviver = schema && needsReviver(schema) ? jsonReviver : undefined;
399
+ try {
400
+ return JSON.parse(parsingInput, reviver);
401
+ }
402
+ catch (e) {
403
+ if (e?.name === "SyntaxError") {
404
+ Object.defineProperty(e, "$responseBodyText", {
405
+ value: typeof parsingInput === "string" ? parsingInput : parsingInput.toString("utf8"),
406
+ });
407
+ }
408
+ throw e;
409
+ }
410
+ }
316
411
  const parseJsonErrorBody = async (errorBody, context) => {
317
412
  const value = await parseJsonBody(errorBody, context);
318
413
  value.message = value.message ?? value.Message;
@@ -366,6 +461,10 @@ const loadErrorCode = ({ headers }, data, order) => {
366
461
  }
367
462
  };
368
463
 
464
+ function writeKey(obj) {
465
+ Object.defineProperty(obj, "__proto__", { value: undefined, writable: true, enumerable: true, configurable: true });
466
+ }
467
+
369
468
  class JsonShapeDeserializer extends SerdeContextConfig {
370
469
  settings;
371
470
  constructor(settings) {
@@ -373,7 +472,8 @@ class JsonShapeDeserializer extends SerdeContextConfig {
373
472
  this.settings = settings;
374
473
  }
375
474
  async read(schema, data) {
376
- return this._read(schema, typeof data === "string" ? JSON.parse(data, jsonReviver) : await parseJsonBody(data, this.serdeContext));
475
+ const reviver = needsReviver(schema) ? jsonReviver : undefined;
476
+ return this._read(schema, typeof data === "string" ? JSON.parse(data, reviver) : await parseJsonBody(data, this.serdeContext, schema));
377
477
  }
378
478
  readObject(schema, data) {
379
479
  return this._read(schema, data);
@@ -434,6 +534,9 @@ class JsonShapeDeserializer extends SerdeContextConfig {
434
534
  const mapMember = ns.getValueSchema();
435
535
  const out = {};
436
536
  for (const _k in value) {
537
+ if (_k === "__proto__") {
538
+ writeKey(out);
539
+ }
437
540
  out[_k] = this._read(mapMember, value[_k]);
438
541
  }
439
542
  return out;
@@ -492,6 +595,9 @@ class JsonShapeDeserializer extends SerdeContextConfig {
492
595
  if (isObject) {
493
596
  const out = Array.isArray(value) ? [] : {};
494
597
  for (const k in value) {
598
+ if (k === "__proto__") {
599
+ writeKey(out);
600
+ }
495
601
  const v = value[k];
496
602
  if (v instanceof NumericValue) {
497
603
  out[k] = v;
@@ -617,6 +723,9 @@ class JsonShapeSerializer extends SerdeContextConfig {
617
723
  const { $unknown } = record;
618
724
  if (Array.isArray($unknown)) {
619
725
  const [k, v] = $unknown;
726
+ if (k === "__proto__") {
727
+ writeKey(out);
728
+ }
620
729
  out[k] = this._write(15, v);
621
730
  }
622
731
  }
@@ -649,6 +758,9 @@ class JsonShapeSerializer extends SerdeContextConfig {
649
758
  for (const _k in value) {
650
759
  const _v = value[_k];
651
760
  if (sparse || _v != null) {
761
+ if (_k === "__proto__") {
762
+ writeKey(out);
763
+ }
652
764
  out[_k] = this._write(mapMember, _v);
653
765
  }
654
766
  }
@@ -714,6 +826,9 @@ class JsonShapeSerializer extends SerdeContextConfig {
714
826
  const out = Array.isArray(value) ? [] : {};
715
827
  for (const k in value) {
716
828
  const v = value[k];
829
+ if (k === "__proto__") {
830
+ writeKey(out);
831
+ }
717
832
  if (v instanceof NumericValue) {
718
833
  this.useReplacer = true;
719
834
  out[k] = v;
@@ -1037,6 +1152,9 @@ class XmlShapeDeserializer extends SerdeContextConfig {
1037
1152
  for (const entry of entries) {
1038
1153
  const key = entry[keyProperty];
1039
1154
  const value = entry[valueProperty];
1155
+ if (key === "__proto__") {
1156
+ writeKey(buffer);
1157
+ }
1040
1158
  buffer[key] = this.readSchema(memberNs, value);
1041
1159
  }
1042
1160
  return buffer;
@@ -10,9 +10,14 @@ export class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer {
10
10
  const configResolvedSigningRegionSet = await config.sigv4aSigningRegionSet?.();
11
11
  const multiRegionOverride = (configResolvedSigningRegionSet ??
12
12
  signingRegionSet ?? [signingRegion]).join(",");
13
- signingProperties._preRequestSystemClockOffset = config.systemClockOffset;
13
+ const noSkewCorrection = (await config.disableClockSkewCorrection?.()) === true;
14
+ signingProperties._disableClockSkewCorrection = noSkewCorrection;
15
+ if (!noSkewCorrection) {
16
+ signingProperties._preRequestSystemClockOffset = config.systemClockOffset;
17
+ signingProperties._requestSentAt = Date.now();
18
+ }
14
19
  const signedRequest = await signer.sign(httpRequest, {
15
- signingDate: getSkewCorrectedDate(config.systemClockOffset),
20
+ signingDate: noSkewCorrection ? new Date() : getSkewCorrectedDate(config.systemClockOffset),
16
21
  signingRegion: multiRegionOverride,
17
22
  signingService: signingName,
18
23
  });
@@ -1,5 +1,5 @@
1
1
  import { HttpRequest } from "@smithy/core/protocols";
2
- import { getDateHeader, getSkewCorrectedDate, getUpdatedSystemClockOffset } from "../utils";
2
+ import { getAgeHeader, getDateHeader, getSkewCorrectedDate, getUpdatedSystemClockOffset } from "../utils";
3
3
  const throwSigningPropertyError = (name, property) => {
4
4
  if (!property) {
5
5
  throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);
@@ -39,9 +39,14 @@ export class AwsSdkSigV4Signer {
39
39
  signingName = second?.signingName ?? signingName;
40
40
  }
41
41
  }
42
- signingProperties._preRequestSystemClockOffset = config.systemClockOffset;
42
+ const noSkewCorrection = (await config.disableClockSkewCorrection?.()) === true;
43
+ signingProperties._disableClockSkewCorrection = noSkewCorrection;
44
+ if (!noSkewCorrection) {
45
+ signingProperties._preRequestSystemClockOffset = config.systemClockOffset;
46
+ signingProperties._requestSentAt = Date.now();
47
+ }
43
48
  const signedRequest = await signer.sign(httpRequest, {
44
- signingDate: getSkewCorrectedDate(config.systemClockOffset),
49
+ signingDate: noSkewCorrection ? new Date() : getSkewCorrectedDate(config.systemClockOffset),
45
50
  signingRegion: signingRegion,
46
51
  signingService: signingName,
47
52
  });
@@ -50,27 +55,36 @@ export class AwsSdkSigV4Signer {
50
55
  errorHandler(signingProperties) {
51
56
  return (error) => {
52
57
  const errorException = error;
53
- const serverTime = errorException.ServerTime ?? getDateHeader(errorException.$response);
54
- if (serverTime) {
55
- const config = throwSigningPropertyError("config", signingProperties.config);
56
- const preRequestOffset = signingProperties._preRequestSystemClockOffset;
57
- const newOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset);
58
- const isLocalCorrection = newOffset !== config.systemClockOffset;
59
- const isConcurrentCorrection = preRequestOffset !== undefined && preRequestOffset !== newOffset;
60
- const clockSkewCorrected = isLocalCorrection || isConcurrentCorrection;
61
- if (clockSkewCorrected && errorException.$metadata) {
58
+ if (!signingProperties._disableClockSkewCorrection) {
59
+ const serverTime = errorException.ServerTime ?? getDateHeader(errorException.$response);
60
+ if (serverTime) {
61
+ const config = throwSigningPropertyError("config", signingProperties.config);
62
+ const preRequestOffset = signingProperties._preRequestSystemClockOffset;
63
+ const timeRequestSent = signingProperties._requestSentAt;
64
+ const ageHeader = getAgeHeader(errorException.$response);
65
+ const newOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset, timeRequestSent, ageHeader);
62
66
  config.systemClockOffset = newOffset;
63
- errorException.$metadata.clockSkewCorrected = true;
67
+ const skewExceedsThreshold = Math.abs(newOffset) >= 240_000;
68
+ const isLocalCorrection = newOffset !== preRequestOffset;
69
+ const isConcurrentCorrection = preRequestOffset !== undefined && preRequestOffset !== newOffset;
70
+ if (skewExceedsThreshold && (isLocalCorrection || isConcurrentCorrection) && errorException.$metadata) {
71
+ errorException.$metadata.clockSkewCorrected = true;
72
+ }
64
73
  }
65
74
  }
66
75
  throw error;
67
76
  };
68
77
  }
69
78
  successHandler(httpResponse, signingProperties) {
79
+ if (signingProperties._disableClockSkewCorrection) {
80
+ return;
81
+ }
70
82
  const dateHeader = getDateHeader(httpResponse);
71
83
  if (dateHeader) {
72
84
  const config = throwSigningPropertyError("config", signingProperties.config);
73
- config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset);
85
+ const timeRequestSent = signingProperties._requestSentAt;
86
+ const ageHeader = getAgeHeader(httpResponse);
87
+ config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset, timeRequestSent, ageHeader);
74
88
  }
75
89
  }
76
90
  }
@@ -0,0 +1 @@
1
+ export const DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION = false;
@@ -0,0 +1,3 @@
1
+ import { loadConfig } from "@smithy/core/config";
2
+ import { NODE_DISABLE_CLOCK_SKEW_CORRECTION_CONFIG_OPTIONS } from "./clock-skew-node-config";
3
+ export const DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION = loadConfig(NODE_DISABLE_CLOCK_SKEW_CORRECTION_CONFIG_OPTIONS);
@@ -0,0 +1,8 @@
1
+ import { booleanSelector, SelectorType } from "@smithy/core/config";
2
+ export const ENV_DISABLE_CLOCK_SKEW_CORRECTION = "AWS_DISABLE_CLOCK_SKEW_CORRECTION";
3
+ export const CONFIG_DISABLE_CLOCK_SKEW_CORRECTION = "disable_clock_skew_correction";
4
+ export const NODE_DISABLE_CLOCK_SKEW_CORRECTION_CONFIG_OPTIONS = {
5
+ environmentVariableSelector: (env) => booleanSelector(env, ENV_DISABLE_CLOCK_SKEW_CORRECTION, SelectorType.ENV),
6
+ configFileSelector: (profile) => booleanSelector(profile, CONFIG_DISABLE_CLOCK_SKEW_CORRECTION, SelectorType.CONFIG),
7
+ default: false,
8
+ };
@@ -2,4 +2,4 @@ export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties } from
2
2
  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
- export { resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config } from "./resolveAwsSdkSigV4Config";
5
+ export { bindResolveAwsSdkSigV4Config } from "./resolveAwsSdkSigV4Config";
@@ -1,7 +1,7 @@
1
1
  import { setCredentialFeature } from "@aws-sdk/core/client";
2
2
  import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider, normalizeProvider, } from "@smithy/core";
3
3
  import { SignatureV4 } from "@smithy/signature-v4";
4
- export const resolveAwsSdkSigV4Config = (config) => {
4
+ export const bindResolveAwsSdkSigV4Config = (defaultDisableClockSkewCorrection) => (config) => {
5
5
  let inputCredentials = config.credentials;
6
6
  let isUserSupplied = !!config.credentials;
7
7
  let resolvedCredentials = undefined;
@@ -99,11 +99,11 @@ export const resolveAwsSdkSigV4Config = (config) => {
99
99
  systemClockOffset,
100
100
  signingEscapePath,
101
101
  signer,
102
+ disableClockSkewCorrection: normalizeProvider(config.disableClockSkewCorrection ?? defaultDisableClockSkewCorrection),
102
103
  });
103
104
  return resolvedConfig;
104
105
  };
105
- export const resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;
106
- function normalizeCredentialProvider(config, { credentials, credentialDefaultProvider, }) {
106
+ function normalizeCredentialProvider(config, { credentials, credentialDefaultProvider }) {
107
107
  let credentialsProvider;
108
108
  if (credentials) {
109
109
  if (!credentials?.memoized) {
@@ -0,0 +1,9 @@
1
+ const no = Symbol.for("node-only");
2
+ export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, resolveAwsSdkSigV4AConfig, } from "./aws_sdk";
3
+ export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey";
4
+ export const NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = no;
5
+ export const NODE_SIGV4A_CONFIG_OPTIONS = no;
6
+ import { bindResolveAwsSdkSigV4Config } from "./aws_sdk";
7
+ import { DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION } from "./aws_sdk/clock-skew-defaults.browser";
8
+ export const resolveAwsSdkSigV4Config = bindResolveAwsSdkSigV4Config(DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION);
9
+ export const resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;
@@ -1,2 +1,6 @@
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 { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey";
3
+ import { bindResolveAwsSdkSigV4Config } from "./aws_sdk";
4
+ import { DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION } from "./aws_sdk/clock-skew-defaults";
5
+ export const resolveAwsSdkSigV4Config = bindResolveAwsSdkSigV4Config(DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION);
6
+ export const resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;
@@ -1,2 +1,3 @@
1
1
  import { HttpResponse } from "@smithy/core/protocols";
2
2
  export const getDateHeader = (response) => HttpResponse.isInstance(response) ? (response.headers?.date ?? response.headers?.Date) : undefined;
3
+ export const getAgeHeader = (response) => HttpResponse.isInstance(response) ? (response.headers?.age ?? response.headers?.Age) : undefined;
@@ -1,8 +1,14 @@
1
- import { isClockSkewed } from "./isClockSkewed";
2
- export const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {
3
- const clockTimeInMs = Date.parse(clockTime);
4
- if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {
5
- return clockTimeInMs - Date.now();
1
+ export const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset, timeRequestSent, ageHeader) => {
2
+ if (ageHeader !== undefined) {
3
+ return currentSystemClockOffset;
6
4
  }
7
- return currentSystemClockOffset;
5
+ const serverTime = Date.parse(clockTime);
6
+ const timeResponseReceived = Date.now();
7
+ if (timeRequestSent !== undefined && timeResponseReceived - timeRequestSent > 900_000) {
8
+ return currentSystemClockOffset;
9
+ }
10
+ const candidateSkew = timeRequestSent !== undefined
11
+ ? serverTime - (timeRequestSent + timeResponseReceived) / 2
12
+ : serverTime - timeResponseReceived;
13
+ return candidateSkew;
8
14
  };
@@ -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,2 +1,2 @@
1
1
  import { getSkewCorrectedDate } from "./getSkewCorrectedDate";
2
- export const isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 300000;
2
+ export const isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 240000;
@@ -5,7 +5,9 @@ import { fromBase64 } from "@smithy/core/serde";
5
5
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
6
6
  import { UnionSerde } from "../UnionSerde";
7
7
  import { jsonReviver } from "./jsonReviver";
8
+ import { needsReviver } from "./needsReviver";
8
9
  import { parseJsonBody } from "./parseJsonBody";
10
+ import { writeKey } from "../writeKey";
9
11
  export class JsonShapeDeserializer extends SerdeContextConfig {
10
12
  settings;
11
13
  constructor(settings) {
@@ -13,7 +15,8 @@ export class JsonShapeDeserializer extends SerdeContextConfig {
13
15
  this.settings = settings;
14
16
  }
15
17
  async read(schema, data) {
16
- return this._read(schema, typeof data === "string" ? JSON.parse(data, jsonReviver) : await parseJsonBody(data, this.serdeContext));
18
+ const reviver = needsReviver(schema) ? jsonReviver : undefined;
19
+ return this._read(schema, typeof data === "string" ? JSON.parse(data, reviver) : await parseJsonBody(data, this.serdeContext, schema));
17
20
  }
18
21
  readObject(schema, data) {
19
22
  return this._read(schema, data);
@@ -74,6 +77,9 @@ export class JsonShapeDeserializer extends SerdeContextConfig {
74
77
  const mapMember = ns.getValueSchema();
75
78
  const out = {};
76
79
  for (const _k in value) {
80
+ if (_k === "__proto__") {
81
+ writeKey(out);
82
+ }
77
83
  out[_k] = this._read(mapMember, value[_k]);
78
84
  }
79
85
  return out;
@@ -132,6 +138,9 @@ export class JsonShapeDeserializer extends SerdeContextConfig {
132
138
  if (isObject) {
133
139
  const out = Array.isArray(value) ? [] : {};
134
140
  for (const k in value) {
141
+ if (k === "__proto__") {
142
+ writeKey(out);
143
+ }
135
144
  const v = value[k];
136
145
  if (v instanceof NumericValue) {
137
146
  out[k] = v;
@@ -3,6 +3,7 @@ import { NormalizedSchema } from "@smithy/core/schema";
3
3
  import { dateToUtcString, generateIdempotencyToken, LazyJsonString, NumericValue, toBase64 } from "@smithy/core/serde";
4
4
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
5
5
  import { JsonReplacer } from "./jsonReplacer";
6
+ import { writeKey } from "../writeKey";
6
7
  export class JsonShapeSerializer extends SerdeContextConfig {
7
8
  settings;
8
9
  buffer;
@@ -64,6 +65,9 @@ export class JsonShapeSerializer extends SerdeContextConfig {
64
65
  const { $unknown } = record;
65
66
  if (Array.isArray($unknown)) {
66
67
  const [k, v] = $unknown;
68
+ if (k === "__proto__") {
69
+ writeKey(out);
70
+ }
67
71
  out[k] = this._write(15, v);
68
72
  }
69
73
  }
@@ -96,6 +100,9 @@ export class JsonShapeSerializer extends SerdeContextConfig {
96
100
  for (const _k in value) {
97
101
  const _v = value[_k];
98
102
  if (sparse || _v != null) {
103
+ if (_k === "__proto__") {
104
+ writeKey(out);
105
+ }
99
106
  out[_k] = this._write(mapMember, _v);
100
107
  }
101
108
  }
@@ -161,6 +168,9 @@ export class JsonShapeSerializer extends SerdeContextConfig {
161
168
  const out = Array.isArray(value) ? [] : {};
162
169
  for (const k in value) {
163
170
  const v = value[k];
171
+ if (k === "__proto__") {
172
+ writeKey(out);
173
+ }
164
174
  if (v instanceof NumericValue) {
165
175
  this.useReplacer = true;
166
176
  out[k] = v;
@@ -0,0 +1,18 @@
1
+ let canParseBuffer;
2
+ export function detectBufferParsing() {
3
+ if (canParseBuffer === undefined) {
4
+ try {
5
+ if (typeof Buffer !== "function") {
6
+ canParseBuffer = false;
7
+ }
8
+ else {
9
+ const result = JSON.parse(Buffer.from([0x7b, 0x7d]));
10
+ canParseBuffer = result !== null && typeof result === "object";
11
+ }
12
+ }
13
+ catch {
14
+ canParseBuffer = false;
15
+ }
16
+ }
17
+ return canParseBuffer;
18
+ }