@cdklabs/cdk-ssm-documents 0.0.72 → 0.0.73

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 (459) hide show
  1. package/.jsii +12 -12
  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 +2 -1
  118. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/enums.js +1 -0
  119. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeChangeSetCommand.d.ts +1 -1
  120. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/enums.d.ts +1 -0
  121. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +7 -3
  122. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/enums.d.ts +1 -0
  123. package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -6
  124. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/index.js +1 -1
  125. package/node_modules/@aws-sdk/client-cloudwatch/package.json +8 -8
  126. package/node_modules/@aws-sdk/client-ec2/README.md +21 -0
  127. package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +113 -11
  128. package/node_modules/@aws-sdk/client-ec2/dist-es/EC2.js +8 -0
  129. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/CreateTransitGatewayPolicyTableEntryCommand.js +4 -0
  130. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/DeleteTransitGatewayPolicyTableEntryCommand.js +4 -0
  131. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/ModifyTransitGatewayPolicyTableEntryCommand.js +4 -0
  132. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/index.js +3 -0
  133. package/node_modules/@aws-sdk/client-ec2/dist-es/models/enums.js +4 -0
  134. package/node_modules/@aws-sdk/client-ec2/dist-es/pagination/GetTransitGatewayPolicyTableEntriesPaginator.js +4 -0
  135. package/node_modules/@aws-sdk/client-ec2/dist-es/pagination/index.js +1 -0
  136. package/node_modules/@aws-sdk/client-ec2/dist-es/schemas/schemas_0.js +77 -10
  137. package/node_modules/@aws-sdk/client-ec2/dist-types/EC2.d.ts +28 -0
  138. package/node_modules/@aws-sdk/client-ec2/dist-types/EC2Client.d.ts +5 -2
  139. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateTransitGatewayPolicyTableEntryCommand.d.ts +100 -0
  140. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteRouteCommand.d.ts +1 -1
  141. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteRouteServerCommand.d.ts +1 -1
  142. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteRouteServerEndpointCommand.d.ts +1 -1
  143. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteRouteServerPeerCommand.d.ts +1 -1
  144. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteTransitGatewayPolicyTableEntryCommand.d.ts +88 -0
  145. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeImageUsageReportEntriesCommand.d.ts +1 -1
  146. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeImageUsageReportsCommand.d.ts +1 -2
  147. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeImagesCommand.d.ts +1 -1
  148. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeTransitGatewayAttachmentsCommand.d.ts +1 -0
  149. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetActiveVpnTunnelStatusCommand.d.ts +1 -1
  150. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetAllowedImagesSettingsCommand.d.ts +1 -1
  151. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetAssociatedEnclaveCertificateIamRolesCommand.d.ts +1 -2
  152. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetTransitGatewayPolicyTableEntriesCommand.d.ts +2 -0
  153. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyIpamCommand.d.ts +2 -1
  154. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyIpamPolicyAllocationRulesCommand.d.ts +1 -1
  155. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyIpamPoolCommand.d.ts +1 -1
  156. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyTransitGatewayPolicyTableEntryCommand.d.ts +100 -0
  157. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/UnassignPrivateNatGatewayAddressCommand.d.ts +1 -1
  158. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/UnlockSnapshotCommand.d.ts +1 -1
  159. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/UnmonitorInstancesCommand.d.ts +1 -1
  160. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/UpdateCapacityManagerMonitoredTagKeysCommand.d.ts +1 -1
  161. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/index.d.ts +3 -0
  162. package/node_modules/@aws-sdk/client-ec2/dist-types/models/enums.d.ts +12 -0
  163. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_2.d.ts +175 -116
  164. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_3.d.ts +148 -802
  165. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_4.d.ts +803 -350
  166. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_5.d.ts +355 -262
  167. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_6.d.ts +305 -227
  168. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_7.d.ts +200 -150
  169. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_8.d.ts +145 -1
  170. package/node_modules/@aws-sdk/client-ec2/dist-types/pagination/GetTransitGatewayPolicyTableEntriesPaginator.d.ts +7 -0
  171. package/node_modules/@aws-sdk/client-ec2/dist-types/pagination/index.d.ts +1 -0
  172. package/node_modules/@aws-sdk/client-ec2/dist-types/schemas/schemas_0.d.ts +11 -0
  173. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2.d.ts +58 -0
  174. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2Client.d.ts +18 -0
  175. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateTransitGatewayPolicyTableEntryCommand.d.ts +42 -0
  176. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteRouteCommand.d.ts +1 -1
  177. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteRouteServerCommand.d.ts +1 -1
  178. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteRouteServerEndpointCommand.d.ts +1 -1
  179. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteRouteServerPeerCommand.d.ts +1 -1
  180. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteTransitGatewayPolicyTableEntryCommand.d.ts +42 -0
  181. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeImageUsageReportEntriesCommand.d.ts +1 -1
  182. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeImageUsageReportsCommand.d.ts +4 -2
  183. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeImagesCommand.d.ts +1 -1
  184. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetActiveVpnTunnelStatusCommand.d.ts +1 -1
  185. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetAllowedImagesSettingsCommand.d.ts +1 -1
  186. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetAssociatedEnclaveCertificateIamRolesCommand.d.ts +4 -2
  187. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyIpamCommand.d.ts +2 -1
  188. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyIpamPolicyAllocationRulesCommand.d.ts +1 -1
  189. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyIpamPoolCommand.d.ts +1 -1
  190. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyTransitGatewayPolicyTableEntryCommand.d.ts +42 -0
  191. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/UnassignPrivateNatGatewayAddressCommand.d.ts +1 -1
  192. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/UnlockSnapshotCommand.d.ts +1 -1
  193. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/UnmonitorInstancesCommand.d.ts +1 -1
  194. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/UpdateCapacityManagerMonitoredTagKeysCommand.d.ts +1 -1
  195. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/index.d.ts +3 -0
  196. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/enums.d.ts +6 -0
  197. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_2.d.ts +41 -30
  198. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_3.d.ts +40 -105
  199. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_4.d.ts +98 -61
  200. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_5.d.ts +68 -46
  201. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_6.d.ts +43 -50
  202. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_7.d.ts +49 -36
  203. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_8.d.ts +36 -1
  204. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/pagination/GetTransitGatewayPolicyTableEntriesPaginator.d.ts +11 -0
  205. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/pagination/index.d.ts +1 -0
  206. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/schemas/schemas_0.d.ts +11 -0
  207. package/node_modules/@aws-sdk/client-ec2/package.json +8 -8
  208. package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +58 -8
  209. package/node_modules/@aws-sdk/client-iam/dist-es/models/enums.js +13 -0
  210. package/node_modules/@aws-sdk/client-iam/dist-es/schemas/schemas_0.js +39 -7
  211. package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetContextKeysForPrincipalPolicyCommand.d.ts +4 -1
  212. package/node_modules/@aws-sdk/client-iam/dist-types/commands/SimulateCustomPolicyCommand.d.ts +11 -3
  213. package/node_modules/@aws-sdk/client-iam/dist-types/commands/SimulatePrincipalPolicyCommand.d.ts +19 -3
  214. package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateDelegationRequestCommand.d.ts +1 -1
  215. package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateGroupCommand.d.ts +1 -1
  216. package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateLoginProfileCommand.d.ts +1 -1
  217. package/node_modules/@aws-sdk/client-iam/dist-types/models/enums.d.ts +29 -0
  218. package/node_modules/@aws-sdk/client-iam/dist-types/models/models_0.d.ts +201 -104
  219. package/node_modules/@aws-sdk/client-iam/dist-types/models/models_1.d.ts +86 -0
  220. package/node_modules/@aws-sdk/client-iam/dist-types/schemas/schemas_0.d.ts +4 -1
  221. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateDelegationRequestCommand.d.ts +1 -1
  222. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateGroupCommand.d.ts +1 -1
  223. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateLoginProfileCommand.d.ts +1 -1
  224. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/enums.d.ts +16 -0
  225. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/models_0.d.ts +49 -14
  226. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/models_1.d.ts +14 -0
  227. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -1
  228. package/node_modules/@aws-sdk/client-iam/package.json +7 -7
  229. package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +39 -37
  230. package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +38 -36
  231. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateFunctionCommand.d.ts +2 -2
  232. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionCommand.d.ts +1 -1
  233. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionConfigurationCommand.d.ts +1 -1
  234. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetLayerVersionByArnCommand.d.ts +1 -1
  235. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetLayerVersionCommand.d.ts +1 -1
  236. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListFunctionsCommand.d.ts +1 -1
  237. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListLayerVersionsCommand.d.ts +2 -2
  238. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListLayersCommand.d.ts +2 -2
  239. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListVersionsByFunctionCommand.d.ts +1 -1
  240. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishLayerVersionCommand.d.ts +2 -2
  241. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishVersionCommand.d.ts +1 -1
  242. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionCodeCommand.d.ts +1 -1
  243. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +2 -2
  244. package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +57 -55
  245. package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +2292 -2292
  246. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +41 -39
  247. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +260 -260
  248. package/node_modules/@aws-sdk/client-lambda/package.json +7 -7
  249. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
  250. package/node_modules/@aws-sdk/client-s3/package.json +11 -11
  251. package/node_modules/@aws-sdk/client-sns/dist-cjs/index.js +1 -1
  252. package/node_modules/@aws-sdk/client-sns/package.json +6 -6
  253. package/node_modules/@aws-sdk/client-sqs/dist-cjs/index.js +1 -1
  254. package/node_modules/@aws-sdk/client-sqs/package.json +8 -8
  255. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +1 -1
  256. package/node_modules/@aws-sdk/client-ssm/package.json +6 -6
  257. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +856 -57
  258. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +8 -5
  259. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -1
  260. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -1
  261. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonSettings.js +1 -0
  262. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonCodec.js → codec-v1/JsonCodec.js} +1 -1
  263. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +1 -0
  264. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeDeserializer.js → codec-v1/JsonShapeDeserializer.js} +6 -6
  265. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeSerializer.js → codec-v1/JsonShapeSerializer.js} +3 -3
  266. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +103 -0
  267. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +20 -0
  268. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{experimental/BufferJsonShapeDeserializer.js → codec-v2/JsonShapeDeserializer2.js} +38 -18
  269. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{experimental/ByteJsonShapeSerializer.js → codec-v2/JsonShapeSerializer2.js} +66 -60
  270. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +9 -6
  271. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
  272. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
  273. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
  274. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
  275. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +7 -0
  276. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonCodec.d.ts → codec-v1/JsonCodec.d.ts} +4 -8
  277. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +7 -0
  278. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeDeserializer.d.ts → codec-v1/JsonShapeDeserializer.d.ts} +3 -2
  279. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeSerializer.d.ts → codec-v1/JsonShapeSerializer.d.ts} +3 -2
  280. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
  281. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -0
  282. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{experimental/BufferJsonShapeDeserializer.d.ts → codec-v2/JsonShapeDeserializer2.d.ts} +4 -3
  283. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{experimental/ByteJsonShapeSerializer.d.ts → codec-v2/JsonShapeSerializer2.d.ts} +19 -16
  284. package/node_modules/@aws-sdk/core/dist-types/ts3.4/api-extractor-type-index.d.ts +4 -7
  285. package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +61 -21
  286. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +13 -27
  287. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +4 -16
  288. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +5 -14
  289. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +16 -5
  290. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +4 -11
  291. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +107 -47
  292. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +112 -39
  293. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +107 -48
  294. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +13 -14
  295. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +25 -35
  296. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +14 -4
  297. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +2 -6
  298. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +2 -5
  299. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +2 -5
  300. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +2 -6
  301. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +2 -10
  302. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +2 -6
  303. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +16 -20
  304. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +21 -44
  305. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/constants.d.ts +7 -7
  306. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/encode-features.d.ts +2 -5
  307. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/user-agent-middleware.d.ts +18 -18
  308. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/awsRegionConfig.d.ts +8 -11
  309. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +14 -16
  310. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.browser.d.ts +1 -4
  311. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +7 -14
  312. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.native.d.ts +1 -4
  313. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +6 -7
  314. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setFeature.d.ts +6 -12
  315. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +6 -7
  316. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/aws.d.ts +2 -2
  317. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.d.ts +4 -5
  318. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/parseArn.d.ts +2 -7
  319. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +28 -38
  320. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +647 -638
  321. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/isIpAddress.d.ts +1 -1
  322. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.d.ts +29 -56
  323. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveEndpoint.d.ts +1 -1
  324. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointError.d.ts +1 -1
  325. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointRuleObject.d.ts +6 -1
  326. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/ErrorRuleObject.d.ts +1 -1
  327. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -1
  328. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/TreeRuleObject.d.ts +1 -1
  329. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/shared.d.ts +12 -1
  330. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/configurations.d.ts +4 -7
  331. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +7 -14
  332. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +7 -2
  333. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +18 -27
  334. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +13 -18
  335. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/crt-availability.d.ts +3 -8
  336. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +17 -28
  337. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.d.ts +2 -6
  338. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/is-crt-available.d.ts +2 -5
  339. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +4 -13
  340. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +9 -10
  341. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +39 -44
  342. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +2 -5
  343. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +1 -6
  344. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +1 -7
  345. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +4 -13
  346. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +23 -7
  347. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +13 -38
  348. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +57 -133
  349. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +32 -11
  350. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +32 -9
  351. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +1 -8
  352. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts +1 -6
  353. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +2 -8
  354. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +1 -8
  355. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +6 -26
  356. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +4 -4
  357. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +1 -9
  358. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +5 -8
  359. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +40 -74
  360. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +9 -24
  361. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +36 -25
  362. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/coercing-serializers.d.ts +3 -18
  363. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts +5 -2
  364. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +30 -22
  365. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +21 -22
  366. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +21 -22
  367. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +49 -29
  368. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +49 -36
  369. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +4 -0
  370. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +1 -7
  371. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +11 -0
  372. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +4 -0
  373. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +13 -0
  374. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +18 -0
  375. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +27 -0
  376. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +9 -0
  377. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +15 -0
  378. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +39 -0
  379. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -1
  380. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +7 -21
  381. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +7 -15
  382. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +2 -11
  383. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +14 -22
  384. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +18 -27
  385. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +57 -49
  386. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +7 -13
  387. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +21 -16
  388. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +1 -4
  389. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +47 -31
  390. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts +17 -14
  391. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts +15 -20
  392. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -21
  393. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +4 -13
  394. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts +1 -6
  395. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +3 -3
  396. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-arn-parser/arn.d.ts +14 -32
  397. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +4 -2
  398. package/node_modules/@aws-sdk/core/package.json +3 -3
  399. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  400. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  401. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  402. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  403. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  404. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  405. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  406. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  407. package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +4 -4
  408. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +4 -4
  409. package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +2 -2
  410. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  411. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  412. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  413. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  414. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  415. package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
  416. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  417. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  418. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1561 -337
  419. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -205
  420. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +1 -1
  421. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +113 -0
  422. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +103 -0
  423. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +621 -0
  424. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +602 -0
  425. package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +5 -1
  426. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +5 -27
  427. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  428. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
  429. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
  430. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
  431. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
  432. package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +5 -1
  433. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +5 -27
  434. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  435. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
  436. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
  437. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
  438. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
  439. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +5 -1
  440. package/node_modules/@smithy/core/package.json +2 -1
  441. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  442. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  443. package/node_modules/@smithy/middleware-compression/package.json +2 -2
  444. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  445. package/node_modules/@smithy/signature-v4/package.json +2 -2
  446. package/node_modules/js-yaml/dist/js-yaml.js +5 -2
  447. package/node_modules/js-yaml/dist/js-yaml.js.map +1 -1
  448. package/node_modules/js-yaml/dist/js-yaml.min.js +1 -1
  449. package/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -1
  450. package/node_modules/js-yaml/dist/js-yaml.mjs +3 -3
  451. package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
  452. package/node_modules/js-yaml/lib/type/omap.js +3 -3
  453. package/node_modules/js-yaml/package.json +1 -1
  454. package/package.json +11 -11
  455. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +0 -19
  456. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +0 -13
  457. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +0 -28
  458. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +0 -29
  459. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +0 -57
@@ -1,13 +1,14 @@
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 { JsonShapeDeserializer } from "./json/JsonShapeDeserializer";
9
- export { JsonShapeSerializer } from "./json/JsonShapeSerializer";
10
- export { awsExpectUnion } from "./json/awsExpectUnion";
6
+ export { JsonCodec } from "./json/codec-v1/JsonCodec";
7
+ export { JsonShapeDeserializer } from "./json/codec-v1/JsonShapeDeserializer";
8
+ export { JsonShapeSerializer } from "./json/codec-v1/JsonShapeSerializer";
9
+ export { JsonCodec2 } from "./json/codec-v2/JsonCodec2";
10
+ export { JsonShapeDeserializer2 } from "./json/codec-v2/JsonShapeDeserializer2";
11
+ export { JsonShapeSerializer2 } from "./json/codec-v2/JsonShapeSerializer2";
11
12
  export { parseJsonBody, parseJsonErrorBody, loadRestJsonErrorCode, loadJsonRpcErrorCode } from "./json/parseJsonBody";
12
13
  export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol";
13
14
  export { AwsQueryProtocol } from "./query/AwsQueryProtocol";
@@ -17,3 +18,5 @@ export { XmlCodec } from "./xml/XmlCodec";
17
18
  export { XmlShapeDeserializer } from "./xml/XmlShapeDeserializer";
18
19
  export { XmlShapeSerializer } from "./xml/XmlShapeSerializer";
19
20
  export { parseXmlBody, parseXmlErrorBody, loadRestXmlErrorCode } from "./xml/parseXmlBody";
21
+ export { awsExpectUnion } from "./json/awsExpectUnion";
22
+ export { _toStr, _toBool, _toNum } from "./coercing-serializers";
@@ -1,7 +1,7 @@
1
1
  import { RpcProtocol } from "@smithy/core/protocols";
2
2
  import { deref, NormalizedSchema } from "@smithy/core/schema";
3
3
  import { ProtocolLib } from "../ProtocolLib";
4
- import { JsonCodec } from "./JsonCodec";
4
+ import { JsonCodec } from "./codec-v1/JsonCodec";
5
5
  import { loadJsonRpcErrorCode } from "./parseJsonBody";
6
6
  export class AwsJsonRpcProtocol extends RpcProtocol {
7
7
  serializer;
@@ -1,7 +1,7 @@
1
1
  import { HttpBindingProtocol, HttpInterceptingShapeDeserializer, HttpInterceptingShapeSerializer, } from "@smithy/core/protocols";
2
2
  import { NormalizedSchema } from "@smithy/core/schema";
3
3
  import { ProtocolLib } from "../ProtocolLib";
4
- import { JsonCodec } from "./JsonCodec";
4
+ import { JsonCodec } from "./codec-v1/JsonCodec";
5
5
  import { loadRestJsonErrorCode } from "./parseJsonBody";
6
6
  export class AwsRestJsonProtocol extends HttpBindingProtocol {
7
7
  serializer;
@@ -1,4 +1,4 @@
1
- import { SerdeContextConfig } from "../ConfigurableSerdeContext";
1
+ import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
2
2
  import { JsonShapeDeserializer } from "./JsonShapeDeserializer";
3
3
  import { JsonShapeSerializer } from "./JsonShapeSerializer";
4
4
  export class JsonCodec extends SerdeContextConfig {
@@ -2,12 +2,12 @@ import { determineTimestampFormat } from "@smithy/core/protocols";
2
2
  import { NormalizedSchema } from "@smithy/core/schema";
3
3
  import { LazyJsonString, NumericValue, parseEpochTimestamp, parseRfc3339DateTimeWithOffset, parseRfc7231DateTime, } from "@smithy/core/serde";
4
4
  import { fromBase64 } from "@smithy/core/serde";
5
- import { SerdeContextConfig } from "../ConfigurableSerdeContext";
6
- import { UnionSerde } from "../UnionSerde";
7
- import { jsonReviver } from "./jsonReviver";
8
- import { needsReviver } from "./needsReviver";
9
- import { parseJsonBody } from "./parseJsonBody";
10
- import { writeKey } from "../writeKey";
5
+ import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
6
+ import { UnionSerde } from "../../UnionSerde";
7
+ import { jsonReviver } from "../jsonReviver";
8
+ import { needsReviver } from "../needsReviver";
9
+ import { parseJsonBody } from "../parseJsonBody";
10
+ import { writeKey } from "../../writeKey";
11
11
  export class JsonShapeDeserializer extends SerdeContextConfig {
12
12
  settings;
13
13
  constructor(settings) {
@@ -1,9 +1,9 @@
1
1
  import { determineTimestampFormat } from "@smithy/core/protocols";
2
2
  import { NormalizedSchema } from "@smithy/core/schema";
3
3
  import { dateToUtcString, generateIdempotencyToken, LazyJsonString, NumericValue, toBase64 } from "@smithy/core/serde";
4
- import { SerdeContextConfig } from "../ConfigurableSerdeContext";
5
- import { JsonReplacer } from "./jsonReplacer";
6
- import { writeKey } from "../writeKey";
4
+ import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
5
+ import { JsonReplacer } from "../jsonReplacer";
6
+ import { writeKey } from "../../writeKey";
7
7
  export class JsonShapeSerializer extends SerdeContextConfig {
8
8
  settings;
9
9
  buffer;
@@ -0,0 +1,103 @@
1
+ import { toUtf8 } from "@smithy/core/serde";
2
+ export class JsonBytesStringAdapter extends Uint8Array {
3
+ string = null;
4
+ static allocUnsafe(bytes) {
5
+ if (typeof Buffer === "function") {
6
+ const buffer = Buffer.allocUnsafe(bytes);
7
+ return new JsonBytesStringAdapter(buffer.buffer, buffer.byteOffset, buffer.byteLength);
8
+ }
9
+ return new JsonBytesStringAdapter(bytes);
10
+ }
11
+ toString() {
12
+ return this.s();
13
+ }
14
+ valueOf() {
15
+ return this.s();
16
+ }
17
+ includes(searchString, position) {
18
+ if (typeof searchString === "string") {
19
+ return this.s().includes(searchString, position);
20
+ }
21
+ return Uint8Array.prototype.includes.call(this, searchString, position);
22
+ }
23
+ indexOf(searchString, position) {
24
+ if (typeof searchString === "string") {
25
+ return this.s().indexOf(searchString, position);
26
+ }
27
+ return Uint8Array.prototype.indexOf.call(this, searchString, position);
28
+ }
29
+ lastIndexOf(searchString, position) {
30
+ if (typeof searchString === "string") {
31
+ return this.s().lastIndexOf(searchString, position);
32
+ }
33
+ const fn = Uint8Array.prototype.lastIndexOf;
34
+ if (position !== undefined) {
35
+ return fn.call(this, searchString, position);
36
+ }
37
+ return fn.call(this, searchString);
38
+ }
39
+ startsWith(searchString, position) {
40
+ return this.s().startsWith(searchString, position);
41
+ }
42
+ endsWith(searchString, endPosition) {
43
+ return this.s().endsWith(searchString, endPosition);
44
+ }
45
+ match(regexp) {
46
+ return this.s().match(regexp);
47
+ }
48
+ replace(searchValue, replaceValue) {
49
+ return this.s().replace(searchValue, replaceValue);
50
+ }
51
+ search(regexp) {
52
+ return this.s().search(regexp);
53
+ }
54
+ split(separator, limit) {
55
+ return this.s().split(separator, limit);
56
+ }
57
+ substring(start, end) {
58
+ return this.s().substring(start, end);
59
+ }
60
+ trim() {
61
+ return this.s().trim();
62
+ }
63
+ trimStart() {
64
+ return this.s().trimStart();
65
+ }
66
+ trimEnd() {
67
+ return this.s().trimEnd();
68
+ }
69
+ charAt(pos) {
70
+ return this.s().charAt(pos);
71
+ }
72
+ charCodeAt(index) {
73
+ return this.s().charCodeAt(index);
74
+ }
75
+ padStart(maxLength, fillString) {
76
+ return this.s().padStart(maxLength, fillString);
77
+ }
78
+ padEnd(maxLength, fillString) {
79
+ return this.s().padEnd(maxLength, fillString);
80
+ }
81
+ repeat(count) {
82
+ return this.s().repeat(count);
83
+ }
84
+ toUpperCase() {
85
+ return this.s().toUpperCase();
86
+ }
87
+ toLowerCase() {
88
+ return this.s().toLowerCase();
89
+ }
90
+ s() {
91
+ if (this.string == null) {
92
+ const n = Date.now();
93
+ if (n > warned + 60_000) {
94
+ console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. " +
95
+ "It has been automatically converted to string. In a future version this will throw an error.");
96
+ warned = n;
97
+ }
98
+ this.string = toUtf8(this);
99
+ }
100
+ return this.string;
101
+ }
102
+ }
103
+ var warned = 0;
@@ -0,0 +1,20 @@
1
+ import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
2
+ import { JsonShapeDeserializer2 } from "./JsonShapeDeserializer2";
3
+ import { JsonShapeSerializer2 } from "./JsonShapeSerializer2";
4
+ export class JsonCodec2 extends SerdeContextConfig {
5
+ settings;
6
+ constructor(settings) {
7
+ super();
8
+ this.settings = settings;
9
+ }
10
+ createSerializer() {
11
+ const serializer = new JsonShapeSerializer2(this.settings);
12
+ serializer.setSerdeContext(this.serdeContext);
13
+ return serializer;
14
+ }
15
+ createDeserializer() {
16
+ const deserializer = new JsonShapeDeserializer2(this.settings);
17
+ deserializer.setSerdeContext(this.serdeContext);
18
+ return deserializer;
19
+ }
20
+ }
@@ -1,7 +1,6 @@
1
1
  import { determineTimestampFormat } from "@smithy/core/protocols";
2
2
  import { NormalizedSchema } from "@smithy/core/schema";
3
- import { LazyJsonString, NumericValue, parseEpochTimestamp, parseRfc3339DateTimeWithOffset, parseRfc7231DateTime, } from "@smithy/core/serde";
4
- import { fromBase64 } from "@smithy/core/serde";
3
+ import { fromBase64, LazyJsonString, NumericValue, parseEpochTimestamp, parseRfc3339DateTimeWithOffset, parseRfc7231DateTime, } from "@smithy/core/serde";
5
4
  import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
6
5
  import { UnionSerde } from "../../UnionSerde";
7
6
  import { detectBufferParsing } from "../detectBufferParsing";
@@ -9,7 +8,7 @@ import { jsonReviver } from "../jsonReviver";
9
8
  import { needsReviver } from "../needsReviver";
10
9
  import { parseJsonBody } from "../parseJsonBody";
11
10
  import { writeKey } from "../../writeKey";
12
- export class BufferJsonShapeDeserializer extends SerdeContextConfig {
11
+ export class JsonShapeDeserializer2 extends SerdeContextConfig {
13
12
  settings;
14
13
  constructor(settings) {
15
14
  super();
@@ -19,14 +18,20 @@ export class BufferJsonShapeDeserializer extends SerdeContextConfig {
19
18
  const reviver = needsReviver(schema) ? jsonReviver : undefined;
20
19
  let parsed;
21
20
  if (typeof data === "string") {
21
+ if (data.length === 0) {
22
+ return {};
23
+ }
22
24
  parsed = JSON.parse(data, reviver);
23
25
  }
24
26
  else if (data instanceof Uint8Array && detectBufferParsing()) {
27
+ if (data.byteLength === 0) {
28
+ return {};
29
+ }
25
30
  const buf = Buffer.isBuffer(data) ? data : Buffer.from(data.buffer, data.byteOffset, data.byteLength);
26
31
  parsed = JSON.parse(buf, reviver);
27
32
  }
28
33
  else {
29
- parsed = await parseJsonBody(data, this.serdeContext);
34
+ parsed = await parseJsonBody(data, this.serdeContext, schema);
30
35
  }
31
36
  return this._read(schema, parsed);
32
37
  }
@@ -42,19 +47,23 @@ export class BufferJsonShapeDeserializer extends SerdeContextConfig {
42
47
  }
43
48
  if (Array.isArray(value) && ns.isListSchema()) {
44
49
  const listMember = ns.getValueSchema();
45
- for (let i = 0; i < value.length; ++i) {
46
- value[i] = this._read(listMember, value[i]);
50
+ if (this.needsTransform(listMember)) {
51
+ for (let i = 0; i < value.length; ++i) {
52
+ value[i] = this._read(listMember, value[i]);
53
+ }
47
54
  }
48
55
  return value;
49
56
  }
50
57
  if (ns.isMapSchema()) {
51
58
  const mapMember = ns.getValueSchema();
52
59
  const map = value;
53
- for (const k in map) {
54
- if (k === "__proto__") {
55
- writeKey(map);
60
+ if (this.needsTransform(mapMember)) {
61
+ for (const k in map) {
62
+ if (k === "__proto__") {
63
+ writeKey(map);
64
+ }
65
+ map[k] = this._read(mapMember, map[k]);
56
66
  }
57
- map[k] = this._read(mapMember, map[k]);
58
67
  }
59
68
  return map;
60
69
  }
@@ -130,10 +139,6 @@ export class BufferJsonShapeDeserializer extends SerdeContextConfig {
130
139
  }
131
140
  }
132
141
  }
133
- return value;
134
- }
135
- else {
136
- return value;
137
142
  }
138
143
  }
139
144
  return value;
@@ -141,9 +146,10 @@ export class BufferJsonShapeDeserializer extends SerdeContextConfig {
141
146
  _readStruct(ns, record) {
142
147
  const union = ns.isUnionSchema();
143
148
  const out = {};
144
- let nameMap = void 0;
149
+ let nameMap;
150
+ const hasType = typeof record.__type === "string";
145
151
  const { jsonName } = this.settings;
146
- if (jsonName) {
152
+ if (jsonName && hasType) {
147
153
  nameMap = {};
148
154
  }
149
155
  let unionSerde;
@@ -154,7 +160,9 @@ export class BufferJsonShapeDeserializer extends SerdeContextConfig {
154
160
  let fromKey = memberName;
155
161
  if (jsonName) {
156
162
  fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
157
- nameMap[fromKey] = memberName;
163
+ if (hasType) {
164
+ nameMap[fromKey] = memberName;
165
+ }
158
166
  }
159
167
  if (union) {
160
168
  unionSerde.mark(fromKey);
@@ -166,7 +174,7 @@ export class BufferJsonShapeDeserializer extends SerdeContextConfig {
166
174
  if (union) {
167
175
  unionSerde.writeUnknown();
168
176
  }
169
- else if (typeof record.__type === "string") {
177
+ else if (hasType) {
170
178
  for (const k in record) {
171
179
  const v = record[k];
172
180
  const t = jsonName ? (nameMap[k] ?? k) : k;
@@ -177,4 +185,16 @@ export class BufferJsonShapeDeserializer extends SerdeContextConfig {
177
185
  }
178
186
  return out;
179
187
  }
188
+ needsTransform(ns) {
189
+ if (ns.isBlobSchema() || ns.isTimestampSchema() || ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
190
+ return true;
191
+ }
192
+ if (ns.isDocumentSchema() || ns.isStructSchema() || ns.isListSchema() || ns.isMapSchema()) {
193
+ return true;
194
+ }
195
+ if (ns.isStringSchema() && ns.getMergedTraits().mediaType) {
196
+ return true;
197
+ }
198
+ return false;
199
+ }
180
200
  }
@@ -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 { writeKey } from "../../writeKey";
6
+ import { JsonBytesStringAdapter } from "./JsonBytesStringAdapter";
6
7
  const encoder = new TextEncoder();
7
8
  const OPEN_BRACE = 0x7b;
8
9
  const CLOSE_BRACE = 0x7d;
@@ -30,13 +31,15 @@ for (let i = 0; i < 0x20; i++) {
30
31
  }
31
32
  const INITIAL_BUFFER_SIZE = 2048;
32
33
  function alloc(size) {
33
- return typeof Buffer !== "undefined" ? Buffer.allocUnsafe(size) : new Uint8Array(size);
34
+ return JsonBytesStringAdapter.allocUnsafe(size);
34
35
  }
35
- export class ByteJsonShapeSerializer extends SerdeContextConfig {
36
+ export class JsonShapeSerializer2 extends SerdeContextConfig {
36
37
  settings;
37
38
  json;
38
39
  i = 0;
39
40
  rootSchema;
41
+ rawValue;
42
+ passthrough = false;
40
43
  constructor(settings) {
41
44
  super();
42
45
  this.settings = settings;
@@ -44,38 +47,25 @@ export class ByteJsonShapeSerializer extends SerdeContextConfig {
44
47
  }
45
48
  write(schema, value) {
46
49
  this.i = 0;
50
+ this.rawValue = value;
47
51
  this.rootSchema = NormalizedSchema.of(schema);
48
- this.writeValue(this.rootSchema, value, undefined);
52
+ this.passthrough = this.rootSchema.isBlobSchema() || this.rootSchema.isStringSchema();
53
+ if (!this.passthrough) {
54
+ this.writeValue(this.rootSchema, value, undefined);
55
+ }
49
56
  }
50
57
  writeDiscriminatedDocument(schema, value) {
51
58
  this.i = 0;
52
59
  this.rootSchema = NormalizedSchema.of(schema);
53
60
  const ns = this.rootSchema;
54
61
  if (ns.isStructSchema() && value != null && typeof value === "object") {
55
- this.ensure(2);
56
- this.json[this.i++] = OPEN_BRACE;
57
- this.writeAsciiQuoted("__type");
58
- this.json[this.i++] = COLON;
59
- this.writeAsciiQuoted(ns.getName(true) ?? "Unknown");
60
- let wroteAny = true;
61
- const { jsonName } = this.settings;
62
- for (const [memberName, memberSchema] of ns.structIterator()) {
63
- const item = value[memberName];
64
- if (item == null && !memberSchema.isIdempotencyToken()) {
65
- continue;
66
- }
67
- if (wroteAny) {
68
- this.ensure(1);
69
- this.json[this.i++] = COMMA;
70
- }
71
- const targetKey = jsonName ? (memberSchema.getMergedTraits().jsonName ?? memberName) : memberName;
72
- this.writeAsciiQuoted(targetKey);
73
- this.json[this.i++] = COLON;
74
- this.writeValue(memberSchema, item, ns);
75
- wroteAny = true;
76
- }
77
- this.ensure(1);
78
- this.json[this.i++] = CLOSE_BRACE;
62
+ this.writeValue(ns, value, undefined);
63
+ const prefix = `"__type":"${ns.getName(true) ?? "Unknown"}",`;
64
+ const z = prefix.length;
65
+ this.ensure(z);
66
+ this.json.copyWithin(1 + z, 1, this.i);
67
+ encoder.encodeInto(prefix, this.json.subarray(1));
68
+ this.i += z;
79
69
  }
80
70
  else {
81
71
  this.writeValue(ns, value, undefined);
@@ -85,6 +75,11 @@ export class ByteJsonShapeSerializer extends SerdeContextConfig {
85
75
  this.rootSchema = undefined;
86
76
  const finalPosition = this.i;
87
77
  this.i = 0;
78
+ const raw = this.rawValue;
79
+ this.rawValue = undefined;
80
+ if (finalPosition === 0) {
81
+ return raw;
82
+ }
88
83
  const result = this.json.subarray(0, finalPosition);
89
84
  this.json = alloc(INITIAL_BUFFER_SIZE);
90
85
  return result;
@@ -123,7 +118,7 @@ export class ByteJsonShapeSerializer extends SerdeContextConfig {
123
118
  this.i = i;
124
119
  }
125
120
  writeJsonString(s) {
126
- this.ensure(s.length * 2 + 2);
121
+ this.ensure(s.length * 3 + 2);
127
122
  this.json[this.i++] = QUOTE;
128
123
  const z = s.length;
129
124
  for (let j = 0; j < z; ++j) {
@@ -150,7 +145,7 @@ export class ByteJsonShapeSerializer extends SerdeContextConfig {
150
145
  this.ensure(4);
151
146
  const { written } = encoder.encodeInto(s.substring(j, j + 2), this.json.subarray(this.i));
152
147
  this.i += written;
153
- j++;
148
+ ++j;
154
149
  }
155
150
  else {
156
151
  this.ensure(6);
@@ -190,15 +185,16 @@ export class ByteJsonShapeSerializer extends SerdeContextConfig {
190
185
  static B64 = (() => {
191
186
  const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
192
187
  const table = new Uint8Array(64);
193
- for (let i = 0; i < 64; i++)
188
+ for (let i = 0; i < 64; ++i) {
194
189
  table[i] = chars.charCodeAt(i);
190
+ }
195
191
  return table;
196
192
  })();
197
193
  writeBase64(data) {
198
194
  const b64Len = Math.ceil(data.length / 3) * 4;
199
195
  this.ensure(b64Len + 2);
200
196
  const json = this.json;
201
- const B64 = ByteJsonShapeSerializer.B64;
197
+ const B64 = JsonShapeSerializer2.B64;
202
198
  let i = this.i;
203
199
  json[i++] = QUOTE;
204
200
  const len = data.length;
@@ -250,6 +246,16 @@ export class ByteJsonShapeSerializer extends SerdeContextConfig {
250
246
  }
251
247
  const ns = NormalizedSchema.of(schema);
252
248
  const isObject = typeof value === "object";
249
+ if (ns.isStringSchema()) {
250
+ const mediaType = ns.getMergedTraits().mediaType;
251
+ if (mediaType) {
252
+ const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
253
+ if (isJson) {
254
+ this.writeJsonString(LazyJsonString.from(value).toString());
255
+ return;
256
+ }
257
+ }
258
+ }
253
259
  if (isObject) {
254
260
  if (ns.isStructSchema()) {
255
261
  this.writeStruct(ns, value);
@@ -289,16 +295,6 @@ export class ByteJsonShapeSerializer extends SerdeContextConfig {
289
295
  return;
290
296
  }
291
297
  if (typeof value === "string") {
292
- if (ns.isStringSchema()) {
293
- const mediaType = ns.getMergedTraits().mediaType;
294
- if (mediaType) {
295
- const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
296
- if (isJson) {
297
- this.writeJsonString(LazyJsonString.from(value).toString());
298
- return;
299
- }
300
- }
301
- }
302
298
  if (ns.isBlobSchema()) {
303
299
  const b64 = (this.serdeContext?.base64Encoder ?? toBase64)(value);
304
300
  this.writeAsciiQuoted(b64);
@@ -318,14 +314,16 @@ export class ByteJsonShapeSerializer extends SerdeContextConfig {
318
314
  }
319
315
  if (typeof value === "boolean") {
320
316
  this.ensure(5);
317
+ let { i, json } = this;
321
318
  if (value) {
322
- this.json.set(TRUE, this.i);
323
- this.i += 4;
319
+ json.set(TRUE, i);
320
+ i += 4;
324
321
  }
325
322
  else {
326
- this.json.set(FALSE, this.i);
327
- this.i += 5;
323
+ json.set(FALSE, i);
324
+ i += 5;
328
325
  }
326
+ this.i = i;
329
327
  return;
330
328
  }
331
329
  if (typeof value === "bigint") {
@@ -337,7 +335,6 @@ export class ByteJsonShapeSerializer extends SerdeContextConfig {
337
335
  writeStruct(ns, value) {
338
336
  this.ensure(2);
339
337
  this.json[this.i++] = OPEN_BRACE;
340
- let first = true;
341
338
  let wroteAny = false;
342
339
  const hasType = typeof value.__type === "string";
343
340
  let writtenKeys;
@@ -346,13 +343,13 @@ export class ByteJsonShapeSerializer extends SerdeContextConfig {
346
343
  }
347
344
  for (const [memberName, memberSchema] of ns.structIterator()) {
348
345
  const item = value[memberName];
349
- if (item == null && !memberSchema.isIdempotencyToken())
346
+ if (item == null && !memberSchema.isIdempotencyToken()) {
350
347
  continue;
351
- if (!first) {
348
+ }
349
+ if (wroteAny) {
352
350
  this.ensure(1);
353
351
  this.json[this.i++] = COMMA;
354
352
  }
355
- first = false;
356
353
  wroteAny = true;
357
354
  const targetKey = this.settings.jsonName ? (memberSchema.getMergedTraits().jsonName ?? memberName) : memberName;
358
355
  if (writtenKeys) {
@@ -375,17 +372,17 @@ export class ByteJsonShapeSerializer extends SerdeContextConfig {
375
372
  }
376
373
  else if (hasType) {
377
374
  for (const k in value) {
378
- const targetKey = this.settings.jsonName ? (writtenKeys.has(k) ? k : k) : k;
379
- if (writtenKeys.has(targetKey))
375
+ if (writtenKeys.has(k)) {
380
376
  continue;
381
- writtenKeys.add(targetKey);
377
+ }
378
+ writtenKeys.add(k);
382
379
  const v = value[k];
383
- if (!first) {
380
+ if (wroteAny) {
384
381
  this.ensure(1);
385
382
  this.json[this.i++] = COMMA;
386
383
  }
387
- first = false;
388
- this.writeAsciiQuoted(targetKey);
384
+ wroteAny = true;
385
+ this.writeAsciiQuoted(k);
389
386
  this.ensure(1);
390
387
  this.json[this.i++] = COLON;
391
388
  this.writeValue(15, v, undefined);
@@ -395,20 +392,30 @@ export class ByteJsonShapeSerializer extends SerdeContextConfig {
395
392
  this.json[this.i++] = CLOSE_BRACE;
396
393
  }
397
394
  writeList(ns, value, isDocument) {
398
- this.ensure(2);
399
- this.json[this.i++] = OPEN_BRACKET;
400
395
  const sparse = !!ns.getMergedTraits().sparse;
401
396
  const valueSchema = ns.getValueSchema();
397
+ if (!isDocument) {
398
+ if (valueSchema.isStringSchema() || valueSchema.isNumericSchema() || valueSchema.isBooleanSchema()) {
399
+ const json = sparse ? JSON.stringify(value) : JSON.stringify(value.filter((_) => _ != null));
400
+ this.ensure(json.length * 3);
401
+ this.i += encoder.encodeInto(json, this.json.subarray(this.i)).written;
402
+ return;
403
+ }
404
+ }
405
+ this.ensure(2);
406
+ this.json[this.i++] = OPEN_BRACKET;
407
+ let wroteFirstItem = false;
402
408
  for (let i = 0; i < value.length; ++i) {
403
409
  const item = value[i];
404
410
  if (isDocument ? item === undefined : item == null && !sparse) {
405
411
  continue;
406
412
  }
407
- if (i !== 0) {
413
+ if (wroteFirstItem) {
408
414
  this.ensure(1);
409
415
  this.json[this.i++] = COMMA;
410
416
  }
411
417
  this.writeValue(valueSchema, item, undefined);
418
+ wroteFirstItem = true;
412
419
  }
413
420
  this.ensure(1);
414
421
  this.json[this.i++] = CLOSE_BRACKET;
@@ -430,8 +437,7 @@ export class ByteJsonShapeSerializer extends SerdeContextConfig {
430
437
  }
431
438
  const json = JSON.stringify(input);
432
439
  this.ensure(json.length * 3);
433
- const { written } = encoder.encodeInto(json, this.json.subarray(this.i));
434
- this.i += written;
440
+ this.i += encoder.encodeInto(json, this.json.subarray(this.i)).written;
435
441
  return;
436
442
  }
437
443
  }
@@ -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