@cdklabs/cdk-ssm-documents 0.0.71 → 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 (522) 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/runtimeConfig.browser.d.ts +2 -0
  123. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +2 -0
  124. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +2 -0
  125. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/enums.d.ts +1 -0
  126. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  127. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  128. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  129. package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -6
  130. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/index.js +2 -2
  131. package/node_modules/@aws-sdk/client-cloudwatch/dist-es/schemas/schemas_0.js +1 -1
  132. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/DescribeAlarmsCommand.d.ts +1 -1
  133. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/PutLogAlarmCommand.d.ts +1 -1
  134. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/models/models_0.d.ts +1 -1
  135. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.browser.d.ts +2 -0
  136. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.d.ts +2 -0
  137. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.native.d.ts +2 -0
  138. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/models/models_0.d.ts +1 -1
  139. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  140. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  141. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  142. package/node_modules/@aws-sdk/client-cloudwatch/package.json +8 -8
  143. package/node_modules/@aws-sdk/client-ec2/README.md +21 -0
  144. package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +113 -11
  145. package/node_modules/@aws-sdk/client-ec2/dist-es/EC2.js +8 -0
  146. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/CreateTransitGatewayPolicyTableEntryCommand.js +4 -0
  147. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/DeleteTransitGatewayPolicyTableEntryCommand.js +4 -0
  148. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/ModifyTransitGatewayPolicyTableEntryCommand.js +4 -0
  149. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/index.js +3 -0
  150. package/node_modules/@aws-sdk/client-ec2/dist-es/models/enums.js +4 -0
  151. package/node_modules/@aws-sdk/client-ec2/dist-es/pagination/GetTransitGatewayPolicyTableEntriesPaginator.js +4 -0
  152. package/node_modules/@aws-sdk/client-ec2/dist-es/pagination/index.js +1 -0
  153. package/node_modules/@aws-sdk/client-ec2/dist-es/schemas/schemas_0.js +77 -10
  154. package/node_modules/@aws-sdk/client-ec2/dist-types/EC2.d.ts +28 -0
  155. package/node_modules/@aws-sdk/client-ec2/dist-types/EC2Client.d.ts +5 -2
  156. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateTransitGatewayPolicyTableEntryCommand.d.ts +100 -0
  157. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteRouteCommand.d.ts +1 -1
  158. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteRouteServerCommand.d.ts +1 -1
  159. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteRouteServerEndpointCommand.d.ts +1 -1
  160. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteRouteServerPeerCommand.d.ts +1 -1
  161. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteTransitGatewayPolicyTableEntryCommand.d.ts +88 -0
  162. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeImageUsageReportEntriesCommand.d.ts +1 -1
  163. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeImageUsageReportsCommand.d.ts +1 -2
  164. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeImagesCommand.d.ts +1 -1
  165. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeTransitGatewayAttachmentsCommand.d.ts +1 -0
  166. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetActiveVpnTunnelStatusCommand.d.ts +1 -1
  167. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetAllowedImagesSettingsCommand.d.ts +1 -1
  168. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetAssociatedEnclaveCertificateIamRolesCommand.d.ts +1 -2
  169. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetTransitGatewayPolicyTableEntriesCommand.d.ts +2 -0
  170. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyIpamCommand.d.ts +2 -1
  171. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyIpamPolicyAllocationRulesCommand.d.ts +1 -1
  172. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyIpamPoolCommand.d.ts +1 -1
  173. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyTransitGatewayPolicyTableEntryCommand.d.ts +100 -0
  174. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/UnassignPrivateNatGatewayAddressCommand.d.ts +1 -1
  175. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/UnlockSnapshotCommand.d.ts +1 -1
  176. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/UnmonitorInstancesCommand.d.ts +1 -1
  177. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/UpdateCapacityManagerMonitoredTagKeysCommand.d.ts +1 -1
  178. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/index.d.ts +3 -0
  179. package/node_modules/@aws-sdk/client-ec2/dist-types/models/enums.d.ts +12 -0
  180. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_2.d.ts +175 -116
  181. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_3.d.ts +148 -802
  182. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_4.d.ts +803 -350
  183. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_5.d.ts +355 -262
  184. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_6.d.ts +305 -227
  185. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_7.d.ts +200 -150
  186. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_8.d.ts +145 -1
  187. package/node_modules/@aws-sdk/client-ec2/dist-types/pagination/GetTransitGatewayPolicyTableEntriesPaginator.d.ts +7 -0
  188. package/node_modules/@aws-sdk/client-ec2/dist-types/pagination/index.d.ts +1 -0
  189. package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.browser.d.ts +2 -0
  190. package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.d.ts +2 -0
  191. package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.native.d.ts +2 -0
  192. package/node_modules/@aws-sdk/client-ec2/dist-types/schemas/schemas_0.d.ts +11 -0
  193. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2.d.ts +58 -0
  194. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2Client.d.ts +18 -0
  195. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateTransitGatewayPolicyTableEntryCommand.d.ts +42 -0
  196. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteRouteCommand.d.ts +1 -1
  197. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteRouteServerCommand.d.ts +1 -1
  198. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteRouteServerEndpointCommand.d.ts +1 -1
  199. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteRouteServerPeerCommand.d.ts +1 -1
  200. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteTransitGatewayPolicyTableEntryCommand.d.ts +42 -0
  201. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeImageUsageReportEntriesCommand.d.ts +1 -1
  202. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeImageUsageReportsCommand.d.ts +4 -2
  203. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeImagesCommand.d.ts +1 -1
  204. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetActiveVpnTunnelStatusCommand.d.ts +1 -1
  205. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetAllowedImagesSettingsCommand.d.ts +1 -1
  206. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetAssociatedEnclaveCertificateIamRolesCommand.d.ts +4 -2
  207. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyIpamCommand.d.ts +2 -1
  208. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyIpamPolicyAllocationRulesCommand.d.ts +1 -1
  209. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyIpamPoolCommand.d.ts +1 -1
  210. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyTransitGatewayPolicyTableEntryCommand.d.ts +42 -0
  211. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/UnassignPrivateNatGatewayAddressCommand.d.ts +1 -1
  212. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/UnlockSnapshotCommand.d.ts +1 -1
  213. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/UnmonitorInstancesCommand.d.ts +1 -1
  214. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/UpdateCapacityManagerMonitoredTagKeysCommand.d.ts +1 -1
  215. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/index.d.ts +3 -0
  216. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/enums.d.ts +6 -0
  217. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_2.d.ts +41 -30
  218. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_3.d.ts +40 -105
  219. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_4.d.ts +98 -61
  220. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_5.d.ts +68 -46
  221. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_6.d.ts +43 -50
  222. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_7.d.ts +49 -36
  223. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_8.d.ts +36 -1
  224. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/pagination/GetTransitGatewayPolicyTableEntriesPaginator.d.ts +11 -0
  225. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/pagination/index.d.ts +1 -0
  226. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  227. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  228. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  229. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/schemas/schemas_0.d.ts +11 -0
  230. package/node_modules/@aws-sdk/client-ec2/package.json +8 -8
  231. package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +58 -8
  232. package/node_modules/@aws-sdk/client-iam/dist-es/models/enums.js +13 -0
  233. package/node_modules/@aws-sdk/client-iam/dist-es/schemas/schemas_0.js +39 -7
  234. package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetContextKeysForPrincipalPolicyCommand.d.ts +4 -1
  235. package/node_modules/@aws-sdk/client-iam/dist-types/commands/SimulateCustomPolicyCommand.d.ts +11 -3
  236. package/node_modules/@aws-sdk/client-iam/dist-types/commands/SimulatePrincipalPolicyCommand.d.ts +19 -3
  237. package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateDelegationRequestCommand.d.ts +1 -1
  238. package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateGroupCommand.d.ts +1 -1
  239. package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateLoginProfileCommand.d.ts +1 -1
  240. package/node_modules/@aws-sdk/client-iam/dist-types/models/enums.d.ts +29 -0
  241. package/node_modules/@aws-sdk/client-iam/dist-types/models/models_0.d.ts +201 -104
  242. package/node_modules/@aws-sdk/client-iam/dist-types/models/models_1.d.ts +86 -0
  243. package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.browser.d.ts +2 -0
  244. package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.d.ts +2 -0
  245. package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.native.d.ts +2 -0
  246. package/node_modules/@aws-sdk/client-iam/dist-types/schemas/schemas_0.d.ts +4 -1
  247. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateDelegationRequestCommand.d.ts +1 -1
  248. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateGroupCommand.d.ts +1 -1
  249. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateLoginProfileCommand.d.ts +1 -1
  250. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/enums.d.ts +16 -0
  251. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/models_0.d.ts +49 -14
  252. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/models_1.d.ts +14 -0
  253. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  254. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  255. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  256. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -1
  257. package/node_modules/@aws-sdk/client-iam/package.json +7 -7
  258. package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +39 -37
  259. package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +38 -36
  260. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateFunctionCommand.d.ts +2 -2
  261. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionCommand.d.ts +1 -1
  262. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionConfigurationCommand.d.ts +1 -1
  263. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetLayerVersionByArnCommand.d.ts +1 -1
  264. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetLayerVersionCommand.d.ts +1 -1
  265. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListFunctionsCommand.d.ts +1 -1
  266. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListLayerVersionsCommand.d.ts +2 -2
  267. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListLayersCommand.d.ts +2 -2
  268. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListVersionsByFunctionCommand.d.ts +1 -1
  269. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishLayerVersionCommand.d.ts +2 -2
  270. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishVersionCommand.d.ts +1 -1
  271. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionCodeCommand.d.ts +1 -1
  272. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +2 -2
  273. package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +57 -55
  274. package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +2292 -2292
  275. package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.browser.d.ts +2 -0
  276. package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.d.ts +2 -0
  277. package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.native.d.ts +2 -0
  278. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +41 -39
  279. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +260 -260
  280. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  281. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  282. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  283. package/node_modules/@aws-sdk/client-lambda/package.json +7 -7
  284. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
  285. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.browser.d.ts +2 -0
  286. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.d.ts +2 -0
  287. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.native.d.ts +2 -0
  288. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  289. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  290. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  291. package/node_modules/@aws-sdk/client-s3/package.json +11 -11
  292. package/node_modules/@aws-sdk/client-sns/dist-cjs/index.js +1 -1
  293. package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.browser.d.ts +2 -0
  294. package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.d.ts +2 -0
  295. package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.native.d.ts +2 -0
  296. package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  297. package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  298. package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  299. package/node_modules/@aws-sdk/client-sns/package.json +6 -6
  300. package/node_modules/@aws-sdk/client-sqs/dist-cjs/index.js +1 -1
  301. package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.browser.d.ts +2 -0
  302. package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.d.ts +2 -0
  303. package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.native.d.ts +2 -0
  304. package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  305. package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  306. package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  307. package/node_modules/@aws-sdk/client-sqs/package.json +8 -8
  308. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +8 -7
  309. package/node_modules/@aws-sdk/client-ssm/dist-es/schemas/schemas_0.js +7 -6
  310. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAutomationExecutionsCommand.d.ts +1 -0
  311. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAutomationStepExecutionsCommand.d.ts +1 -0
  312. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetAutomationExecutionCommand.d.ts +2 -0
  313. package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_0.d.ts +16 -1
  314. package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.browser.d.ts +2 -0
  315. package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.d.ts +2 -0
  316. package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.native.d.ts +2 -0
  317. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_0.d.ts +3 -0
  318. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  319. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  320. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  321. package/node_modules/@aws-sdk/client-ssm/package.json +6 -6
  322. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +66 -28
  323. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +989 -72
  324. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +7 -2
  325. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +28 -14
  326. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.js +1 -0
  327. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.js +3 -0
  328. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.js +8 -0
  329. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js +1 -1
  330. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +3 -3
  331. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.browser.js +9 -0
  332. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js +5 -1
  333. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js +1 -0
  334. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +12 -6
  335. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js +2 -1
  336. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js +1 -1
  337. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +8 -5
  338. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -1
  339. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -1
  340. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonSettings.js +1 -0
  341. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonCodec.js → codec-v1/JsonCodec.js} +1 -1
  342. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +1 -0
  343. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeDeserializer.js → codec-v1/JsonShapeDeserializer.js} +14 -5
  344. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeSerializer.js → codec-v1/JsonShapeSerializer.js} +12 -2
  345. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +103 -0
  346. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +20 -0
  347. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +200 -0
  348. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +489 -0
  349. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/detectBufferParsing.js +18 -0
  350. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +22 -3
  351. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/needsReviver.js +41 -0
  352. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +33 -13
  353. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/writeKey.js +3 -0
  354. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +4 -0
  355. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -1
  356. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +6 -0
  357. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +7 -0
  358. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +13 -0
  359. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -1
  360. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +22 -6
  361. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.browser.d.ts +11 -0
  362. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d.ts +7 -1
  363. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +4 -0
  364. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +22 -6
  365. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/index.d.ts +2 -1
  366. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +9 -6
  367. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
  368. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
  369. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
  370. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
  371. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +7 -0
  372. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonCodec.d.ts → codec-v1/JsonCodec.d.ts} +4 -8
  373. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +7 -0
  374. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeDeserializer.d.ts → codec-v1/JsonShapeDeserializer.d.ts} +3 -2
  375. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeSerializer.d.ts → codec-v1/JsonShapeSerializer.d.ts} +3 -2
  376. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
  377. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -0
  378. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +30 -0
  379. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +60 -0
  380. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
  381. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/needsReviver.d.ts +11 -0
  382. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +7 -2
  383. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/writeKey.d.ts +4 -0
  384. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -0
  385. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +1 -0
  386. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +1 -0
  387. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +4 -0
  388. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -1
  389. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +7 -6
  390. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +32 -0
  391. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +10 -2
  392. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +1 -0
  393. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +2 -0
  394. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +2 -1
  395. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +9 -6
  396. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
  397. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
  398. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
  399. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
  400. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +4 -0
  401. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/{JsonCodec.d.ts → codec-v1/JsonCodec.d.ts} +3 -5
  402. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +4 -0
  403. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/{JsonShapeDeserializer.d.ts → codec-v1/JsonShapeDeserializer.d.ts} +2 -2
  404. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/{JsonShapeSerializer.d.ts → codec-v1/JsonShapeSerializer.d.ts} +2 -2
  405. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +27 -0
  406. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +9 -0
  407. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +15 -0
  408. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +39 -0
  409. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
  410. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +2 -0
  411. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +7 -2
  412. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +1 -0
  413. package/node_modules/@aws-sdk/core/package.json +11 -6
  414. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  415. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  416. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  417. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  418. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  419. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  420. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  421. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  422. package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +4 -4
  423. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +4 -4
  424. package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +2 -2
  425. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  426. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  427. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  428. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  429. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  430. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -0
  431. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +2 -0
  432. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -0
  433. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +2 -0
  434. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +2 -0
  435. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +2 -0
  436. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +2 -0
  437. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +2 -0
  438. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +2 -0
  439. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -0
  440. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +2 -0
  441. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -0
  442. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +2 -0
  443. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +2 -0
  444. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +2 -0
  445. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -0
  446. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +2 -0
  447. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -0
  448. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +2 -0
  449. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +2 -0
  450. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +2 -0
  451. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +2 -0
  452. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +2 -0
  453. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +2 -0
  454. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -0
  455. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +2 -0
  456. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -0
  457. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +2 -0
  458. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +2 -0
  459. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +2 -0
  460. package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
  461. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  462. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  463. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +14 -4
  464. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +14 -4
  465. package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
  466. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1562 -338
  467. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +34 -11
  468. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +34 -11
  469. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1 -0
  470. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +1 -0
  471. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +1 -0
  472. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -2
  473. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +2 -2
  474. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -2
  475. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -205
  476. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +1 -1
  477. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +1 -1
  478. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +113 -0
  479. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +103 -0
  480. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +621 -0
  481. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +602 -0
  482. package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +5 -1
  483. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +34 -11
  484. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +1 -0
  485. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js +1 -0
  486. package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +2 -2
  487. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +5 -27
  488. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  489. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
  490. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
  491. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
  492. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
  493. package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +5 -1
  494. package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +10 -2
  495. package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/constants.d.ts +1 -0
  496. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +5 -27
  497. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  498. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
  499. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
  500. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
  501. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
  502. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +5 -1
  503. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +10 -2
  504. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/constants.d.ts +1 -0
  505. package/node_modules/@smithy/core/package.json +2 -1
  506. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  507. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  508. package/node_modules/@smithy/middleware-compression/package.json +2 -2
  509. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  510. package/node_modules/@smithy/signature-v4/package.json +2 -2
  511. package/node_modules/js-yaml/dist/js-yaml.js +5 -2
  512. package/node_modules/js-yaml/dist/js-yaml.js.map +1 -1
  513. package/node_modules/js-yaml/dist/js-yaml.min.js +1 -1
  514. package/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -1
  515. package/node_modules/js-yaml/dist/js-yaml.mjs +3 -3
  516. package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
  517. package/node_modules/js-yaml/lib/type/omap.js +3 -3
  518. package/node_modules/js-yaml/package.json +1 -1
  519. package/package.json +11 -11
  520. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +0 -135
  521. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -27
  522. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -17
@@ -0,0 +1,200 @@
1
+ import { determineTimestampFormat } from "@smithy/core/protocols";
2
+ import { NormalizedSchema } from "@smithy/core/schema";
3
+ import { fromBase64, LazyJsonString, NumericValue, parseEpochTimestamp, parseRfc3339DateTimeWithOffset, parseRfc7231DateTime, } from "@smithy/core/serde";
4
+ import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
5
+ import { UnionSerde } from "../../UnionSerde";
6
+ import { detectBufferParsing } from "../detectBufferParsing";
7
+ import { jsonReviver } from "../jsonReviver";
8
+ import { needsReviver } from "../needsReviver";
9
+ import { parseJsonBody } from "../parseJsonBody";
10
+ import { writeKey } from "../../writeKey";
11
+ export class JsonShapeDeserializer2 extends SerdeContextConfig {
12
+ settings;
13
+ constructor(settings) {
14
+ super();
15
+ this.settings = settings;
16
+ }
17
+ async read(schema, data) {
18
+ const reviver = needsReviver(schema) ? jsonReviver : undefined;
19
+ let parsed;
20
+ if (typeof data === "string") {
21
+ if (data.length === 0) {
22
+ return {};
23
+ }
24
+ parsed = JSON.parse(data, reviver);
25
+ }
26
+ else if (data instanceof Uint8Array && detectBufferParsing()) {
27
+ if (data.byteLength === 0) {
28
+ return {};
29
+ }
30
+ const buf = Buffer.isBuffer(data) ? data : Buffer.from(data.buffer, data.byteOffset, data.byteLength);
31
+ parsed = JSON.parse(buf, reviver);
32
+ }
33
+ else {
34
+ parsed = await parseJsonBody(data, this.serdeContext, schema);
35
+ }
36
+ return this._read(schema, parsed);
37
+ }
38
+ readObject(schema, data) {
39
+ return this._read(schema, data);
40
+ }
41
+ _read(schema, value) {
42
+ const isObject = value !== null && typeof value === "object";
43
+ const ns = NormalizedSchema.of(schema);
44
+ if (isObject) {
45
+ if (ns.isStructSchema()) {
46
+ return this._readStruct(ns, value);
47
+ }
48
+ if (Array.isArray(value) && ns.isListSchema()) {
49
+ const listMember = ns.getValueSchema();
50
+ if (this.needsTransform(listMember)) {
51
+ for (let i = 0; i < value.length; ++i) {
52
+ value[i] = this._read(listMember, value[i]);
53
+ }
54
+ }
55
+ return value;
56
+ }
57
+ if (ns.isMapSchema()) {
58
+ const mapMember = ns.getValueSchema();
59
+ const map = value;
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]);
66
+ }
67
+ }
68
+ return map;
69
+ }
70
+ }
71
+ if (ns.isBlobSchema() && typeof value === "string") {
72
+ return fromBase64(value);
73
+ }
74
+ const mediaType = ns.getMergedTraits().mediaType;
75
+ if (ns.isStringSchema() && typeof value === "string" && mediaType) {
76
+ const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
77
+ if (isJson) {
78
+ return LazyJsonString.from(value);
79
+ }
80
+ return value;
81
+ }
82
+ if (ns.isTimestampSchema() && value != null) {
83
+ const format = determineTimestampFormat(ns, this.settings);
84
+ switch (format) {
85
+ case 5:
86
+ return parseRfc3339DateTimeWithOffset(value);
87
+ case 6:
88
+ return parseRfc7231DateTime(value);
89
+ case 7:
90
+ return parseEpochTimestamp(value);
91
+ default:
92
+ console.warn("Missing timestamp format, parsing value with Date constructor:", value);
93
+ return new Date(value);
94
+ }
95
+ }
96
+ if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
97
+ return BigInt(value);
98
+ }
99
+ if (ns.isBigDecimalSchema() && value != undefined) {
100
+ if (value instanceof NumericValue) {
101
+ return value;
102
+ }
103
+ const untyped = value;
104
+ if (untyped.type === "bigDecimal" && "string" in untyped) {
105
+ return new NumericValue(untyped.string, untyped.type);
106
+ }
107
+ return new NumericValue(String(value), "bigDecimal");
108
+ }
109
+ if (ns.isNumericSchema() && typeof value === "string") {
110
+ switch (value) {
111
+ case "Infinity":
112
+ return Infinity;
113
+ case "-Infinity":
114
+ return -Infinity;
115
+ case "NaN":
116
+ return NaN;
117
+ }
118
+ return value;
119
+ }
120
+ if (ns.isDocumentSchema()) {
121
+ if (isObject) {
122
+ if (Array.isArray(value)) {
123
+ for (let i = 0; i < value.length; ++i) {
124
+ const v = value[i];
125
+ if (!(v instanceof NumericValue)) {
126
+ value[i] = this._read(ns, v);
127
+ }
128
+ }
129
+ }
130
+ else {
131
+ const doc = value;
132
+ for (const k in doc) {
133
+ if (k === "__proto__") {
134
+ writeKey(doc);
135
+ }
136
+ const v = doc[k];
137
+ if (!(v instanceof NumericValue)) {
138
+ doc[k] = this._read(ns, v);
139
+ }
140
+ }
141
+ }
142
+ }
143
+ }
144
+ return value;
145
+ }
146
+ _readStruct(ns, record) {
147
+ const union = ns.isUnionSchema();
148
+ const out = {};
149
+ let nameMap;
150
+ const hasType = typeof record.__type === "string";
151
+ const { jsonName } = this.settings;
152
+ if (jsonName && hasType) {
153
+ nameMap = {};
154
+ }
155
+ let unionSerde;
156
+ if (union) {
157
+ unionSerde = new UnionSerde(record, out);
158
+ }
159
+ for (const [memberName, memberSchema] of ns.structIterator()) {
160
+ let fromKey = memberName;
161
+ if (jsonName) {
162
+ fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
163
+ if (hasType) {
164
+ nameMap[fromKey] = memberName;
165
+ }
166
+ }
167
+ if (union) {
168
+ unionSerde.mark(fromKey);
169
+ }
170
+ if (record[fromKey] != null) {
171
+ out[memberName] = this._read(memberSchema, record[fromKey]);
172
+ }
173
+ }
174
+ if (union) {
175
+ unionSerde.writeUnknown();
176
+ }
177
+ else if (hasType) {
178
+ for (const k in record) {
179
+ const v = record[k];
180
+ const t = jsonName ? (nameMap[k] ?? k) : k;
181
+ if (!(t in out)) {
182
+ out[t] = v;
183
+ }
184
+ }
185
+ }
186
+ return out;
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
+ }
200
+ }
@@ -0,0 +1,489 @@
1
+ import { determineTimestampFormat } from "@smithy/core/protocols";
2
+ import { NormalizedSchema } from "@smithy/core/schema";
3
+ import { dateToUtcString, generateIdempotencyToken, LazyJsonString, NumericValue, toBase64 } from "@smithy/core/serde";
4
+ import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
5
+ import { writeKey } from "../../writeKey";
6
+ import { JsonBytesStringAdapter } from "./JsonBytesStringAdapter";
7
+ const encoder = new TextEncoder();
8
+ const OPEN_BRACE = 0x7b;
9
+ const CLOSE_BRACE = 0x7d;
10
+ const OPEN_BRACKET = 0x5b;
11
+ const CLOSE_BRACKET = 0x5d;
12
+ const QUOTE = 0x22;
13
+ const COLON = 0x3a;
14
+ const COMMA = 0x2c;
15
+ const BACKSLASH = 0x5c;
16
+ const TRUE = new Uint8Array([0x74, 0x72, 0x75, 0x65]);
17
+ const FALSE = new Uint8Array([0x66, 0x61, 0x6c, 0x73, 0x65]);
18
+ const NULL = new Uint8Array([0x6e, 0x75, 0x6c, 0x6c]);
19
+ const ESCAPE_TABLE = new Array(128).fill(null);
20
+ ESCAPE_TABLE[0x08] = "b";
21
+ ESCAPE_TABLE[0x09] = "t";
22
+ ESCAPE_TABLE[0x0a] = "n";
23
+ ESCAPE_TABLE[0x0c] = "f";
24
+ ESCAPE_TABLE[0x0d] = "r";
25
+ ESCAPE_TABLE[0x22] = '"';
26
+ ESCAPE_TABLE[0x5c] = "\\";
27
+ for (let i = 0; i < 0x20; i++) {
28
+ if (ESCAPE_TABLE[i] === null) {
29
+ ESCAPE_TABLE[i] = "u00" + i.toString(16).padStart(2, "0");
30
+ }
31
+ }
32
+ const INITIAL_BUFFER_SIZE = 2048;
33
+ function alloc(size) {
34
+ return JsonBytesStringAdapter.allocUnsafe(size);
35
+ }
36
+ export class JsonShapeSerializer2 extends SerdeContextConfig {
37
+ settings;
38
+ json;
39
+ i = 0;
40
+ rootSchema;
41
+ rawValue;
42
+ passthrough = false;
43
+ constructor(settings) {
44
+ super();
45
+ this.settings = settings;
46
+ this.json = alloc(INITIAL_BUFFER_SIZE);
47
+ }
48
+ write(schema, value) {
49
+ this.i = 0;
50
+ this.rawValue = value;
51
+ this.rootSchema = NormalizedSchema.of(schema);
52
+ this.passthrough = this.rootSchema.isBlobSchema() || this.rootSchema.isStringSchema();
53
+ if (!this.passthrough) {
54
+ this.writeValue(this.rootSchema, value, undefined);
55
+ }
56
+ }
57
+ writeDiscriminatedDocument(schema, value) {
58
+ this.i = 0;
59
+ this.rootSchema = NormalizedSchema.of(schema);
60
+ const ns = this.rootSchema;
61
+ if (ns.isStructSchema() && value != null && typeof value === "object") {
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;
69
+ }
70
+ else {
71
+ this.writeValue(ns, value, undefined);
72
+ }
73
+ }
74
+ flush() {
75
+ this.rootSchema = undefined;
76
+ const finalPosition = this.i;
77
+ this.i = 0;
78
+ const raw = this.rawValue;
79
+ this.rawValue = undefined;
80
+ if (finalPosition === 0) {
81
+ return raw;
82
+ }
83
+ const result = this.json.subarray(0, finalPosition);
84
+ this.json = alloc(INITIAL_BUFFER_SIZE);
85
+ return result;
86
+ }
87
+ ensure(byteCount) {
88
+ const { i, json } = this;
89
+ if (i + byteCount > json.length) {
90
+ let newSize = json.length * 2;
91
+ while (newSize < i + byteCount) {
92
+ newSize *= 2;
93
+ }
94
+ const next = alloc(newSize);
95
+ next.set(this.json);
96
+ this.json = next;
97
+ }
98
+ }
99
+ writeAscii(s) {
100
+ const z = s.length;
101
+ this.ensure(z);
102
+ let { i, json } = this;
103
+ for (let j = 0; j < z; ++j) {
104
+ json[i] = s.charCodeAt(j);
105
+ i += 1;
106
+ }
107
+ this.i = i;
108
+ }
109
+ writeAsciiQuoted(s) {
110
+ const z = s.length;
111
+ this.ensure(z + 4);
112
+ let { json, i } = this;
113
+ json[i++] = QUOTE;
114
+ for (let j = 0; j < z; ++j) {
115
+ json[i++] = s.charCodeAt(j);
116
+ }
117
+ json[i++] = QUOTE;
118
+ this.i = i;
119
+ }
120
+ writeJsonString(s) {
121
+ this.ensure(s.length * 3 + 2);
122
+ this.json[this.i++] = QUOTE;
123
+ const z = s.length;
124
+ for (let j = 0; j < z; ++j) {
125
+ const c = s.charCodeAt(j);
126
+ if (c > 0x22 && c < 0x5c) {
127
+ this.json[this.i++] = c;
128
+ }
129
+ else if (c < 0x80) {
130
+ const esc = ESCAPE_TABLE[c];
131
+ if (esc !== null) {
132
+ this.ensure(esc.length + 1);
133
+ this.json[this.i++] = BACKSLASH;
134
+ for (let k = 0; k < esc.length; k++) {
135
+ this.json[this.i++] = esc.charCodeAt(k);
136
+ }
137
+ }
138
+ else {
139
+ this.json[this.i++] = c;
140
+ }
141
+ }
142
+ else if (c >= 0xd800 && c <= 0xdbff) {
143
+ const next = j + 1 < z ? s.charCodeAt(j + 1) : 0;
144
+ if (next >= 0xdc00 && next <= 0xdfff) {
145
+ this.ensure(4);
146
+ const { written } = encoder.encodeInto(s.substring(j, j + 2), this.json.subarray(this.i));
147
+ this.i += written;
148
+ ++j;
149
+ }
150
+ else {
151
+ this.ensure(6);
152
+ this.writeUnicodeEscape(c);
153
+ }
154
+ }
155
+ else if (c >= 0xdc00 && c <= 0xdfff) {
156
+ this.ensure(6);
157
+ this.writeUnicodeEscape(c);
158
+ }
159
+ else {
160
+ let { i, json } = this;
161
+ if (c < 0x800) {
162
+ json[i++] = 0xc0 | (c >> 6);
163
+ json[i++] = 0x80 | (c & 0x3f);
164
+ }
165
+ else {
166
+ json[i++] = 0xe0 | (c >> 12);
167
+ json[i++] = 0x80 | ((c >> 6) & 0x3f);
168
+ json[i++] = 0x80 | (c & 0x3f);
169
+ }
170
+ this.i = i;
171
+ }
172
+ }
173
+ this.json[this.i++] = QUOTE;
174
+ }
175
+ writeUnicodeEscape(code) {
176
+ let { json, i } = this;
177
+ json[i++] = BACKSLASH;
178
+ json[i++] = 0x75;
179
+ const hex = code.toString(16).padStart(4, "0");
180
+ for (let j = 0; j < 4; ++j) {
181
+ json[i++] = hex.charCodeAt(j);
182
+ }
183
+ this.i = i;
184
+ }
185
+ static B64 = (() => {
186
+ const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
187
+ const table = new Uint8Array(64);
188
+ for (let i = 0; i < 64; ++i) {
189
+ table[i] = chars.charCodeAt(i);
190
+ }
191
+ return table;
192
+ })();
193
+ writeBase64(data) {
194
+ const b64Len = Math.ceil(data.length / 3) * 4;
195
+ this.ensure(b64Len + 2);
196
+ const json = this.json;
197
+ const B64 = JsonShapeSerializer2.B64;
198
+ let i = this.i;
199
+ json[i++] = QUOTE;
200
+ const len = data.length;
201
+ const remainder = len % 3;
202
+ const mainLen = len - remainder;
203
+ for (let j = 0; j < mainLen; j += 3) {
204
+ const a = data[j];
205
+ const b = data[j + 1];
206
+ const c = data[j + 2];
207
+ json[i++] = B64[a >> 2];
208
+ json[i++] = B64[((a & 0x03) << 4) | (b >> 4)];
209
+ json[i++] = B64[((b & 0x0f) << 2) | (c >> 6)];
210
+ json[i++] = B64[c & 0x3f];
211
+ }
212
+ if (remainder === 2) {
213
+ const a = data[mainLen];
214
+ const b = data[mainLen + 1];
215
+ json[i++] = B64[a >> 2];
216
+ json[i++] = B64[((a & 0x03) << 4) | (b >> 4)];
217
+ json[i++] = B64[(b & 0x0f) << 2];
218
+ json[i++] = 0x3d;
219
+ }
220
+ else if (remainder === 1) {
221
+ const a = data[mainLen];
222
+ json[i++] = B64[a >> 2];
223
+ json[i++] = B64[(a & 0x03) << 4];
224
+ json[i++] = 0x3d;
225
+ json[i++] = 0x3d;
226
+ }
227
+ json[i++] = QUOTE;
228
+ this.i = i;
229
+ }
230
+ writeValue(schema, value, container) {
231
+ if (value == null) {
232
+ if (container?.isStructSchema()) {
233
+ if (value === undefined) {
234
+ const ns = NormalizedSchema.of(schema);
235
+ if (ns.isIdempotencyToken()) {
236
+ this.writeAsciiQuoted(generateIdempotencyToken());
237
+ return;
238
+ }
239
+ }
240
+ return;
241
+ }
242
+ this.ensure(4);
243
+ this.json.set(NULL, this.i);
244
+ this.i += 4;
245
+ return;
246
+ }
247
+ const ns = NormalizedSchema.of(schema);
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
+ }
259
+ if (isObject) {
260
+ if (ns.isStructSchema()) {
261
+ this.writeStruct(ns, value);
262
+ return;
263
+ }
264
+ if (Array.isArray(value) && (ns.isListSchema() || ns.isDocumentSchema())) {
265
+ this.writeList(ns, value, ns.isDocumentSchema());
266
+ return;
267
+ }
268
+ if (ns.isMapSchema()) {
269
+ this.writeMap(ns, value, false);
270
+ return;
271
+ }
272
+ if (value instanceof Uint8Array && (ns.isBlobSchema() || ns.isDocumentSchema())) {
273
+ this.writeBase64(value);
274
+ return;
275
+ }
276
+ if (value instanceof Date && (ns.isTimestampSchema() || ns.isDocumentSchema())) {
277
+ this.writeTimestamp(ns, value);
278
+ return;
279
+ }
280
+ if (value instanceof NumericValue) {
281
+ this.writeAscii(value.string);
282
+ return;
283
+ }
284
+ if (ns.isDocumentSchema()) {
285
+ if (Array.isArray(value)) {
286
+ this.writeList(ns, value, true);
287
+ }
288
+ else {
289
+ this.writeMap(ns, value, true);
290
+ }
291
+ return;
292
+ }
293
+ const json = JSON.stringify(value);
294
+ this.writeAscii(json);
295
+ return;
296
+ }
297
+ if (typeof value === "string") {
298
+ if (ns.isBlobSchema()) {
299
+ const b64 = (this.serdeContext?.base64Encoder ?? toBase64)(value);
300
+ this.writeAsciiQuoted(b64);
301
+ return;
302
+ }
303
+ this.writeJsonString(value);
304
+ return;
305
+ }
306
+ if (typeof value === "number") {
307
+ if (ns.isNumericSchema() && (Math.abs(value) === Infinity || isNaN(value))) {
308
+ this.writeAsciiQuoted(String(value));
309
+ return;
310
+ }
311
+ const numStr = String(value);
312
+ this.writeAscii(numStr);
313
+ return;
314
+ }
315
+ if (typeof value === "boolean") {
316
+ this.ensure(5);
317
+ let { i, json } = this;
318
+ if (value) {
319
+ json.set(TRUE, i);
320
+ i += 4;
321
+ }
322
+ else {
323
+ json.set(FALSE, i);
324
+ i += 5;
325
+ }
326
+ this.i = i;
327
+ return;
328
+ }
329
+ if (typeof value === "bigint") {
330
+ this.writeAscii(value.toString());
331
+ return;
332
+ }
333
+ this.writeAscii(String(value));
334
+ }
335
+ writeStruct(ns, value) {
336
+ this.ensure(2);
337
+ this.json[this.i++] = OPEN_BRACE;
338
+ let wroteAny = false;
339
+ const hasType = typeof value.__type === "string";
340
+ let writtenKeys;
341
+ if (hasType) {
342
+ writtenKeys = new Set();
343
+ }
344
+ for (const [memberName, memberSchema] of ns.structIterator()) {
345
+ const item = value[memberName];
346
+ if (item == null && !memberSchema.isIdempotencyToken()) {
347
+ continue;
348
+ }
349
+ if (wroteAny) {
350
+ this.ensure(1);
351
+ this.json[this.i++] = COMMA;
352
+ }
353
+ wroteAny = true;
354
+ const targetKey = this.settings.jsonName ? (memberSchema.getMergedTraits().jsonName ?? memberName) : memberName;
355
+ if (writtenKeys) {
356
+ writtenKeys.add(memberName);
357
+ writtenKeys.add(targetKey);
358
+ }
359
+ this.writeAsciiQuoted(targetKey);
360
+ this.json[this.i++] = COLON;
361
+ this.writeValue(memberSchema, item, ns);
362
+ }
363
+ if (!wroteAny && ns.isUnionSchema()) {
364
+ const { $unknown } = value;
365
+ if (Array.isArray($unknown)) {
366
+ const [k, v] = $unknown;
367
+ this.writeAsciiQuoted(k);
368
+ this.ensure(1);
369
+ this.json[this.i++] = COLON;
370
+ this.writeValue(15, v, ns);
371
+ }
372
+ }
373
+ else if (hasType) {
374
+ for (const k in value) {
375
+ if (writtenKeys.has(k)) {
376
+ continue;
377
+ }
378
+ writtenKeys.add(k);
379
+ const v = value[k];
380
+ if (wroteAny) {
381
+ this.ensure(1);
382
+ this.json[this.i++] = COMMA;
383
+ }
384
+ wroteAny = true;
385
+ this.writeAsciiQuoted(k);
386
+ this.ensure(1);
387
+ this.json[this.i++] = COLON;
388
+ this.writeValue(15, v, undefined);
389
+ }
390
+ }
391
+ this.ensure(1);
392
+ this.json[this.i++] = CLOSE_BRACE;
393
+ }
394
+ writeList(ns, value, isDocument) {
395
+ const sparse = !!ns.getMergedTraits().sparse;
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;
408
+ for (let i = 0; i < value.length; ++i) {
409
+ const item = value[i];
410
+ if (isDocument ? item === undefined : item == null && !sparse) {
411
+ continue;
412
+ }
413
+ if (wroteFirstItem) {
414
+ this.ensure(1);
415
+ this.json[this.i++] = COMMA;
416
+ }
417
+ this.writeValue(valueSchema, item, undefined);
418
+ wroteFirstItem = true;
419
+ }
420
+ this.ensure(1);
421
+ this.json[this.i++] = CLOSE_BRACKET;
422
+ }
423
+ writeMap(ns, value, isDocument) {
424
+ const sparse = !!ns.getMergedTraits().sparse;
425
+ const valueSchema = ns.getValueSchema();
426
+ if (!isDocument) {
427
+ if (valueSchema.isStringSchema() || valueSchema.isNumericSchema() || valueSchema.isBooleanSchema()) {
428
+ let input = value;
429
+ if (sparse) {
430
+ input = {};
431
+ for (const k in value) {
432
+ if (k === "__proto__") {
433
+ writeKey(input);
434
+ }
435
+ input[k] = value[k] ?? null;
436
+ }
437
+ }
438
+ const json = JSON.stringify(input);
439
+ this.ensure(json.length * 3);
440
+ this.i += encoder.encodeInto(json, this.json.subarray(this.i)).written;
441
+ return;
442
+ }
443
+ }
444
+ this.ensure(2);
445
+ this.json[this.i++] = OPEN_BRACE;
446
+ let first = true;
447
+ for (const k in value) {
448
+ const v = value[k];
449
+ if (isDocument ? v === undefined : v == null && !sparse) {
450
+ continue;
451
+ }
452
+ if (!first) {
453
+ this.ensure(1);
454
+ this.json[this.i++] = COMMA;
455
+ }
456
+ first = false;
457
+ this.writeJsonString(k);
458
+ this.ensure(1);
459
+ this.json[this.i++] = COLON;
460
+ this.writeValue(valueSchema, v, undefined);
461
+ }
462
+ this.ensure(1);
463
+ this.json[this.i++] = CLOSE_BRACE;
464
+ }
465
+ writeTimestamp(ns, value) {
466
+ const format = determineTimestampFormat(ns, this.settings);
467
+ switch (format) {
468
+ case 5: {
469
+ const iso = value.toISOString().replace(".000Z", "Z");
470
+ this.writeAsciiQuoted(iso);
471
+ return;
472
+ }
473
+ case 6: {
474
+ this.writeAsciiQuoted(dateToUtcString(value));
475
+ return;
476
+ }
477
+ case 7: {
478
+ const epochSecs = String(value.getTime() / 1000);
479
+ this.writeAscii(epochSecs);
480
+ return;
481
+ }
482
+ default: {
483
+ const epochSecs = String(value.getTime() / 1000);
484
+ this.writeAscii(epochSecs);
485
+ return;
486
+ }
487
+ }
488
+ }
489
+ }
@@ -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
+ }