@cdklabs/cdk-ssm-documents 0.0.63 → 0.0.65

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 (883) 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/{middleware-ssec → checksums}/LICENSE +1 -1
  117. package/node_modules/@aws-sdk/checksums/README.md +6 -0
  118. package/node_modules/@aws-sdk/checksums/dist-cjs/index.js +547 -0
  119. package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/selectChecksumAlgorithmFunction.js +2 -1
  120. package/node_modules/@aws-sdk/checksums/dist-es/index.js +8 -0
  121. package/node_modules/@aws-sdk/checksums/dist-types/index.d.ts +11 -0
  122. package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/index.d.ts +33 -0
  123. package/node_modules/@aws-sdk/{middleware-ssec → checksums}/package.json +33 -17
  124. package/node_modules/@aws-sdk/client-cloudformation/README.md +1 -1
  125. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +1 -1
  126. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +1 -1
  127. package/node_modules/@aws-sdk/client-cloudformation/dist-types/index.d.ts +1 -1
  128. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +1 -1
  129. package/node_modules/@aws-sdk/client-cloudformation/package.json +10 -10
  130. package/node_modules/@aws-sdk/client-cloudwatch/README.md +21 -0
  131. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/index.js +42 -0
  132. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/models/errors.js +75 -30
  133. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/schemas/schemas_0.js +77 -4
  134. package/node_modules/@aws-sdk/client-cloudwatch/dist-es/CloudWatch.js +6 -0
  135. package/node_modules/@aws-sdk/client-cloudwatch/dist-es/commands/AssociateDatasetKmsKeyCommand.js +16 -0
  136. package/node_modules/@aws-sdk/client-cloudwatch/dist-es/commands/DisassociateDatasetKmsKeyCommand.js +16 -0
  137. package/node_modules/@aws-sdk/client-cloudwatch/dist-es/commands/GetDatasetCommand.js +16 -0
  138. package/node_modules/@aws-sdk/client-cloudwatch/dist-es/commands/index.js +3 -0
  139. package/node_modules/@aws-sdk/client-cloudwatch/dist-es/models/errors.js +68 -26
  140. package/node_modules/@aws-sdk/client-cloudwatch/dist-es/schemas/schemas_0.js +73 -1
  141. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/CloudWatch.d.ts +21 -0
  142. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/CloudWatchClient.d.ts +5 -2
  143. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/AssociateDatasetKmsKeyCommand.d.ts +161 -0
  144. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/DisassociateDatasetKmsKeyCommand.d.ts +105 -0
  145. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/GetDatasetCommand.d.ts +91 -0
  146. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/index.d.ts +3 -0
  147. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/models/errors.d.ts +74 -23
  148. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/models/models_0.d.ts +90 -0
  149. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/schemas/schemas_0.d.ts +12 -0
  150. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/CloudWatch.d.ts +51 -0
  151. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/CloudWatchClient.d.ts +18 -0
  152. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/commands/AssociateDatasetKmsKeyCommand.d.ts +53 -0
  153. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/commands/DisassociateDatasetKmsKeyCommand.d.ts +53 -0
  154. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/commands/GetDatasetCommand.d.ts +49 -0
  155. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/commands/index.d.ts +3 -0
  156. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/models/errors.d.ts +40 -16
  157. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/models/models_0.d.ts +17 -0
  158. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/schemas/schemas_0.d.ts +12 -0
  159. package/node_modules/@aws-sdk/client-cloudwatch/package.json +16 -16
  160. package/node_modules/@aws-sdk/client-ec2/README.md +28 -0
  161. package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +75 -0
  162. package/node_modules/@aws-sdk/client-ec2/dist-cjs/schemas/schemas_0.js +280 -82
  163. package/node_modules/@aws-sdk/client-ec2/dist-es/EC2.js +8 -0
  164. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/AttachImageWatermarkCommand.js +16 -0
  165. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/CreateCapacityReservationCancellationQuoteCommand.js +16 -0
  166. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/DescribeCapacityReservationCancellationQuotesCommand.js +16 -0
  167. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/DetachImageWatermarkCommand.js +16 -0
  168. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/index.js +4 -0
  169. package/node_modules/@aws-sdk/client-ec2/dist-es/models/enums.js +16 -0
  170. package/node_modules/@aws-sdk/client-ec2/dist-es/schemas/schemas_0.js +218 -21
  171. package/node_modules/@aws-sdk/client-ec2/dist-types/EC2.d.ts +29 -0
  172. package/node_modules/@aws-sdk/client-ec2/dist-types/EC2Client.d.ts +6 -2
  173. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/AcceptAddressTransferCommand.d.ts +1 -1
  174. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/AllocateAddressCommand.d.ts +1 -1
  175. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/AllocateHostsCommand.d.ts +1 -1
  176. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/AllocateIpamPoolCidrCommand.d.ts +1 -1
  177. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/AssociateIpamResourceDiscoveryCommand.d.ts +1 -1
  178. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/AttachImageWatermarkCommand.d.ts +84 -0
  179. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/AuthorizeSecurityGroupEgressCommand.d.ts +1 -1
  180. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/AuthorizeSecurityGroupIngressCommand.d.ts +1 -1
  181. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CancelCapacityReservationCommand.d.ts +16 -2
  182. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CopyImageCommand.d.ts +1 -1
  183. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CopySnapshotCommand.d.ts +1 -1
  184. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CopyVolumesCommand.d.ts +1 -1
  185. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCapacityManagerDataExportCommand.d.ts +1 -1
  186. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCapacityReservationBySplittingCommand.d.ts +5 -5
  187. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCapacityReservationCancellationQuoteCommand.d.ts +117 -0
  188. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCapacityReservationCommand.d.ts +3 -3
  189. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +2 -2
  190. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCarrierGatewayCommand.d.ts +1 -1
  191. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateClientVpnEndpointCommand.d.ts +1 -1
  192. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCoipPoolCommand.d.ts +1 -1
  193. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCustomerGatewayCommand.d.ts +1 -1
  194. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateDefaultSubnetCommand.d.ts +2 -1
  195. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateDefaultVpcCommand.d.ts +1 -1
  196. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateDelegateMacVolumeOwnershipTaskCommand.d.ts +1 -1
  197. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateDhcpOptionsCommand.d.ts +1 -1
  198. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateEgressOnlyInternetGatewayCommand.d.ts +1 -1
  199. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateFleetCommand.d.ts +1 -1
  200. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateFlowLogsCommand.d.ts +9 -1
  201. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateFpgaImageCommand.d.ts +1 -1
  202. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateImageCommand.d.ts +1 -1
  203. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateImageUsageReportCommand.d.ts +1 -1
  204. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateInstanceConnectEndpointCommand.d.ts +1 -1
  205. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateInstanceEventWindowCommand.d.ts +1 -1
  206. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateInstanceExportTaskCommand.d.ts +1 -1
  207. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateInternetGatewayCommand.d.ts +1 -1
  208. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateInterruptibleCapacityReservationAllocationCommand.d.ts +1 -1
  209. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateIpamCommand.d.ts +1 -1
  210. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateIpamExternalResourceVerificationTokenCommand.d.ts +1 -1
  211. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateIpamPolicyCommand.d.ts +1 -1
  212. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateIpamPoolCommand.d.ts +1 -1
  213. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateIpamPrefixListResolverCommand.d.ts +1 -1
  214. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateIpamPrefixListResolverTargetCommand.d.ts +1 -1
  215. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateIpamResourceDiscoveryCommand.d.ts +1 -1
  216. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateIpamScopeCommand.d.ts +1 -1
  217. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateKeyPairCommand.d.ts +1 -1
  218. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateLaunchTemplateCommand.d.ts +2 -2
  219. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +2 -2
  220. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateLocalGatewayRouteTableCommand.d.ts +1 -1
  221. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand.d.ts +1 -1
  222. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateLocalGatewayRouteTableVpcAssociationCommand.d.ts +1 -1
  223. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateLocalGatewayVirtualInterfaceCommand.d.ts +1 -1
  224. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateLocalGatewayVirtualInterfaceGroupCommand.d.ts +1 -1
  225. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateMacSystemIntegrityProtectionModificationTaskCommand.d.ts +1 -1
  226. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateManagedPrefixListCommand.d.ts +1 -1
  227. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateNatGatewayCommand.d.ts +1 -1
  228. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateNetworkAclCommand.d.ts +1 -1
  229. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateNetworkInsightsAccessScopeCommand.d.ts +1 -1
  230. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateNetworkInsightsPathCommand.d.ts +1 -1
  231. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateNetworkInterfaceCommand.d.ts +1 -1
  232. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreatePlacementGroupCommand.d.ts +1 -1
  233. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreatePublicIpv4PoolCommand.d.ts +1 -1
  234. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateReplaceRootVolumeTaskCommand.d.ts +1 -1
  235. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateRestoreImageTaskCommand.d.ts +1 -1
  236. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateRouteServerCommand.d.ts +1 -1
  237. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateRouteServerEndpointCommand.d.ts +1 -1
  238. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateRouteServerPeerCommand.d.ts +3 -2
  239. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateRouteTableCommand.d.ts +2 -2
  240. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateSecondaryNetworkCommand.d.ts +1 -1
  241. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateSecondarySubnetCommand.d.ts +1 -1
  242. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateSecurityGroupCommand.d.ts +1 -1
  243. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateSnapshotCommand.d.ts +1 -1
  244. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateSnapshotsCommand.d.ts +1 -1
  245. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateSubnetCidrReservationCommand.d.ts +1 -1
  246. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateSubnetCommand.d.ts +1 -1
  247. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateTrafficMirrorFilterCommand.d.ts +1 -1
  248. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateTrafficMirrorFilterRuleCommand.d.ts +1 -1
  249. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateTrafficMirrorSessionCommand.d.ts +1 -1
  250. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateTrafficMirrorTargetCommand.d.ts +1 -1
  251. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateTransitGatewayCommand.d.ts +1 -1
  252. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateTransitGatewayConnectCommand.d.ts +1 -1
  253. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateTransitGatewayConnectPeerCommand.d.ts +1 -1
  254. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateTransitGatewayMeteringPolicyCommand.d.ts +1 -1
  255. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateTransitGatewayMulticastDomainCommand.d.ts +1 -1
  256. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateTransitGatewayPeeringAttachmentCommand.d.ts +1 -1
  257. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateTransitGatewayPolicyTableCommand.d.ts +1 -1
  258. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateTransitGatewayRouteTableAnnouncementCommand.d.ts +1 -1
  259. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateTransitGatewayRouteTableCommand.d.ts +1 -1
  260. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateTransitGatewayVpcAttachmentCommand.d.ts +1 -1
  261. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateVerifiedAccessEndpointCommand.d.ts +1 -1
  262. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateVerifiedAccessGroupCommand.d.ts +1 -1
  263. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateVerifiedAccessInstanceCommand.d.ts +1 -1
  264. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateVerifiedAccessTrustProviderCommand.d.ts +1 -1
  265. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateVolumeCommand.d.ts +1 -1
  266. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateVpcBlockPublicAccessExclusionCommand.d.ts +1 -1
  267. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateVpcCommand.d.ts +1 -1
  268. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateVpcEncryptionControlCommand.d.ts +1 -1
  269. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateVpcEndpointCommand.d.ts +1 -1
  270. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateVpcEndpointServiceConfigurationCommand.d.ts +1 -1
  271. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateVpcPeeringConnectionCommand.d.ts +1 -1
  272. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateVpnConcentratorCommand.d.ts +1 -1
  273. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateVpnConnectionCommand.d.ts +1 -1
  274. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateVpnGatewayCommand.d.ts +1 -1
  275. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteSecurityGroupCommand.d.ts +2 -1
  276. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteSnapshotCommand.d.ts +1 -1
  277. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteSpotDatafeedSubscriptionCommand.d.ts +1 -1
  278. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteSubnetCidrReservationCommand.d.ts +1 -1
  279. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteSubnetCommand.d.ts +1 -1
  280. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteTagsCommand.d.ts +1 -1
  281. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteTrafficMirrorFilterCommand.d.ts +1 -2
  282. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeCapacityReservationCancellationQuotesCommand.d.ts +119 -0
  283. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeCapacityReservationsCommand.d.ts +2 -2
  284. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeFlowLogsCommand.d.ts +8 -0
  285. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeImagesCommand.d.ts +9 -0
  286. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeImportSnapshotTasksCommand.d.ts +1 -1
  287. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceAttributeCommand.d.ts +1 -1
  288. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceConnectEndpointsCommand.d.ts +1 -1
  289. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceImageMetadataCommand.d.ts +9 -0
  290. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeLaunchTemplateVersionsCommand.d.ts +1 -1
  291. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeSpotFleetRequestsCommand.d.ts +2 -2
  292. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeSpotInstanceRequestsCommand.d.ts +2 -1
  293. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeSpotPriceHistoryCommand.d.ts +1 -1
  294. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeStaleSecurityGroupsCommand.d.ts +1 -1
  295. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeStoreImageTasksCommand.d.ts +1 -1
  296. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeSubnetsCommand.d.ts +1 -2
  297. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeTagsCommand.d.ts +1 -1
  298. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeVolumesModificationsCommand.d.ts +0 -5
  299. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DetachImageWatermarkCommand.d.ts +82 -0
  300. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ExportImageCommand.d.ts +1 -1
  301. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerAttributesCommand.d.ts +1 -1
  302. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerMetricDataCommand.d.ts +1 -1
  303. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerMetricDimensionsCommand.d.ts +1 -1
  304. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerMonitoredTagKeysCommand.d.ts +1 -2
  305. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityReservationUsageCommand.d.ts +1 -1
  306. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +1 -1
  307. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ImportImageCommand.d.ts +1 -1
  308. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ImportKeyPairCommand.d.ts +1 -1
  309. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ImportSnapshotCommand.d.ts +1 -1
  310. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyIpamScopeCommand.d.ts +2 -1
  311. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyLaunchTemplateCommand.d.ts +1 -1
  312. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyLocalGatewayRouteCommand.d.ts +1 -1
  313. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyManagedPrefixListCommand.d.ts +1 -1
  314. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyManagedResourceVisibilityCommand.d.ts +1 -1
  315. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyNetworkInterfaceAttributeCommand.d.ts +1 -1
  316. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyPrivateDnsNameOptionsCommand.d.ts +1 -1
  317. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyVolumeCommand.d.ts +0 -5
  318. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/MoveCapacityReservationInstancesCommand.d.ts +4 -4
  319. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ProvisionByoipCidrCommand.d.ts +1 -1
  320. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/PurchaseCapacityBlockCommand.d.ts +3 -3
  321. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/PurchaseHostReservationCommand.d.ts +1 -1
  322. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RegisterImageCommand.d.ts +1 -1
  323. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RequestSpotFleetCommand.d.ts +2 -2
  324. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RequestSpotInstancesCommand.d.ts +1 -1
  325. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RunInstancesCommand.d.ts +1 -1
  326. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/StartDeclarativePoliciesReportCommand.d.ts +1 -1
  327. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/StartNetworkInsightsAccessScopeAnalysisCommand.d.ts +1 -1
  328. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/StartNetworkInsightsAnalysisCommand.d.ts +1 -1
  329. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/index.d.ts +4 -0
  330. package/node_modules/@aws-sdk/client-ec2/dist-types/models/enums.d.ts +40 -0
  331. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_0.d.ts +196 -207
  332. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_1.d.ts +237 -356
  333. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_2.d.ts +354 -140
  334. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_3.d.ts +249 -434
  335. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_4.d.ts +2348 -2496
  336. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_5.d.ts +907 -861
  337. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_6.d.ts +580 -384
  338. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_7.d.ts +385 -7
  339. package/node_modules/@aws-sdk/client-ec2/dist-types/schemas/schemas_0.d.ts +18 -0
  340. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2.d.ts +81 -0
  341. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2Client.d.ts +24 -0
  342. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/AttachImageWatermarkCommand.d.ts +53 -0
  343. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateCapacityReservationCancellationQuoteCommand.d.ts +53 -0
  344. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateDefaultSubnetCommand.d.ts +2 -4
  345. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateDefaultVpcCommand.d.ts +1 -1
  346. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateRouteServerPeerCommand.d.ts +2 -4
  347. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateRouteTableCommand.d.ts +1 -1
  348. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteSecurityGroupCommand.d.ts +2 -4
  349. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteSnapshotCommand.d.ts +1 -1
  350. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteSpotDatafeedSubscriptionCommand.d.ts +1 -1
  351. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteSubnetCidrReservationCommand.d.ts +1 -1
  352. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteSubnetCommand.d.ts +1 -1
  353. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteTagsCommand.d.ts +1 -1
  354. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteTrafficMirrorFilterCommand.d.ts +4 -2
  355. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeCapacityReservationCancellationQuotesCommand.d.ts +53 -0
  356. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeImportSnapshotTasksCommand.d.ts +1 -1
  357. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeInstanceAttributeCommand.d.ts +1 -1
  358. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeInstanceConnectEndpointsCommand.d.ts +1 -1
  359. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeSpotInstanceRequestsCommand.d.ts +2 -4
  360. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeSpotPriceHistoryCommand.d.ts +1 -1
  361. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeStaleSecurityGroupsCommand.d.ts +1 -1
  362. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeStoreImageTasksCommand.d.ts +1 -1
  363. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeSubnetsCommand.d.ts +4 -2
  364. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DetachImageWatermarkCommand.d.ts +53 -0
  365. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetCapacityManagerAttributesCommand.d.ts +1 -1
  366. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetCapacityManagerMetricDataCommand.d.ts +1 -1
  367. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetCapacityManagerMetricDimensionsCommand.d.ts +1 -1
  368. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetCapacityManagerMonitoredTagKeysCommand.d.ts +4 -2
  369. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyIpamScopeCommand.d.ts +2 -4
  370. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyLaunchTemplateCommand.d.ts +1 -1
  371. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyLocalGatewayRouteCommand.d.ts +1 -1
  372. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyManagedPrefixListCommand.d.ts +1 -1
  373. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyManagedResourceVisibilityCommand.d.ts +1 -1
  374. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyNetworkInterfaceAttributeCommand.d.ts +1 -1
  375. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyPrivateDnsNameOptionsCommand.d.ts +1 -1
  376. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/index.d.ts +4 -0
  377. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/enums.d.ts +22 -0
  378. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_0.d.ts +45 -52
  379. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_1.d.ts +60 -74
  380. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_2.d.ts +79 -34
  381. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_3.d.ts +61 -90
  382. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_4.d.ts +92 -87
  383. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_5.d.ts +98 -110
  384. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_6.d.ts +109 -92
  385. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_7.d.ts +89 -3
  386. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/schemas/schemas_0.d.ts +18 -0
  387. package/node_modules/@aws-sdk/client-ec2/package.json +16 -14
  388. package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateServiceSpecificCredentialCommand.d.ts +18 -3
  389. package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListServiceSpecificCredentialsCommand.d.ts +17 -2
  390. package/node_modules/@aws-sdk/client-iam/dist-types/models/models_0.d.ts +5 -2
  391. package/node_modules/@aws-sdk/client-iam/package.json +15 -15
  392. package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +5 -0
  393. package/node_modules/@aws-sdk/client-lambda/dist-cjs/schemas/schemas_0.js +20 -13
  394. package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +4 -0
  395. package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +16 -9
  396. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateCapacityProviderCommand.d.ts +12 -0
  397. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteCapacityProviderCommand.d.ts +6 -0
  398. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetCapacityProviderCommand.d.ts +6 -0
  399. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
  400. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListCapacityProvidersCommand.d.ts +6 -0
  401. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateCapacityProviderCommand.d.ts +12 -0
  402. package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +18 -0
  403. package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +32 -1
  404. package/node_modules/@aws-sdk/client-lambda/dist-types/schemas/schemas_0.d.ts +1 -0
  405. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +6 -0
  406. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +8 -0
  407. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
  408. package/node_modules/@aws-sdk/client-lambda/package.json +11 -11
  409. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +85 -88
  410. package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js +3 -4
  411. package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js +2 -2
  412. package/node_modules/@aws-sdk/client-s3/dist-es/S3Client.js +1 -2
  413. package/node_modules/@aws-sdk/client-s3/dist-es/commands/AbortMultipartUploadCommand.js +1 -1
  414. package/node_modules/@aws-sdk/client-s3/dist-es/commands/CompleteMultipartUploadCommand.js +1 -2
  415. package/node_modules/@aws-sdk/client-s3/dist-es/commands/CopyObjectCommand.js +1 -2
  416. package/node_modules/@aws-sdk/client-s3/dist-es/commands/CreateBucketCommand.js +1 -2
  417. package/node_modules/@aws-sdk/client-s3/dist-es/commands/CreateMultipartUploadCommand.js +1 -2
  418. package/node_modules/@aws-sdk/client-s3/dist-es/commands/CreateSessionCommand.js +1 -1
  419. package/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectCommand.js +1 -1
  420. package/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectTaggingCommand.js +1 -1
  421. package/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectsCommand.js +1 -1
  422. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketAbacCommand.js +1 -1
  423. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketAccelerateConfigurationCommand.js +1 -1
  424. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketAclCommand.js +1 -1
  425. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js +1 -1
  426. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketCorsCommand.js +1 -1
  427. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketEncryptionCommand.js +1 -1
  428. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js +1 -1
  429. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketInventoryConfigurationCommand.js +1 -1
  430. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketLifecycleConfigurationCommand.js +1 -1
  431. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketLocationCommand.js +1 -1
  432. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketLoggingCommand.js +1 -1
  433. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketMetadataConfigurationCommand.js +1 -1
  434. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketMetadataTableConfigurationCommand.js +1 -1
  435. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketMetricsConfigurationCommand.js +1 -1
  436. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketNotificationConfigurationCommand.js +1 -1
  437. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketOwnershipControlsCommand.js +1 -1
  438. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketPolicyStatusCommand.js +1 -1
  439. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketReplicationCommand.js +1 -1
  440. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketRequestPaymentCommand.js +1 -1
  441. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketTaggingCommand.js +1 -1
  442. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketVersioningCommand.js +1 -1
  443. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetBucketWebsiteCommand.js +1 -1
  444. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectAclCommand.js +1 -1
  445. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectAttributesCommand.js +1 -2
  446. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectCommand.js +1 -2
  447. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectLegalHoldCommand.js +1 -1
  448. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectLockConfigurationCommand.js +1 -1
  449. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectRetentionCommand.js +1 -1
  450. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectTaggingCommand.js +1 -1
  451. package/node_modules/@aws-sdk/client-s3/dist-es/commands/GetPublicAccessBlockCommand.js +1 -1
  452. package/node_modules/@aws-sdk/client-s3/dist-es/commands/HeadBucketCommand.js +1 -1
  453. package/node_modules/@aws-sdk/client-s3/dist-es/commands/HeadObjectCommand.js +1 -2
  454. package/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js +1 -1
  455. package/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js +1 -1
  456. package/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketInventoryConfigurationsCommand.js +1 -1
  457. package/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +1 -1
  458. package/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketsCommand.js +1 -1
  459. package/node_modules/@aws-sdk/client-s3/dist-es/commands/ListDirectoryBucketsCommand.js +1 -1
  460. package/node_modules/@aws-sdk/client-s3/dist-es/commands/ListMultipartUploadsCommand.js +1 -1
  461. package/node_modules/@aws-sdk/client-s3/dist-es/commands/ListObjectVersionsCommand.js +1 -1
  462. package/node_modules/@aws-sdk/client-s3/dist-es/commands/ListObjectsCommand.js +1 -1
  463. package/node_modules/@aws-sdk/client-s3/dist-es/commands/ListObjectsV2Command.js +1 -1
  464. package/node_modules/@aws-sdk/client-s3/dist-es/commands/ListPartsCommand.js +1 -2
  465. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +1 -1
  466. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectAclCommand.js +1 -1
  467. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectCommand.js +1 -2
  468. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectLegalHoldCommand.js +1 -1
  469. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectLockConfigurationCommand.js +1 -1
  470. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectRetentionCommand.js +1 -1
  471. package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectTaggingCommand.js +1 -1
  472. package/node_modules/@aws-sdk/client-s3/dist-es/commands/RenameObjectCommand.js +1 -1
  473. package/node_modules/@aws-sdk/client-s3/dist-es/commands/RestoreObjectCommand.js +1 -1
  474. package/node_modules/@aws-sdk/client-s3/dist-es/commands/SelectObjectContentCommand.js +1 -1
  475. package/node_modules/@aws-sdk/client-s3/dist-es/commands/UpdateObjectEncryptionCommand.js +1 -1
  476. package/node_modules/@aws-sdk/client-s3/dist-es/commands/UploadPartCommand.js +1 -2
  477. package/node_modules/@aws-sdk/client-s3/dist-es/commands/UploadPartCopyCommand.js +1 -2
  478. package/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js +1 -2
  479. package/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.shared.js +1 -1
  480. package/node_modules/@aws-sdk/client-s3/dist-types/S3Client.d.ts +1 -1
  481. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.browser.d.ts +4 -4
  482. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.d.ts +2 -2
  483. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.native.d.ts +4 -4
  484. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.shared.d.ts +1 -1
  485. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3Client.d.ts +1 -1
  486. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.browser.d.ts +6 -6
  487. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  488. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.native.d.ts +6 -6
  489. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -1
  490. package/node_modules/@aws-sdk/client-s3/package.json +15 -19
  491. package/node_modules/@aws-sdk/client-sns/dist-types/commands/ConfirmSubscriptionCommand.d.ts +1 -1
  492. package/node_modules/@aws-sdk/client-sns/dist-types/commands/SetSubscriptionAttributesCommand.d.ts +1 -1
  493. package/node_modules/@aws-sdk/client-sns/dist-types/commands/SubscribeCommand.d.ts +1 -1
  494. package/node_modules/@aws-sdk/client-sns/dist-types/models/errors.d.ts +1 -1
  495. package/node_modules/@aws-sdk/client-sns/package.json +10 -10
  496. package/node_modules/@aws-sdk/client-sqs/dist-cjs/index.js +1 -1
  497. package/node_modules/@aws-sdk/client-sqs/dist-es/commands/ReceiveMessageCommand.js +1 -1
  498. package/node_modules/@aws-sdk/client-sqs/package.json +12 -12
  499. package/node_modules/@aws-sdk/client-ssm/package.json +10 -10
  500. package/node_modules/@aws-sdk/core/dist-cjs/index.js +47 -2291
  501. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +12 -6
  502. package/node_modules/@aws-sdk/core/dist-es/index.js +3 -3
  503. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +1 -0
  504. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +11 -6
  505. package/node_modules/@aws-sdk/core/dist-types/index.d.ts +5 -5
  506. package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +5 -5
  507. package/node_modules/@aws-sdk/core/package.json +12 -12
  508. package/node_modules/@aws-sdk/credential-provider-env/package.json +7 -7
  509. package/node_modules/@aws-sdk/credential-provider-http/package.json +11 -10
  510. package/node_modules/@aws-sdk/credential-provider-ini/package.json +15 -15
  511. package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
  512. package/node_modules/@aws-sdk/credential-provider-node/package.json +13 -13
  513. package/node_modules/@aws-sdk/credential-provider-process/package.json +7 -7
  514. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +4 -1
  515. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +4 -1
  516. package/node_modules/@aws-sdk/credential-provider-sso/package.json +12 -10
  517. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +8 -8
  518. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js +21 -447
  519. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/index.js +1 -6
  520. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/index.d.ts +2 -6
  521. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +5 -36
  522. package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +8 -8
  523. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.browser.js +34 -0
  524. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +57 -53
  525. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3/index.browser.js +1028 -0
  526. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3/index.js +1042 -0
  527. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3-control/index.js +215 -0
  528. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/index.browser.js +1 -0
  529. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/index.js +1 -9
  530. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/index.browser.js +30 -0
  531. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/index.js +25 -0
  532. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{s3Configuration.js → submodules/s3/middleware-s3-configuration/s3Configuration.js} +1 -1
  533. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{throw-200-exceptions.js → submodules/s3/middleware-throw-200-exceptions/throw-200-exceptions.js} +1 -1
  534. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{validate-bucket-name.js → submodules/s3/middleware-validate-bucket-name/validate-bucket-name.js} +1 -1
  535. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3-control/configurations.js +7 -0
  536. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3-control/constants.js +5 -0
  537. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3-control/index.js +7 -0
  538. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3-control/middleware-host-prefix-deduplication/hostPrefixDeduplicationMiddleware.js +17 -0
  539. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3-control/middleware-process-arnables/getOutpostEndpoint.js +18 -0
  540. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3-control/middleware-process-arnables/getProcessArnablesPlugin.js +8 -0
  541. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3-control/middleware-process-arnables/parse-outpost-arnables.js +94 -0
  542. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3-control/middleware-process-arnables/update-arnables-request.js +31 -0
  543. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3-control/middleware-redirect-from-postid/redirect-from-postid.js +26 -0
  544. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/index.browser.d.ts +2 -0
  545. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/index.d.ts +2 -9
  546. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3/index.browser.d.ts +36 -0
  547. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3/index.d.ts +32 -0
  548. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{s3Configuration.d.ts → submodules/s3/middleware-s3-configuration/s3Configuration.d.ts} +1 -1
  549. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{validate-bucket-name.d.ts → submodules/s3/middleware-validate-bucket-name/validate-bucket-name.d.ts} +1 -1
  550. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3-control/configurations.d.ts +47 -0
  551. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3-control/constants.d.ts +5 -0
  552. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3-control/index.d.ts +9 -0
  553. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3-control/middleware-host-prefix-deduplication/hostPrefixDeduplicationMiddleware.d.ts +17 -0
  554. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3-control/middleware-process-arnables/getOutpostEndpoint.d.ts +6 -0
  555. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3-control/middleware-process-arnables/getProcessArnablesPlugin.d.ts +3 -0
  556. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3-control/middleware-process-arnables/parse-outpost-arnables.d.ts +27 -0
  557. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3-control/middleware-process-arnables/update-arnables-request.d.ts +19 -0
  558. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3-control/middleware-redirect-from-postid/redirect-from-postid.d.ts +17 -0
  559. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/index.browser.d.ts +39 -0
  560. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/index.d.ts +39 -9
  561. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/submodules/s3/index.browser.d.ts +103 -0
  562. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/submodules/s3/index.d.ts +107 -0
  563. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{s3Configuration.d.ts → submodules/s3/middleware-s3-configuration/s3Configuration.d.ts} +1 -1
  564. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{validate-bucket-name.d.ts → submodules/s3/middleware-validate-bucket-name/validate-bucket-name.d.ts} +1 -1
  565. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/submodules/s3-control/configurations.d.ts +23 -0
  566. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/submodules/s3-control/constants.d.ts +5 -0
  567. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/submodules/s3-control/index.d.ts +26 -0
  568. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/submodules/s3-control/middleware-host-prefix-deduplication/hostPrefixDeduplicationMiddleware.d.ts +13 -0
  569. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/submodules/s3-control/middleware-process-arnables/getOutpostEndpoint.d.ts +13 -0
  570. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/submodules/s3-control/middleware-process-arnables/getProcessArnablesPlugin.d.ts +5 -0
  571. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/submodules/s3-control/middleware-process-arnables/parse-outpost-arnables.d.ts +12 -0
  572. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/submodules/s3-control/middleware-process-arnables/update-arnables-request.d.ts +13 -0
  573. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/submodules/s3-control/middleware-redirect-from-postid/redirect-from-postid.d.ts +22 -0
  574. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +66 -15
  575. package/node_modules/@aws-sdk/middleware-sdk-s3/s3-control.d.ts +7 -0
  576. package/node_modules/@aws-sdk/middleware-sdk-s3/s3-control.js +5 -0
  577. package/node_modules/@aws-sdk/middleware-sdk-s3/s3.d.ts +7 -0
  578. package/node_modules/@aws-sdk/middleware-sdk-s3/s3.js +5 -0
  579. package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +7 -7
  580. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +99 -106
  581. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +62 -120
  582. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +55 -86
  583. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +73 -104
  584. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +102 -185
  585. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +4 -5
  586. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/bdd.js +21 -57
  587. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +1 -2
  588. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +2 -4
  589. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/schemas/schemas_0.js +73 -41
  590. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +4 -5
  591. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +20 -52
  592. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +1 -2
  593. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +2 -4
  594. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +36 -59
  595. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +4 -5
  596. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js +17 -45
  597. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +1 -2
  598. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +2 -4
  599. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js +32 -32
  600. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +4 -5
  601. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js +17 -45
  602. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +1 -2
  603. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +2 -4
  604. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +50 -50
  605. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +4 -5
  606. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js +1 -1
  607. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js +34 -96
  608. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js +1 -2
  609. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +3 -6
  610. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +63 -80
  611. package/node_modules/@aws-sdk/nested-clients/package.json +11 -11
  612. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +10 -9
  613. package/node_modules/@aws-sdk/token-providers/package.json +8 -8
  614. package/node_modules/@aws-sdk/types/package.json +4 -4
  615. package/node_modules/@aws-sdk/util-locate-window/package.json +3 -3
  616. package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/CHANGELOG.md +8 -0
  617. package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/README.md +9 -0
  618. package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/package.json +4 -1
  619. package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/strnum.js +9 -1
  620. package/node_modules/@aws-sdk/xml-builder/package.json +4 -4
  621. package/node_modules/@nodable/entities/package.json +4 -1
  622. package/node_modules/@nodable/entities/src/EntityDecoder.js +104 -3
  623. package/node_modules/@nodable/entities/src/index.d.ts +77 -0
  624. package/node_modules/@nodable/entities/src/index.js +1 -1
  625. package/node_modules/@smithy/core/dist-cjs/index.js +13 -15
  626. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +29 -31
  627. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +2 -4
  628. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +7 -9
  629. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +3 -5
  630. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +22 -23
  631. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +10 -11
  632. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +38 -39
  633. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +10 -11
  634. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +14 -17
  635. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +20 -23
  636. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +9 -11
  637. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +11 -13
  638. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +59 -60
  639. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +26 -27
  640. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +28 -29
  641. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +5 -7
  642. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -6
  643. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +23 -25
  644. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -6
  645. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +2 -4
  646. package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +1 -1
  647. package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/httpSigningMiddleware.js +1 -1
  648. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -1
  649. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/endpointMiddleware.js +1 -1
  650. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +2 -2
  651. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRateLimiter.js +1 -1
  652. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
  653. package/node_modules/@smithy/core/package.json +18 -17
  654. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +23 -24
  655. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js +2 -2
  656. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/node-http.js +2 -0
  657. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -1
  658. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/node-http.d.ts +2 -0
  659. package/node_modules/@smithy/credential-provider-imds/package.json +7 -7
  660. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +6 -8
  661. package/node_modules/@smithy/fetch-http-handler/package.json +10 -10
  662. package/node_modules/@smithy/middleware-compression/dist-cjs/compressStream.browser.js +3 -7
  663. package/node_modules/@smithy/middleware-compression/dist-cjs/compressStream.js +2 -6
  664. package/node_modules/@smithy/middleware-compression/dist-cjs/compressString.browser.js +4 -8
  665. package/node_modules/@smithy/middleware-compression/dist-cjs/compressString.js +7 -11
  666. package/node_modules/@smithy/middleware-compression/dist-cjs/index.js +18 -20
  667. package/node_modules/@smithy/middleware-compression/package.json +6 -6
  668. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +15 -15
  669. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +7 -6
  670. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +2 -1
  671. package/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +2 -0
  672. package/node_modules/@smithy/node-http-handler/dist-es/node-https.js +2 -0
  673. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +2 -2
  674. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
  675. package/node_modules/@smithy/node-http-handler/dist-types/node-http2.d.ts +2 -0
  676. package/node_modules/@smithy/node-http-handler/dist-types/node-https.d.ts +2 -0
  677. package/node_modules/@smithy/node-http-handler/package.json +8 -8
  678. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +27 -29
  679. package/node_modules/@smithy/signature-v4/package.json +7 -7
  680. package/node_modules/@smithy/types/dist-cjs/index.js +23 -18
  681. package/node_modules/@smithy/types/package.json +10 -10
  682. package/node_modules/anynum/LICENSE +21 -0
  683. package/node_modules/anynum/README.md +142 -0
  684. package/node_modules/anynum/anynum.js +135 -0
  685. package/node_modules/anynum/digitTable.js +116 -0
  686. package/node_modules/anynum/package.json +42 -0
  687. package/package.json +10 -10
  688. package/node_modules/@aws-sdk/crc64-nvme/LICENSE +0 -201
  689. package/node_modules/@aws-sdk/crc64-nvme/README.md +0 -61
  690. package/node_modules/@aws-sdk/crc64-nvme/dist-cjs/index.js +0 -101
  691. package/node_modules/@aws-sdk/crc64-nvme/dist-es/index.js +0 -2
  692. package/node_modules/@aws-sdk/crc64-nvme/dist-types/index.d.ts +0 -2
  693. package/node_modules/@aws-sdk/crc64-nvme/dist-types/ts3.4/index.d.ts +0 -2
  694. package/node_modules/@aws-sdk/crc64-nvme/package.json +0 -49
  695. package/node_modules/@aws-sdk/middleware-bucket-endpoint/LICENSE +0 -201
  696. package/node_modules/@aws-sdk/middleware-bucket-endpoint/README.md +0 -4
  697. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js +0 -352
  698. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-es/index.js +0 -6
  699. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-types/index.d.ts +0 -6
  700. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-types/ts3.4/index.d.ts +0 -16
  701. package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +0 -58
  702. package/node_modules/@aws-sdk/middleware-expect-continue/LICENSE +0 -201
  703. package/node_modules/@aws-sdk/middleware-expect-continue/README.md +0 -4
  704. package/node_modules/@aws-sdk/middleware-expect-continue/dist-cjs/index.js +0 -48
  705. package/node_modules/@aws-sdk/middleware-expect-continue/package.json +0 -58
  706. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-types/ts3.4/index.d.ts +0 -6
  707. package/node_modules/@aws-sdk/middleware-location-constraint/LICENSE +0 -201
  708. package/node_modules/@aws-sdk/middleware-location-constraint/README.md +0 -4
  709. package/node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js +0 -30
  710. package/node_modules/@aws-sdk/middleware-location-constraint/package.json +0 -57
  711. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/toStream.browser.js +0 -11
  712. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/toStream.js +0 -7
  713. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/index.js +0 -7
  714. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/index.d.ts +0 -9
  715. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/index.d.ts +0 -17
  716. package/node_modules/@aws-sdk/middleware-ssec/README.md +0 -4
  717. package/node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js +0 -73
  718. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-cjs → checksums/dist-cjs/flexible-checksums}/getCrc32ChecksumAlgorithmFunction.browser.js +0 -0
  719. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-cjs → checksums/dist-cjs/flexible-checksums}/getCrc32ChecksumAlgorithmFunction.js +0 -0
  720. /package/node_modules/@aws-sdk/{crc64-nvme/dist-es → checksums/dist-es/crc64-nvme}/Crc64Nvme.js +0 -0
  721. /package/node_modules/@aws-sdk/{crc64-nvme/dist-es → checksums/dist-es/crc64-nvme}/crc64-nvme-crt-container.js +0 -0
  722. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS.js +0 -0
  723. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS.js +0 -0
  724. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/configuration.js +0 -0
  725. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/constants.js +0 -0
  726. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/flexibleChecksumsInputMiddleware.js +0 -0
  727. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/flexibleChecksumsMiddleware.js +0 -0
  728. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/flexibleChecksumsResponseMiddleware.js +0 -0
  729. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/getChecksum.js +0 -0
  730. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/getChecksumAlgorithmForRequest.js +0 -0
  731. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/getChecksumAlgorithmListForResponse.js +0 -0
  732. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/getChecksumLocationName.js +0 -0
  733. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/getCrc32ChecksumAlgorithmFunction.browser.js +0 -0
  734. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/getCrc32ChecksumAlgorithmFunction.js +0 -0
  735. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/getFlexibleChecksumsPlugin.js +0 -0
  736. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/hasHeader.js +0 -0
  737. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/hasHeaderWithPrefix.js +0 -0
  738. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/isChecksumWithPartNumber.js +0 -0
  739. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/isStreaming.js +0 -0
  740. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/resolveFlexibleChecksumsConfig.js +0 -0
  741. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/stringHasher.js +0 -0
  742. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/stringUnionSelector.js +0 -0
  743. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/types.js +0 -0
  744. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-es → checksums/dist-es/flexible-checksums}/validateChecksumFromResponse.js +0 -0
  745. /package/node_modules/@aws-sdk/{crc64-nvme/dist-types → checksums/dist-types/crc64-nvme}/Crc64Nvme.d.ts +0 -0
  746. /package/node_modules/@aws-sdk/{crc64-nvme/dist-types → checksums/dist-types/crc64-nvme}/crc64-nvme-crt-container.d.ts +0 -0
  747. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS.d.ts +0 -0
  748. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS.d.ts +0 -0
  749. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/configuration.d.ts +0 -0
  750. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/constants.d.ts +0 -0
  751. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/flexibleChecksumsInputMiddleware.d.ts +0 -0
  752. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/flexibleChecksumsMiddleware.d.ts +0 -0
  753. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/flexibleChecksumsResponseMiddleware.d.ts +0 -0
  754. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/getChecksum.d.ts +0 -0
  755. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/getChecksumAlgorithmForRequest.d.ts +0 -0
  756. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/getChecksumAlgorithmListForResponse.d.ts +0 -0
  757. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/getChecksumLocationName.d.ts +0 -0
  758. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/getCrc32ChecksumAlgorithmFunction.browser.d.ts +0 -0
  759. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/getCrc32ChecksumAlgorithmFunction.d.ts +0 -0
  760. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/getFlexibleChecksumsPlugin.d.ts +0 -0
  761. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/hasHeader.d.ts +0 -0
  762. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/hasHeaderWithPrefix.d.ts +0 -0
  763. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/isChecksumWithPartNumber.d.ts +0 -0
  764. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/isStreaming.d.ts +0 -0
  765. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/resolveFlexibleChecksumsConfig.d.ts +0 -0
  766. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/selectChecksumAlgorithmFunction.d.ts +0 -0
  767. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/stringHasher.d.ts +0 -0
  768. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/stringUnionSelector.d.ts +0 -0
  769. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/types.d.ts +0 -0
  770. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types → checksums/dist-types/flexible-checksums}/validateChecksumFromResponse.d.ts +0 -0
  771. /package/node_modules/@aws-sdk/{crc64-nvme/dist-types/ts3.4 → checksums/dist-types/ts3.4/crc64-nvme}/Crc64Nvme.d.ts +0 -0
  772. /package/node_modules/@aws-sdk/{crc64-nvme/dist-types/ts3.4 → checksums/dist-types/ts3.4/crc64-nvme}/crc64-nvme-crt-container.d.ts +0 -0
  773. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS.d.ts +0 -0
  774. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS.d.ts +0 -0
  775. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/configuration.d.ts +0 -0
  776. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/constants.d.ts +0 -0
  777. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/flexibleChecksumsInputMiddleware.d.ts +0 -0
  778. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/flexibleChecksumsMiddleware.d.ts +0 -0
  779. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/flexibleChecksumsResponseMiddleware.d.ts +0 -0
  780. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/getChecksum.d.ts +0 -0
  781. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/getChecksumAlgorithmForRequest.d.ts +0 -0
  782. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/getChecksumAlgorithmListForResponse.d.ts +0 -0
  783. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/getChecksumLocationName.d.ts +0 -0
  784. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/getCrc32ChecksumAlgorithmFunction.browser.d.ts +0 -0
  785. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/getCrc32ChecksumAlgorithmFunction.d.ts +0 -0
  786. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/getFlexibleChecksumsPlugin.d.ts +0 -0
  787. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/hasHeader.d.ts +0 -0
  788. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/hasHeaderWithPrefix.d.ts +0 -0
  789. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/isChecksumWithPartNumber.d.ts +0 -0
  790. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/isStreaming.d.ts +0 -0
  791. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/resolveFlexibleChecksumsConfig.d.ts +0 -0
  792. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/selectChecksumAlgorithmFunction.d.ts +0 -0
  793. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/stringHasher.d.ts +0 -0
  794. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/stringUnionSelector.d.ts +0 -0
  795. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/types.d.ts +0 -0
  796. /package/node_modules/@aws-sdk/{middleware-flexible-checksums/dist-types/ts3.4 → checksums/dist-types/ts3.4/flexible-checksums}/validateChecksumFromResponse.d.ts +0 -0
  797. /package/node_modules/@aws-sdk/{middleware-bucket-endpoint/dist-es → middleware-sdk-s3/dist-es/submodules/s3}/NodeDisableMultiregionAccessPointConfigOptions.js +0 -0
  798. /package/node_modules/@aws-sdk/{middleware-bucket-endpoint/dist-es → middleware-sdk-s3/dist-es/submodules/s3}/NodeUseArnRegionConfigOptions.js +0 -0
  799. /package/node_modules/@aws-sdk/{middleware-bucket-endpoint/dist-es → middleware-sdk-s3/dist-es/submodules/s3/middleware-bucket-endpoint}/bucketEndpointMiddleware.js +0 -0
  800. /package/node_modules/@aws-sdk/{middleware-bucket-endpoint/dist-es → middleware-sdk-s3/dist-es/submodules/s3/middleware-bucket-endpoint}/bucketHostname.js +0 -0
  801. /package/node_modules/@aws-sdk/{middleware-bucket-endpoint/dist-es → middleware-sdk-s3/dist-es/submodules/s3/middleware-bucket-endpoint}/bucketHostnameUtils.js +0 -0
  802. /package/node_modules/@aws-sdk/{middleware-bucket-endpoint/dist-es → middleware-sdk-s3/dist-es/submodules/s3/middleware-bucket-endpoint}/configurations.js +0 -0
  803. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{check-content-length-header.js → submodules/s3/middleware-check-content-length-header/check-content-length-header.js} +0 -0
  804. /package/node_modules/@aws-sdk/{middleware-expect-continue/dist-es/index.js → middleware-sdk-s3/dist-es/submodules/s3/middleware-expect-continue/middleware-expect-continue.js} +0 -0
  805. /package/node_modules/@aws-sdk/{middleware-location-constraint/dist-es → middleware-sdk-s3/dist-es/submodules/s3/middleware-location-constraint}/configuration.js +0 -0
  806. /package/node_modules/@aws-sdk/{middleware-location-constraint/dist-es/index.js → middleware-sdk-s3/dist-es/submodules/s3/middleware-location-constraint/middleware-location-constraint.js} +0 -0
  807. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{bucket-endpoint-middleware.js → submodules/s3/middleware-region-redirect/bucket-endpoint-middleware.js} +0 -0
  808. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{region-redirect-endpoint-middleware.js → submodules/s3/middleware-region-redirect/region-redirect-endpoint-middleware.js} +0 -0
  809. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{region-redirect-middleware.js → submodules/s3/middleware-region-redirect/region-redirect-middleware.js} +0 -0
  810. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{s3-expires-middleware.js → submodules/s3/middleware-s3-expires/s3-expires-middleware.js} +0 -0
  811. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{s3-express → submodules/s3/middleware-s3-express}/classes/S3ExpressIdentityCache.js +0 -0
  812. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{s3-express → submodules/s3/middleware-s3-express}/classes/S3ExpressIdentityCacheEntry.js +0 -0
  813. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{s3-express → submodules/s3/middleware-s3-express}/classes/S3ExpressIdentityProviderImpl.js +0 -0
  814. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{s3-express → submodules/s3/middleware-s3-express}/classes/SignatureV4S3Express.js +0 -0
  815. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{s3-express → submodules/s3/middleware-s3-express}/constants.js +0 -0
  816. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{s3-express → submodules/s3/middleware-s3-express}/functions/s3ExpressHttpSigningMiddleware.js +0 -0
  817. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{s3-express → submodules/s3/middleware-s3-express}/functions/s3ExpressMiddleware.js +0 -0
  818. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{s3-express → submodules/s3/middleware-s3-express}/functions/signS3Express.js +0 -0
  819. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{s3-express → submodules/s3/middleware-s3-express}/interfaces/S3ExpressIdentity.js +0 -0
  820. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{s3-express → submodules/s3/middleware-s3-express}/interfaces/S3ExpressIdentityProvider.js +0 -0
  821. /package/node_modules/@aws-sdk/{middleware-ssec/dist-es/index.js → middleware-sdk-s3/dist-es/submodules/s3/middleware-ssec/middleware-ssec.js} +0 -0
  822. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{protocol → submodules/s3/protocol}/S3RestXmlProtocol.js +0 -0
  823. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{toStream.browser.js → submodules/s3/to-stream/toStream.browser.js} +0 -0
  824. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/{toStream.js → submodules/s3/to-stream/toStream.js} +0 -0
  825. /package/node_modules/@aws-sdk/{middleware-bucket-endpoint/dist-types → middleware-sdk-s3/dist-types/submodules/s3}/NodeDisableMultiregionAccessPointConfigOptions.d.ts +0 -0
  826. /package/node_modules/@aws-sdk/{middleware-bucket-endpoint/dist-types → middleware-sdk-s3/dist-types/submodules/s3}/NodeUseArnRegionConfigOptions.d.ts +0 -0
  827. /package/node_modules/@aws-sdk/{middleware-bucket-endpoint/dist-types → middleware-sdk-s3/dist-types/submodules/s3/middleware-bucket-endpoint}/bucketEndpointMiddleware.d.ts +0 -0
  828. /package/node_modules/@aws-sdk/{middleware-bucket-endpoint/dist-types → middleware-sdk-s3/dist-types/submodules/s3/middleware-bucket-endpoint}/bucketHostname.d.ts +0 -0
  829. /package/node_modules/@aws-sdk/{middleware-bucket-endpoint/dist-types → middleware-sdk-s3/dist-types/submodules/s3/middleware-bucket-endpoint}/bucketHostnameUtils.d.ts +0 -0
  830. /package/node_modules/@aws-sdk/{middleware-bucket-endpoint/dist-types → middleware-sdk-s3/dist-types/submodules/s3/middleware-bucket-endpoint}/configurations.d.ts +0 -0
  831. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{check-content-length-header.d.ts → submodules/s3/middleware-check-content-length-header/check-content-length-header.d.ts} +0 -0
  832. /package/node_modules/@aws-sdk/{middleware-expect-continue/dist-types/index.d.ts → middleware-sdk-s3/dist-types/submodules/s3/middleware-expect-continue/middleware-expect-continue.d.ts} +0 -0
  833. /package/node_modules/@aws-sdk/{middleware-location-constraint/dist-types → middleware-sdk-s3/dist-types/submodules/s3/middleware-location-constraint}/configuration.d.ts +0 -0
  834. /package/node_modules/@aws-sdk/{middleware-location-constraint/dist-types/index.d.ts → middleware-sdk-s3/dist-types/submodules/s3/middleware-location-constraint/middleware-location-constraint.d.ts} +0 -0
  835. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{bucket-endpoint-middleware.d.ts → submodules/s3/middleware-region-redirect/bucket-endpoint-middleware.d.ts} +0 -0
  836. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{region-redirect-endpoint-middleware.d.ts → submodules/s3/middleware-region-redirect/region-redirect-endpoint-middleware.d.ts} +0 -0
  837. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{region-redirect-middleware.d.ts → submodules/s3/middleware-region-redirect/region-redirect-middleware.d.ts} +0 -0
  838. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{s3-expires-middleware.d.ts → submodules/s3/middleware-s3-expires/s3-expires-middleware.d.ts} +0 -0
  839. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{s3-express → submodules/s3/middleware-s3-express}/classes/S3ExpressIdentityCache.d.ts +0 -0
  840. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{s3-express → submodules/s3/middleware-s3-express}/classes/S3ExpressIdentityCacheEntry.d.ts +0 -0
  841. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{s3-express → submodules/s3/middleware-s3-express}/classes/S3ExpressIdentityProviderImpl.d.ts +0 -0
  842. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{s3-express → submodules/s3/middleware-s3-express}/classes/SignatureV4S3Express.d.ts +0 -0
  843. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{s3-express → submodules/s3/middleware-s3-express}/constants.d.ts +0 -0
  844. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{s3-express → submodules/s3/middleware-s3-express}/functions/s3ExpressHttpSigningMiddleware.d.ts +0 -0
  845. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{s3-express → submodules/s3/middleware-s3-express}/functions/s3ExpressMiddleware.d.ts +0 -0
  846. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{s3-express → submodules/s3/middleware-s3-express}/functions/signS3Express.d.ts +0 -0
  847. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{s3-express → submodules/s3/middleware-s3-express}/interfaces/S3ExpressIdentity.d.ts +0 -0
  848. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{s3-express → submodules/s3/middleware-s3-express}/interfaces/S3ExpressIdentityProvider.d.ts +0 -0
  849. /package/node_modules/@aws-sdk/{middleware-ssec/dist-types/index.d.ts → middleware-sdk-s3/dist-types/submodules/s3/middleware-ssec/middleware-ssec.d.ts} +0 -0
  850. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{throw-200-exceptions.d.ts → submodules/s3/middleware-throw-200-exceptions/throw-200-exceptions.d.ts} +0 -0
  851. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{protocol → submodules/s3/protocol}/S3RestXmlProtocol.d.ts +0 -0
  852. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{toStream.browser.d.ts → submodules/s3/to-stream/toStream.browser.d.ts} +0 -0
  853. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/{toStream.d.ts → submodules/s3/to-stream/toStream.d.ts} +0 -0
  854. /package/node_modules/@aws-sdk/{middleware-bucket-endpoint/dist-types/ts3.4 → middleware-sdk-s3/dist-types/ts3.4/submodules/s3}/NodeDisableMultiregionAccessPointConfigOptions.d.ts +0 -0
  855. /package/node_modules/@aws-sdk/{middleware-bucket-endpoint/dist-types/ts3.4 → middleware-sdk-s3/dist-types/ts3.4/submodules/s3}/NodeUseArnRegionConfigOptions.d.ts +0 -0
  856. /package/node_modules/@aws-sdk/{middleware-bucket-endpoint/dist-types/ts3.4 → middleware-sdk-s3/dist-types/ts3.4/submodules/s3/middleware-bucket-endpoint}/bucketEndpointMiddleware.d.ts +0 -0
  857. /package/node_modules/@aws-sdk/{middleware-bucket-endpoint/dist-types/ts3.4 → middleware-sdk-s3/dist-types/ts3.4/submodules/s3/middleware-bucket-endpoint}/bucketHostname.d.ts +0 -0
  858. /package/node_modules/@aws-sdk/{middleware-bucket-endpoint/dist-types/ts3.4 → middleware-sdk-s3/dist-types/ts3.4/submodules/s3/middleware-bucket-endpoint}/bucketHostnameUtils.d.ts +0 -0
  859. /package/node_modules/@aws-sdk/{middleware-bucket-endpoint/dist-types/ts3.4 → middleware-sdk-s3/dist-types/ts3.4/submodules/s3/middleware-bucket-endpoint}/configurations.d.ts +0 -0
  860. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{check-content-length-header.d.ts → submodules/s3/middleware-check-content-length-header/check-content-length-header.d.ts} +0 -0
  861. /package/node_modules/@aws-sdk/{middleware-expect-continue/dist-types/ts3.4/index.d.ts → middleware-sdk-s3/dist-types/ts3.4/submodules/s3/middleware-expect-continue/middleware-expect-continue.d.ts} +0 -0
  862. /package/node_modules/@aws-sdk/{middleware-location-constraint/dist-types/ts3.4 → middleware-sdk-s3/dist-types/ts3.4/submodules/s3/middleware-location-constraint}/configuration.d.ts +0 -0
  863. /package/node_modules/@aws-sdk/{middleware-location-constraint/dist-types/ts3.4/index.d.ts → middleware-sdk-s3/dist-types/ts3.4/submodules/s3/middleware-location-constraint/middleware-location-constraint.d.ts} +0 -0
  864. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{bucket-endpoint-middleware.d.ts → submodules/s3/middleware-region-redirect/bucket-endpoint-middleware.d.ts} +0 -0
  865. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{region-redirect-endpoint-middleware.d.ts → submodules/s3/middleware-region-redirect/region-redirect-endpoint-middleware.d.ts} +0 -0
  866. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{region-redirect-middleware.d.ts → submodules/s3/middleware-region-redirect/region-redirect-middleware.d.ts} +0 -0
  867. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{s3-expires-middleware.d.ts → submodules/s3/middleware-s3-expires/s3-expires-middleware.d.ts} +0 -0
  868. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{s3-express → submodules/s3/middleware-s3-express}/classes/S3ExpressIdentityCache.d.ts +0 -0
  869. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{s3-express → submodules/s3/middleware-s3-express}/classes/S3ExpressIdentityCacheEntry.d.ts +0 -0
  870. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{s3-express → submodules/s3/middleware-s3-express}/classes/S3ExpressIdentityProviderImpl.d.ts +0 -0
  871. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{s3-express → submodules/s3/middleware-s3-express}/classes/SignatureV4S3Express.d.ts +0 -0
  872. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{s3-express → submodules/s3/middleware-s3-express}/constants.d.ts +0 -0
  873. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{s3-express → submodules/s3/middleware-s3-express}/functions/s3ExpressHttpSigningMiddleware.d.ts +0 -0
  874. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{s3-express → submodules/s3/middleware-s3-express}/functions/s3ExpressMiddleware.d.ts +0 -0
  875. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{s3-express → submodules/s3/middleware-s3-express}/functions/signS3Express.d.ts +0 -0
  876. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{s3-express → submodules/s3/middleware-s3-express}/interfaces/S3ExpressIdentity.d.ts +0 -0
  877. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{s3-express → submodules/s3/middleware-s3-express}/interfaces/S3ExpressIdentityProvider.d.ts +0 -0
  878. /package/node_modules/@aws-sdk/{middleware-ssec/dist-types/ts3.4/index.d.ts → middleware-sdk-s3/dist-types/ts3.4/submodules/s3/middleware-ssec/middleware-ssec.d.ts} +0 -0
  879. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{throw-200-exceptions.d.ts → submodules/s3/middleware-throw-200-exceptions/throw-200-exceptions.d.ts} +0 -0
  880. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{protocol → submodules/s3/protocol}/S3RestXmlProtocol.d.ts +0 -0
  881. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{toStream.browser.d.ts → submodules/s3/to-stream/toStream.browser.d.ts} +0 -0
  882. /package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/{toStream.d.ts → submodules/s3/to-stream/toStream.d.ts} +0 -0
  883. /package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/LICENSE +0 -0
@@ -1,2294 +1,50 @@
1
1
  'use strict';
2
2
 
3
- var retry = require('@smithy/core/retry');
4
- var protocols = require('@smithy/core/protocols');
5
- var core = require('@smithy/core');
6
- var config = require('@smithy/core/config');
7
3
  var client = require('@aws-sdk/core/client');
8
- var signatureV4 = require('@smithy/signature-v4');
9
- var serde = require('@smithy/core/serde');
10
- var schema = require('@smithy/core/schema');
11
- var client$1 = require('@smithy/core/client');
12
- var xmlBuilder = require('@aws-sdk/xml-builder');
13
- var cbor = require('@smithy/core/cbor');
14
-
15
- const state = {
16
- warningEmitted: false,
17
- };
18
- const emitWarningIfUnsupportedVersion = (version) => {
19
- if (version && !state.warningEmitted) {
20
- if (process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED === "true") {
21
- state.warningEmitted = true;
22
- return;
23
- }
24
- const userMajorVersion = parseInt(version.substring(1, version.indexOf(".")));
25
- const vv = 22;
26
- if (userMajorVersion < vv) {
27
- state.warningEmitted = true;
28
- process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
29
- versions published after the first week of January 2027
30
- will require node >=${vv}. You are running node ${version}.
31
-
32
- To continue receiving updates to AWS services, bug fixes,
33
- and security updates please upgrade to node >=${vv}.
34
-
35
- More information can be found at: https://a.co/c895JFp`);
36
- }
37
- }
38
- };
39
-
40
- const longPollMiddleware = () => (next, context) => async (args) => {
41
- context.__retryLongPoll = true;
42
- return next(args);
43
- };
44
- const longPollMiddlewareOptions = {
45
- name: "longPollMiddleware",
46
- tags: ["RETRY"],
47
- step: "initialize",
48
- override: true,
49
- };
50
- const getLongPollPlugin = (options) => ({
51
- applyToStack: (clientStack) => {
52
- clientStack.add(longPollMiddleware(), longPollMiddlewareOptions);
53
- },
54
- });
55
-
56
- function setCredentialFeature(credentials, feature, value) {
57
- if (!credentials.$source) {
58
- credentials.$source = {};
59
- }
60
- credentials.$source[feature] = value;
61
- return credentials;
62
- }
63
-
64
- retry.Retry.v2026 ||= typeof process === "object" && process.env?.AWS_NEW_RETRIES_2026 === "true";
65
- function setFeature(context, feature, value) {
66
- if (!context.__aws_sdk_context) {
67
- context.__aws_sdk_context = {
68
- features: {},
69
- };
70
- }
71
- else if (!context.__aws_sdk_context.features) {
72
- context.__aws_sdk_context.features = {};
73
- }
74
- context.__aws_sdk_context.features[feature] = value;
75
- }
76
-
77
- function setTokenFeature(token, feature, value) {
78
- if (!token.$source) {
79
- token.$source = {};
80
- }
81
- token.$source[feature] = value;
82
- return token;
83
- }
84
-
85
- const getDateHeader = (response) => protocols.HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : undefined;
86
-
87
- const getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset);
88
-
89
- const isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 300000;
90
-
91
- const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {
92
- const clockTimeInMs = Date.parse(clockTime);
93
- if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {
94
- return clockTimeInMs - Date.now();
95
- }
96
- return currentSystemClockOffset;
97
- };
98
-
99
- const throwSigningPropertyError = (name, property) => {
100
- if (!property) {
101
- throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);
102
- }
103
- return property;
104
- };
105
- const validateSigningProperties = async (signingProperties) => {
106
- const context = throwSigningPropertyError("context", signingProperties.context);
107
- const config = throwSigningPropertyError("config", signingProperties.config);
108
- const authScheme = context.endpointV2?.properties?.authSchemes?.[0];
109
- const signerFunction = throwSigningPropertyError("signer", config.signer);
110
- const signer = await signerFunction(authScheme);
111
- const signingRegion = signingProperties?.signingRegion;
112
- const signingRegionSet = signingProperties?.signingRegionSet;
113
- const signingName = signingProperties?.signingName;
114
- return {
115
- config,
116
- signer,
117
- signingRegion,
118
- signingRegionSet,
119
- signingName,
120
- };
121
- };
122
- class AwsSdkSigV4Signer {
123
- async sign(httpRequest, identity, signingProperties) {
124
- if (!protocols.HttpRequest.isInstance(httpRequest)) {
125
- throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
126
- }
127
- const validatedProps = await validateSigningProperties(signingProperties);
128
- const { config, signer } = validatedProps;
129
- let { signingRegion, signingName } = validatedProps;
130
- const handlerExecutionContext = signingProperties.context;
131
- if (handlerExecutionContext?.authSchemes?.length ?? 0 > 1) {
132
- const [first, second] = handlerExecutionContext.authSchemes;
133
- if (first?.name === "sigv4a" && second?.name === "sigv4") {
134
- signingRegion = second?.signingRegion ?? signingRegion;
135
- signingName = second?.signingName ?? signingName;
136
- }
137
- }
138
- const signedRequest = await signer.sign(httpRequest, {
139
- signingDate: getSkewCorrectedDate(config.systemClockOffset),
140
- signingRegion: signingRegion,
141
- signingService: signingName,
142
- });
143
- return signedRequest;
144
- }
145
- errorHandler(signingProperties) {
146
- return (error) => {
147
- const serverTime = error.ServerTime ?? getDateHeader(error.$response);
148
- if (serverTime) {
149
- const config = throwSigningPropertyError("config", signingProperties.config);
150
- const initialSystemClockOffset = config.systemClockOffset;
151
- config.systemClockOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset);
152
- const clockSkewCorrected = config.systemClockOffset !== initialSystemClockOffset;
153
- if (clockSkewCorrected && error.$metadata) {
154
- error.$metadata.clockSkewCorrected = true;
155
- }
156
- }
157
- throw error;
158
- };
159
- }
160
- successHandler(httpResponse, signingProperties) {
161
- const dateHeader = getDateHeader(httpResponse);
162
- if (dateHeader) {
163
- const config = throwSigningPropertyError("config", signingProperties.config);
164
- config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset);
165
- }
166
- }
167
- }
168
-
169
- class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer {
170
- async sign(httpRequest, identity, signingProperties) {
171
- if (!protocols.HttpRequest.isInstance(httpRequest)) {
172
- throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
173
- }
174
- const { config, signer, signingRegion, signingRegionSet, signingName } = await validateSigningProperties(signingProperties);
175
- const configResolvedSigningRegionSet = await config.sigv4aSigningRegionSet?.();
176
- const multiRegionOverride = (configResolvedSigningRegionSet ??
177
- signingRegionSet ?? [signingRegion]).join(",");
178
- const signedRequest = await signer.sign(httpRequest, {
179
- signingDate: getSkewCorrectedDate(config.systemClockOffset),
180
- signingRegion: multiRegionOverride,
181
- signingService: signingName,
182
- });
183
- return signedRequest;
184
- }
185
- }
186
-
187
- const getArrayForCommaSeparatedString = (str) => typeof str === "string" && str.length > 0 ? str.split(",").map((item) => item.trim()) : [];
188
-
189
- const getBearerTokenEnvKey = (signingName) => `AWS_BEARER_TOKEN_${signingName.replace(/[\s-]/g, "_").toUpperCase()}`;
190
-
191
- const NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY = "AWS_AUTH_SCHEME_PREFERENCE";
192
- const NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY = "auth_scheme_preference";
193
- const NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
194
- environmentVariableSelector: (env, options) => {
195
- if (options?.signingName) {
196
- const bearerTokenKey = getBearerTokenEnvKey(options.signingName);
197
- if (bearerTokenKey in env)
198
- return ["httpBearerAuth"];
199
- }
200
- if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env))
201
- return undefined;
202
- return getArrayForCommaSeparatedString(env[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY]);
203
- },
204
- configFileSelector: (profile) => {
205
- if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile))
206
- return undefined;
207
- return getArrayForCommaSeparatedString(profile[NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY]);
208
- },
209
- default: [],
210
- };
211
-
212
- const resolveAwsSdkSigV4AConfig = (config) => {
213
- config.sigv4aSigningRegionSet = core.normalizeProvider(config.sigv4aSigningRegionSet);
214
- return config;
215
- };
216
- const NODE_SIGV4A_CONFIG_OPTIONS = {
217
- environmentVariableSelector(env) {
218
- if (env.AWS_SIGV4A_SIGNING_REGION_SET) {
219
- return env.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((_) => _.trim());
220
- }
221
- throw new config.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.", {
222
- tryNextLink: true,
223
- });
224
- },
225
- configFileSelector(profile) {
226
- if (profile.sigv4a_signing_region_set) {
227
- return (profile.sigv4a_signing_region_set ?? "").split(",").map((_) => _.trim());
228
- }
229
- throw new config.ProviderError("sigv4a_signing_region_set not set in profile.", {
230
- tryNextLink: true,
231
- });
232
- },
233
- default: undefined,
234
- };
235
-
236
- const resolveAwsSdkSigV4Config = (config) => {
237
- let inputCredentials = config.credentials;
238
- let isUserSupplied = !!config.credentials;
239
- let resolvedCredentials = undefined;
240
- Object.defineProperty(config, "credentials", {
241
- set(credentials) {
242
- if (credentials && credentials !== inputCredentials && credentials !== resolvedCredentials) {
243
- isUserSupplied = true;
244
- }
245
- inputCredentials = credentials;
246
- const memoizedProvider = normalizeCredentialProvider(config, {
247
- credentials: inputCredentials,
248
- credentialDefaultProvider: config.credentialDefaultProvider,
249
- });
250
- const boundProvider = bindCallerConfig(config, memoizedProvider);
251
- if (isUserSupplied && !boundProvider.attributed) {
252
- const isCredentialObject = typeof inputCredentials === "object" && inputCredentials !== null;
253
- resolvedCredentials = async (options) => {
254
- const creds = await boundProvider(options);
255
- const attributedCreds = creds;
256
- if (isCredentialObject && (!attributedCreds.$source || Object.keys(attributedCreds.$source).length === 0)) {
257
- return client.setCredentialFeature(attributedCreds, "CREDENTIALS_CODE", "e");
258
- }
259
- return attributedCreds;
260
- };
261
- resolvedCredentials.memoized = boundProvider.memoized;
262
- resolvedCredentials.configBound = boundProvider.configBound;
263
- resolvedCredentials.attributed = true;
264
- }
265
- else {
266
- resolvedCredentials = boundProvider;
267
- }
268
- },
269
- get() {
270
- return resolvedCredentials;
271
- },
272
- enumerable: true,
273
- configurable: true,
274
- });
275
- config.credentials = inputCredentials;
276
- const { signingEscapePath = true, systemClockOffset = config.systemClockOffset || 0, sha256, } = config;
277
- let signer;
278
- if (config.signer) {
279
- signer = core.normalizeProvider(config.signer);
280
- }
281
- else if (config.regionInfoProvider) {
282
- signer = () => core.normalizeProvider(config.region)()
283
- .then(async (region) => [
284
- (await config.regionInfoProvider(region, {
285
- useFipsEndpoint: await config.useFipsEndpoint(),
286
- useDualstackEndpoint: await config.useDualstackEndpoint(),
287
- })) || {},
288
- region,
289
- ])
290
- .then(([regionInfo, region]) => {
291
- const { signingRegion, signingService } = regionInfo;
292
- config.signingRegion = config.signingRegion || signingRegion || region;
293
- config.signingName = config.signingName || signingService || config.serviceId;
294
- const params = {
295
- ...config,
296
- credentials: config.credentials,
297
- region: config.signingRegion,
298
- service: config.signingName,
299
- sha256,
300
- uriEscapePath: signingEscapePath,
301
- };
302
- const SignerCtor = config.signerConstructor || signatureV4.SignatureV4;
303
- return new SignerCtor(params);
304
- });
305
- }
306
- else {
307
- signer = async (authScheme) => {
308
- authScheme = Object.assign({}, {
309
- name: "sigv4",
310
- signingName: config.signingName || config.defaultSigningName,
311
- signingRegion: await core.normalizeProvider(config.region)(),
312
- properties: {},
313
- }, authScheme);
314
- const signingRegion = authScheme.signingRegion;
315
- const signingService = authScheme.signingName;
316
- config.signingRegion = config.signingRegion || signingRegion;
317
- config.signingName = config.signingName || signingService || config.serviceId;
318
- const params = {
319
- ...config,
320
- credentials: config.credentials,
321
- region: config.signingRegion,
322
- service: config.signingName,
323
- sha256,
324
- uriEscapePath: signingEscapePath,
325
- };
326
- const SignerCtor = config.signerConstructor || signatureV4.SignatureV4;
327
- return new SignerCtor(params);
328
- };
329
- }
330
- const resolvedConfig = Object.assign(config, {
331
- systemClockOffset,
332
- signingEscapePath,
333
- signer,
334
- });
335
- return resolvedConfig;
336
- };
337
- function normalizeCredentialProvider(config, { credentials, credentialDefaultProvider, }) {
338
- let credentialsProvider;
339
- if (credentials) {
340
- if (!credentials?.memoized) {
341
- credentialsProvider = core.memoizeIdentityProvider(credentials, core.isIdentityExpired, core.doesIdentityRequireRefresh);
342
- }
343
- else {
344
- credentialsProvider = credentials;
345
- }
346
- }
347
- else {
348
- if (credentialDefaultProvider) {
349
- credentialsProvider = core.normalizeProvider(credentialDefaultProvider(Object.assign({}, config, {
350
- parentClientConfig: config,
351
- })));
352
- }
353
- else {
354
- credentialsProvider = async () => {
355
- throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.");
356
- };
357
- }
358
- }
359
- credentialsProvider.memoized = true;
360
- return credentialsProvider;
361
- }
362
- function bindCallerConfig(config, credentialsProvider) {
363
- if (credentialsProvider.configBound) {
364
- return credentialsProvider;
365
- }
366
- const fn = async (options) => credentialsProvider({ ...options, callerClientConfig: config });
367
- fn.memoized = credentialsProvider.memoized;
368
- fn.configBound = true;
369
- return fn;
370
- }
371
-
372
- class ProtocolLib {
373
- queryCompat;
374
- errorRegistry;
375
- constructor(queryCompat = false) {
376
- this.queryCompat = queryCompat;
377
- }
378
- resolveRestContentType(defaultContentType, inputSchema) {
379
- const members = inputSchema.getMemberSchemas();
380
- const httpPayloadMember = Object.values(members).find((m) => {
381
- return !!m.getMergedTraits().httpPayload;
382
- });
383
- if (httpPayloadMember) {
384
- const mediaType = httpPayloadMember.getMergedTraits().mediaType;
385
- if (mediaType) {
386
- return mediaType;
387
- }
388
- else if (httpPayloadMember.isStringSchema()) {
389
- return "text/plain";
390
- }
391
- else if (httpPayloadMember.isBlobSchema()) {
392
- return "application/octet-stream";
393
- }
394
- else {
395
- return defaultContentType;
396
- }
397
- }
398
- else if (!inputSchema.isUnitSchema()) {
399
- const hasBody = Object.values(members).find((m) => {
400
- const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits();
401
- const noPrefixHeaders = httpPrefixHeaders === void 0;
402
- return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && noPrefixHeaders;
403
- });
404
- if (hasBody) {
405
- return defaultContentType;
406
- }
407
- }
408
- }
409
- async getErrorSchemaOrThrowBaseException(errorIdentifier, defaultNamespace, response, dataObject, metadata, getErrorSchema) {
410
- let errorName = errorIdentifier;
411
- if (errorIdentifier.includes("#")) {
412
- [, errorName] = errorIdentifier.split("#");
413
- }
414
- const errorMetadata = {
415
- $metadata: metadata,
416
- $fault: response.statusCode < 500 ? "client" : "server",
417
- };
418
- if (!this.errorRegistry) {
419
- throw new Error("@aws-sdk/core/protocols - error handler not initialized.");
420
- }
421
- try {
422
- const errorSchema = getErrorSchema?.(this.errorRegistry, errorName) ??
423
- this.errorRegistry.getSchema(errorIdentifier);
424
- return { errorSchema, errorMetadata };
425
- }
426
- catch (e) {
427
- dataObject.message = dataObject.message ?? dataObject.Message ?? "UnknownError";
428
- const synthetic = this.errorRegistry;
429
- const baseExceptionSchema = synthetic.getBaseException();
430
- if (baseExceptionSchema) {
431
- const ErrorCtor = synthetic.getErrorCtor(baseExceptionSchema) ?? Error;
432
- throw this.decorateServiceException(Object.assign(new ErrorCtor({ name: errorName }), errorMetadata), dataObject);
433
- }
434
- const d = dataObject;
435
- const message = d?.message ?? d?.Message ?? d?.Error?.Message ?? d?.Error?.message;
436
- throw this.decorateServiceException(Object.assign(new Error(message), {
437
- name: errorName,
438
- }, errorMetadata), dataObject);
439
- }
440
- }
441
- compose(composite, errorIdentifier, defaultNamespace) {
442
- let namespace = defaultNamespace;
443
- if (errorIdentifier.includes("#")) {
444
- [namespace] = errorIdentifier.split("#");
445
- }
446
- const staticRegistry = schema.TypeRegistry.for(namespace);
447
- const defaultSyntheticRegistry = schema.TypeRegistry.for("smithy.ts.sdk.synthetic." + defaultNamespace);
448
- composite.copyFrom(staticRegistry);
449
- composite.copyFrom(defaultSyntheticRegistry);
450
- this.errorRegistry = composite;
451
- }
452
- decorateServiceException(exception, additions = {}) {
453
- if (this.queryCompat) {
454
- const msg = exception.Message ?? additions.Message;
455
- const error = client$1.decorateServiceException(exception, additions);
456
- if (msg) {
457
- error.message = msg;
458
- }
459
- const errorObj = error.Error ?? {};
460
- errorObj.Type = error.Error?.Type;
461
- errorObj.Code = error.Error?.Code;
462
- errorObj.Message = error.Error?.message ?? error.Error?.Message ?? msg;
463
- error.Error = errorObj;
464
- const reqId = error.$metadata.requestId;
465
- if (reqId) {
466
- error.RequestId = reqId;
467
- }
468
- return error;
469
- }
470
- return client$1.decorateServiceException(exception, additions);
471
- }
472
- setQueryCompatError(output, response) {
473
- const queryErrorHeader = response.headers?.["x-amzn-query-error"];
474
- if (output !== undefined && queryErrorHeader != null) {
475
- const [Code, Type] = queryErrorHeader.split(";");
476
- const keys = Object.keys(output);
477
- const Error = {
478
- Code,
479
- Type,
480
- };
481
- output.Code = Code;
482
- output.Type = Type;
483
- for (let i = 0; i < keys.length; i++) {
484
- const k = keys[i];
485
- Error[k === "message" ? "Message" : k] = output[k];
486
- }
487
- delete Error.__type;
488
- output.Error = Error;
489
- }
490
- }
491
- queryCompatOutput(queryCompatErrorData, errorData) {
492
- if (queryCompatErrorData.Error) {
493
- errorData.Error = queryCompatErrorData.Error;
494
- }
495
- if (queryCompatErrorData.Type) {
496
- errorData.Type = queryCompatErrorData.Type;
497
- }
498
- if (queryCompatErrorData.Code) {
499
- errorData.Code = queryCompatErrorData.Code;
500
- }
501
- }
502
- findQueryCompatibleError(registry, errorName) {
503
- try {
504
- return registry.getSchema(errorName);
505
- }
506
- catch (e) {
507
- return registry.find((schema$1) => schema.NormalizedSchema.of(schema$1).getMergedTraits().awsQueryError?.[0] === errorName);
508
- }
509
- }
510
- }
511
-
512
- class AwsSmithyRpcV2CborProtocol extends cbor.SmithyRpcV2CborProtocol {
513
- awsQueryCompatible;
514
- mixin;
515
- constructor({ defaultNamespace, errorTypeRegistries, awsQueryCompatible, }) {
516
- super({ defaultNamespace, errorTypeRegistries });
517
- this.awsQueryCompatible = !!awsQueryCompatible;
518
- this.mixin = new ProtocolLib(this.awsQueryCompatible);
519
- }
520
- async serializeRequest(operationSchema, input, context) {
521
- const request = await super.serializeRequest(operationSchema, input, context);
522
- if (this.awsQueryCompatible) {
523
- request.headers["x-amzn-query-mode"] = "true";
524
- }
525
- return request;
526
- }
527
- async handleError(operationSchema, context, response, dataObject, metadata) {
528
- if (this.awsQueryCompatible) {
529
- this.mixin.setQueryCompatError(dataObject, response);
530
- }
531
- const errorName = (() => {
532
- const compatHeader = response.headers["x-amzn-query-error"];
533
- if (compatHeader && this.awsQueryCompatible) {
534
- return compatHeader.split(";")[0];
535
- }
536
- return cbor.loadSmithyRpcV2CborErrorCode(response, dataObject) ?? "Unknown";
537
- })();
538
- this.mixin.compose(this.compositeErrorRegistry, errorName, this.options.defaultNamespace);
539
- const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorName, this.options.defaultNamespace, response, dataObject, metadata, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : undefined);
540
- const ns = schema.NormalizedSchema.of(errorSchema);
541
- const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
542
- const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
543
- const exception = new ErrorCtor({});
544
- const output = {};
545
- for (const [name, member] of ns.structIterator()) {
546
- if (dataObject[name] != null) {
547
- output[name] = this.deserializer.readValue(member, dataObject[name]);
548
- }
549
- }
550
- if (this.awsQueryCompatible) {
551
- this.mixin.queryCompatOutput(dataObject, output);
552
- }
553
- throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
554
- $fault: ns.getMergedTraits().error,
555
- message,
556
- }, output), dataObject);
557
- }
558
- }
559
-
560
- const _toStr = (val) => {
561
- if (val == null) {
562
- return val;
563
- }
564
- if (typeof val === "number" || typeof val === "bigint") {
565
- const warning = new Error(`Received number ${val} where a string was expected.`);
566
- warning.name = "Warning";
567
- console.warn(warning);
568
- return String(val);
569
- }
570
- if (typeof val === "boolean") {
571
- const warning = new Error(`Received boolean ${val} where a string was expected.`);
572
- warning.name = "Warning";
573
- console.warn(warning);
574
- return String(val);
575
- }
576
- return val;
577
- };
578
- const _toBool = (val) => {
579
- if (val == null) {
580
- return val;
581
- }
582
- if (typeof val === "string") {
583
- const lowercase = val.toLowerCase();
584
- if (val !== "" && lowercase !== "false" && lowercase !== "true") {
585
- const warning = new Error(`Received string "${val}" where a boolean was expected.`);
586
- warning.name = "Warning";
587
- console.warn(warning);
588
- }
589
- return val !== "" && lowercase !== "false";
590
- }
591
- return val;
592
- };
593
- const _toNum = (val) => {
594
- if (val == null) {
595
- return val;
596
- }
597
- if (typeof val === "string") {
598
- const num = Number(val);
599
- if (num.toString() !== val) {
600
- const warning = new Error(`Received string "${val}" where a number was expected.`);
601
- warning.name = "Warning";
602
- console.warn(warning);
603
- return val;
604
- }
605
- return num;
606
- }
607
- return val;
608
- };
609
-
610
- class SerdeContextConfig {
611
- serdeContext;
612
- setSerdeContext(serdeContext) {
613
- this.serdeContext = serdeContext;
614
- }
615
- }
616
-
617
- class UnionSerde {
618
- from;
619
- to;
620
- keys;
621
- constructor(from, to) {
622
- this.from = from;
623
- this.to = to;
624
- const keys = Object.keys(this.from);
625
- const set = new Set(keys);
626
- set.delete("__type");
627
- this.keys = set;
628
- }
629
- mark(key) {
630
- this.keys.delete(key);
631
- }
632
- hasUnknown() {
633
- return this.keys.size === 1 && Object.keys(this.to).length === 0;
634
- }
635
- writeUnknown() {
636
- if (this.hasUnknown()) {
637
- const k = this.keys.values().next().value;
638
- const v = this.from[k];
639
- this.to.$unknown = [k, v];
640
- }
641
- }
642
- }
643
-
644
- function jsonReviver(key, value, context) {
645
- if (context?.source) {
646
- const numericString = context.source;
647
- if (typeof value === "number") {
648
- if (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER || numericString !== String(value)) {
649
- const isFractional = numericString.includes(".");
650
- if (isFractional) {
651
- return new serde.NumericValue(numericString, "bigDecimal");
652
- }
653
- else {
654
- return BigInt(numericString);
655
- }
656
- }
657
- }
658
- }
659
- return value;
660
- }
661
-
662
- const collectBodyString = (streamBody, context) => protocols.collectBody(streamBody, context).then((body) => (context?.utf8Encoder ?? serde.toUtf8)(body));
663
-
664
- const parseJsonBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
665
- if (encoded.length) {
666
- try {
667
- return JSON.parse(encoded);
668
- }
669
- catch (e) {
670
- if (e?.name === "SyntaxError") {
671
- Object.defineProperty(e, "$responseBodyText", {
672
- value: encoded,
673
- });
674
- }
675
- throw e;
676
- }
677
- }
678
- return {};
679
- });
680
- const parseJsonErrorBody = async (errorBody, context) => {
681
- const value = await parseJsonBody(errorBody, context);
682
- value.message = value.message ?? value.Message;
683
- return value;
684
- };
685
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
686
- const sanitizeErrorCode = (rawValue) => {
687
- let cleanValue = rawValue;
688
- if (typeof cleanValue === "number") {
689
- cleanValue = cleanValue.toString();
690
- }
691
- if (cleanValue.indexOf(",") >= 0) {
692
- cleanValue = cleanValue.split(",")[0];
693
- }
694
- if (cleanValue.indexOf(":") >= 0) {
695
- cleanValue = cleanValue.split(":")[0];
696
- }
697
- if (cleanValue.indexOf("#") >= 0) {
698
- cleanValue = cleanValue.split("#")[1];
699
- }
700
- return cleanValue;
701
- };
702
- const loadRestJsonErrorCode = (output, data) => {
703
- return loadErrorCode(output, data, ["header", "code", "type"]);
704
- };
705
- const loadJsonRpcErrorCode = (output, data, queryCompat = false) => {
706
- return loadErrorCode(output, data, queryCompat ? ["code", "header", "type"] : ["type", "code", "header"]);
707
- };
708
- const loadErrorCode = ({ headers }, data, order) => {
709
- while (order.length > 0) {
710
- const location = order.shift();
711
- switch (location) {
712
- case "header":
713
- const headerKey = findKey(headers ?? {}, "x-amzn-errortype");
714
- if (headerKey !== undefined) {
715
- return sanitizeErrorCode(headers[headerKey]);
716
- }
717
- break;
718
- case "code":
719
- const codeKey = findKey(data ?? {}, "code");
720
- if (codeKey && data[codeKey] !== undefined) {
721
- return sanitizeErrorCode(data[codeKey]);
722
- }
723
- break;
724
- case "type":
725
- if (data?.__type !== undefined) {
726
- return sanitizeErrorCode(data.__type);
727
- }
728
- break;
729
- }
730
- }
731
- };
732
-
733
- class JsonShapeDeserializer extends SerdeContextConfig {
734
- settings;
735
- constructor(settings) {
736
- super();
737
- this.settings = settings;
738
- }
739
- async read(schema, data) {
740
- return this._read(schema, typeof data === "string" ? JSON.parse(data, jsonReviver) : await parseJsonBody(data, this.serdeContext));
741
- }
742
- readObject(schema, data) {
743
- return this._read(schema, data);
744
- }
745
- _read(schema$1, value) {
746
- const isObject = value !== null && typeof value === "object";
747
- const ns = schema.NormalizedSchema.of(schema$1);
748
- if (isObject) {
749
- if (ns.isStructSchema()) {
750
- const record = value;
751
- const union = ns.isUnionSchema();
752
- const out = {};
753
- let nameMap = void 0;
754
- const { jsonName } = this.settings;
755
- if (jsonName) {
756
- nameMap = {};
757
- }
758
- let unionSerde;
759
- if (union) {
760
- unionSerde = new UnionSerde(record, out);
761
- }
762
- for (const [memberName, memberSchema] of ns.structIterator()) {
763
- let fromKey = memberName;
764
- if (jsonName) {
765
- fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
766
- nameMap[fromKey] = memberName;
767
- }
768
- if (union) {
769
- unionSerde.mark(fromKey);
770
- }
771
- if (record[fromKey] != null) {
772
- out[memberName] = this._read(memberSchema, record[fromKey]);
773
- }
774
- }
775
- if (union) {
776
- unionSerde.writeUnknown();
777
- }
778
- else if (typeof record.__type === "string") {
779
- for (const k in record) {
780
- const v = record[k];
781
- const t = jsonName ? nameMap[k] ?? k : k;
782
- if (!(t in out)) {
783
- out[t] = v;
784
- }
785
- }
786
- }
787
- return out;
788
- }
789
- if (Array.isArray(value) && ns.isListSchema()) {
790
- const listMember = ns.getValueSchema();
791
- const out = [];
792
- for (const item of value) {
793
- out.push(this._read(listMember, item));
794
- }
795
- return out;
796
- }
797
- if (ns.isMapSchema()) {
798
- const mapMember = ns.getValueSchema();
799
- const out = {};
800
- for (const _k in value) {
801
- out[_k] = this._read(mapMember, value[_k]);
802
- }
803
- return out;
804
- }
805
- }
806
- if (ns.isBlobSchema() && typeof value === "string") {
807
- return serde.fromBase64(value);
808
- }
809
- const mediaType = ns.getMergedTraits().mediaType;
810
- if (ns.isStringSchema() && typeof value === "string" && mediaType) {
811
- const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
812
- if (isJson) {
813
- return serde.LazyJsonString.from(value);
814
- }
815
- return value;
816
- }
817
- if (ns.isTimestampSchema() && value != null) {
818
- const format = protocols.determineTimestampFormat(ns, this.settings);
819
- switch (format) {
820
- case 5:
821
- return serde.parseRfc3339DateTimeWithOffset(value);
822
- case 6:
823
- return serde.parseRfc7231DateTime(value);
824
- case 7:
825
- return serde.parseEpochTimestamp(value);
826
- default:
827
- console.warn("Missing timestamp format, parsing value with Date constructor:", value);
828
- return new Date(value);
829
- }
830
- }
831
- if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
832
- return BigInt(value);
833
- }
834
- if (ns.isBigDecimalSchema() && value != undefined) {
835
- if (value instanceof serde.NumericValue) {
836
- return value;
837
- }
838
- const untyped = value;
839
- if (untyped.type === "bigDecimal" && "string" in untyped) {
840
- return new serde.NumericValue(untyped.string, untyped.type);
841
- }
842
- return new serde.NumericValue(String(value), "bigDecimal");
843
- }
844
- if (ns.isNumericSchema() && typeof value === "string") {
845
- switch (value) {
846
- case "Infinity":
847
- return Infinity;
848
- case "-Infinity":
849
- return -Infinity;
850
- case "NaN":
851
- return NaN;
852
- }
853
- return value;
854
- }
855
- if (ns.isDocumentSchema()) {
856
- if (isObject) {
857
- const out = Array.isArray(value) ? [] : {};
858
- for (const k in value) {
859
- const v = value[k];
860
- if (v instanceof serde.NumericValue) {
861
- out[k] = v;
862
- }
863
- else {
864
- out[k] = this._read(ns, v);
865
- }
866
- }
867
- return out;
868
- }
869
- else {
870
- return structuredClone(value);
871
- }
872
- }
873
- return value;
874
- }
875
- }
876
-
877
- const NUMERIC_CONTROL_CHAR = String.fromCharCode(925);
878
- class JsonReplacer {
879
- values = new Map();
880
- counter = 0;
881
- stage = 0;
882
- createReplacer() {
883
- if (this.stage === 1) {
884
- throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");
885
- }
886
- if (this.stage === 2) {
887
- throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
888
- }
889
- this.stage = 1;
890
- return (key, value) => {
891
- if (value instanceof serde.NumericValue) {
892
- const v = `${NUMERIC_CONTROL_CHAR + "nv" + this.counter++}_` + value.string;
893
- this.values.set(`"${v}"`, value.string);
894
- return v;
895
- }
896
- if (typeof value === "bigint") {
897
- const s = value.toString();
898
- const v = `${NUMERIC_CONTROL_CHAR + "b" + this.counter++}_` + s;
899
- this.values.set(`"${v}"`, s);
900
- return v;
901
- }
902
- return value;
903
- };
904
- }
905
- replaceInJson(json) {
906
- if (this.stage === 0) {
907
- throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");
908
- }
909
- if (this.stage === 2) {
910
- throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
911
- }
912
- this.stage = 2;
913
- if (this.counter === 0) {
914
- return json;
915
- }
916
- for (const [key, value] of this.values) {
917
- json = json.replace(key, value);
918
- }
919
- return json;
920
- }
921
- }
922
-
923
- class JsonShapeSerializer extends SerdeContextConfig {
924
- settings;
925
- buffer;
926
- useReplacer = false;
927
- rootSchema;
928
- constructor(settings) {
929
- super();
930
- this.settings = settings;
931
- }
932
- write(schema$1, value) {
933
- this.rootSchema = schema.NormalizedSchema.of(schema$1);
934
- this.buffer = this._write(this.rootSchema, value);
935
- }
936
- flush() {
937
- const { rootSchema, useReplacer } = this;
938
- this.rootSchema = undefined;
939
- this.useReplacer = false;
940
- if (rootSchema?.isStructSchema() || rootSchema?.isDocumentSchema()) {
941
- if (!useReplacer) {
942
- return JSON.stringify(this.buffer);
943
- }
944
- const replacer = new JsonReplacer();
945
- return replacer.replaceInJson(JSON.stringify(this.buffer, replacer.createReplacer(), 0));
946
- }
947
- return this.buffer;
948
- }
949
- writeDiscriminatedDocument(schema$1, value) {
950
- this.write(schema$1, value);
951
- if (typeof this.buffer === "object") {
952
- this.buffer.__type = schema.NormalizedSchema.of(schema$1).getName(true);
953
- }
954
- }
955
- _write(schema$1, value, container) {
956
- const isObject = value !== null && typeof value === "object";
957
- const ns = schema.NormalizedSchema.of(schema$1);
958
- if (isObject) {
959
- if (ns.isStructSchema()) {
960
- const record = value;
961
- const out = {};
962
- const { jsonName } = this.settings;
963
- let nameMap = void 0;
964
- if (jsonName) {
965
- nameMap = {};
966
- }
967
- let outCount = 0;
968
- for (const [memberName, memberSchema] of ns.structIterator()) {
969
- const serializableValue = this._write(memberSchema, record[memberName], ns);
970
- if (serializableValue !== undefined) {
971
- let targetKey = memberName;
972
- if (jsonName) {
973
- targetKey = memberSchema.getMergedTraits().jsonName ?? memberName;
974
- nameMap[memberName] = targetKey;
975
- }
976
- out[targetKey] = serializableValue;
977
- outCount++;
978
- }
979
- }
980
- if (ns.isUnionSchema() && outCount === 0) {
981
- const { $unknown } = record;
982
- if (Array.isArray($unknown)) {
983
- const [k, v] = $unknown;
984
- out[k] = this._write(15, v);
985
- }
986
- }
987
- else if (typeof record.__type === "string") {
988
- for (const k in record) {
989
- const v = record[k];
990
- const targetKey = jsonName ? nameMap[k] ?? k : k;
991
- if (!(targetKey in out)) {
992
- out[targetKey] = this._write(15, v);
993
- }
994
- }
995
- }
996
- return out;
997
- }
998
- if (Array.isArray(value) && ns.isListSchema()) {
999
- const listMember = ns.getValueSchema();
1000
- const out = [];
1001
- const sparse = !!ns.getMergedTraits().sparse;
1002
- for (const item of value) {
1003
- if (sparse || item != null) {
1004
- out.push(this._write(listMember, item));
1005
- }
1006
- }
1007
- return out;
1008
- }
1009
- if (ns.isMapSchema()) {
1010
- const mapMember = ns.getValueSchema();
1011
- const out = {};
1012
- const sparse = !!ns.getMergedTraits().sparse;
1013
- for (const _k in value) {
1014
- const _v = value[_k];
1015
- if (sparse || _v != null) {
1016
- out[_k] = this._write(mapMember, _v);
1017
- }
1018
- }
1019
- return out;
1020
- }
1021
- if (value instanceof Uint8Array && (ns.isBlobSchema() || ns.isDocumentSchema())) {
1022
- if (ns === this.rootSchema) {
1023
- return value;
1024
- }
1025
- return (this.serdeContext?.base64Encoder ?? serde.toBase64)(value);
1026
- }
1027
- if (value instanceof Date && (ns.isTimestampSchema() || ns.isDocumentSchema())) {
1028
- const format = protocols.determineTimestampFormat(ns, this.settings);
1029
- switch (format) {
1030
- case 5:
1031
- return value.toISOString().replace(".000Z", "Z");
1032
- case 6:
1033
- return serde.dateToUtcString(value);
1034
- case 7:
1035
- return value.getTime() / 1000;
1036
- default:
1037
- console.warn("Missing timestamp format, using epoch seconds", value);
1038
- return value.getTime() / 1000;
1039
- }
1040
- }
1041
- if (value instanceof serde.NumericValue) {
1042
- this.useReplacer = true;
1043
- }
1044
- }
1045
- if (value === null && container?.isStructSchema()) {
1046
- return void 0;
1047
- }
1048
- if (ns.isStringSchema()) {
1049
- if (typeof value === "undefined" && ns.isIdempotencyToken()) {
1050
- return serde.generateIdempotencyToken();
1051
- }
1052
- const mediaType = ns.getMergedTraits().mediaType;
1053
- if (value != null && mediaType) {
1054
- const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
1055
- if (isJson) {
1056
- return serde.LazyJsonString.from(value);
1057
- }
1058
- }
1059
- return value;
1060
- }
1061
- if (typeof value === "number" && ns.isNumericSchema()) {
1062
- if (Math.abs(value) === Infinity || isNaN(value)) {
1063
- return String(value);
1064
- }
1065
- return value;
1066
- }
1067
- if (typeof value === "string" && ns.isBlobSchema()) {
1068
- if (ns === this.rootSchema) {
1069
- return value;
1070
- }
1071
- return (this.serdeContext?.base64Encoder ?? serde.toBase64)(value);
1072
- }
1073
- if (typeof value === "bigint") {
1074
- this.useReplacer = true;
1075
- }
1076
- if (ns.isDocumentSchema()) {
1077
- if (isObject) {
1078
- const out = Array.isArray(value) ? [] : {};
1079
- for (const k in value) {
1080
- const v = value[k];
1081
- if (v instanceof serde.NumericValue) {
1082
- this.useReplacer = true;
1083
- out[k] = v;
1084
- }
1085
- else {
1086
- out[k] = this._write(ns, v);
1087
- }
1088
- }
1089
- return out;
1090
- }
1091
- else {
1092
- return structuredClone(value);
1093
- }
1094
- }
1095
- return value;
1096
- }
1097
- }
1098
-
1099
- class JsonCodec extends SerdeContextConfig {
1100
- settings;
1101
- constructor(settings) {
1102
- super();
1103
- this.settings = settings;
1104
- }
1105
- createSerializer() {
1106
- const serializer = new JsonShapeSerializer(this.settings);
1107
- serializer.setSerdeContext(this.serdeContext);
1108
- return serializer;
1109
- }
1110
- createDeserializer() {
1111
- const deserializer = new JsonShapeDeserializer(this.settings);
1112
- deserializer.setSerdeContext(this.serdeContext);
1113
- return deserializer;
1114
- }
1115
- }
1116
-
1117
- class AwsJsonRpcProtocol extends protocols.RpcProtocol {
1118
- serializer;
1119
- deserializer;
1120
- serviceTarget;
1121
- codec;
1122
- mixin;
1123
- awsQueryCompatible;
1124
- constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }) {
1125
- super({
1126
- defaultNamespace,
1127
- errorTypeRegistries,
1128
- });
1129
- this.serviceTarget = serviceTarget;
1130
- this.codec =
1131
- jsonCodec ??
1132
- new JsonCodec({
1133
- timestampFormat: {
1134
- useTrait: true,
1135
- default: 7,
1136
- },
1137
- jsonName: false,
1138
- });
1139
- this.serializer = this.codec.createSerializer();
1140
- this.deserializer = this.codec.createDeserializer();
1141
- this.awsQueryCompatible = !!awsQueryCompatible;
1142
- this.mixin = new ProtocolLib(this.awsQueryCompatible);
1143
- }
1144
- async serializeRequest(operationSchema, input, context) {
1145
- const request = await super.serializeRequest(operationSchema, input, context);
1146
- if (!request.path.endsWith("/")) {
1147
- request.path += "/";
1148
- }
1149
- request.headers["content-type"] = `application/x-amz-json-${this.getJsonRpcVersion()}`;
1150
- request.headers["x-amz-target"] = `${this.serviceTarget}.${operationSchema.name}`;
1151
- if (this.awsQueryCompatible) {
1152
- request.headers["x-amzn-query-mode"] = "true";
1153
- }
1154
- if (schema.deref(operationSchema.input) === "unit" || !request.body) {
1155
- request.body = "{}";
1156
- }
1157
- return request;
1158
- }
1159
- getPayloadCodec() {
1160
- return this.codec;
1161
- }
1162
- async handleError(operationSchema, context, response, dataObject, metadata) {
1163
- const { awsQueryCompatible } = this;
1164
- if (awsQueryCompatible) {
1165
- this.mixin.setQueryCompatError(dataObject, response);
1166
- }
1167
- const errorIdentifier = loadJsonRpcErrorCode(response, dataObject, awsQueryCompatible) ?? "Unknown";
1168
- this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
1169
- const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata, awsQueryCompatible ? this.mixin.findQueryCompatibleError : undefined);
1170
- const ns = schema.NormalizedSchema.of(errorSchema);
1171
- const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
1172
- const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
1173
- const exception = new ErrorCtor({});
1174
- const output = {};
1175
- const errorDeserializer = this.codec.createDeserializer();
1176
- for (const [name, member] of ns.structIterator()) {
1177
- if (dataObject[name] != null) {
1178
- output[name] = errorDeserializer.readObject(member, dataObject[name]);
1179
- }
1180
- }
1181
- if (awsQueryCompatible) {
1182
- this.mixin.queryCompatOutput(dataObject, output);
1183
- }
1184
- throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
1185
- $fault: ns.getMergedTraits().error,
1186
- message,
1187
- }, output), dataObject);
1188
- }
1189
- }
1190
-
1191
- class AwsJson1_0Protocol extends AwsJsonRpcProtocol {
1192
- constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }) {
1193
- super({
1194
- defaultNamespace,
1195
- errorTypeRegistries,
1196
- serviceTarget,
1197
- awsQueryCompatible,
1198
- jsonCodec,
1199
- });
1200
- }
1201
- getShapeId() {
1202
- return "aws.protocols#awsJson1_0";
1203
- }
1204
- getJsonRpcVersion() {
1205
- return "1.0";
1206
- }
1207
- getDefaultContentType() {
1208
- return "application/x-amz-json-1.0";
1209
- }
1210
- }
1211
-
1212
- class AwsJson1_1Protocol extends AwsJsonRpcProtocol {
1213
- constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }) {
1214
- super({
1215
- defaultNamespace,
1216
- errorTypeRegistries,
1217
- serviceTarget,
1218
- awsQueryCompatible,
1219
- jsonCodec,
1220
- });
1221
- }
1222
- getShapeId() {
1223
- return "aws.protocols#awsJson1_1";
1224
- }
1225
- getJsonRpcVersion() {
1226
- return "1.1";
1227
- }
1228
- getDefaultContentType() {
1229
- return "application/x-amz-json-1.1";
1230
- }
1231
- }
1232
-
1233
- class AwsRestJsonProtocol extends protocols.HttpBindingProtocol {
1234
- serializer;
1235
- deserializer;
1236
- codec;
1237
- mixin = new ProtocolLib();
1238
- constructor({ defaultNamespace, errorTypeRegistries, }) {
1239
- super({
1240
- defaultNamespace,
1241
- errorTypeRegistries,
1242
- });
1243
- const settings = {
1244
- timestampFormat: {
1245
- useTrait: true,
1246
- default: 7,
1247
- },
1248
- httpBindings: true,
1249
- jsonName: true,
1250
- };
1251
- this.codec = new JsonCodec(settings);
1252
- this.serializer = new protocols.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
1253
- this.deserializer = new protocols.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
1254
- }
1255
- getShapeId() {
1256
- return "aws.protocols#restJson1";
1257
- }
1258
- getPayloadCodec() {
1259
- return this.codec;
1260
- }
1261
- setSerdeContext(serdeContext) {
1262
- this.codec.setSerdeContext(serdeContext);
1263
- super.setSerdeContext(serdeContext);
1264
- }
1265
- async serializeRequest(operationSchema, input, context) {
1266
- const request = await super.serializeRequest(operationSchema, input, context);
1267
- const inputSchema = schema.NormalizedSchema.of(operationSchema.input);
1268
- if (!request.headers["content-type"]) {
1269
- const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema);
1270
- if (contentType) {
1271
- request.headers["content-type"] = contentType;
1272
- }
1273
- }
1274
- if (request.body == null && request.headers["content-type"] === this.getDefaultContentType()) {
1275
- request.body = "{}";
1276
- }
1277
- return request;
1278
- }
1279
- async deserializeResponse(operationSchema, context, response) {
1280
- const output = await super.deserializeResponse(operationSchema, context, response);
1281
- const outputSchema = schema.NormalizedSchema.of(operationSchema.output);
1282
- for (const [name, member] of outputSchema.structIterator()) {
1283
- if (member.getMemberTraits().httpPayload && !(name in output)) {
1284
- output[name] = null;
1285
- }
1286
- }
1287
- return output;
1288
- }
1289
- async handleError(operationSchema, context, response, dataObject, metadata) {
1290
- const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
1291
- this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
1292
- const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
1293
- const ns = schema.NormalizedSchema.of(errorSchema);
1294
- const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
1295
- const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
1296
- const exception = new ErrorCtor({});
1297
- await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
1298
- const output = {};
1299
- const errorDeserializer = this.codec.createDeserializer();
1300
- for (const [name, member] of ns.structIterator()) {
1301
- const target = member.getMergedTraits().jsonName ?? name;
1302
- output[name] = errorDeserializer.readObject(member, dataObject[target]);
1303
- }
1304
- throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
1305
- $fault: ns.getMergedTraits().error,
1306
- message,
1307
- }, output), dataObject);
1308
- }
1309
- getDefaultContentType() {
1310
- return "application/json";
1311
- }
1312
- }
1313
-
1314
- const awsExpectUnion = (value) => {
1315
- if (value == null) {
1316
- return undefined;
1317
- }
1318
- if (typeof value === "object" && "__type" in value) {
1319
- delete value.__type;
1320
- }
1321
- return serde.expectUnion(value);
1322
- };
1323
-
1324
- class XmlShapeDeserializer extends SerdeContextConfig {
1325
- settings;
1326
- stringDeserializer;
1327
- constructor(settings) {
1328
- super();
1329
- this.settings = settings;
1330
- this.stringDeserializer = new protocols.FromStringShapeDeserializer(settings);
1331
- }
1332
- setSerdeContext(serdeContext) {
1333
- this.serdeContext = serdeContext;
1334
- this.stringDeserializer.setSerdeContext(serdeContext);
1335
- }
1336
- read(schema$1, bytes, key) {
1337
- const ns = schema.NormalizedSchema.of(schema$1);
1338
- const memberSchemas = ns.getMemberSchemas();
1339
- const isEventPayload = ns.isStructSchema() &&
1340
- ns.isMemberSchema() &&
1341
- !!Object.values(memberSchemas).find((memberNs) => {
1342
- return !!memberNs.getMemberTraits().eventPayload;
1343
- });
1344
- if (isEventPayload) {
1345
- const output = {};
1346
- const memberName = Object.keys(memberSchemas)[0];
1347
- const eventMemberSchema = memberSchemas[memberName];
1348
- if (eventMemberSchema.isBlobSchema()) {
1349
- output[memberName] = bytes;
1350
- }
1351
- else {
1352
- output[memberName] = this.read(memberSchemas[memberName], bytes);
1353
- }
1354
- return output;
1355
- }
1356
- const xmlString = (this.serdeContext?.utf8Encoder ?? serde.toUtf8)(bytes);
1357
- const parsedObject = this.parseXml(xmlString);
1358
- return this.readSchema(schema$1, key ? parsedObject[key] : parsedObject);
1359
- }
1360
- readSchema(_schema, value) {
1361
- const ns = schema.NormalizedSchema.of(_schema);
1362
- if (ns.isUnitSchema()) {
1363
- return;
1364
- }
1365
- const traits = ns.getMergedTraits();
1366
- if (ns.isListSchema() && !Array.isArray(value)) {
1367
- return this.readSchema(ns, [value]);
1368
- }
1369
- if (value == null) {
1370
- return value;
1371
- }
1372
- if (typeof value === "object") {
1373
- const flat = !!traits.xmlFlattened;
1374
- if (ns.isListSchema()) {
1375
- const listValue = ns.getValueSchema();
1376
- const buffer = [];
1377
- const sourceKey = listValue.getMergedTraits().xmlName ?? "member";
1378
- const source = flat ? value : (value[0] ?? value)[sourceKey];
1379
- if (source == null) {
1380
- return buffer;
1381
- }
1382
- const sourceArray = Array.isArray(source) ? source : [source];
1383
- for (const v of sourceArray) {
1384
- buffer.push(this.readSchema(listValue, v));
1385
- }
1386
- return buffer;
1387
- }
1388
- const buffer = {};
1389
- if (ns.isMapSchema()) {
1390
- const keyNs = ns.getKeySchema();
1391
- const memberNs = ns.getValueSchema();
1392
- let entries;
1393
- if (flat) {
1394
- entries = Array.isArray(value) ? value : [value];
1395
- }
1396
- else {
1397
- entries = Array.isArray(value.entry) ? value.entry : [value.entry];
1398
- }
1399
- const keyProperty = keyNs.getMergedTraits().xmlName ?? "key";
1400
- const valueProperty = memberNs.getMergedTraits().xmlName ?? "value";
1401
- for (const entry of entries) {
1402
- const key = entry[keyProperty];
1403
- const value = entry[valueProperty];
1404
- buffer[key] = this.readSchema(memberNs, value);
1405
- }
1406
- return buffer;
1407
- }
1408
- if (ns.isStructSchema()) {
1409
- const union = ns.isUnionSchema();
1410
- let unionSerde;
1411
- if (union) {
1412
- unionSerde = new UnionSerde(value, buffer);
1413
- }
1414
- for (const [memberName, memberSchema] of ns.structIterator()) {
1415
- const memberTraits = memberSchema.getMergedTraits();
1416
- const xmlObjectKey = !memberTraits.httpPayload
1417
- ? memberSchema.getMemberTraits().xmlName ?? memberName
1418
- : memberTraits.xmlName ?? memberSchema.getName();
1419
- if (union) {
1420
- unionSerde.mark(xmlObjectKey);
1421
- }
1422
- if (value[xmlObjectKey] != null) {
1423
- buffer[memberName] = this.readSchema(memberSchema, value[xmlObjectKey]);
1424
- }
1425
- }
1426
- if (union) {
1427
- unionSerde.writeUnknown();
1428
- }
1429
- return buffer;
1430
- }
1431
- if (ns.isDocumentSchema()) {
1432
- return value;
1433
- }
1434
- throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${ns.getName(true)}`);
1435
- }
1436
- if (ns.isListSchema()) {
1437
- return [];
1438
- }
1439
- if (ns.isMapSchema() || ns.isStructSchema()) {
1440
- return {};
1441
- }
1442
- return this.stringDeserializer.read(ns, value);
1443
- }
1444
- parseXml(xml) {
1445
- if (xml.length) {
1446
- let parsedObj;
1447
- try {
1448
- parsedObj = xmlBuilder.parseXML(xml);
1449
- }
1450
- catch (e) {
1451
- if (e && typeof e === "object") {
1452
- Object.defineProperty(e, "$responseBodyText", {
1453
- value: xml,
1454
- });
1455
- }
1456
- throw e;
1457
- }
1458
- const textNodeName = "#text";
1459
- const key = Object.keys(parsedObj)[0];
1460
- const parsedObjToReturn = parsedObj[key];
1461
- if (parsedObjToReturn[textNodeName]) {
1462
- parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
1463
- delete parsedObjToReturn[textNodeName];
1464
- }
1465
- return client$1.getValueFromTextNode(parsedObjToReturn);
1466
- }
1467
- return {};
1468
- }
1469
- }
1470
-
1471
- class QueryShapeSerializer extends SerdeContextConfig {
1472
- settings;
1473
- buffer;
1474
- constructor(settings) {
1475
- super();
1476
- this.settings = settings;
1477
- }
1478
- write(schema$1, value, prefix = "") {
1479
- if (this.buffer === undefined) {
1480
- this.buffer = "";
1481
- }
1482
- const ns = schema.NormalizedSchema.of(schema$1);
1483
- if (prefix && !prefix.endsWith(".")) {
1484
- prefix += ".";
1485
- }
1486
- if (ns.isBlobSchema()) {
1487
- if (typeof value === "string" || value instanceof Uint8Array) {
1488
- this.writeKey(prefix);
1489
- this.writeValue((this.serdeContext?.base64Encoder ?? serde.toBase64)(value));
1490
- }
1491
- }
1492
- else if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isStringSchema()) {
1493
- if (value != null) {
1494
- this.writeKey(prefix);
1495
- this.writeValue(String(value));
1496
- }
1497
- else if (ns.isIdempotencyToken()) {
1498
- this.writeKey(prefix);
1499
- this.writeValue(serde.generateIdempotencyToken());
1500
- }
1501
- }
1502
- else if (ns.isBigIntegerSchema()) {
1503
- if (value != null) {
1504
- this.writeKey(prefix);
1505
- this.writeValue(String(value));
1506
- }
1507
- }
1508
- else if (ns.isBigDecimalSchema()) {
1509
- if (value != null) {
1510
- this.writeKey(prefix);
1511
- this.writeValue(value instanceof serde.NumericValue ? value.string : String(value));
1512
- }
1513
- }
1514
- else if (ns.isTimestampSchema()) {
1515
- if (value instanceof Date) {
1516
- this.writeKey(prefix);
1517
- const format = protocols.determineTimestampFormat(ns, this.settings);
1518
- switch (format) {
1519
- case 5:
1520
- this.writeValue(value.toISOString().replace(".000Z", "Z"));
1521
- break;
1522
- case 6:
1523
- this.writeValue(serde.dateToUtcString(value));
1524
- break;
1525
- case 7:
1526
- this.writeValue(String(value.getTime() / 1000));
1527
- break;
1528
- }
1529
- }
1530
- }
1531
- else if (ns.isDocumentSchema()) {
1532
- if (Array.isArray(value)) {
1533
- this.write(64 | 15, value, prefix);
1534
- }
1535
- else if (value instanceof Date) {
1536
- this.write(4, value, prefix);
1537
- }
1538
- else if (value instanceof Uint8Array) {
1539
- this.write(21, value, prefix);
1540
- }
1541
- else if (value && typeof value === "object") {
1542
- this.write(128 | 15, value, prefix);
1543
- }
1544
- else {
1545
- this.writeKey(prefix);
1546
- this.writeValue(String(value));
1547
- }
1548
- }
1549
- else if (ns.isListSchema()) {
1550
- if (Array.isArray(value)) {
1551
- if (value.length === 0) {
1552
- if (this.settings.serializeEmptyLists) {
1553
- this.writeKey(prefix);
1554
- this.writeValue("");
1555
- }
1556
- }
1557
- else {
1558
- const member = ns.getValueSchema();
1559
- const flat = this.settings.flattenLists || ns.getMergedTraits().xmlFlattened;
1560
- let i = 1;
1561
- for (const item of value) {
1562
- if (item == null) {
1563
- continue;
1564
- }
1565
- const traits = member.getMergedTraits();
1566
- const suffix = this.getKey("member", traits.xmlName, traits.ec2QueryName);
1567
- const key = flat ? `${prefix}${i}` : `${prefix}${suffix}.${i}`;
1568
- this.write(member, item, key);
1569
- ++i;
1570
- }
1571
- }
1572
- }
1573
- }
1574
- else if (ns.isMapSchema()) {
1575
- if (value && typeof value === "object") {
1576
- const keySchema = ns.getKeySchema();
1577
- const memberSchema = ns.getValueSchema();
1578
- const flat = ns.getMergedTraits().xmlFlattened;
1579
- let i = 1;
1580
- for (const k in value) {
1581
- const v = value[k];
1582
- if (v == null) {
1583
- continue;
1584
- }
1585
- const keyTraits = keySchema.getMergedTraits();
1586
- const keySuffix = this.getKey("key", keyTraits.xmlName, keyTraits.ec2QueryName);
1587
- const key = flat ? `${prefix}${i}.${keySuffix}` : `${prefix}entry.${i}.${keySuffix}`;
1588
- const valTraits = memberSchema.getMergedTraits();
1589
- const valueSuffix = this.getKey("value", valTraits.xmlName, valTraits.ec2QueryName);
1590
- const valueKey = flat ? `${prefix}${i}.${valueSuffix}` : `${prefix}entry.${i}.${valueSuffix}`;
1591
- this.write(keySchema, k, key);
1592
- this.write(memberSchema, v, valueKey);
1593
- ++i;
1594
- }
1595
- }
1596
- }
1597
- else if (ns.isStructSchema()) {
1598
- if (value && typeof value === "object") {
1599
- let didWriteMember = false;
1600
- for (const [memberName, member] of ns.structIterator()) {
1601
- if (value[memberName] == null && !member.isIdempotencyToken()) {
1602
- continue;
1603
- }
1604
- const traits = member.getMergedTraits();
1605
- const suffix = this.getKey(memberName, traits.xmlName, traits.ec2QueryName, "struct");
1606
- const key = `${prefix}${suffix}`;
1607
- this.write(member, value[memberName], key);
1608
- didWriteMember = true;
1609
- }
1610
- if (!didWriteMember && ns.isUnionSchema()) {
1611
- const { $unknown } = value;
1612
- if (Array.isArray($unknown)) {
1613
- const [k, v] = $unknown;
1614
- const key = `${prefix}${k}`;
1615
- this.write(15, v, key);
1616
- }
1617
- }
1618
- }
1619
- }
1620
- else if (ns.isUnitSchema()) ;
1621
- else {
1622
- throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${ns.getName(true)}`);
1623
- }
1624
- }
1625
- flush() {
1626
- if (this.buffer === undefined) {
1627
- throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");
1628
- }
1629
- const str = this.buffer;
1630
- delete this.buffer;
1631
- return str;
1632
- }
1633
- getKey(memberName, xmlName, ec2QueryName, keySource) {
1634
- const { ec2, capitalizeKeys } = this.settings;
1635
- if (ec2 && ec2QueryName) {
1636
- return ec2QueryName;
1637
- }
1638
- const key = xmlName ?? memberName;
1639
- if (capitalizeKeys && keySource === "struct") {
1640
- return key[0].toUpperCase() + key.slice(1);
1641
- }
1642
- return key;
1643
- }
1644
- writeKey(key) {
1645
- if (key.endsWith(".")) {
1646
- key = key.slice(0, key.length - 1);
1647
- }
1648
- this.buffer += `&${protocols.extendedEncodeURIComponent(key)}=`;
1649
- }
1650
- writeValue(value) {
1651
- this.buffer += protocols.extendedEncodeURIComponent(value);
1652
- }
1653
- }
1654
-
1655
- class AwsQueryProtocol extends protocols.RpcProtocol {
1656
- options;
1657
- serializer;
1658
- deserializer;
1659
- mixin = new ProtocolLib();
1660
- constructor(options) {
1661
- super({
1662
- defaultNamespace: options.defaultNamespace,
1663
- errorTypeRegistries: options.errorTypeRegistries,
1664
- });
1665
- this.options = options;
1666
- const settings = {
1667
- timestampFormat: {
1668
- useTrait: true,
1669
- default: 5,
1670
- },
1671
- httpBindings: false,
1672
- xmlNamespace: options.xmlNamespace,
1673
- serviceNamespace: options.defaultNamespace,
1674
- serializeEmptyLists: true,
1675
- };
1676
- this.serializer = new QueryShapeSerializer(settings);
1677
- this.deserializer = new XmlShapeDeserializer(settings);
1678
- }
1679
- getShapeId() {
1680
- return "aws.protocols#awsQuery";
1681
- }
1682
- setSerdeContext(serdeContext) {
1683
- this.serializer.setSerdeContext(serdeContext);
1684
- this.deserializer.setSerdeContext(serdeContext);
1685
- }
1686
- getPayloadCodec() {
1687
- throw new Error("AWSQuery protocol has no payload codec.");
1688
- }
1689
- async serializeRequest(operationSchema, input, context) {
1690
- const request = await super.serializeRequest(operationSchema, input, context);
1691
- if (!request.path.endsWith("/")) {
1692
- request.path += "/";
1693
- }
1694
- request.headers["content-type"] = "application/x-www-form-urlencoded";
1695
- if (schema.deref(operationSchema.input) === "unit" || !request.body) {
1696
- request.body = "";
1697
- }
1698
- const action = operationSchema.name.split("#")[1] ?? operationSchema.name;
1699
- request.body = `Action=${action}&Version=${this.options.version}` + request.body;
1700
- if (request.body.endsWith("&")) {
1701
- request.body = request.body.slice(-1);
1702
- }
1703
- return request;
1704
- }
1705
- async deserializeResponse(operationSchema, context, response) {
1706
- const deserializer = this.deserializer;
1707
- const ns = schema.NormalizedSchema.of(operationSchema.output);
1708
- const dataObject = {};
1709
- if (response.statusCode >= 300) {
1710
- const bytes = await protocols.collectBody(response.body, context);
1711
- if (bytes.byteLength > 0) {
1712
- Object.assign(dataObject, await deserializer.read(15, bytes));
1713
- }
1714
- await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response));
1715
- }
1716
- for (const header in response.headers) {
1717
- const value = response.headers[header];
1718
- delete response.headers[header];
1719
- response.headers[header.toLowerCase()] = value;
1720
- }
1721
- const shortName = operationSchema.name.split("#")[1] ?? operationSchema.name;
1722
- const awsQueryResultKey = ns.isStructSchema() && this.useNestedResult() ? shortName + "Result" : undefined;
1723
- const bytes = await protocols.collectBody(response.body, context);
1724
- if (bytes.byteLength > 0) {
1725
- Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey));
1726
- }
1727
- dataObject.$metadata = this.deserializeMetadata(response);
1728
- return dataObject;
1729
- }
1730
- useNestedResult() {
1731
- return true;
1732
- }
1733
- async handleError(operationSchema, context, response, dataObject, metadata) {
1734
- const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown";
1735
- this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
1736
- const errorData = this.loadQueryError(dataObject) ?? {};
1737
- const message = this.loadQueryErrorMessage(dataObject);
1738
- errorData.message = message;
1739
- errorData.Error = {
1740
- Type: errorData.Type,
1741
- Code: errorData.Code,
1742
- Message: message,
1743
- };
1744
- const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, this.mixin.findQueryCompatibleError);
1745
- const ns = schema.NormalizedSchema.of(errorSchema);
1746
- const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
1747
- const exception = new ErrorCtor({});
1748
- const output = {
1749
- Type: errorData.Error.Type,
1750
- Code: errorData.Error.Code,
1751
- Error: errorData.Error,
1752
- };
1753
- for (const [name, member] of ns.structIterator()) {
1754
- const target = member.getMergedTraits().xmlName ?? name;
1755
- const value = errorData[target] ?? dataObject[target];
1756
- output[name] = this.deserializer.readSchema(member, value);
1757
- }
1758
- throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
1759
- $fault: ns.getMergedTraits().error,
1760
- message,
1761
- }, output), dataObject);
1762
- }
1763
- loadQueryErrorCode(output, data) {
1764
- const code = (data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error)?.Code;
1765
- if (code !== undefined) {
1766
- return code;
1767
- }
1768
- if (output.statusCode == 404) {
1769
- return "NotFound";
1770
- }
1771
- }
1772
- loadQueryError(data) {
1773
- return data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error;
1774
- }
1775
- loadQueryErrorMessage(data) {
1776
- const errorData = this.loadQueryError(data);
1777
- return errorData?.message ?? errorData?.Message ?? data.message ?? data.Message ?? "Unknown";
1778
- }
1779
- getDefaultContentType() {
1780
- return "application/x-www-form-urlencoded";
1781
- }
1782
- }
1783
-
1784
- class AwsEc2QueryProtocol extends AwsQueryProtocol {
1785
- options;
1786
- constructor(options) {
1787
- super(options);
1788
- this.options = options;
1789
- const ec2Settings = {
1790
- capitalizeKeys: true,
1791
- flattenLists: true,
1792
- serializeEmptyLists: false,
1793
- ec2: true,
1794
- };
1795
- Object.assign(this.serializer.settings, ec2Settings);
1796
- }
1797
- getShapeId() {
1798
- return "aws.protocols#ec2Query";
1799
- }
1800
- useNestedResult() {
1801
- return false;
1802
- }
1803
- }
1804
-
1805
- const parseXmlBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1806
- if (encoded.length) {
1807
- let parsedObj;
1808
- try {
1809
- parsedObj = xmlBuilder.parseXML(encoded);
1810
- }
1811
- catch (e) {
1812
- if (e && typeof e === "object") {
1813
- Object.defineProperty(e, "$responseBodyText", {
1814
- value: encoded,
1815
- });
1816
- }
1817
- throw e;
1818
- }
1819
- const textNodeName = "#text";
1820
- const key = Object.keys(parsedObj)[0];
1821
- const parsedObjToReturn = parsedObj[key];
1822
- if (parsedObjToReturn[textNodeName]) {
1823
- parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
1824
- delete parsedObjToReturn[textNodeName];
1825
- }
1826
- return client$1.getValueFromTextNode(parsedObjToReturn);
1827
- }
1828
- return {};
1829
- });
1830
- const parseXmlErrorBody = async (errorBody, context) => {
1831
- const value = await parseXmlBody(errorBody, context);
1832
- if (value.Error) {
1833
- value.Error.message = value.Error.message ?? value.Error.Message;
1834
- }
1835
- return value;
1836
- };
1837
- const loadRestXmlErrorCode = (output, data) => {
1838
- if (data?.Error?.Code !== undefined) {
1839
- return data.Error.Code;
1840
- }
1841
- if (data?.Code !== undefined) {
1842
- return data.Code;
1843
- }
1844
- if (output.statusCode == 404) {
1845
- return "NotFound";
1846
- }
1847
- };
1848
-
1849
- class XmlShapeSerializer extends SerdeContextConfig {
1850
- settings;
1851
- stringBuffer;
1852
- byteBuffer;
1853
- buffer;
1854
- constructor(settings) {
1855
- super();
1856
- this.settings = settings;
1857
- }
1858
- write(schema$1, value) {
1859
- const ns = schema.NormalizedSchema.of(schema$1);
1860
- if (ns.isStringSchema() && typeof value === "string") {
1861
- this.stringBuffer = value;
1862
- }
1863
- else if (ns.isBlobSchema()) {
1864
- this.byteBuffer =
1865
- "byteLength" in value
1866
- ? value
1867
- : (this.serdeContext?.base64Decoder ?? serde.fromBase64)(value);
1868
- }
1869
- else {
1870
- this.buffer = this.writeStruct(ns, value, undefined);
1871
- const traits = ns.getMergedTraits();
1872
- if (traits.httpPayload && !traits.xmlName) {
1873
- this.buffer.withName(ns.getName());
1874
- }
1875
- }
1876
- }
1877
- flush() {
1878
- if (this.byteBuffer !== undefined) {
1879
- const bytes = this.byteBuffer;
1880
- delete this.byteBuffer;
1881
- return bytes;
1882
- }
1883
- if (this.stringBuffer !== undefined) {
1884
- const str = this.stringBuffer;
1885
- delete this.stringBuffer;
1886
- return str;
1887
- }
1888
- const buffer = this.buffer;
1889
- if (this.settings.xmlNamespace) {
1890
- if (!buffer?.attributes?.["xmlns"]) {
1891
- buffer.addAttribute("xmlns", this.settings.xmlNamespace);
1892
- }
1893
- }
1894
- delete this.buffer;
1895
- return buffer.toString();
1896
- }
1897
- writeStruct(ns, value, parentXmlns) {
1898
- const traits = ns.getMergedTraits();
1899
- const name = ns.isMemberSchema() && !traits.httpPayload
1900
- ? ns.getMemberTraits().xmlName ?? ns.getMemberName()
1901
- : traits.xmlName ?? ns.getName();
1902
- if (!name || !ns.isStructSchema()) {
1903
- throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${ns.getName(true)}.`);
1904
- }
1905
- const structXmlNode = xmlBuilder.XmlNode.of(name);
1906
- const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
1907
- for (const [memberName, memberSchema] of ns.structIterator()) {
1908
- const val = value[memberName];
1909
- if (val != null || memberSchema.isIdempotencyToken()) {
1910
- if (memberSchema.getMergedTraits().xmlAttribute) {
1911
- structXmlNode.addAttribute(memberSchema.getMergedTraits().xmlName ?? memberName, this.writeSimple(memberSchema, val));
1912
- continue;
1913
- }
1914
- if (memberSchema.isListSchema()) {
1915
- this.writeList(memberSchema, val, structXmlNode, xmlns);
1916
- }
1917
- else if (memberSchema.isMapSchema()) {
1918
- this.writeMap(memberSchema, val, structXmlNode, xmlns);
1919
- }
1920
- else if (memberSchema.isStructSchema()) {
1921
- structXmlNode.addChildNode(this.writeStruct(memberSchema, val, xmlns));
1922
- }
1923
- else {
1924
- const memberNode = xmlBuilder.XmlNode.of(memberSchema.getMergedTraits().xmlName ?? memberSchema.getMemberName());
1925
- this.writeSimpleInto(memberSchema, val, memberNode, xmlns);
1926
- structXmlNode.addChildNode(memberNode);
1927
- }
1928
- }
1929
- }
1930
- const { $unknown } = value;
1931
- if ($unknown && ns.isUnionSchema() && Array.isArray($unknown) && Object.keys(value).length === 1) {
1932
- const [k, v] = $unknown;
1933
- const node = xmlBuilder.XmlNode.of(k);
1934
- if (typeof v !== "string") {
1935
- if (value instanceof xmlBuilder.XmlNode || value instanceof xmlBuilder.XmlText) {
1936
- structXmlNode.addChildNode(value);
1937
- }
1938
- else {
1939
- throw new Error(`@aws-sdk - $unknown union member in XML requires ` +
1940
- `value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`);
1941
- }
1942
- }
1943
- this.writeSimpleInto(0, v, node, xmlns);
1944
- structXmlNode.addChildNode(node);
1945
- }
1946
- if (xmlns) {
1947
- structXmlNode.addAttribute(xmlnsAttr, xmlns);
1948
- }
1949
- return structXmlNode;
1950
- }
1951
- writeList(listMember, array, container, parentXmlns) {
1952
- if (!listMember.isMemberSchema()) {
1953
- throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${listMember.getName(true)}`);
1954
- }
1955
- const listTraits = listMember.getMergedTraits();
1956
- const listValueSchema = listMember.getValueSchema();
1957
- const listValueTraits = listValueSchema.getMergedTraits();
1958
- const sparse = !!listValueTraits.sparse;
1959
- const flat = !!listTraits.xmlFlattened;
1960
- const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(listMember, parentXmlns);
1961
- const writeItem = (container, value) => {
1962
- if (listValueSchema.isListSchema()) {
1963
- this.writeList(listValueSchema, Array.isArray(value) ? value : [value], container, xmlns);
1964
- }
1965
- else if (listValueSchema.isMapSchema()) {
1966
- this.writeMap(listValueSchema, value, container, xmlns);
1967
- }
1968
- else if (listValueSchema.isStructSchema()) {
1969
- const struct = this.writeStruct(listValueSchema, value, xmlns);
1970
- container.addChildNode(struct.withName(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member"));
1971
- }
1972
- else {
1973
- const listItemNode = xmlBuilder.XmlNode.of(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member");
1974
- this.writeSimpleInto(listValueSchema, value, listItemNode, xmlns);
1975
- container.addChildNode(listItemNode);
1976
- }
1977
- };
1978
- if (flat) {
1979
- for (const value of array) {
1980
- if (sparse || value != null) {
1981
- writeItem(container, value);
1982
- }
1983
- }
1984
- }
1985
- else {
1986
- const listNode = xmlBuilder.XmlNode.of(listTraits.xmlName ?? listMember.getMemberName());
1987
- if (xmlns) {
1988
- listNode.addAttribute(xmlnsAttr, xmlns);
1989
- }
1990
- for (const value of array) {
1991
- if (sparse || value != null) {
1992
- writeItem(listNode, value);
1993
- }
1994
- }
1995
- container.addChildNode(listNode);
1996
- }
1997
- }
1998
- writeMap(mapMember, map, container, parentXmlns, containerIsMap = false) {
1999
- if (!mapMember.isMemberSchema()) {
2000
- throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${mapMember.getName(true)}`);
2001
- }
2002
- const mapTraits = mapMember.getMergedTraits();
2003
- const mapKeySchema = mapMember.getKeySchema();
2004
- const mapKeyTraits = mapKeySchema.getMergedTraits();
2005
- const keyTag = mapKeyTraits.xmlName ?? "key";
2006
- const mapValueSchema = mapMember.getValueSchema();
2007
- const mapValueTraits = mapValueSchema.getMergedTraits();
2008
- const valueTag = mapValueTraits.xmlName ?? "value";
2009
- const sparse = !!mapValueTraits.sparse;
2010
- const flat = !!mapTraits.xmlFlattened;
2011
- const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(mapMember, parentXmlns);
2012
- const addKeyValue = (entry, key, val) => {
2013
- const keyNode = xmlBuilder.XmlNode.of(keyTag, key);
2014
- const [keyXmlnsAttr, keyXmlns] = this.getXmlnsAttribute(mapKeySchema, xmlns);
2015
- if (keyXmlns) {
2016
- keyNode.addAttribute(keyXmlnsAttr, keyXmlns);
2017
- }
2018
- entry.addChildNode(keyNode);
2019
- let valueNode = xmlBuilder.XmlNode.of(valueTag);
2020
- if (mapValueSchema.isListSchema()) {
2021
- this.writeList(mapValueSchema, val, valueNode, xmlns);
2022
- }
2023
- else if (mapValueSchema.isMapSchema()) {
2024
- this.writeMap(mapValueSchema, val, valueNode, xmlns, true);
2025
- }
2026
- else if (mapValueSchema.isStructSchema()) {
2027
- valueNode = this.writeStruct(mapValueSchema, val, xmlns);
2028
- }
2029
- else {
2030
- this.writeSimpleInto(mapValueSchema, val, valueNode, xmlns);
2031
- }
2032
- entry.addChildNode(valueNode);
2033
- };
2034
- if (flat) {
2035
- for (const key in map) {
2036
- const val = map[key];
2037
- if (sparse || val != null) {
2038
- const entry = xmlBuilder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
2039
- addKeyValue(entry, key, val);
2040
- container.addChildNode(entry);
2041
- }
2042
- }
2043
- }
2044
- else {
2045
- let mapNode;
2046
- if (!containerIsMap) {
2047
- mapNode = xmlBuilder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
2048
- if (xmlns) {
2049
- mapNode.addAttribute(xmlnsAttr, xmlns);
2050
- }
2051
- container.addChildNode(mapNode);
2052
- }
2053
- for (const key in map) {
2054
- const val = map[key];
2055
- if (sparse || val != null) {
2056
- const entry = xmlBuilder.XmlNode.of("entry");
2057
- addKeyValue(entry, key, val);
2058
- (containerIsMap ? container : mapNode).addChildNode(entry);
2059
- }
2060
- }
2061
- }
2062
- }
2063
- writeSimple(_schema, value) {
2064
- if (null === value) {
2065
- throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");
2066
- }
2067
- const ns = schema.NormalizedSchema.of(_schema);
2068
- let nodeContents = null;
2069
- if (value && typeof value === "object") {
2070
- if (ns.isBlobSchema()) {
2071
- nodeContents = (this.serdeContext?.base64Encoder ?? serde.toBase64)(value);
2072
- }
2073
- else if (ns.isTimestampSchema() && value instanceof Date) {
2074
- const format = protocols.determineTimestampFormat(ns, this.settings);
2075
- switch (format) {
2076
- case 5:
2077
- nodeContents = value.toISOString().replace(".000Z", "Z");
2078
- break;
2079
- case 6:
2080
- nodeContents = serde.dateToUtcString(value);
2081
- break;
2082
- case 7:
2083
- nodeContents = String(value.getTime() / 1000);
2084
- break;
2085
- default:
2086
- console.warn("Missing timestamp format, using http date", value);
2087
- nodeContents = serde.dateToUtcString(value);
2088
- break;
2089
- }
2090
- }
2091
- else if (ns.isBigDecimalSchema() && value) {
2092
- if (value instanceof serde.NumericValue) {
2093
- return value.string;
2094
- }
2095
- return String(value);
2096
- }
2097
- else if (ns.isMapSchema() || ns.isListSchema()) {
2098
- throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.");
2099
- }
2100
- else {
2101
- throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${ns.getName(true)}`);
2102
- }
2103
- }
2104
- if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
2105
- nodeContents = String(value);
2106
- }
2107
- if (ns.isStringSchema()) {
2108
- if (value === undefined && ns.isIdempotencyToken()) {
2109
- nodeContents = serde.generateIdempotencyToken();
2110
- }
2111
- else {
2112
- nodeContents = String(value);
2113
- }
2114
- }
2115
- if (nodeContents === null) {
2116
- throw new Error(`Unhandled schema-value pair ${ns.getName(true)}=${value}`);
2117
- }
2118
- return nodeContents;
2119
- }
2120
- writeSimpleInto(_schema, value, into, parentXmlns) {
2121
- const nodeContents = this.writeSimple(_schema, value);
2122
- const ns = schema.NormalizedSchema.of(_schema);
2123
- const content = new xmlBuilder.XmlText(nodeContents);
2124
- const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
2125
- if (xmlns) {
2126
- into.addAttribute(xmlnsAttr, xmlns);
2127
- }
2128
- into.addChildNode(content);
2129
- }
2130
- getXmlnsAttribute(ns, parentXmlns) {
2131
- const traits = ns.getMergedTraits();
2132
- const [prefix, xmlns] = traits.xmlNamespace ?? [];
2133
- if (xmlns && xmlns !== parentXmlns) {
2134
- return [prefix ? `xmlns:${prefix}` : "xmlns", xmlns];
2135
- }
2136
- return [void 0, void 0];
2137
- }
2138
- }
2139
-
2140
- class XmlCodec extends SerdeContextConfig {
2141
- settings;
2142
- constructor(settings) {
2143
- super();
2144
- this.settings = settings;
2145
- }
2146
- createSerializer() {
2147
- const serializer = new XmlShapeSerializer(this.settings);
2148
- serializer.setSerdeContext(this.serdeContext);
2149
- return serializer;
2150
- }
2151
- createDeserializer() {
2152
- const deserializer = new XmlShapeDeserializer(this.settings);
2153
- deserializer.setSerdeContext(this.serdeContext);
2154
- return deserializer;
2155
- }
2156
- }
2157
-
2158
- class AwsRestXmlProtocol extends protocols.HttpBindingProtocol {
2159
- codec;
2160
- serializer;
2161
- deserializer;
2162
- mixin = new ProtocolLib();
2163
- constructor(options) {
2164
- super(options);
2165
- const settings = {
2166
- timestampFormat: {
2167
- useTrait: true,
2168
- default: 5,
2169
- },
2170
- httpBindings: true,
2171
- xmlNamespace: options.xmlNamespace,
2172
- serviceNamespace: options.defaultNamespace,
2173
- };
2174
- this.codec = new XmlCodec(settings);
2175
- this.serializer = new protocols.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
2176
- this.deserializer = new protocols.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
2177
- }
2178
- getPayloadCodec() {
2179
- return this.codec;
2180
- }
2181
- getShapeId() {
2182
- return "aws.protocols#restXml";
2183
- }
2184
- async serializeRequest(operationSchema, input, context) {
2185
- const request = await super.serializeRequest(operationSchema, input, context);
2186
- const inputSchema = schema.NormalizedSchema.of(operationSchema.input);
2187
- if (!request.headers["content-type"]) {
2188
- const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema);
2189
- if (contentType) {
2190
- request.headers["content-type"] = contentType;
2191
- }
2192
- }
2193
- if (typeof request.body === "string" &&
2194
- request.headers["content-type"] === this.getDefaultContentType() &&
2195
- !request.body.startsWith("<?xml ") &&
2196
- !this.hasUnstructuredPayloadBinding(inputSchema)) {
2197
- request.body = '<?xml version="1.0" encoding="UTF-8"?>' + request.body;
2198
- }
2199
- return request;
2200
- }
2201
- async deserializeResponse(operationSchema, context, response) {
2202
- return super.deserializeResponse(operationSchema, context, response);
2203
- }
2204
- async handleError(operationSchema, context, response, dataObject, metadata) {
2205
- const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown";
2206
- this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
2207
- if (dataObject.Error && typeof dataObject.Error === "object") {
2208
- for (const key of Object.keys(dataObject.Error)) {
2209
- dataObject[key] = dataObject.Error[key];
2210
- if (key.toLowerCase() === "message") {
2211
- dataObject.message = dataObject.Error[key];
2212
- }
2213
- }
2214
- }
2215
- if (dataObject.RequestId && !metadata.requestId) {
2216
- metadata.requestId = dataObject.RequestId;
2217
- }
2218
- const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
2219
- const ns = schema.NormalizedSchema.of(errorSchema);
2220
- const message = dataObject.Error?.message ??
2221
- dataObject.Error?.Message ??
2222
- dataObject.message ??
2223
- dataObject.Message ??
2224
- "UnknownError";
2225
- const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
2226
- const exception = new ErrorCtor({});
2227
- await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
2228
- const output = {};
2229
- const errorDeserializer = this.codec.createDeserializer();
2230
- for (const [name, member] of ns.structIterator()) {
2231
- const target = member.getMergedTraits().xmlName ?? name;
2232
- const value = dataObject.Error?.[target] ?? dataObject[target];
2233
- output[name] = errorDeserializer.readSchema(member, value);
2234
- }
2235
- throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
2236
- $fault: ns.getMergedTraits().error,
2237
- message,
2238
- }, output), dataObject);
2239
- }
2240
- getDefaultContentType() {
2241
- return "application/xml";
2242
- }
2243
- hasUnstructuredPayloadBinding(ns) {
2244
- for (const [, member] of ns.structIterator()) {
2245
- if (member.getMergedTraits().httpPayload) {
2246
- return !(member.isStructSchema() || member.isMapSchema() || member.isListSchema());
2247
- }
2248
- }
2249
- return false;
2250
- }
2251
- }
2252
-
2253
- exports.AWSSDKSigV4Signer = AwsSdkSigV4Signer;
2254
- exports.AwsEc2QueryProtocol = AwsEc2QueryProtocol;
2255
- exports.AwsJson1_0Protocol = AwsJson1_0Protocol;
2256
- exports.AwsJson1_1Protocol = AwsJson1_1Protocol;
2257
- exports.AwsJsonRpcProtocol = AwsJsonRpcProtocol;
2258
- exports.AwsQueryProtocol = AwsQueryProtocol;
2259
- exports.AwsRestJsonProtocol = AwsRestJsonProtocol;
2260
- exports.AwsRestXmlProtocol = AwsRestXmlProtocol;
2261
- exports.AwsSdkSigV4ASigner = AwsSdkSigV4ASigner;
2262
- exports.AwsSdkSigV4Signer = AwsSdkSigV4Signer;
2263
- exports.AwsSmithyRpcV2CborProtocol = AwsSmithyRpcV2CborProtocol;
2264
- exports.JsonCodec = JsonCodec;
2265
- exports.JsonShapeDeserializer = JsonShapeDeserializer;
2266
- exports.JsonShapeSerializer = JsonShapeSerializer;
2267
- exports.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = NODE_AUTH_SCHEME_PREFERENCE_OPTIONS;
2268
- exports.NODE_SIGV4A_CONFIG_OPTIONS = NODE_SIGV4A_CONFIG_OPTIONS;
2269
- exports.QueryShapeSerializer = QueryShapeSerializer;
2270
- exports.XmlCodec = XmlCodec;
2271
- exports.XmlShapeDeserializer = XmlShapeDeserializer;
2272
- exports.XmlShapeSerializer = XmlShapeSerializer;
2273
- exports._toBool = _toBool;
2274
- exports._toNum = _toNum;
2275
- exports._toStr = _toStr;
2276
- exports.awsExpectUnion = awsExpectUnion;
2277
- exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion;
2278
- exports.getBearerTokenEnvKey = getBearerTokenEnvKey;
2279
- exports.getLongPollPlugin = getLongPollPlugin;
2280
- exports.loadJsonRpcErrorCode = loadJsonRpcErrorCode;
2281
- exports.loadRestJsonErrorCode = loadRestJsonErrorCode;
2282
- exports.loadRestXmlErrorCode = loadRestXmlErrorCode;
2283
- exports.parseJsonBody = parseJsonBody;
2284
- exports.parseJsonErrorBody = parseJsonErrorBody;
2285
- exports.parseXmlBody = parseXmlBody;
2286
- exports.parseXmlErrorBody = parseXmlErrorBody;
2287
- exports.resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;
2288
- exports.resolveAwsSdkSigV4AConfig = resolveAwsSdkSigV4AConfig;
2289
- exports.resolveAwsSdkSigV4Config = resolveAwsSdkSigV4Config;
2290
- exports.setCredentialFeature = setCredentialFeature;
2291
- exports.setFeature = setFeature;
2292
- exports.setTokenFeature = setTokenFeature;
2293
- exports.state = state;
2294
- exports.validateSigningProperties = validateSigningProperties;
4
+ var httpAuthSchemes = require('@aws-sdk/core/httpAuthSchemes');
5
+ var protocols = require('@aws-sdk/core/protocols');
6
+
7
+
8
+
9
+ exports.emitWarningIfUnsupportedVersion = client.emitWarningIfUnsupportedVersion;
10
+ exports.getLongPollPlugin = client.getLongPollPlugin;
11
+ exports.setCredentialFeature = client.setCredentialFeature;
12
+ exports.setFeature = client.setFeature;
13
+ exports.setTokenFeature = client.setTokenFeature;
14
+ exports.state = client.state;
15
+ exports.AWSSDKSigV4Signer = httpAuthSchemes.AwsSdkSigV4Signer;
16
+ exports.AwsSdkSigV4ASigner = httpAuthSchemes.AwsSdkSigV4ASigner;
17
+ exports.AwsSdkSigV4Signer = httpAuthSchemes.AwsSdkSigV4Signer;
18
+ exports.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = httpAuthSchemes.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS;
19
+ exports.NODE_SIGV4A_CONFIG_OPTIONS = httpAuthSchemes.NODE_SIGV4A_CONFIG_OPTIONS;
20
+ exports.getBearerTokenEnvKey = httpAuthSchemes.getBearerTokenEnvKey;
21
+ exports.resolveAWSSDKSigV4Config = httpAuthSchemes.resolveAwsSdkSigV4Config;
22
+ exports.resolveAwsSdkSigV4AConfig = httpAuthSchemes.resolveAwsSdkSigV4AConfig;
23
+ exports.resolveAwsSdkSigV4Config = httpAuthSchemes.resolveAwsSdkSigV4Config;
24
+ exports.validateSigningProperties = httpAuthSchemes.validateSigningProperties;
25
+ exports.AwsEc2QueryProtocol = protocols.AwsEc2QueryProtocol;
26
+ exports.AwsJson1_0Protocol = protocols.AwsJson1_0Protocol;
27
+ exports.AwsJson1_1Protocol = protocols.AwsJson1_1Protocol;
28
+ exports.AwsJsonRpcProtocol = protocols.AwsJsonRpcProtocol;
29
+ exports.AwsQueryProtocol = protocols.AwsQueryProtocol;
30
+ exports.AwsRestJsonProtocol = protocols.AwsRestJsonProtocol;
31
+ exports.AwsRestXmlProtocol = protocols.AwsRestXmlProtocol;
32
+ exports.AwsSmithyRpcV2CborProtocol = protocols.AwsSmithyRpcV2CborProtocol;
33
+ exports.JsonCodec = protocols.JsonCodec;
34
+ exports.JsonShapeDeserializer = protocols.JsonShapeDeserializer;
35
+ exports.JsonShapeSerializer = protocols.JsonShapeSerializer;
36
+ exports.QueryShapeSerializer = protocols.QueryShapeSerializer;
37
+ exports.XmlCodec = protocols.XmlCodec;
38
+ exports.XmlShapeDeserializer = protocols.XmlShapeDeserializer;
39
+ exports.XmlShapeSerializer = protocols.XmlShapeSerializer;
40
+ exports._toBool = protocols._toBool;
41
+ exports._toNum = protocols._toNum;
42
+ exports._toStr = protocols._toStr;
43
+ exports.awsExpectUnion = protocols.awsExpectUnion;
44
+ exports.loadJsonRpcErrorCode = protocols.loadJsonRpcErrorCode;
45
+ exports.loadRestJsonErrorCode = protocols.loadRestJsonErrorCode;
46
+ exports.loadRestXmlErrorCode = protocols.loadRestXmlErrorCode;
47
+ exports.parseJsonBody = protocols.parseJsonBody;
48
+ exports.parseJsonErrorBody = protocols.parseJsonErrorBody;
49
+ exports.parseXmlBody = protocols.parseXmlBody;
50
+ exports.parseXmlErrorBody = protocols.parseXmlErrorBody;